/* ==========================================================================
   Compasstay — brand stylesheet
   Palette sampled directly from the Compasstay logo.
   ========================================================================== */

:root {
  /* Core brand */
  --navy:        #16273F;
  --navy-900:    #0C1826;
  --navy-700:    #22364F;
  --navy-400:    #5A6478;
  --gold:        #CC953A;
  --gold-700:    #8A6220;
  --gold-200:    #E8C88A;
  --cream:       #F8E8D8;
  --cream-50:    #FDF6EF;
  --cream-300:   #E3D5C6;
  --white:       #FFFFFF;

  --success:     #2E7D5B;
  --danger:      #A8382F;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(12, 24, 38, .06);
  --shadow-md: 0 12px 34px rgba(12, 24, 38, .10);
  --shadow-lg: 0 26px 70px rgba(12, 24, 38, .16);
  --ease: cubic-bezier(.22, .68, 0, 1);
  --header-h: 88px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* stops the fixed header covering headings when jumping to #pricing etc. */
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy-400);
  background: var(--cream-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(204, 149, 58, .18);
  /* an email address or long word can otherwise push a 320px screen sideways */
  overflow-wrap: break-word;
  word-break: normal;
}

/* nothing may push the page sideways on a phone */
img, svg, video, iframe { max-width: 100%; }

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

img { max-width: 100%; display: block; height: auto; }

a { color: var(--gold-700); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.15em; }

::selection { background: var(--gold); color: var(--navy); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: var(--cream);
  padding: 12px 22px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- layout --- */
.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 110px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: rgba(248, 232, 216, .82); }
.section--navy h2,
.section--navy h3 { color: var(--cream); }

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.center { text-align: center; }
.measure { max-width: 68ch; }
.measure-narrow { max-width: 56ch; }
.mx-auto { margin-inline: auto; }

/* ------------------------------------------------------------ eyebrow --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 30px; height: 2px;
  background: var(--gold); display: block;
}
.eyebrow--center { justify-content: center; }
.section--navy .eyebrow { color: var(--gold-200); }

.lead { font-size: 1.12rem; color: var(--navy-400); }
.section--navy .lead { color: rgba(248, 232, 216, .85); }

/* ------------------------------------------------------------ buttons --- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 16px 34px;
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .42s var(--ease);
}
.btn:hover, .btn:focus-visible {
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(204, 149, 58, .3);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:active { transform: translateY(-1px); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy); }
.btn--gold::after { background: var(--navy); }
.btn--gold:hover, .btn--gold:focus-visible { color: var(--cream); border-color: var(--navy); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--navy); }
.btn--ghost::after { background: var(--navy); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--cream); border-color: var(--navy); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--cream); border-color: rgba(248, 232, 216, .55); }
.btn--ghost-light::after { background: var(--cream); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { color: var(--navy); border-color: var(--cream); }

.btn--lg { padding: 18px 42px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background .4s var(--ease), height .4s var(--ease),
              box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* solid state: scrolled, or any page without a hero */
.site-header.is-solid,
body.has-solid-header .site-header {
  background: rgba(253, 246, 239, .96);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--cream-300);
  box-shadow: var(--shadow-sm);
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 46px; height: auto; transition: width .4s var(--ease); }
.site-header.is-solid .brand img,
body.has-solid-header .site-header .brand img { width: 40px; }
.brand__mark--light { display: block; }
.brand__mark--dark { display: none; }
.site-header.is-solid .brand__mark--light,
body.has-solid-header .site-header .brand__mark--light { display: none; }
.site-header.is-solid .brand__mark--dark,
body.has-solid-header .site-header .brand__mark--dark { display: block; }

