/* ============================================================
   BWAG SYSTEMS - Design System
   Business systems that create clarity.
   Navy + Blue + White. Flat color base. Shades via opacity.
   ============================================================ */

:root{
  --bwag-navy:       #071B3A;
  --bwag-navy-2:     #121B2E;
  --bwag-navy-3:     #1B2A45;
  --bwag-navy-4:     #24324D;
  --bwag-blue:       #2563EB;
  --bwag-blue-dark:  #1D4ED8;
  --bwag-blue-light: #60A5FA;
  --bwag-tint:       #EAF0FD;
  --bwag-white:      #FFFFFF;
  --bwag-text:       #1E293B;
  --bwag-muted:      #64748B;
  --bwag-muted-2:    #94A3B8;
  --bwag-border:     #E2E8F0;
  --bwag-border-s:   #CBD5E1;
  --bwag-surface:    #FFFFFF;
  --bwag-success:    #2FBF6B;
  --bwag-warn:       #E5B64A;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --speed:      500ms;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius:       14px;
  --radius-sm:    9px;
  --radius-pill:  999px;
  --container:    1180px;
  --gutter:       24px;
  --nav-h:        92px;
  --shadow:       0 18px 44px -22px rgba(0,0,0,0.55);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ font-size:100%; -webkit-text-size-adjust:100%; scroll-behavior:smooth; overflow-x:clip; }

@media (prefers-reduced-motion: no-preference){
  html{ scroll-behavior:smooth; }
}

body{
  font-family:var(--font);
  font-size:1.0625rem;
  background:var(--bwag-white);
  color:var(--bwag-text);
  line-height:1.65;

  /* Keep text edges crisp on every platform. */
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;

  /* Inter variable font tuning. These are the font's own optical features:
     cv11 raises the cap height so small uppercase labels sit level with
     Inter's true caps, and ss01 straightens the lowercase a.
     Tabular figures keep numbers a consistent width in stats and prices. */
  font-feature-settings:"cv11" 1,"ss01" 1;
  font-variant-numeric:tabular-nums;

  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
ul,ol{ list-style:none; }

:focus-visible{ outline:2px solid var(--bwag-blue); outline-offset:3px; border-radius:4px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5{ font-weight:700; line-height:1.12; letter-spacing:-0.02em; color:var(--bwag-navy); }
.hero h1,.hero h2,.hero h3,.hero h4,.hero h5{ color:var(--bwag-navy); }
.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4,.site-footer h5{ color:var(--bwag-white); }

.h1{ font-size:clamp(2.1rem, 4.6vw, 3.645rem); line-height:1.06; letter-spacing:-0.03em; font-weight:800; }
.h2{ font-size:clamp(1.75rem, 3.4vw, 2.6rem); }
.h3{ font-size:clamp(1.2rem, 2vw, 1.5rem); font-weight:700; }
.lead{ font-size:clamp(1.05rem, 1.6vw, 1.28rem); color:var(--bwag-muted); line-height:1.65; }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:0.78rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--bwag-blue);
}
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--bwag-blue); }

.muted{ color:var(--bwag-muted); }
.brand-accent{ color:var(--bwag-blue); }

/* ---------- Layout ---------- */
.container{ width:min(var(--container), 100% - (var(--gutter) * 2)); margin-inline:auto; }

.section{ padding:clamp(64px, 9vw, 128px) 0; position:relative; }
.section--alt{ background:var(--bwag-tint); }
.section--bordered{ border-top:1px solid var(--bwag-border); }

.section-head{ max-width:760px; margin-bottom:clamp(36px,5vw,60px); }
.section-head .lead{ margin-top:16px; }
.section-head--center{ margin-inline:auto; text-align:center; }
.section-head--center .eyebrow{ justify-content:center; }
.section-head--center .eyebrow::before{ display:none; }

.grid{ display:grid; gap:22px; }
.g2{ grid-template-columns:repeat(2,1fr); }
.g3{ grid-template-columns:repeat(3,1fr); }
.g4{ grid-template-columns:repeat(4,1fr); }

/* Grid/flex children must be allowed to shrink below content size (overflow guard) */
.grid>*,.g2>*,.g3>*,.g4>*,.hero__grid>*,.feature>*,.problem-grid>*,.dual>*,.leak-grid>*,.who-grid>*,.contact-grid>*,.map-grid>*,.footer__grid>*,.form-grid>*,.fp-body>*,.tlayer>*{ min-width:0; }

/* ---------- Buttons ---------- */
.btn{
  --btn-bg: var(--bwag-blue);
  --btn-fg: var(--bwag-white);
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 26px; border-radius:var(--radius-pill);
  background:var(--btn-bg); color:var(--btn-fg);
  font-weight:600; font-size:1rem; letter-spacing:0.01em;
  border:1px solid transparent;
  transition: transform var(--speed) var(--ease-out), box-shadow var(--speed) var(--ease-out),
             background var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out);
  will-change:transform;
}
.btn .ico{ display:inline-flex; line-height:1; transition:transform var(--speed) var(--ease-out); }
.btn:hover{ transform:translateY(-2px); box-shadow:0 16px 30px -14px rgba(37,99,235,0.55); }
.btn:hover .ico{ transform:translateX(4px); }
.btn:active{ transform:translateY(0); }

