/* ==========================================================================
   IndyWaterHelp — Design System
   Cormorant Garamond (display) + DM Sans (body/UI)
   Deep charcoal-navy / warm white / restrained steel-teal accent
   High-contrast emergency CTA reserved exclusively for urgent actions
   ========================================================================== */

:root{
  --bg:            #0b0e13;
  --bg-elev:       #10141b;
  --surface:       #151b24;
  --surface-2:     #1b222d;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text:          #f3f0e8;
  --text-dim:      #c9cdd4;
  --text-muted:    #8b94a1;
  --accent:        #5b93a0;
  --accent-soft:   rgba(91,147,160,0.14);
  --accent-line:   rgba(91,147,160,0.35);
  --emergency:     #e2542d;
  --emergency-dark:#b6431f;
  --emergency-soft:rgba(226,84,45,0.14);
  --success:       #6a9b6e;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 1.75rem;
  --radius-md: 1.1rem;
  --radius-sm: 0.6rem;

  --ease: cubic-bezier(0.32,0.72,0,1);
  --container: 1240px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

img{ max-width:100%; display:block; height:auto; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-0.01em;
  margin:0 0 0.5em;
  color:var(--text);
}
h1{ font-size:clamp(2.6rem,5.4vw,4.6rem); }
h2{ font-size:clamp(2rem,3.6vw,3rem); }
h3{ font-size:clamp(1.35rem,2vw,1.75rem); }
p{ margin:0 0 1em; color:var(--text-dim); }
.lede{ font-size:1.2rem; color:var(--text-dim); max-width:56ch; }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 1.5rem; }
@media (min-width:1024px){ .wrap{ padding:0 2.5rem; } }

