/* =====================================================================
   STYLESHEET
   ---------------------------------------------------------------------
   Tokens, base, header, hero, content sections, opt-in form, legal
   pages, footer. Validate WCAG AA contrast on any new color pairing.
   ===================================================================== */

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  /* Surfaces */
  --bg: #FFFFFF;
  --surface: #F1F5F8;        /* cool off-white */
  --surface-2: #E4ECF1;      /* deeper cool gray-blue */

  /* Brand */
  --navy: #0C3954;           /* primary brand */
  --navy-deep: #082B40;      /* footer / deepest */
  --navy-soft: #14506E;      /* hover / card tints on dark */
  --gold: #FDB913;           /* accent: CTA fills (use navy text on it) */
  --gold-hover: #ffc83d;
  --gold-deep: #936600;      /* gold that passes AA as text on white */

  /* Text */
  --ink: #16242C;            /* primary text on light */
  --ink-soft: #51626B;       /* secondary text on light */
  --on-dark: #EAF1F5;        /* primary text on navy */
  --on-dark-soft: #AFC4D0;   /* secondary text on navy */

  /* Lines */
  --rule: rgba(12,57,84,.12);
  --rule-strong: rgba(12,57,84,.22);
  --rule-on-dark: rgba(255,255,255,.16);

  /* Type */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 4vw, 56px);
  --bar-h: 70px;
  --head-h: calc(var(--bar-h) + 1px);   /* +1px header border */
  --radius: 14px;
  --shadow: 0 18px 50px -22px rgba(8,32,45,.45);
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 800; margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
a[href^="tel:"]{ white-space: nowrap; }
:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap{ width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section{ padding-block: clamp(56px, 8vw, 104px); }
.section--tint{ background: var(--surface); }
.eyebrow{
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 14px;
}
.eyebrow.on-dark{ color: var(--gold); }
.section-head{ max-width: 660px; margin: 0 0 clamp(28px,4vw,48px); }
.section-head h2{ font-size: clamp(28px, 4.2vw, 44px); }
.section-head p:not(.eyebrow){ color: var(--ink-soft); font-size: clamp(16px,1.7vw,19px); margin-top: 14px; }

[id]{ scroll-margin-top: calc(var(--head-h) + 12px); }

.visually-hidden{
  position:absolute!important; width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.skip-link{
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus{ top: 12px; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 17px; line-height: 1; text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn .ic{ width: 19px; height: 19px; flex: none; }

/* Primary: gold fill, navy text. */
.btn-call{ background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-call:hover{ background: var(--gold-hover); border-color: var(--gold-hover); color: var(--navy); }

/* Secondary: ghost, context-aware. */
.btn-ghost{ background: transparent; color: var(--navy); border-color: var(--rule-strong); }
.btn-ghost:hover{ border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost.on-dark{ color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost.on-dark:hover{ background: #fff; color: var(--navy); border-color:#fff; }

.btn-solid{ background: var(--navy); color:#fff; border-color: var(--navy); }
.btn-solid:hover{ background: var(--navy-soft); border-color: var(--navy-soft); }

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

/* =========================================================
   HEADER (logo, page links, call button)
   ========================================================= */
.site-head{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-head__main{ display: flex; align-items: center; justify-content: space-between; min-height: var(--bar-h); gap: 16px; }
.site-head__brand{ display: flex; align-items: center; text-decoration: none; flex: none; }
.site-head__brand img{ height: 42px; width: auto; }
.site-nav ul{ list-style: none; display: flex; gap: clamp(14px, 2.4vw, 30px); margin: 0; padding: 0; }
.site-nav a{
  display: block; padding: 8px 2px; font-weight: 700; font-size: 15px; color: var(--navy);
  text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap;
}
.site-nav a:hover{ border-bottom-color: var(--rule-strong); }
.site-nav a[aria-current="page"]{ border-bottom-color: var(--gold); }
.site-head__cta{ display:flex; align-items:center; gap: 14px; flex: none; }
.site-head__phone{ font-weight: 800; font-size: 18px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.site-head__phone:hover{ color: var(--gold-deep); }

/* =========================================================
   HERO
   ========================================================= */
.hero{ position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero__bg{ position: absolute; inset: 0; z-index: -2; }
.hero__bg picture{ display: block; width: 100%; height: 100%; }
.hero__bg img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(8,32,45,.84) 0%, rgba(8,32,45,.66) 45%, rgba(8,32,45,.80) 100%),
    linear-gradient(90deg, rgba(8,32,45,.76) 0%, rgba(8,32,45,.22) 78%);
}
.hero__inner{ padding-block: clamp(56px, 9vw, 128px); max-width: 760px; }
.hero h1{ font-size: clamp(34px, 5vw, 56px); color:#fff; }
.hero h1 .hl{ color: var(--gold); }
.hero__lede{ font-size: clamp(17px, 2.2vw, 21px); color: var(--on-dark); margin-top: 20px; max-width: 620px; }
.hero__cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero__trust{
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0;
  padding: 26px 0 0; border-top: 1px solid var(--rule-on-dark); list-style: none;
}
.hero__trust li{ display:flex; align-items:center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--on-dark); }
.hero__trust .ic{ width: 18px; height: 18px; color: var(--gold); flex:none; }

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px,5vw,72px); align-items: center; }
.about__body h2{ font-size: clamp(28px, 4vw, 42px); }
.about__body p:not(.eyebrow){ color: var(--ink-soft); font-size: 17px; margin-top: 16px; }
.facts{ list-style: none; margin: 0; padding: clamp(22px,3vw,32px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; gap: 18px; }
.facts li{ display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.facts .ic-badge{ width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); }
.facts .ic-badge svg{ width: 22px; height: 22px; }
.facts strong{ display: block; font-weight: 800; color: var(--ink); }
.facts span{ color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   SERVICES + SERVICE AREA
   ========================================================= */
.svc-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.5vw,28px); }
.svc{
  background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(22px,2.6vw,30px); border-top: 4px solid var(--gold);
}
.svc .ic-badge{ width: 52px; height: 52px; border-radius: 12px; display:grid; place-items:center; background: var(--navy); color: var(--gold); margin-bottom: 16px; }
.svc .ic-badge svg{ width: 27px; height: 27px; }
.svc h3{ font-size: 21px; }
.svc p{ color: var(--ink-soft); font-size: 15.5px; margin-top: 10px; }

.area{ margin-top: clamp(28px,4vw,44px); padding: clamp(22px,3vw,30px); background: var(--navy); color: var(--on-dark); border-radius: var(--radius); }
.area h3{ color: #fff; font-size: 20px; }
.area p{ margin-top: 8px; color: var(--on-dark); font-size: 15.5px; }
.area ul{ list-style:none; display:flex; flex-wrap:wrap; gap: 8px 20px; margin: 16px 0 0; padding:0; }
.area li{ display:flex; align-items:center; gap: 8px; font-weight:600; font-size: 15px; }
.area li::before{ content:""; width:7px; height:7px; border-radius:50%; background: var(--gold); flex:none; }

/* =========================================================
   CONTACT + OPT-IN FORM
   ========================================================= */
.connect{ background: var(--navy); color: var(--on-dark); }
.connect__grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px,4vw,60px); align-items:start; }
.connect__info h2{ color:#fff; font-size: clamp(28px,4vw,42px); }
.connect__info > p:not(.eyebrow){ color: var(--on-dark); font-size: 17px; margin-top: 16px; }
.contact-list{ list-style:none; margin: 28px 0 0; padding:0; display:grid; gap: 18px; }
.contact-list li{ display:grid; grid-template-columns:auto 1fr; gap: 14px; align-items:center; }
.contact-list .ic-badge{ width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center; background: rgba(253,185,19,.16); color: var(--gold); }
.contact-list .ic-badge svg{ width: 22px; height: 22px; }
.contact-list .lbl{ display:block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); }
.contact-list a, .contact-list .val{ font-weight: 800; font-size: clamp(17px,2vw,20px); color:#fff; text-decoration:none; overflow-wrap: anywhere; }
.contact-list a:hover{ color: var(--gold); }

.form-card{ background:#fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px,3vw,34px); box-shadow: var(--shadow); }
.form-card h2, .form-card__head{ font-size: 23px; font-weight: 800; color: var(--navy); }
.form-card__sub{ font-size: 15px; color: var(--ink-soft); margin-top: 6px; margin-bottom: 20px; }

.optin{ display:flex; flex-direction:column; gap: 16px; }
.optin label.fld{ display:block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.optin .opt{ font-weight: 600; color: var(--ink-soft); }
.optin .req{ color: #B42318; }
.optin input[type="text"], .optin input[type="email"], .optin input[type="tel"]{
  width:100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: 10px; padding: 12px 14px;
}
.optin input::placeholder{ color: var(--ink-soft); opacity:.75; }
.optin input:focus{ outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.optin .hint{ font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.consents{ border: 0; margin: 0; padding: 0; display:grid; gap: 14px; }
.consent{ display:grid; grid-template-columns: auto 1fr; gap: 12px; align-items:start; font-size: 14px; line-height: 1.55; color: var(--ink); }
.consent input{ width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.optin__links{ font-size: 14px; color: var(--ink-soft); }
.optin__links a{ font-weight: 700; }
.optin .btn{ width:100%; }
.optin__done{
  display:flex; gap: 10px; align-items:center; font-weight: 700; color: #0B5A2B;
  background: #E7F6EC; border: 1px solid #A6DDB8; border-radius: 10px; padding: 12px 14px;
}
.optin__done[hidden]{ display:none; }
.optin__done svg{ width: 20px; height: 20px; flex:none; }

/* =========================================================
   SMS PROGRAM SUMMARY
   ========================================================= */
.sms__card{ max-width: 860px; }
.sms__list{ margin: 0; padding: 0; list-style: none; display:grid; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow:hidden; background: var(--bg); }
.sms__list > div{ display:grid; grid-template-columns: 210px 1fr; gap: 6px 24px; padding: 18px clamp(18px,2.4vw,26px); border-top: 1px solid var(--rule); }
.sms__list > div:first-child{ border-top: 0; }
.sms__list dt{ font-weight: 800; color: var(--navy); }
.sms__list dd{ margin: 0; color: var(--ink); }
.sms__list ol{ margin: 6px 0 0; padding-left: 20px; }
.sms__list li + li{ margin-top: 6px; }
.sms__more{ margin-top: 20px; color: var(--ink-soft); font-size: 15px; }
.sms__more a{ font-weight: 700; }

/* =========================================================
   LEGAL PAGES (privacy, terms)
   ========================================================= */
.page-head{ background: var(--navy); color: var(--on-dark); padding-block: clamp(40px,6vw,72px); border-bottom: 3px solid var(--gold); }
.page-head h1{ color:#fff; font-size: clamp(32px,5vw,50px); }
.page-head p{ margin-top: 12px; color: var(--on-dark-soft); font-size: 15px; }
.legal{ max-width: 800px; padding-block: clamp(36px,5vw,64px); }
.legal h2{ font-size: clamp(21px,2.6vw,26px); color: var(--navy); margin-top: 40px; }
.legal h3{ font-size: 18px; margin-top: 24px; }
.legal p, .legal ul, .legal ol{ margin-top: 14px; font-size: 16.5px; }
.legal ul, .legal ol{ padding-left: 22px; }
.legal li + li{ margin-top: 8px; }
.legal a{ font-weight: 700; overflow-wrap: anywhere; }
.legal .callout{ margin-top: 18px; padding: 18px 20px; background: var(--surface); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; }
.legal .callout p:first-child{ margin-top: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot{ background: var(--navy-deep); color: var(--on-dark-soft); padding-block: clamp(40px,5vw,60px); }
.foot__grid{ display:flex; flex-wrap:wrap; justify-content:space-between; gap: 28px 48px; align-items:flex-start; }
.foot__brand{ display:flex; align-items:center; gap: 14px; max-width: 440px; }
.foot__brand img{ height: 58px; width: auto; }
.foot__brand .nm{ font-weight:800; font-size: 18px; color:#fff; line-height:1.1; }
.foot__brand .tag{ font-size: 13px; color: var(--gold); margin-top: 5px; }
.foot__cols{ display:flex; flex-wrap:wrap; gap: 28px 56px; }
.foot__col{ font-size: 14px; line-height: 1.9; }
.foot__col h3{ font-size: 13px; letter-spacing:.1em; text-transform:uppercase; color: var(--on-dark-soft); font-weight:700; margin-bottom: 8px; }
.foot__col ul{ list-style:none; margin:0; padding:0; }
.foot__col a{ color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.foot__col a:hover{ color: var(--gold); }
.foot__bottom{ margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule-on-dark); display:flex; flex-wrap:wrap; gap: 8px 20px; justify-content:space-between; font-size: 13px; }
.foot__bottom a{ color: var(--on-dark-soft); text-decoration: underline; }
.foot__bottom a:hover{ color:#fff; }
.foot__legal{ display:flex; flex-wrap:wrap; gap: 6px 18px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .about__grid, .connect__grid{ grid-template-columns: 1fr; }
  .svc-grid{ grid-template-columns: 1fr; }
  .svc{ display:grid; grid-template-columns:auto 1fr; column-gap: 16px; align-items:start; }
  .svc .ic-badge{ grid-row: 1 / 3; margin-bottom: 0; }
  .svc h3, .svc p{ grid-column: 2; }
  .site-head__phone{ display:none; }
}
@media (max-width: 720px){
  /* Page links drop to their own row under the logo + call button. */
  .site-head__main{ flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .site-head__brand{ order: 1; }
  .site-head__cta{ order: 2; }
  .site-nav{ order: 3; flex-basis: 100%; border-top: 1px solid var(--rule); margin-top: 10px; }
  .site-nav ul{ justify-content: space-between; gap: 8px; }
  .site-nav a{ padding: 10px 2px; font-size: 14.5px; }
  .site-head__brand img{ height: 36px; }
  :root{ --head-h: 104px; }
  .sms__list > div{ grid-template-columns: 1fr; }
  .hero__cta .btn{ width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .btn{ transition: none; }
}
