/* ============================================================
   Mako Accounting LLC — styles
   Palette: navy #00112f, white #ffffff, steel #bcc4cc
   ============================================================ */

:root {
  /* Brand */
  --brand: #00112f;
  --brand-2: #16305a;          /* lighter navy tint (gradients, hovers) */
  --brand-3: #24467a;          /* brighter navy for links/focus */

  /* Surfaces */
  --surface: #ffffff;
  --surface-muted: #eef1f4;    /* light steel tint for alternating sections */
  --surface-steel: #bcc4cc;    /* full steel */
  --card: #ffffff;
  --border: #dfe4ea;
  --border-strong: #c7ced7;

  /* Text */
  --text: #081221;
  --text-muted: #33414e;
  --text-on-dark: rgba(255, 255, 255, 0.94);
  --text-on-dark-muted: rgba(255, 255, 255, 0.70);

  /* Accent (teal) */
  --accent: #0c8577;          /* teal ink: eyebrow text, icons on light */
  --accent-bright: #17b8a6;   /* bright teal: phone button, dots */
  --accent-tint: #e2f5f1;     /* light teal: eyebrow pill background */
  --accent-on-dark: #5fdccb;  /* light teal on navy */

  /* Layout */
  --container-max: 1350px;
  --container-pad-desktop: 32px;
  --container-pad-mobile: 20px;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0, 17, 47, 0.06);
  --shadow-md: 0 12px 30px rgba(0, 17, 47, 0.10);
  --shadow-xl: 0 24px 60px rgba(0, 17, 47, 0.18);

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Lato", var(--font-body);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--brand); line-height: 1.18; margin: 0 0 0.4em; letter-spacing: 0.045em; text-transform: uppercase; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 400;
  background: #fff; color: var(--brand); padding: 10px 16px;
  border-radius: 8px; font-weight: 700; box-shadow: var(--shadow-md);
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad-desktop);
}
@media (max-width: 1024px) { .container { padding: 0 24px; } }
@media (max-width: 640px)  { .container { padding: 0 var(--container-pad-mobile); } }

/* ---------- Sections ---------- */
:where(section[id], header[id], article[id]) { scroll-margin-top: 100px; }
@media (max-width: 1024px) { :where(section[id], header[id], article[id]) { scroll-margin-top: 84px; } }
.section { padding: 88px 0; position: relative; overflow: hidden; }
@media (max-width: 1024px) { .section { padding: 64px 0; } }
@media (max-width: 640px)  { .section { padding: 48px 0; } }

.section-gray { background: var(--surface-muted); }
.section-dark { background: var(--brand); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: var(--text-on-dark); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand);
  background: var(--accent-bright);
  padding: 7px 16px; border-radius: 999px;
  margin: 0 0 18px;
}

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .section-label { justify-content: center; }
.section-intro { color: var(--text-muted); margin: 0; }
.section-dark .section-intro { color: var(--text-on-dark-muted); }

.section-watermark {
  /* Shark faces right: anchored to the left edge it swims into the page */
  position: absolute; left: -80px; top: 40px; width: 520px; max-width: 55%;
  opacity: 0.05; pointer-events: none; filter: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* All CTAs use the teal accent with navy text, for consistency across the site */
.btn-cta { background: var(--accent-bright); color: var(--brand); box-shadow: var(--shadow-md); }
.btn-cta:hover { background: #13a493; color: var(--brand); box-shadow: var(--shadow-xl); }

.btn-ghost { background: transparent; color: #fff; border-color: var(--accent-bright); }
.btn-ghost:hover { background: var(--accent-bright); color: var(--brand); border-color: var(--accent-bright); }

/* Water-reflection gloss that sweeps across buttons on hover (replaces the old hover lift) */
.btn, .nav-phone, .nav-panel-cta { position: relative; overflow: hidden; isolation: isolate; }
.btn::before, .nav-phone::before, .nav-panel-cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 55%;
  z-index: -1; pointer-events: none; transform: skewX(-20deg);
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.12) 38%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.12) 62%, transparent 100%);
}
.btn:hover::before, .nav-phone:hover::before, .nav-panel-cta:hover::before {
  left: 135%; transition: left 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .btn::before, .nav-phone::before, .nav-panel-cta::before { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 200; background: var(--brand); }
/* Equal 1fr flanks keep the links centered on the page, not just between logo and phone */
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; height: 92px; }
.nav-logo { display: inline-flex; align-items: center; justify-self: start; }
.nav-logo img { height: 74px; width: auto; }