section{ padding:5.5rem 0; position:relative; }
@media (max-width:768px){ section{ padding:3.25rem 0; } }
.section-tight{ padding:3rem 0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:.5rem;
  font-size:.72rem; text-transform:uppercase; letter-spacing:.22em;
  color:var(--accent); font-weight:700; margin-bottom:1rem;
}
.eyebrow::before{ content:""; width:1.4rem; height:1px; background:var(--accent-line); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  padding:.9rem 1.6rem; border-radius:100px;
  font-weight:600; font-size:.95rem; border:1px solid transparent;
  transition:transform .5s var(--ease), box-shadow .5s var(--ease), background .3s var(--ease);
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-emergency{
  background:linear-gradient(180deg,#ea6440,var(--emergency));
  color:#fff8f4; box-shadow:0 8px 30px -8px rgba(226,84,45,.55);
}
.btn-emergency:hover{ box-shadow:0 12px 36px -6px rgba(226,84,45,.7); transform:translateY(-1px); }
.btn-outline{
  border-color:var(--border-strong); color:var(--text);
  background:rgba(255,255,255,0.02);
}
.btn-outline:hover{ background:rgba(255,255,255,0.06); border-color:var(--accent-line); }
.btn-icon{
  width:2rem; height:2rem; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.16); flex-shrink:0;
  transition:transform .4s var(--ease);
}
.btn:hover .btn-icon{ transform:translate(2px,-1px) scale(1.06); }
.btn-lg{ padding:1.05rem 2rem; font-size:1.02rem; }

/* ---------- Nav ---------- */
.nav-wrap{
  position:fixed; top:1rem; left:0; right:0; z-index:80;
  display:flex; justify-content:center; pointer-events:none;
}
.nav{
  pointer-events:all;
  display:flex; align-items:center; justify-content:space-between; gap:2rem;
  width:min(1180px,94vw);
  padding:.65rem .8rem .65rem 1.4rem;
  background:rgba(16,20,27,0.72);
  backdrop-filter:blur(20px) saturate(140%);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  border:1px solid var(--border-strong);
  border-radius:100px;
  box-shadow:0 20px 50px -20px rgba(0,0,0,.6);
}
.brand{ font-family:var(--font-display); font-weight:700; font-size:1.28rem; letter-spacing:.01em; }
.brand span{ color:var(--accent); }
.nav-links{ display:none; gap:1.9rem; font-size:.92rem; color:var(--text-dim); font-weight:500; }
.nav-links a:hover{ color:var(--text); }
@media (min-width:960px){ .nav-links{ display:flex; } }
.nav-cta{ display:flex; align-items:center; gap:.6rem; }
.nav-call{
  display:none; align-items:center; gap:.5rem; font-weight:700; font-size:.92rem; color:var(--text);
  padding:.55rem .9rem; border-radius:100px; border:1px solid var(--border-strong);
}
@media (min-width:640px){ .nav-call{ display:inline-flex; } }
.hamburger{ display:inline-flex; width:2.6rem; height:2.6rem; border-radius:50%; align-items:center; justify-content:center; background:rgba(255,255,255,0.06); border:1px solid var(--border-strong); }
@media (min-width:960px){ .hamburger{ display:none; } }
.hamburger span{ display:block; width:16px; height:1.5px; background:var(--text); position:relative; }
.hamburger span::before,.hamburger span::after{ content:""; position:absolute; left:0; width:16px; height:1.5px; background:var(--text); transition:transform .4s var(--ease); }
.hamburger span::before{ top:-5px; } .hamburger span::after{ top:5px; }

.mobile-menu{
  position:fixed; inset:0; z-index:90; background:rgba(9,11,15,0.94);
  backdrop-filter:blur(30px); display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:1.6rem;
  opacity:0; pointer-events:none; transition:opacity .45s var(--ease);
}
.mobile-menu.open{ opacity:1; pointer-events:all; }
.mobile-menu a{ font-family:var(--font-display); font-size:2rem; color:var(--text); opacity:0; transform:translateY(18px); transition:all .5s var(--ease); }
.mobile-menu.open a{ opacity:1; transform:translateY(0); }
.mobile-menu .close-btn{ position:absolute; top:1.6rem; right:1.6rem; width:2.8rem; height:2.8rem; border-radius:50%; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; }

/* ---------- Sticky mobile emergency bar ---------- */
.sticky-cta{
  position:fixed; bottom:0; left:0; right:0; z-index:70;
  display:flex; gap:.6rem; padding:.7rem .8rem;
  background:rgba(11,14,19,0.92); backdrop-filter:blur(16px);
  border-top:1px solid var(--border-strong);
}
@media (min-width:960px){ .sticky-cta{ display:none; } }
.sticky-cta a{ flex:1; text-align:center; padding:.85rem; border-radius:100px; font-weight:700; font-size:.95rem; }
.sticky-cta .call{ background:rgba(255,255,255,0.08); color:var(--text); border:1px solid var(--border-strong); }
.sticky-cta .help{ background:var(--emergency); color:#fff; }

/* ---------- Hero ---------- */
.hero{ padding-top:9rem; padding-bottom:4rem; position:relative; overflow:hidden; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,10,14,0.55) 0%, rgba(8,10,14,0.86) 62%, var(--bg) 100%);
}
.hero-content{ position:relative; z-index:2; max-width:820px; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:2rem; }
.badge{
  display:inline-flex; align-items:center; gap:.5rem; font-size:.82rem; color:var(--text-dim);
  padding:.5rem .9rem; border-radius:100px; border:1px solid var(--border-strong); background:rgba(255,255,255,0.03);
}
.badge .dot{ width:6px; height:6px; border-radius:50%; background:var(--success); }

