/*
Theme Name: Waterberg Elektries
Theme URI: https://www.wbelektries.co.za/
Author: Waterberg Elektries
Description: Bespoke Waterberg Elektries child theme for Astra.
Version: 3.1.0
Template: astra
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: waterberg-elektries
*/

:root {
  --ink: #0b2c31;
  --deep: #123536;
  --teal: #1aa7a6;
  --green: #82c934;
  --mist: #f2f4f0;
  --white: #ffffff;
  --sand: #c8b991;
  --body: #263638;
  --muted: #677678;
  --line: rgba(11, 44, 49, .13);
  --shadow: 0 28px 70px rgba(5, 35, 38, .16);
  --radius: 3px;
  --wrap: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--body); background: var(--white); font-family: "Avenir Next", Avenir, Montserrat, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 12px; padding: 12px 18px; color: var(--ink); background: white; z-index: 99999; }

h1, h2, h3 { margin: 0 0 .65em; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
h1 { font-size: clamp(3rem, 6.5vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.3em; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; color: var(--teal); font-size: .71rem; font-weight: 750; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { width: 42px; height: 1px; background: var(--green); content: ""; }
.lead { max-width: 780px; color: #526164; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.65; }
.section { padding: clamp(82px, 10vw, 150px) 0; }
.section--mist { background: var(--mist); }
.section--ink { color: rgba(255,255,255,.78); background: var(--ink); }
.section--ink h2, .section--ink h3 { color: white; }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: end; margin-bottom: 65px; }

.site-header { position: relative; z-index: 100; height: 104px; background: #061f22; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-header.is-sticky { position: fixed; inset: 0 0 auto; height: 80px; background: rgba(6,31,34,.97); box-shadow: 0 12px 35px rgba(3,24,27,.22); backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { width: min(300px, 42vw); max-height: 78px; object-fit: contain; }
.site-header.is-sticky .brand img { max-height: 62px; }
.nav-list { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: rgba(255,255,255,.78); font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.nav-list a:hover, .nav-list a:focus { color: #a7e75e; }
.nav-list .nav-cta { padding: 12px 18px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.42); border-radius: 2px; }
.nav-list .nav-cta:hover, .nav-list .nav-cta:focus { color: var(--ink); background: white; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; color: white; background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; cursor: pointer; }
.menu-toggle span { display: block; width: 19px; height: 2px; margin: 5px auto; background: currentColor; }

.hero { position: relative; min-height: calc(100svh - 104px); overflow: hidden; color: white; background: var(--ink); }
.hero-media, .hero-slide, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; background-position: center; background-size: cover; }
.hero-slide.is-active { opacity: 1; }
.hero-video { object-fit: cover; }
.hero::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(2,22,25,.95) 0%, rgba(2,22,25,.76) 48%, rgba(2,22,25,.2) 86%), linear-gradient(0deg, rgba(2,22,25,.55), transparent 48%); content: ""; }
.hero-content { position: relative; z-index: 2; display: flex; min-height: calc(100svh - 104px); padding-block: clamp(90px, 12vw, 170px); align-items: center; }
.hero-copy { max-width: 980px; }
.hero h1 { max-width: 940px; color: white; }
.hero .eyebrow { color: #a7e75e; }
.hero-text { max-width: 690px; color: rgba(255,255,255,.82); font-size: clamp(1.1rem, 1.7vw, 1.38rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 25px; color: white; background: var(--teal); border: 1px solid var(--teal); border-radius: 2px; font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; transition: .2s ease; }
.button:hover, .button:focus { color: white; background: #138b8a; transform: translateY(-2px); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.button--ghost:hover, .button--ghost:focus { background: rgba(255,255,255,.1); }
.button--dark { background: var(--ink); border-color: var(--ink); }
.hero-index { position: absolute; z-index: 3; right: max(20px, calc((100vw - 1180px)/2)); bottom: 40px; display: flex; gap: 9px; }
.hero-dot { width: 28px; height: 3px; padding: 0; background: rgba(255,255,255,.35); border: 0; cursor: pointer; }
.hero-dot.is-active { background: var(--green); }

.proof { background: var(--deep); }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.proof-item { min-height: 120px; padding: 30px; color: rgba(255,255,255,.72); border-right: 1px solid rgba(255,255,255,.12); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; margin-bottom: 4px; color: white; font-size: 1.06rem; }
.proof-item span { font-size: .86rem; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.intro-mark { position: relative; padding: 72px; background: var(--ink); border-radius: 2px; }
.intro-mark img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.intro-copy .lead { margin-bottom: 30px; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 0; list-style: none; }
.detail-list li { position: relative; padding-left: 18px; font-size: .92rem; }
.detail-list li::before { position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--green); border-radius: 50%; content: ""; }

.service-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 24px; }
.service-card { position: relative; grid-column: span 4; min-height: 470px; overflow: hidden; color: white; background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.service-card--wide { grid-column: span 8; }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.service-card::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,27,30,.96), rgba(2,27,30,.08) 72%); content: ""; }
.service-card:hover img { transform: scale(1.035); }
.service-card-content { position: absolute; z-index: 2; inset: auto 34px 32px; }
.card-kicker { display: block; margin-bottom: 12px; color: #a7e75e; font-size: .67rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.service-card h3 { margin-bottom: 9px; color: white; }
.service-card p { margin: 0; color: rgba(255,255,255,.72); font-size: .92rem; }
.service-card a { color: inherit; text-decoration: none; }
.service-card a::after { position: absolute; inset: 0; content: ""; }

.sector-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.sector { min-height: 300px; padding: 40px 30px; background: var(--ink); }
.sector-number { display: block; margin-bottom: 75px; color: var(--green); font-size: .72rem; letter-spacing: .18em; }
.sector p { color: rgba(255,255,255,.65); font-size: .9rem; }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 35px; counter-reset: process; }
.process-item { position: relative; padding-top: 70px; border-top: 1px solid var(--line); counter-increment: process; }
.process-item::before { position: absolute; top: 20px; left: 0; color: var(--teal); font-size: .78rem; font-weight: 750; content: "0" counter(process); }
.process-item p { color: var(--muted); font-size: .94rem; }

.story { position: relative; overflow: hidden; }
.story::after { position: absolute; right: -15vw; bottom: -20vw; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(130,201,52,.13), transparent 65%); content: ""; }
.story-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 9vw, 125px); }
.story-year { color: rgba(255,255,255,.12); font-size: clamp(6rem, 15vw, 13rem); font-weight: 750; letter-spacing: -.08em; line-height: .8; }
.story-copy p { max-width: 720px; font-size: 1.08rem; }