.btn--primary{ background:var(--bwag-blue); }
.btn--primary:hover{ background:var(--bwag-blue-dark); }

.btn--ghost{ background:transparent; border-color:var(--bwag-border-s); color:var(--bwag-navy); }
.btn--ghost:hover{ border-color:var(--bwag-blue); background:rgba(37,99,235,0.06); }

/* WhatsApp links pick up the brand green on hover. Scoped to buttons so
   it never leaks into the contact cards, which follow the card hover. */
.btn[href*="wa.me"]{
  --btn-bg:#25D366; --btn-fg:#075E54;
  border-color:#25D366;
  transition: background var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out), color var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
.btn[href*="wa.me"]:hover,
.btn[href*="wa.me"]:focus-visible{
  background:#25D366; color:#075E54; border-color:#1EBE5A;
  transform:translateY(-2px);
}
/* Ghost buttons already carry a translucent fill, so the solid green is
   only used on the plain/primary variants. */
.btn--ghost[href*="wa.me"]:hover,
.btn--ghost[href*="wa.me"]:focus-visible{
  background:rgba(37,211,102,0.12); color:#0B8457; border-color:#25D366;
}

.btn--light{ background:var(--bwag-white); color:var(--bwag-navy); }
.btn--light:hover{ background:var(--bwag-tint); }

.btn--sm{ padding:11px 18px; font-size:0.88rem; }

.btn-row{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
/* Centre button rows and eyebrows inside centered text blocks. */
.feature__copy .btn-row, .about-cta .btn-row, .ab-sec .btn-row{ justify-content:center; }
.ab-sec .eyebrow, .feature__copy .eyebrow, .why .eyebrow{ justify-content:center; }
.ab-sec .eyebrow::before, .feature__copy .eyebrow::before{ display:none; }

/* ---------- Pills / tags ---------- */
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border-radius:var(--radius-pill);
  border:1px solid var(--bwag-border-s); font-size:0.86rem; font-weight:500; color:var(--bwag-text);
  background:var(--bwag-surface);
}
.pill .dot{ width:7px; height:7px; border-radius:50%; background:var(--bwag-blue); }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:100; height:var(--nav-h);
  display:flex; align-items:center;
  transition: background var(--speed) var(--ease-out), border-color var(--speed) var(--ease-out);
  background:var(--bwag-navy);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.site-header.scrolled{ background:rgba(7,27,58,0.9); backdrop-filter:blur(10px); box-shadow:0 2px 8px rgba(0,0,0,0.1); border-bottom-color:rgba(255,255,255,0.08); }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:24px; height:100%; }
/* The logo is taller than the links, so it is centred inside its own
   cell rather than sitting on the shared baseline. */
.nav__logo{ display:inline-flex; align-items:center; align-self:center; }
/* Small lift and glow on hover, matching the nav link hover timing. */
.nav__logo img{
  transition: transform var(--speed) var(--ease-out), filter var(--speed) var(--ease-out);
  height:62px; width:auto;
}
.nav__logo:hover img,
.nav__logo:focus-visible img{ transform:scale(0.96); filter:brightness(1.12); }
.nav__links{ display:flex; align-items:center; gap:6px; }
.nav__links a{
  padding:9px 14px; border-radius:var(--radius-sm); font-size:0.95rem; font-weight:400; color:var(--bwag-white);
  transition: color var(--speed) var(--ease-out), background var(--speed) var(--ease-out);
}
.nav__links a:hover{ color:var(--bwag-white); background:rgba(255,255,255,0.08); }
.nav__links a[aria-current="page"]{ color:var(--bwag-blue-light); font-weight:500; }
.nav__cta{ display:flex; align-items:center; gap:12px; }