/* ---------- Situation selector ---------- */
.situation-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:.85rem; }
@media (min-width:640px){ .situation-grid{ grid-template-columns:repeat(4,1fr); } }
.situation-card{
  display:flex; flex-direction:column; gap:.6rem; align-items:flex-start;
  padding:1.3rem 1.1rem; border-radius:var(--radius-md);
  background:var(--surface); border:1px solid var(--border);
  transition:transform .5s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.situation-card:hover{ transform:translateY(-4px); border-color:var(--accent-line); background:var(--surface-2); }
.situation-card .icon{ width:2.6rem; height:2.6rem; border-radius:.8rem; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; }
.situation-card strong{ font-size:.98rem; color:var(--text); }

/* ---------- Double-bezel cards ---------- */
.bezel{
  background:rgba(255,255,255,0.03); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:.4rem;
}
.bezel-inner{
  background:var(--surface); border-radius:calc(var(--radius-lg) - .4rem);
  padding:2rem; height:100%;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ---------- Grids ---------- */
.grid-2{ display:grid; grid-template-columns:1fr; gap:2.5rem; }
@media (min-width:900px){ .grid-2{ grid-template-columns:1fr 1fr; align-items:center; } }
.grid-3{ display:grid; grid-template-columns:1fr; gap:1.5rem; }
@media (min-width:768px){ .grid-3{ grid-template-columns:repeat(3,1fr); } }
.grid-4{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (min-width:768px){ .grid-4{ grid-template-columns:repeat(4,1fr); } }

/* ---------- Section headers ---------- */
.section-head{ max-width:680px; margin-bottom:3rem; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Process steps ---------- */
.steps{ display:grid; grid-template-columns:1fr; gap:0; }
@media (min-width:860px){ .steps{ grid-template-columns:repeat(4,1fr); gap:1.25rem; } }
.step{ padding:1.75rem 0; border-top:1px solid var(--border); }
@media (min-width:860px){ .step{ border-top:none; padding:0; } }
.step-num{ font-family:var(--font-display); font-size:2.4rem; color:var(--accent); opacity:.7; }

/* ---------- Cards for services ---------- */
.service-card{ display:block; height:100%; }
.service-card img{ border-radius:calc(var(--radius-lg) - .4rem) calc(var(--radius-lg) - .4rem) 0 0; aspect-ratio:4/3; object-fit:cover; }
.service-card .body{ padding:1.5rem; }
.service-card h3{ margin-bottom:.4rem; }
.service-card .arrow{ display:inline-flex; align-items:center; gap:.4rem; color:var(--accent); font-size:.88rem; font-weight:700; margin-top:.75rem; }

/* ---------- FAQ accordion ---------- */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:1.4rem 0; font-weight:600; font-size:1.05rem; color:var(--text);
}
.faq-q .plus{ width:1.6rem; height:1.6rem; border-radius:50%; border:1px solid var(--border-strong); flex-shrink:0; position:relative; transition:transform .4s var(--ease); }
.faq-q .plus::before,.faq-q .plus::after{ content:""; position:absolute; background:var(--text-dim); }
.faq-q .plus::before{ top:50%; left:22%; right:22%; height:1px; transform:translateY(-50%); }
.faq-q .plus::after{ left:50%; top:22%; bottom:22%; width:1px; transform:translateX(-50%); transition:opacity .3s var(--ease); }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .5s var(--ease); }
.faq-a p{ padding-bottom:1.4rem; }

/* ---------- Emergency CTA band ---------- */
.cta-band{
  border-radius:var(--radius-lg); padding:3.5rem 2.5rem;
  background:radial-gradient(120% 160% at 10% 0%, rgba(226,84,45,0.16), transparent 55%), var(--surface);
  border:1px solid var(--border-strong);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2rem;
}
@media (max-width:640px){ .cta-band{ padding:2.25rem 1.4rem; flex-direction:column; align-items:flex-start; } }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); padding:4rem 0 2rem; background:var(--bg-elev); }
.footer-grid{ display:grid; grid-template-columns:1fr; gap:2.5rem; }
@media (min-width:860px){ .footer-grid{ grid-template-columns:1.4fr repeat(3,1fr); } }
.footer-col h4{ font-family:var(--font-body); font-size:.78rem; text-transform:uppercase; letter-spacing:.14em; color:var(--text-muted); margin-bottom:1rem; }
.footer-col a,.footer-col p{ display:block; color:var(--text-dim); font-size:.94rem; margin-bottom:.6rem; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{ display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; margin-top:3rem; padding-top:1.75rem; border-top:1px solid var(--border); font-size:.82rem; color:var(--text-muted); }
.footer-bottom a{ color:var(--text-muted); }
.footer-bottom a:hover{ color:var(--text-dim); }
.disclosure{
  font-size:.82rem; color:var(--text-muted); border-top:1px solid var(--border);
  margin-top:2.5rem; padding-top:1.75rem; max-width:80ch;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{ font-size:.85rem; color:var(--text-muted); padding-top:6.5rem; }
.breadcrumbs a{ color:var(--text-muted); } .breadcrumbs a:hover{ color:var(--text-dim); }
.breadcrumbs span{ margin:0 .5rem; }

/* ---------- Forms ---------- */
.field{ margin-bottom:1.1rem; }
.field label{ display:block; font-size:.85rem; font-weight:600; color:var(--text-dim); margin-bottom:.45rem; }
.field input,.field select,.field textarea{
  width:100%; padding:.85rem 1rem; border-radius:var(--radius-sm);
  background:var(--bg-elev); border:1px solid var(--border-strong); color:var(--text);
  font-family:inherit; font-size:.96rem;
}
.field input:focus,.field select:focus,.field textarea:focus{ outline:2px solid var(--accent-line); outline-offset:1px; }
.field-row{ display:grid; grid-template-columns:1fr; gap:1.1rem; }
@media (min-width:640px){ .field-row{ grid-template-columns:1fr 1fr; } }
.chip-row{ display:flex; flex-wrap:wrap; gap:.6rem; }
.chip{ padding:.7rem 1.1rem; border-radius:100px; border:1px solid var(--border-strong); font-size:.9rem; color:var(--text-dim); background:rgba(255,255,255,0.02); }
.chip.active,.chip:hover{ border-color:var(--accent-line); color:var(--text); background:var(--accent-soft); }
.form-progress{ display:flex; gap:.4rem; margin-bottom:1.75rem; }
.form-progress span{ height:3px; flex:1; border-radius:2px; background:var(--border-strong); }
.form-progress span.active{ background:var(--accent); }
.form-step{ display:none; } .form-step.active{ display:block; }
.form-error{ color:var(--emergency); font-size:.85rem; margin-top:.4rem; display:none; }

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform:translateY(28px); filter:blur(6px); transition:opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); filter:blur(0); }