.brand__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: .04em;
  color: var(--cream);
  line-height: 1;
  transition: color .4s var(--ease);
}
.brand__text span { color: var(--gold); }
.site-header.is-solid .brand__text,
body.has-solid-header .site-header .brand__text { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  font-family: var(--font-head);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .015em;
  color: rgba(248, 232, 216, .9);
  padding: 10px 16px;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a:hover, .nav a.is-active { color: var(--gold-200); }
.site-header.is-solid .nav a,
body.has-solid-header .site-header .nav a { color: var(--navy); }
.site-header.is-solid .nav a:hover,
.site-header.is-solid .nav a.is-active,
body.has-solid-header .site-header .nav a:hover,
body.has-solid-header .site-header .nav a.is-active { color: var(--gold-700); }
.nav .btn { margin-left: 14px; padding: 12px 26px; font-size: .87rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0; position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease), background .3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.site-header.is-solid .nav-toggle span,
body.has-solid-header .site-header .nav-toggle span { background: var(--navy); }
.nav-toggle.is-open span { background: var(--navy); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- hero ---- */
.hero {
  position: relative;
  height: clamp(560px, 92vh, 880px);
  /* dvh accounts for the collapsing browser bar on iOS and Android */
  height: clamp(560px, 92dvh, 880px);
  overflow: hidden;
  background: var(--navy-900);
}

.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.25s var(--ease), visibility 1.25s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  transition: transform 9s linear;
}
.hero__slide.is-active .hero__media { transform: scale(1); }

.hero__slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(12, 24, 38, .93) 0%, rgba(12, 24, 38, .74) 42%, rgba(12, 24, 38, .34) 100%),
    linear-gradient(to top, rgba(12, 24, 38, .6), transparent 45%);
}

.hero__inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
  max-width: 700px;
}

/* per-slide staggered entrance */
.hero__eyebrow, .hero__title, .hero__copy, .hero__actions {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero__slide.is-active .hero__eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.hero__slide.is-active .hero__title   { opacity: 1; transform: none; transition-delay: .42s; }
.hero__slide.is-active .hero__copy    { opacity: 1; transform: none; transition-delay: .60s; }
.hero__slide.is-active .hero__actions { opacity: 1; transform: none; transition-delay: .76s; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .21em; text-transform: uppercase;
  color: var(--gold-200);
  margin-bottom: 20px;
}
.hero__eyebrow::before { content: ""; width: 42px; height: 2px; background: var(--gold); }

/* slides 2 and 3 are <p> so the page has a single <h1>, but they must
   look identical to it */
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--cream);
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  margin: 0 0 .38em;
}
.hero__title em { font-style: normal; color: var(--gold); }

.hero__copy {
  color: rgba(248, 232, 216, .84);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  max-width: 54ch;
  margin-bottom: 34px;
}

/* hero controls */
.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 42px; z-index: 5;
  display: flex; gap: 14px;
}
.hero__dots .wrap { display: flex; gap: 14px; align-items: center; }
/* the button is 34px tall so it is a comfortable touch target,
   but only the 3px bar inside it is visible */
.hero__dot {
  width: 54px; height: 34px; padding: 0;
  border: 0; cursor: pointer;
  background: none;
  position: relative;
  flex: 0 0 auto;
}
.hero__dot::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; margin-top: -1.5px;
  background: rgba(248, 232, 216, .3);
  border-radius: 2px;
  transition: background .3s var(--ease);
}
.hero__dot span {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; margin-top: -1.5px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
}
.hero__dot.is-active span { animation: dotFill 6.6s linear forwards; }

@keyframes dotFill { to { transform: scaleX(1); } }

.hero__arrows {
  position: absolute; right: max(22px, calc((100vw - var(--wrap)) / 2)); bottom: 32px; z-index: 5;
  display: flex; gap: 10px;
}
.hero__arrow {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid rgba(248, 232, 216, .34);
  border-radius: 50%;
  background: rgba(12, 24, 38, .28);
  color: var(--cream);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.hero__arrow:hover {
  background: var(--gold); border-color: var(--gold);
  color: var(--navy); transform: scale(1.08);
}
.hero__arrow svg { width: 17px; height: 17px; }

/* ------------------------------------------------------- inner banner --- */
.page-banner {
  position: relative;
  padding: calc(var(--header-h) + 74px) 0 74px;
  background: var(--navy);
  overflow: hidden;
}
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/mark-light.png");
  background-repeat: no-repeat;
  background-position: right -90px center;
  background-size: 420px;
  opacity: .07;
}
.page-banner__inner { position: relative; z-index: 1; }
.page-banner h1 { color: var(--cream); margin-bottom: .3em; }
.page-banner p { color: rgba(248, 232, 216, .82); max-width: 60ch; margin: 0; }
.crumbs {
  font-size: .84rem; color: rgba(248, 232, 216, .6);
  margin-top: 20px; letter-spacing: .02em;
}
.crumbs a { color: var(--gold-200); }
.crumbs span { margin: 0 9px; opacity: .5; }