.nav-links { display: flex; align-items: center; height: 100%; justify-self: center; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-item > a {
  display: flex; align-items: center; height: 100%; padding: 0 16px;
  color: rgba(255, 255, 255, 0.85); font-weight: 600; white-space: nowrap;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 0.07em; font-size: 0.88rem;
  position: relative; transition: color 160ms ease;
}
.nav-item > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 26px; height: 2px;
  background: var(--accent-on-dark); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease;
}
.nav-item > a:hover { color: #fff; }
.nav-item > a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 16px; justify-self: end; grid-column: 3; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent-bright); color: var(--brand);
  font-weight: 700; padding: 12px 20px; border-radius: 999px;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.nav-phone svg { width: 18px; height: 18px; color: var(--brand); }
.nav-phone:hover { background: #13a493; color: var(--brand); box-shadow: var(--shadow-md); }

.nav-burger { display: none; background: none; border: 0; width: 46px; height: 46px; padding: 10px; cursor: pointer; }
.nav-burger span { display: block; height: 2.5px; background: #fff; border-radius: 3px; margin: 5px 0; transition: transform 260ms ease, opacity 200ms ease; }

.nav-backdrop { display: none; }
.nav-panel-header, .nav-panel-footer { display: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1024px) {
  .nav-inner { height: 76px; }
  .nav-logo img { height: 58px; }
  .nav-phone { padding: 10px; }
  .nav-phone span { display: none; }
  .nav-phone svg { width: 20px; height: 20px; }
  .nav-burger { display: block; }
  /* Tuck the phone + burger closer to the right edge (burger has 10px internal padding) */
  .nav-actions { margin-right: -10px; }

  .nav-links {
    position: fixed; top: 0; right: 0; left: auto;
    width: min(86vw, 360px);
    height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch;
    background: var(--brand);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 250; overflow-y: auto; overscroll-behavior: contain;
  }
  body.nav-open .nav-links { transform: translateX(0); }

  .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 240; }
  body.nav-open .nav-backdrop { display: block; }
  body.nav-open { overflow: hidden; }

  .nav-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-panel-logo-link img { height: 40px; }
  .nav-panel-close { background: none; border: 0; color: #fff; width: 42px; height: 42px; padding: 8px; cursor: pointer; }
  .nav-panel-close svg { width: 100%; height: 100%; }

  .nav-panel-footer {
    display: flex; flex-direction: column; gap: 14px; margin-top: auto;
    padding: 20px 22px 26px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-panel-phone {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: #fff; font-weight: 700; font-size: 1.05rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 999px; padding: 13px 20px;
  }
  .nav-panel-phone svg { width: 19px; height: 19px; color: var(--accent-on-dark); }
  .nav-panel-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--accent-bright); color: var(--brand); font-weight: 700; padding: 14px 20px; border-radius: 999px; }

  .nav-item { height: auto; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-item > a { padding: 16px 24px; height: auto; font-size: 0.98rem; color: rgba(255, 255, 255, 0.92); }
  .nav-item > a::after { display: none; }

  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 92px);  /* full viewport minus sticky nav */
  min-height: calc(100svh - 92px);
}
@media (max-width: 1024px) {
  .hero { min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 17, 47, 0.55) 0%, rgba(0, 17, 47, 0.46) 45%, rgba(0, 17, 47, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 17, 47, 0.58) 0%, rgba(0, 17, 47, 0.12) 100%);
}
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; padding: 116px 0 150px; }
@media (max-width: 1024px) { .hero-content { padding: 84px 0 108px; } }
@media (max-width: 640px)  { .hero-content { padding: 60px 0 82px; } }