/* ---------- Misc ---------- */
.divider{ height:1px; background:var(--border); margin:3rem 0; }
.tag{ display:inline-block; font-size:.78rem; padding:.3rem .7rem; border-radius:100px; background:var(--accent-soft); color:var(--accent); font-weight:600; }
.callout{ border-left:3px solid var(--emergency); background:var(--emergency-soft); padding:1.2rem 1.4rem; border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.callout-safe{ border-left:3px solid var(--success); background:rgba(106,155,110,0.1); padding:1.2rem 1.4rem; border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
table{ width:100%; border-collapse:collapse; font-size:.94rem; }
th,td{ text-align:left; padding:.85rem 1rem; border-bottom:1px solid var(--border); color:var(--text-dim); }
th{ color:var(--text-muted); text-transform:uppercase; font-size:.72rem; letter-spacing:.08em; }
.local-fact{ display:flex; gap:1rem; padding:1.25rem 0; border-top:1px solid var(--border); }
.local-fact:first-child{ border-top:none; }
.skip-link{ position:absolute; left:-999px; top:0; background:var(--accent); color:#fff; padding:.7rem 1.2rem; border-radius:0 0 .6rem 0; z-index:200; }
.skip-link:focus{ left:0; }
::selection{ background:var(--accent); color:#0b0e13; }