/* -------------------------------------------------------------- cards --- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-color .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

.card__num {
  font-family: var(--font-head);
  font-size: 2.6rem; font-weight: 700;
  color: var(--cream-300);
  line-height: 1; display: block; margin-bottom: 18px;
  transition: color .45s var(--ease);
}
.card:hover .card__num { color: var(--gold-200); }

.icon-badge {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--cream);
  color: var(--navy);
  margin-bottom: 24px;
  transition: background .45s var(--ease), color .45s var(--ease),
              transform .45s var(--ease);
}
.icon-badge svg { width: 27px; height: 27px; }
.card:hover .icon-badge { background: var(--navy); color: var(--gold); transform: rotate(-6deg) scale(1.05); }

/* ------------------------------------------------------------- stats ---- */
.stat { text-align: center; padding: 12px; }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700; color: var(--gold);
  line-height: 1; display: block; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: .87rem; letter-spacing: .07em; text-transform: uppercase;
  font-family: var(--font-head); font-weight: 500;
  color: rgba(248, 232, 216, .72);
}

/* -------------------------------------------------------- media split --- */
.split { display: grid; gap: clamp(36px, 5vw, 70px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split--flip .split__media { order: 2; }

.split__media { position: relative; isolation: isolate; }
.split__media img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
}
.split__media::after {
  content: ""; position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: 0;
}

/* -------------------------------------------------------------- list ---- */
.ticks { list-style: none; padding: 0; margin: 0 0 30px; }
.ticks li {
  position: relative;
  padding: 0 0 0 38px;
  margin-bottom: 15px;
  color: var(--navy-400);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cream); border: 1px solid var(--gold-200);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: 14px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--gold-700);
  border-bottom: 2px solid var(--gold-700);
  transform: rotate(-45deg);
}
.section--navy .ticks li { color: rgba(248, 232, 216, .84); }
.section--navy .ticks li::before { background: rgba(248, 232, 216, .1); border-color: rgba(204, 149, 58, .5); }
.section--navy .ticks li::after { border-color: var(--gold); }

/* =========================================================================
   UTILITIES
   These exist so spacing can shrink on small screens. An inline style
   attribute beats every media query, so anything set inline in the HTML
   is frozen at its desktop value forever. Keep layout out of the markup.
   ========================================================================= */
.section-head { margin-bottom: clamp(32px, 5vw, 54px); }
.mb-lg        { margin-bottom: clamp(24px, 3.4vw, 34px); }
.mt-sm        { margin-top: 12px; }
.mb-0         { margin-bottom: 0; }

.btn--block { width: 100%; }
.btn--sm    { padding: 13px 28px; font-size: .87rem; }

.split--top { align-items: start; }

.h-panel { font-size: clamp(1.28rem, 3.4vw, 1.5rem); margin-bottom: .3em; }

.note-box {
  margin-top: clamp(26px, 4vw, 38px);
  padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 28px);
  background: var(--cream);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
}
.note-box h3 { font-size: clamp(1rem, 2.4vw, 1.1rem); margin-bottom: .5em; }
.note-box p  { margin-bottom: 0; font-size: .97rem; }

.page-banner .eyebrow      { color: var(--gold-200); }
.section--navy .card__num  { color: var(--gold); }
.footer-muted              { color: rgba(248, 232, 216, .68); }

/* ---------------------------------------------------------- steps row --- */
.steps { counter-reset: step; margin-top: clamp(24px, 4vw, 34px); }
.step { position: relative; padding-left: 74px; margin-bottom: 38px; }
.step:last-child { margin-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-700);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.step h3 { margin-bottom: .35em; }
.step p { margin-bottom: 0; }
.section--navy .step::before { color: var(--gold-200); }

/* --------------------------------------------------------------- CTA ---- */
.cta {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 76px);
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/mark-light.png");
  background-repeat: no-repeat;
  background-position: center right -110px;
  background-size: 400px;
  opacity: .08;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--cream); }
.cta p { color: rgba(248, 232, 216, .82); max-width: 58ch; margin-inline: auto; }

/* ------------------------------------------------------------- forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: .85rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 9px;
}
.field label .req { color: var(--gold-700); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream-50);
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 168px; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316273F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(204, 149, 58, .16);
}
.field input::placeholder,
.field textarea::placeholder { color: #A9A79F; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field__error { display: block; color: var(--danger); font-size: .84rem; margin-top: 7px; }

.field-row { display: grid; gap: 22px; }
@media (min-width: 620px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { font-size: .87rem; color: var(--navy-400); margin: 18px 0 0; }

.alert {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 26px;
  font-size: .96rem;
  border-left: 4px solid;
}
.alert--ok { background: rgba(46, 125, 91, .09); border-color: var(--success); color: #1F5A40; }
.alert--err { background: rgba(168, 56, 47, .08); border-color: var(--danger); color: #7E2A23; }
.alert a { color: inherit; text-decoration: underline; }
.alert code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: .92em;
  background: rgba(12, 24, 38, .07);
  padding: 1px 5px;
  border-radius: 4px;
}

/* holds the JS success / failure message above the form */
.form-status:empty { display: none; }