/* White curve overlaying the bottom of the hero image */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-curve svg { display: block; width: 100%; height: clamp(70px, 9vw, 130px); }
.hero-curve path { fill: #fff; }

.hero-title { color: #fff; margin-bottom: 20px; }
.hero-sub { font-size: 1.1875rem; color: rgba(255, 255, 255, 0.92); max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; }

.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.96rem; }
.hero-badges li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-on-dark); box-shadow: 0 0 0 4px rgba(23, 184, 166, 0.22);
}

/* ============================================================
   INTRO
   ============================================================ */
.intro { max-width: 780px; margin: 0 auto; text-align: center; }
.intro .section-label { justify-content: center; }
.intro p:not(.section-label) { color: var(--text-muted); }
.intro p:last-child { margin-bottom: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.cards-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 24px; align-items: stretch;
}
.card {
  flex: 0 1 calc((100% - 48px) / 3);
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #13315a 0%, #00112f 60%);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 18px 38px rgba(0, 17, 47, 0.26);
  color: rgba(255, 255, 255, 0.82);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(0, 17, 47, 0.34); border-color: rgba(23, 184, 166, 0.55); }
.card:hover .card-icon { transform: scale(1.08); box-shadow: 0 8px 22px rgba(23, 184, 166, 0.45); }

/* Catch-Up + Forensic stack vertically into one column so the grid stays an even 3 x 2 */
.card-stack {
  flex: 0 1 calc((100% - 48px) / 3);
  display: flex; flex-direction: column; gap: 24px;
}
.card-stack .card { flex: 1 1 auto; }
.card-wide { grid-column: span 3; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-bright);
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(23, 184, 166, 0.3);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card-icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 14px; color: #fff; }
.card-list { display: flex; flex-direction: column; gap: 9px; }
.card-list li {
  position: relative; padding-left: 26px; color: rgba(255, 255, 255, 0.8); font-weight: 500;
}
.card-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-bright);
}
.card-list-cols { columns: 2; column-gap: 30px; }
.card-list-cols li { break-inside: avoid; margin-bottom: 9px; }
.card-text { color: rgba(255, 255, 255, 0.8); margin: 0; }