.nav-toggle{
  display:none; width:46px; height:46px; border-radius:var(--radius-sm);
  background:var(--bwag-surface); border:1px solid var(--bwag-border-s);
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
}
.nav-toggle span{ width:21px; height:2px; background:var(--bwag-navy); border-radius:1px; transition:transform var(--speed) var(--ease-out), opacity var(--speed) var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Dropdown (Solutions) ---------- */
.nav_dd{ position:relative; }
.nav_dd_trigger{
  display:inline-flex; align-items:center; gap:3px;
  padding:9px 14px; border-radius:var(--radius-sm);
  font-size:0.95rem; font-weight:400; color:var(--bwag-white);
  background:none; border:none; cursor:pointer;
  transition: color var(--speed) var(--ease-out), background var(--speed) var(--ease-out);
}
.nav_dd_trigger:hover,
.nav_dd_trigger:focus-visible{ color:var(--bwag-white); background:rgba(255,255,255,0.08); }
.nav_dd_trigger[aria-current="page"]{ color:var(--bwag-blue-light); font-weight:500; }
.nav_dd_chevron{ font-size:0.65rem; transition:transform var(--speed) var(--ease-out); }
.nav_dd.is-open .nav_dd_chevron{ transform:rotate(180deg); }
.nav_dd_menu{
  position:absolute; top:100%; left:0; z-index:100;
  min-width:240px; margin-top:10px; padding:8px 4px;
  background:var(--bwag-surface); border:1px solid var(--bwag-border);
  border-radius:var(--radius); box-shadow:var(--shadow);
  opacity:0; visibility:hidden; transform:translateY(-6px);
  transition:opacity 0.22s ease, transform 0.28s var(--ease-out), visibility 0.22s ease;
}
.nav_dd:hover .nav_dd_menu,
.nav_dd.is-open .nav_dd_menu{ opacity:1; visibility:visible; transform:translateY(0); }
/* Scoped to .nav__links so the white nav-link color (`.nav__links a`) cannot override item text */
.nav__links .nav_dd_item{
  display:flex; flex-direction:column; gap:2px;
  padding:12px 14px; border-radius:var(--radius-sm);
  color:var(--bwag-text); text-decoration:none; cursor:pointer;
  transition:background var(--speed) var(--ease-out), color var(--speed) var(--ease-out), transform var(--speed) var(--ease-out);
}
/* Blueish hover/focus state (specificity outranks `.nav__links a:hover`); links only */
.nav__links a.nav_dd_item:hover,
.nav__links a.nav_dd_item:focus-visible{ background:rgba(37,99,235,0.10); color:var(--bwag-blue); transform:translateX(2px); }
.nav_dd_item .nav_dd_label{ font-size:0.9rem; font-weight:600; color:var(--bwag-text); }
a.nav_dd_item:hover .nav_dd_label,
a.nav_dd_item:focus-visible .nav_dd_label{ color:var(--bwag-blue); }
.nav_dd_item .nav_dd_desc{ font-size:0.78rem; color:var(--bwag-muted); margin-top:2px; }
/* Non-clickable placeholder slots (e.g. "More products coming soon") */
.nav_dd_item.product-slot{ cursor:default; border:1px dashed var(--bwag-border-s); }
.nav_dd_item.product-slot .nav_dd_label{ color:var(--bwag-muted); }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative; padding:calc(var(--nav-h) + 16px) 0 clamp(48px, 6vw, 84px);
  overflow:hidden;
  background:var(--bwag-white);
}
.hero__grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:clamp(28px,4vw,60px); align-items:center; }
.hero__grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:clamp(28px,4vw,60px); align-items:center; }
.hero__title{ margin-bottom:16px; }
.hero__title .brand-accent{ color:var(--bwag-blue); }
.hero__sub{ max-width:560px; margin-bottom:24px; color:var(--bwag-muted); }
.hero__signal{ margin-top:28px; display:flex; flex-wrap:wrap; gap:10px; }
.hero__signal .sep{ width:1px; height:20px; background:var(--bwag-border-s); align-self:center; }


.viz-caption{ color:var(--bwag-text); font-size:0.88rem; line-height:1.6; margin-top:16px; }
.viz-caption .s{ color:var(--bwag-muted); }
.viz-caption .a{ color:var(--bwag-blue); font-weight:600; }
.skip-link{ position:fixed; top:-64px; left:16px; z-index:200; padding:12px 18px; background:var(--bwag-blue); color:var(--bwag-white); border-radius:var(--radius-sm); font-weight:600; transition:top 0.3s ease; }
.skip-link:focus{ top:12px; }
/* Hero tagline: quiet brand-blue line under the sub-copy */
.hero__tag{ margin:0 0 28px; max-width:560px; font-size:0.95rem; font-weight:600; letter-spacing:0.01em; color:var(--bwag-blue); }


/* Stacked on tablet and below: the copy becomes its own block, so
   centring against the visual no longer applies. */
@media (max-width:900px){
  .hero__grid{ align-items:start; }
}

/* ============================================================
   HOME - The thinking section (centred editorial column)
   ============================================================ */
.thinking{
  position:relative; overflow:hidden;
  padding:clamp(48px,5.5vw,84px) 0;
  background:var(--bwag-tint);
  text-align:center;
}
.thinking__inner{ max-width:820px; margin-inline:auto; }

.thinking__title{
  font-size:clamp(1.4rem,2.4vw,1.85rem);
  line-height:1.18; letter-spacing:-0.025em; font-weight:800;
  color:var(--bwag-navy); margin-bottom:clamp(20px,2.4vw,30px);
  text-wrap:balance;
}

.thinking__body{ max-width:62ch; margin-inline:auto; }
.thinking__body p{ color:var(--bwag-muted); font-size:0.94rem; line-height:1.7; }
.thinking__body p + p{ margin-top:0.95em; }