/* ----------------------------------------------------- contact detail --- */
.contact-item { display: flex; gap: 18px; margin-bottom: 30px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item__icon {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--cream);
  color: var(--navy);
}
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item h4 {
  font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-400); margin: 4px 0 5px;
}
.contact-item p { margin: 0; color: var(--navy); font-size: 1.04rem; }
.contact-item a { color: var(--navy); }
.contact-item a:hover { color: var(--gold-700); }

/* ---------------------------------------------------------- footer ------ */
.site-footer {
  background: var(--navy-900);
  color: rgba(248, 232, 216, .68);
  padding: clamp(56px, 7vw, 84px) 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid; gap: 44px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 54px;
}
.footer-grid > div:first-child { grid-column: span 1; max-width: 360px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); } }

.footer-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.footer-brand img { width: 50px; }
.footer-brand strong {
  font-family: var(--font-head); font-size: 1.28rem; font-weight: 700;
  letter-spacing: .04em; color: var(--cream);
}
.footer-brand strong span { color: var(--gold); }

.site-footer h4 {
  font-family: var(--font-head);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--cream); margin: 0 0 20px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: rgba(248, 232, 216, .68); }
.site-footer a:hover { color: var(--gold); padding-left: 5px; }
.site-footer ul a { display: inline-block; transition: color .3s var(--ease), padding-left .3s var(--ease); }

.footer-bottom {
  border-top: 1px solid rgba(248, 232, 216, .12);
  padding: 26px 0 32px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  font-size: .87rem;
  color: rgba(248, 232, 216, .5);
}
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ------------------------------------------------------ scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* -------------------------------------------------------- to-top btn --- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  box-shadow: var(--shadow-md);
  transition: opacity .4s var(--ease), transform .4s var(--ease),
              visibility .4s, background .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy); }
.to-top svg { width: 18px; height: 18px; }

/* =========================================================================
   RESPONSIVE
   Breakpoints, largest first:
     1100  desktop -> small laptop / iPad landscape
     1024  iPad landscape and below
      940  mobile navigation takes over (covers iPad portrait)
      860  three-column grids collapse
      640  phones
      400  small phones
   ========================================================================= */

