/* ============ Tokens ============ */
:root{
  --navy: #0B2545;
  --navy-2: #17335c;
  --ink: #1b2431;
  --ink-soft: #4b5568;
  --paper: #ffffff;
  --paper-soft: #f5f6f9;
  --line: #e4e7ee;
  --accent: #b8903f;
  --accent-dark: #96742f;
  --accent-light: #d1ab5f;
  --gold: #c8973f;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px -12px rgba(16, 24, 38, 0.18);
  --shadow-sm: 0 2px 10px -4px rgba(16, 24, 38, 0.15);
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 112px; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-head); color: var(--navy); margin: 0 0 .5em; line-height: 1.15; }
p{ margin: 0 0 1em; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

.section-inner{ max-width: var(--container); margin: 0 auto; padding: 88px 24px; }

/* ============ Sticky site header (utility bar + nav travel together) ============
   These two bars are wrapped in ONE sticky container on purpose. Giving
   .header its own separate `position: sticky` (with the utility bar left
   static above it) causes the header to visually detach from the bar
   during scroll - confirmed bug, don't reintroduce it. */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ============ Utility bar ============ */
.utility-bar{
  background: var(--navy);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  letter-spacing: .01em;
}
.utility-bar__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.utility-bar__divider{ opacity: .5; }

/* ============ Header ============ */
.header{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark{ width: 30px; height: 30px; color: var(--accent); }
.logo__text{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--navy);
}
.logo__text--accent{ color: var(--accent); }
.logo__img{ height: 60px; width: auto; display: block; }
.logo--footer .logo__img{
  height: 52px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav{ display: flex; gap: 12px; margin: 0 auto; }
.nav a{
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color .15s ease;
}
.nav a:hover{ color: var(--accent); }

.header__cta{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header__phone{
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--navy);
  white-space: nowrap;
}
.header__phone svg{ width: 17px; height: 17px; color: var(--accent); }

.nav-toggle{
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span{ display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ============ Buttons ============ */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary{ background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover{ background: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost{ background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover{ background: var(--navy); color: #fff; }
.btn--ghost-light{ background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover{ background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm{ padding: 9px 16px; font-size: 14px; }
.btn--lg{ padding: 15px 28px; font-size: 16px; }
.btn--block{ width: 100%; }

/* ============ Hero ============
   .hero__video has no `src` in the HTML - script.js sets it conditionally.
   Keep it that way; see the loading rules at the top of script.js before
   changing anything here. */
.hero{
  position: relative;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(16,24,38,.92) 0%, rgba(16,24,38,.82) 45%, rgba(16,24,38,.6) 100%);
}
.hero__inner{
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}
/* Hero with no lead-form column: single centered copy block, more room
   to breathe since the video is the visual focus. */
.hero__inner--single{
  grid-template-columns: 1fr;
  max-width: 820px;
  padding-top: 96px;
  padding-bottom: 108px;
  text-align: center;
}
.hero__inner--single .hero__copy{ margin: 0 auto; }
.hero__inner--single .eyebrow{ text-align: center; }
.hero__inner--single .hero__copy h1{ max-width: none; }
.hero__inner--single .hero__sub{ margin: 0 auto; }
.hero__inner--single .hero__points{ align-items: center; }
.hero__inner--single .hero__points li{ justify-content: center; }
.hero__inner--single .hero__actions{ justify-content: center; }
.eyebrow{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 14px;
}
.eyebrow--center{ text-align: center; color: var(--accent); }
.hero__copy h1{
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  max-width: 16ch;
  color: #fff;
}
.hero__sub{
  font-size: 17px;
  color: rgba(255,255,255,.78);
  max-width: 52ch;
}
.hero__points{ margin: 22px 0 30px; display: flex; flex-direction: column; gap: 11px; }
.hero__points li{
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; color: #fff;
}
.hero__points svg{ width: 20px; height: 20px; color: var(--accent-light); flex-shrink: 0; }
.hero__actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* Lead form card */
.hero__form-wrap{ position: sticky; top: 128px; }
.lead-form{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}
.lead-form__eyebrow{
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 6px;
}
.lead-form__title{ font-size: 23px; margin-bottom: 6px; }
.lead-form__sub{ color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.field{ margin-bottom: 16px; }
.field label{ display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea{
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-soft);
  transition: border-color .15s ease, background .15s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
/* Honeypot field: hidden from sighted users without display:none, which
   some spam bots skip when deciding whether to fill a field. */
.field--hidden{ position: absolute; left: -9999px; }
.lead-form__disclaimer{ font-size: 12px; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ============ Trust strip ============ */
.trust-strip{ background: var(--navy); }
.trust-strip__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}
.trust-stat{ display: flex; flex-direction: column; gap: 4px; }
.trust-stat__num{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: #fff;
}
.trust-stat__label{ font-size: 13px; color: rgba(255,255,255,.65); font-weight: 500; }

/* ============ Section titles ============ */
.section-title{
  font-size: clamp(26px, 3vw, 34px);
  text-align: center;
  max-width: 22ch;
  margin-left: auto; margin-right: auto;
}
.section-title--left{ text-align: left; margin: 0 0 .5em; max-width: none; }
.section-sub{
  text-align: center;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 48px;
  font-size: 16px;
}

/* ============ Services ============
   auto-fit so this works cleanly whether the business has 3, 4, or 5
   services - no need to hand-tune column counts per client. */
.services{ background: var(--paper); }
.services__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.service-card{
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__media{
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--line);
  overflow: visible;
}
.service-card__media img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-card__icon{
  position: absolute;
  left: 16px; bottom: -22px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 12px;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.service-card__icon svg{ width: 26px; height: 26px; }
.service-card__body{ padding: 34px 22px 26px; }
.service-card h3{ font-size: 18px; margin-bottom: 8px; }
.service-card p{ font-size: 14.5px; color: var(--ink-soft); margin: 0 0 14px; }
.service-card__link{
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--accent-dark);
}
.service-card__link svg{ width: 15px; height: 15px; transition: transform .15s ease; }
.service-card:hover .service-card__link svg{ transform: translateX(3px); }

/* ============ About ============ */
.about{ background: var(--paper-soft); }
.about__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px 24px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about__media-card{
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about__media-card svg{ width: 72px; height: 72px; color: var(--accent-light); }
.about__media-card p{ margin: 0; font-weight: 600; color: rgba(255,255,255,.85); max-width: 20ch; }
.about__copy p{ color: var(--ink-soft); font-size: 16px; }
.about__list{ margin: 18px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.about__list li{
  position: relative; padding-left: 26px; font-weight: 600; color: var(--navy); font-size: 15px;
}
.about__list li::before{
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ============ Simple page hero (service pages, About) ============
   No video - just a navy banner with title/subhead/CTA, used on pages
   where the content itself (not the hero) is the focus. */
.page-hero{ background: var(--navy); padding: 64px 24px 56px; text-align: center; }
.page-hero__inner{ max-width: 760px; margin: 0 auto; }
.page-hero .eyebrow{ text-align: center; }
.page-hero h1{ color: #fff; font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; }
.page-hero p{ color: rgba(255,255,255,.8); font-size: 17px; margin: 0 auto; }
.page-hero__actions{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ============ Content cards (service/about page body) ============ */
.content{ background: var(--paper); padding: 72px 24px; }
.content__inner{ max-width: 820px; margin: 0 auto; }
.content-card{
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  margin-bottom: 22px;
}
.content-card--highlight{ background: #fbf3e4; border-color: #ecd9ab; border-left: 4px solid var(--accent); }
.content-card h2{ font-size: 21px; margin-bottom: 12px; }
.content-card p{ color: var(--ink-soft); font-size: 15.5px; }
.content-card p:last-child{ margin-bottom: 0; }
.content-card ul{ list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.content-card ul:last-child{ margin-bottom: 0; }
.content-card li{ color: var(--ink-soft); font-size: 15.5px; margin-bottom: 6px; }

/* ============ Contact section (bottom of home page) ============
   Same deferred-video pattern as the hero (see script.js): background
   video is a bonus on wide screens, the gradient underneath is what
   mobile/reduced-motion/slow-connection visitors actually see. */
.contact{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
}
.contact__media{ position: absolute; inset: 0; z-index: 0; }
.contact__video{ width: 100%; height: 100%; object-fit: cover; }
.contact__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11,37,69,.93) 0%, rgba(23,51,92,.9) 100%);
}
.contact__inner{
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 88px 24px;
}
.contact__inner > h2{ color: #fff; text-align: center; margin-bottom: 44px; }
.contact__grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.contact-card{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
}
.contact-card__intro{ color: rgba(255,255,255,.85); font-size: 15.5px; margin-bottom: 20px; }
.contact-card .field label{ color: rgba(255,255,255,.85); }
.contact-card .field input,
.contact-card .field textarea{ background: #fff; border-color: rgba(255,255,255,.2); }
.contact-card .field--file{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.contact-card .field--file label{
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--accent-light); font-weight: 600; font-size: 14px; text-decoration: underline;
  margin: 0;
}
.contact-card .field--file svg{ width: 18px; height: 18px; }
.consent{ display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.consent input{ margin-top: 3px; flex-shrink: 0; }
.consent label{ font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.5; }
.contact-card__disclaimer{ font-size: 12px; color: rgba(255,255,255,.6); text-align: center; margin: 14px 0 0; }
.contact-card__disclaimer a{ color: var(--accent-light); text-decoration: underline; }
.contact-card__fine-print{ font-size: 11px; color: rgba(255,255,255,.45); text-align: center; margin: 10px 0 0; }
.contact-card__fine-print a{ color: rgba(255,255,255,.65); text-decoration: underline; }
.contact-info__email{
  font-size: 18px; font-weight: 800; color: var(--accent-light);
  word-break: break-all; margin-bottom: 22px;
}
.contact-info__label{
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,.5); margin-bottom: 16px;
}
.contact-info__row{ display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.contact-info__row:last-child{ margin-bottom: 0; }
.contact-info__row svg{ width: 20px; height: 20px; color: var(--accent-light); flex-shrink: 0; margin-top: 2px; }
.contact-info__row strong{ display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.contact-info__row span, .contact-info__row a{ color: rgba(255,255,255,.75); font-size: 14.5px; }
.contact-info__row a:hover{ color: #fff; }

/* ============ Reviews (right-to-left marquee) ============
   The track holds the review set TWICE back to back; animating it to
   exactly -50% loops seamlessly since the second half is an identical
   (aria-hidden) copy of the first. Pauses on hover/focus and under
   prefers-reduced-motion so it never traps a reader mid-scroll. */
.reviews{ background: var(--paper); }
.marquee{
  overflow: hidden;
  margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track{
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track{ animation-play-state: paused; }
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.review-card{
  width: 320px;
  flex-shrink: 0;
  margin: 0;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.review-card__stars{ color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p{ font-size: 15px; color: var(--ink); margin-bottom: 16px; }
.review-card__pending{ font-style: italic; color: var(--ink-soft) !important; }
.review-card cite{ font-style: normal; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.reviews__count{ text-align: center; margin: 36px 0 0; color: var(--ink-soft); font-weight: 600; }

@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation: none; }
}

/* ============ CTA band ============ */
.cta-band{ background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.cta-band__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__inner h2{ color: #fff; font-size: 26px; margin-bottom: 8px; max-width: 20ch; }
.cta-band__inner p{ color: rgba(255,255,255,.7); margin: 0; }
.cta-band__actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Footer ============ */
.footer{ background: #0c121d; color: rgba(255,255,255,.72); }
.footer__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer .logo__text{ color: #fff; }
.footer__tagline{ margin-top: 14px; font-size: 14px; max-width: 32ch; }
.footer__col h3{
  color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col p{ font-size: 14.5px; margin: 0 0 10px; }
.footer__col a:hover{ color: #fff; }
.footer__bottom{
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
}

/* ============ Scroll reveal ============
   Fires once per element (see script.js), then unobserves - elements
   don't hide again if the visitor scrolls back up. Disabled entirely
   under prefers-reduced-motion. */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}
.reveal.reveal--visible{
  opacity: 1;
  transform: translateY(0);
}
.services__grid .reveal:nth-child(2){ transition-delay: .06s; }
.services__grid .reveal:nth-child(3){ transition-delay: .12s; }
.services__grid .reveal:nth-child(4){ transition-delay: .18s; }
.services__grid .reveal:nth-child(5){ transition-delay: .24s; }
.reviews__grid .reveal:nth-child(2){ transition-delay: .06s; }
.reviews__grid .reveal:nth-child(3){ transition-delay: .12s; }

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 1000px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__form-wrap{ position: static; order: -1; }
  .about__inner{ grid-template-columns: 1fr; }
  .about__media{ order: 2; max-width: 320px; margin: 0 auto; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
  .contact__grid{ grid-template-columns: 1fr; }
}

/* Nav collapses to the hamburger earlier than the general mobile
   breakpoint below - 5 nav links plus phone and CTA button don't fit
   a single row until quite wide. */
@media (max-width: 1040px){
  .nav, .header__phone{ display: none; }
  .nav-toggle{ display: flex; }
  .header__inner{ flex-wrap: wrap; }
  .nav.nav--open{
    display: flex; flex-direction: column;
    width: 100%; order: 3;
    padding-top: 14px; gap: 14px;
    border-top: 1px solid var(--line); margin-top: 14px;
  }
}

@media (max-width: 760px){
  .services__grid{ grid-template-columns: 1fr; }
  .service-card__icon{ left: 20px; bottom: -20px; }
  .service-card__body{ padding-top: 32px; }
  .cta-band__inner{ justify-content: center; text-align: center; }
  .footer__inner{ grid-template-columns: 1fr; }
  .utility-bar__inner{ font-size: 12px; }
}