.services-closing {
  margin-top: 40px; text-align: center;
  background: var(--brand); color: #fff; border-radius: var(--radius-lg);
  padding: 44px 40px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.services-closing p { color: rgba(255, 255, 255, 0.92); font-size: 1.0625rem; max-width: 720px; margin: 0; font-family: var(--font-body); font-weight: 500; line-height: 1.6; }
/* .services-closing CTA inherits the teal .btn-cta */

@media (max-width: 1024px) {
  .card, .card-stack { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .card, .card-stack { flex-basis: 100%; }
  .services-closing { padding: 34px 24px; }
}

/* ============================================================
   ABOUT (split)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text .section-label { justify-content: flex-start; }
.split-text p:not(.section-label) { color: var(--text-muted); }


.split-image { position: relative; }
.split-image > img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-image { order: -1; }
  /* Centered once the image stacks on top of the text */
  .split-text { text-align: center; }
  .split-text p:not(.section-label) { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color 180ms ease, box-shadow 180ms ease; }
.faq-item.open { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; background: var(--brand); border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff;
}
.faq-q svg { width: 14px; height: 10px; flex: none; color: var(--accent-bright); transition: transform 260ms ease; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq-a > *:first-child { margin-top: 0; padding-top: 20px; }
.faq-a p, .faq-a ul { padding: 0 24px; color: var(--text-muted); }
.faq-a p:last-child { padding-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 24px !important; }
.faq-list li { position: relative; padding-left: 24px; }
.faq-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent-bright); }
@media (max-width: 640px) { .faq-q { padding: 18px 18px; font-size: 1.02rem; } .faq-a p, .faq-a ul { padding: 0 18px; } .faq-a p:last-child { padding-bottom: 20px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info .section-label { justify-content: flex-start; }
.contact-lead { color: var(--text-muted); max-width: 440px; }

.contact-phone {
  display: inline-flex; align-items: center; gap: 16px; margin: 8px 0 28px;
  color: var(--brand); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
}
.contact-phone-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-tint); border: 1px solid rgba(23, 184, 166, 0.3); flex: none; }
.contact-phone-icon svg { width: 24px; height: 24px; color: var(--accent); }
.contact-phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.contact-phone-text small { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.contact-phone:hover .contact-phone-text { color: var(--accent); }

.contact-points { display: flex; flex-direction: column; gap: 12px; }
.contact-points li { position: relative; padding-left: 30px; color: var(--text); }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c8577' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}

/* Form */
.contact-form-wrap { position: relative; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-xl); }
@media (max-width: 640px) { .contact-form { padding: 24px 20px; } }
.hp-field { position: absolute; left: -9999px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
fieldset.field { margin-bottom: 24px; }
.field label:not(.check):not(.radio), .field legend { display: block; font-family: var(--font-body); font-weight: 700; color: var(--brand); margin-bottom: 8px; font-size: 15px; }
.field legend { padding: 0; }
.req { color: #c0392b; }
.opt { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fbfcfd; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.contact-form input:focus { outline: none; border-color: var(--brand-3); background: #fff; box-shadow: 0 0 0 4px rgba(36, 70, 122, 0.14); }

.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.check, .radio { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; font-size: 15px; color: var(--text); }
.check input, .radio input { width: 19px; height: 19px; accent-color: var(--brand); cursor: pointer; flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px 26px; }

.form-note { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin: 14px 0 0; }

/* Success state */
.form-success {
  background: #fff; border-radius: var(--radius-lg); padding: 48px 34px; text-align: center;
  box-shadow: var(--shadow-xl); animation: ds-reveal-up 500ms ease forwards;
}
.form-success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-2) 100%);
}
.form-success-icon svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.5rem; color: var(--brand); }
.form-success p { color: var(--text-muted); max-width: 380px; margin: 0 auto; }

/* Cards sit on white inside the dark contact section: keep their text dark */
.section-dark .form-note { color: var(--text-muted); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 40px; }
  /* Centered once the form stacks below the info column;
     phone + checklist stay left-aligned for readability */
  .contact-info { text-align: center; }
  .contact-lead { margin-left: auto; margin-right: auto; }
  .contact-phone { display: flex; justify-content: flex-start; text-align: left; margin-top: 28px; }
  .contact-points li { text-align: left; }
}
@media (max-width: 520px) {
  .field-row, .check-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--brand); color: var(--text-on-dark); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 0.8fr 1.1fr 1.1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-logo { height: 84px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #fff; max-width: 360px; margin: 0; font-size: 0.92rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer h4 { color: #fff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin: 0 0 6px; }
.footer-nav a { color: #fff; width: fit-content; font-size: 0.92rem; transition: color 160ms ease; }
.footer-nav a:hover { color: var(--accent-on-dark); }
.footer-phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; width: fit-content;
}
.footer-phone svg { width: 19px; height: 19px; flex: none; color: var(--accent-on-dark); }
.footer-phone:hover { color: var(--accent-on-dark); }
.footer-contact .btn-cta { margin-top: 6px; width: fit-content; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; }
.footer-bottom p { margin: 0; color: #fff; font-size: 0.9rem; }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .footer-brand { text-align: center; }
  /* img reset is display:block, so text-align can't center the logo */
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-nav, .footer-contact { align-items: center; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   SECTION DIVIDERS (water waves)
   ============================================================ */
.wave-divider { line-height: 0; margin: -1px 0; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; height: clamp(52px, 6.5vw, 92px); }
.wave-fill { fill: #fff; }

.wave--navy-to-white { background: #fff; }
.wave--navy-to-white .wave-fill { fill: var(--brand); }

.wave--white-to-navy { background: var(--brand); }
.wave--white-to-navy .wave-fill { fill: #fff; }
/* Footer divider: same pronounced swing as the hero curve */
.wave--white-to-navy svg { height: clamp(70px, 9vw, 130px); }

.wave--white-to-gray { background: var(--surface-muted); }
.wave--white-to-gray .wave-fill { fill: #fff; }

.wave--gray-to-white { background: #fff; }
.wave--gray-to-white .wave-fill { fill: var(--surface-muted); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in-view { animation: ds-reveal-up 700ms cubic-bezier(0.4, 0, 0.2, 1) var(--reveal-delay, 0ms) forwards; }
@keyframes ds-reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in-view { opacity: 1; transform: none; animation: none; }
  .hero-bg { transform: none; }
  * { transition: none !important; }
}