/* ---------------------------------------- small laptop, iPad landscape -- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 1024px) {
  :root { --wrap: 960px; }

  .grid { gap: 26px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 44px; }
  .card { padding: 34px 30px; }
  .nav a { padding: 10px 12px; font-size: .88rem; }
  .nav a::after { left: 12px; right: 12px; }
  .nav .btn { margin-left: 8px; padding: 11px 20px; }
}

/* ------------------------------------------------------------ mobile --- */
@media (max-width: 940px) {
  :root { --header-h: 74px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(88vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--cream-50);
    padding: 104px 30px calc(40px + env(safe-area-inset-bottom));
    padding-right: calc(30px + env(safe-area-inset-right));
    transform: translateX(100%);
    transition: transform .48s var(--ease);
    box-shadow: -20px 0 60px rgba(12, 24, 38, .2);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { transform: none; }
  .nav a,
  .site-header.is-solid .nav a,
  body.has-solid-header .site-header .nav a {
    color: var(--navy);
    font-size: 1.05rem;
    padding: 16px 4px;
    border-bottom: 1px solid var(--cream-300);
  }
  .nav a::after { display: none; }
  .nav .btn { margin: 26px 0 0; width: 100%; padding: 16px 26px; font-size: .95rem; }
  .nav .btn, .site-header.is-solid .nav .btn { color: var(--cream); }
  .nav .btn:hover { color: var(--navy); }

  .nav-backdrop {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(12, 24, 38, .5);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  body.nav-open { overflow: hidden; }

  .hero { height: auto; min-height: 640px; }
  .hero__inner { padding: calc(var(--header-h) + 70px) 0 132px; max-width: 100%; }
  .hero__arrows { display: none; }
  .hero__dots { bottom: 30px; }
  .hero__dot { width: 44px; }
  .hero__copy { max-width: 46ch; }

  .split--flip .split__media { order: 0; }
  .split__media::after { display: none; }

  .page-banner::before { background-size: 260px; background-position: right -70px center; }
}

/* ------------------------------ three-column grids stop making sense --- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 .card { padding: 32px 28px; }
}

/* ------------------------------------------------------------ phones --- */
@media (max-width: 640px) {
  :root { --header-h: 68px; }

  body { font-size: 16px; }

  .wrap { width: calc(100% - 36px); }

  .section { padding: 56px 0; }
  .section--tight { padding: 44px 0; }

  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }

  .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* stat tiles stay two-up because they are just a number and a label */
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* anything with real paragraphs goes full width */
  .grid-4 > article { grid-column: 1 / -1; }

  .card { padding: 30px 24px; }
  .card__num { font-size: 2.1rem; }
  .icon-badge { width: 54px; height: 54px; margin-bottom: 20px; }

  /* full-width stacked buttons read better than two half-width ones */
  .btn-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-row .btn { width: 100%; }
  .btn--lg { padding: 16px 26px; font-size: .95rem; }

  .hero { min-height: 0; }
  .hero__inner { padding: calc(var(--header-h) + 54px) 0 118px; }
  .hero__eyebrow { font-size: .68rem; letter-spacing: .16em; margin-bottom: 14px; }
  .hero__eyebrow::before { width: 26px; }
  .hero__copy { margin-bottom: 26px; font-size: 1rem; }
  .hero__dots { bottom: 26px; }
  .hero__dot { width: 34px; }

  .page-banner { padding: calc(var(--header-h) + 48px) 0 48px; }
  .page-banner::before { background-size: 190px; background-position: right -60px top 40px; }

  .split { gap: 34px; }
  .split__media img { border-radius: 12px; }

  .step { padding-left: 58px; margin-bottom: 30px; }
  .step::before { width: 42px; height: 42px; font-size: .8rem; }

  .cta { padding: 40px 24px; border-radius: 14px; }
  .cta::before { background-size: 240px; background-position: center bottom -60px; }

  .form-card { padding: 26px 20px; border-radius: 14px; }
  .field { margin-bottom: 18px; }
  .field-row { gap: 18px; }
  .field textarea { min-height: 140px; }

  .contact-item { gap: 14px; margin-bottom: 24px; }
  .contact-item__icon { width: 44px; height: 44px; border-radius: 12px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 40px; }
  .footer-grid > div:first-child { grid-column: auto; max-width: none; }
  .footer-bottom { justify-content: center; text-align: center; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .footer-bottom nav { justify-content: center; gap: 18px; }
  .site-footer li { margin-bottom: 14px; }
  .site-footer ul a { padding: 2px 0; }

  .to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 44px; height: 44px;
  }
}

/* ------------------------------------------------------ small phones --- */
@media (max-width: 400px) {
  .wrap { width: calc(100% - 28px); }
  .brand img { width: 38px; }
  .brand__text { font-size: 1.08rem; }
  .card { padding: 26px 20px; }
  .step { padding-left: 0; }
  .step::before { position: static; margin-bottom: 12px; }
  .cta { padding: 34px 20px; }
  .eyebrow { font-size: .68rem; letter-spacing: .15em; }
}

/* ------------------------------------------- phone held sideways ------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; height: auto; }
  .hero__inner { padding: calc(var(--header-h) + 34px) 0 92px; }
  .hero__title { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: .3em; }
  .hero__copy { font-size: .95rem; margin-bottom: 20px; }
  .hero__dots { bottom: 20px; }
  .btn-row { flex-direction: row; }
  .btn-row .btn { width: auto; }
  .nav { padding-top: 84px; }
}

/* ------------------------------------------- touch devices: no hover --- */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; border-color: var(--cream-300); }
  .card:hover::before { transform: scaleX(0); }
  .card:hover .icon-badge { background: var(--cream); color: var(--navy); transform: none; }
  .card:hover .card__num { color: var(--cream-300); }
  .btn:hover { transform: none; box-shadow: none; }
  .site-footer a:hover { padding-left: 0; }
  .hero__arrow:hover { transform: none; }

  /* keep a clear pressed state instead */
  .btn:active { transform: scale(.98); }
  .card:active { border-color: var(--gold-200); }
}

@media print {
  .site-header, .hero__dots, .hero__arrows, .to-top, .nav-toggle,
  .nav-backdrop, .hero__media { display: none !important; }
  .hero, .section--navy, .cta { background: none !important; color: #000 !important; }
  .hero__title, .hero__copy, .cta h2, .cta p { color: #000 !important; }
  body { font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__eyebrow, .hero__title, .hero__copy, .hero__actions { opacity: 1; transform: none; }
}