.reach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.region-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0 0; padding: 0; list-style: none; }
.region-list li { padding: 8px 14px; color: var(--deep); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
.reach-note { padding: 42px; background: var(--ink); border-top: 3px solid var(--green); box-shadow: var(--shadow); }
.reach-note h3 { color: white; }
.reach-note p { color: rgba(255,255,255,.68); }

.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(50px, 8vw, 110px); }
.contact-note { color: rgba(255,255,255,.65); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--full { grid-column: 1/-1; }
.field label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 15px; color: white; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(130,201,52,.12); }
.field select option { color: var(--ink); }
.field textarea { min-height: 145px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.65); font-size: .82rem; }
.consent input { margin-top: 5px; }
.wbe-hp { position: absolute !important; left: -9999px !important; }
.form-status { margin-bottom: 22px; padding: 12px 16px; color: white; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; }
.form-status--success { border-color: var(--green); }
.form-status--error { border-color: #f4a9a9; }

.page-hero { padding: clamp(95px, 12vw, 155px) 0 85px; color: white; background: var(--ink); }
.page-hero h1 { max-width: 930px; color: white; font-size: clamp(3rem, 6vw, 5.8rem); }
.page-content { max-width: 880px; margin-inline: auto; }
.page-content h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.page-content ul { padding-left: 1.2em; }
.page-content li { margin-bottom: .55em; }

.site-footer { padding: 55px 0 26px; color: rgba(255,255,255,.58); background: #061f22; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { width: min(290px, 70vw); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: rgba(255,255,255,.7); font-size: .8rem; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 24px; font-size: .74rem; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 80px 0 0; padding: 40px 20px; background: #061f22; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: .2s ease; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; align-items: flex-start; width: var(--wrap); margin-inline: auto; }
  .nav-list a { font-size: 1rem; }
  .section-head, .intro-grid, .story-grid, .reach-grid, .contact-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item:nth-child(2) { border-right: 0; }
  .service-card, .service-card--wide { grid-column: span 6; }
  .sector-grid, .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  .site-header { height: 78px; }
  .brand img { width: 235px; max-height: 58px; }
  .hero, .hero-content { min-height: calc(100svh - 78px); }
  .hero::before { background: linear-gradient(90deg, rgba(3,24,27,.9), rgba(3,24,27,.43)), linear-gradient(0deg, rgba(3,24,27,.55), transparent); }
  .hero h1 { font-size: clamp(2.65rem, 15vw, 4rem); }
  .hero-index { bottom: 22px; }
  .proof-grid, .sector-grid, .process-grid, .form-grid { grid-template-columns: 1fr; }
  .proof-item { min-height: 0; padding: 22px 5px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .intro-mark { padding: 38px; }
  .detail-list { grid-template-columns: 1fr; }
  .service-card, .service-card--wide { grid-column: 1/-1; min-height: 420px; }
  .sector { min-height: 240px; }
  .sector-number { margin-bottom: 45px; }
  .footer-top, .footer-bottom { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
