/* ============================================================
   DryGuard NZ — Master Design System
   Powered by OMNAXIS / Bestcomm.AI
   Waterproofing Lead Engine — shared stylesheet
   ============================================================ */

:root {
  /* Palette — water / trust / signal */
  --ink:        #0A1A2B;   /* deep navy */
  --ink-2:      #0F2942;
  --ink-soft:   #1B3A57;
  --teal:       #0FA3B1;   /* water accent */
  --teal-deep:  #0B7E8A;
  --cyan:       #38D6E8;
  --signal:     #F5A524;   /* amber CTA urgency */
  --signal-2:   #E8890B;
  --paper:      #F6F9FB;
  --paper-2:    #ECF2F6;
  --white:      #FFFFFF;
  --line:       #D9E2EA;
  --text:       #1B2B3A;
  --muted:      #5C7184;
  --good:       #19A974;
  --warn:       #E0533D;

  --grad-deep:  linear-gradient(135deg, #0A1A2B 0%, #0F2942 55%, #0B5563 100%);
  --grad-water: linear-gradient(120deg, #0FA3B1 0%, #38D6E8 100%);
  --grad-signal:linear-gradient(120deg, #F5A524 0%, #E8890B 100%);

  --r-sm: 8px;  --r: 14px;  --r-lg: 22px;  --r-xl: 30px;
  --shadow:    0 10px 30px -12px rgba(10,26,43,.28);
  --shadow-lg: 0 30px 60px -22px rgba(10,26,43,.45);
  --maxw: 1180px;

  --t-fast: 160ms cubic-bezier(.16,1,.3,1);
  --t: 320ms cubic-bezier(.16,1,.3,1);

  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--display); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--teal-deep); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; font-family: var(--font); font-weight: 700;
  font-size: 1rem; padding: .95em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn-signal { background: var(--grad-signal); color: #2a1500; box-shadow: 0 12px 26px -10px rgba(232,137,11,.7); }
.btn-signal:hover { box-shadow: 0 18px 34px -10px rgba(232,137,11,.85); }
.btn-water { background: var(--grad-water); color: #042b30; box-shadow: 0 12px 26px -10px rgba(15,163,177,.6); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lg { font-size: 1.08rem; padding: 1.1em 1.9em; }
.btn-block { width: 100%; justify-content: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px);
  background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: -.02em; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--grad-water); display: grid; place-items: center; color: #042b30; font-weight: 900; box-shadow: var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--teal-deep); }
.nav .phone { font-family: var(--display); font-weight: 800; color: var(--ink); }
@media (max-width: 860px){ .nav-links .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; color: #eaf3f7; background: var(--grad-deep); overflow: hidden; }
.hero::before { content:""; position:absolute; inset:0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(56,214,232,.22), transparent 60%),
    radial-gradient(50% 60% at 10% 90%, rgba(15,163,177,.20), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 0 84px; }
.hero h1 { color: #fff; }
.hero h1 .hl { background: var(--grad-water); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: #c4d6e0; max-width: 38ch; }
.hero .trust-row { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 26px; }
.hero .trust-row div { font-size: .92rem; color: #bcd2dd; display:flex; align-items:center; gap:8px; }
.hero .trust-row b { color: #fff; }
@media (max-width: 880px){ .hero-grid { grid-template-columns: 1fr; padding: 48px 0 56px; } }

/* Quote card */
.quote-card { background: var(--white); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); color: var(--text); }
.quote-card h3 { margin-bottom: 4px; }
.quote-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: .8em .9em; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 1rem; background: #fbfdfe; transition: border var(--t-fast), box-shadow var(--t-fast); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,163,177,.15); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .55em .9em; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink-soft); background:#fff; transition: all var(--t-fast); }
.chip:hover { border-color: var(--teal); }
.chip.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.step { display: none; } .step.on { display: block; animation: fade .4s var(--t); }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }
.progress { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.progress > span { display: block; height: 100%; background: var(--grad-water); width: 25%; transition: width var(--t); }
.estimate { background: var(--paper); border: 1.5px dashed var(--teal); border-radius: var(--r); padding: 16px; text-align: center; margin: 14px 0; }
.estimate .num { font-family: var(--display); font-size: 1.8rem; font-weight: 800; color: var(--ink); }

/* Sections */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.bg-paper2 { background: var(--paper-2); }
.bg-ink { background: var(--grad-deep); color: #dceaf0; }
.bg-ink h2, .bg-ink h3 { color: #fff; }

/* Cards / grid */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3,1fr); }
.g4 { grid-template-columns: repeat(4,1fr); }
.g2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 900px){ .g3,.g4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .g2,.g3,.g4 { grid-template-columns: 1fr;} }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; transition: transform var(--t), box-shadow var(--t); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic { width: 52px; height: 52px; border-radius: 13px; background: var(--grad-water); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat .n { font-family: var(--display); font-size: clamp(2rem,1.4rem+2vw,3rem); font-weight: 800; background: var(--grad-water); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { color: var(--muted); font-size: .92rem; font-weight: 600; }
@media (max-width: 600px){ .stats { grid-template-columns: repeat(2,1fr);} }

/* Pills / badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: .35em .8em; border-radius: 999px; }
.badge-good { background: rgba(25,169,116,.12); color: var(--good); }
.badge-teal { background: rgba(15,163,177,.12); color: var(--teal-deep); }
.badge-signal { background: rgba(245,165,36,.16); color: var(--signal-2); }

/* Locations */
.loc-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.loc { background:#fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-align: center; font-weight: 600; color: var(--ink-soft); transition: all var(--t-fast); }
.loc:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-3px); }
@media (max-width: 800px){ .loc-grid { grid-template-columns: repeat(2,1fr);} }

/* FAQ */
details.faq { background:#fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px 20px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items:center; }
details.faq summary::-webkit-details-marker { display:none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); padding-bottom: 14px; }

/* Footer */
.footer { background: var(--ink); color: #9fb6c6; padding: 56px 0 28px; }
.footer a { color: #c4d6e0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
@media (max-width: 800px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color:#fff; font-size: 1rem; }
.footer .fine { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: .82rem; color: #7e97a8; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: none;
  background: var(--ink); padding: 10px 14px; gap: 10px; box-shadow: 0 -8px 24px rgba(0,0,0,.25); }
.sticky-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 760px){ .sticky-cta { display: flex; } body { padding-bottom: 76px; } }

/* Tables (reports) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; background:#fff; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; position: sticky; top: 0; }
table.data tbody tr:nth-child(even){ background: var(--paper); }
table.data tbody tr:hover { background: rgba(15,163,177,.06); }
.tag { font-size: .74rem; font-weight: 700; padding: .25em .65em; border-radius: 6px; }
.tag.hi { background: rgba(224,83,61,.14); color: var(--warn); }
.tag.med { background: rgba(245,165,36,.18); color: var(--signal-2); }
.tag.easy { background: rgba(25,169,116,.14); color: var(--good); }

/* Doc / print pages */
.doc { max-width: 900px; margin: 0 auto; background:#fff; padding: 56px clamp(22px,5vw,64px); box-shadow: var(--shadow); border-radius: var(--r-lg); }
.doc h1 { font-size: clamp(1.8rem,1.2rem+2vw,2.6rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2em; padding-bottom: .3em; border-bottom: 2px solid var(--paper-2); }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .5em; }
.doc .clause { background: var(--paper); border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 14px 0; }
.doc .blank { display: inline-block; min-width: 220px; border-bottom: 1.5px solid var(--ink-soft); }
.sign-row { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }
.sign-row .line { border-top: 1.5px solid var(--ink); padding-top: 6px; font-size: .85rem; color: var(--muted); }
.callout { background: rgba(245,165,36,.1); border: 1px solid rgba(245,165,36,.4); border-radius: var(--r); padding: 16px 20px; margin: 20px 0; }
.callout.warn { background: rgba(224,83,61,.08); border-color: rgba(224,83,61,.4); }

@media print {
  .nav, .sticky-cta, .no-print { display: none !important; }
  body { background: #fff; }
  .doc { box-shadow: none; max-width: 100%; padding: 0; }
  section { padding: 20px 0; }
}

/* Sliders (financial model) */
.lever { margin-bottom: 22px; }
.lever .top { display:flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.lever .top label { font-weight: 700; color: var(--ink); }
.lever .top .val { font-family: var(--display); font-weight: 800; color: var(--teal-deep); font-size: 1.15rem; }
input[type=range]{ -webkit-appearance:none; width:100%; height:8px; border-radius:999px; background: var(--paper-2); outline:none; }
input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:24px; height:24px; border-radius:50%; background:var(--grad-water); cursor:pointer; box-shadow: var(--shadow); border:3px solid #fff; }
input[type=range]::-moz-range-thumb{ width:24px; height:24px; border:3px solid #fff; border-radius:50%; background:#0FA3B1; cursor:pointer; }
.result-card { background: var(--grad-deep); color:#fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.result-card .big { font-family: var(--display); font-size: clamp(2.2rem,1.5rem+3vw,3.4rem); font-weight: 800; background: var(--grad-water); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1.05; }
.result-row { display:flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.result-row b { font-family: var(--display); }
.scenario-tabs { display:flex; gap:8px; margin-bottom: 24px; flex-wrap: wrap; }
.scenario-tabs button { padding:.6em 1.1em; border-radius:999px; border:1.5px solid var(--line); background:#fff; font-weight:700; cursor:pointer; color:var(--ink-soft); transition: all var(--t-fast); }
.scenario-tabs button.on { background: var(--ink); color:#fff; border-color:var(--ink); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--t), transform .7s var(--t); }
.reveal.in { opacity: 1; transform: none; }
