/* =========================================================
   IN LINE EQUINE BODYWORK — Global Stylesheet
   Brand: Slate Blue + Dusty Red + Charcoal | Montserrat + Cormorant + Inter
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate-blue:     #3D5A7A;
  --slate-blue-mid: #4E6E91;
  --slate-blue-lt:  #C2D4E4;
  --slate-blue-xlt: #EBF1F7;
  --dusty-red:      #8C4A4A;
  --dusty-red-lt:   #BF7070;
  --charcoal:       #1A2332;
  --off-white:      #F7F9FB;
  --light-gray:     #E4E8ED;
  --mid-gray:       #5F6D7D;
  --white:          #FFFFFF;

  --font-display: 'Montserrat', sans-serif;
  --font-accent:  'Cormorant Garamond', serif;
  --font-body:    'Inter', sans-serif;

  --header-h: 88px;
  --radius:   6px;
  --shadow-sm: 0 1px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
}

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

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--mid-gray);
  max-width: 640px;
  line-height: 1.75;
}

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 88px 0; }

.section-header {
  margin-bottom: 56px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-primary {
  background: var(--slate-blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--slate-blue-mid); }

/* Booking actions are always dusty red, on every page, so "book" reads as one
   thing. Keyed to the link target, so new booking buttons pick it up for free. */
.btn-primary[href$="contact.html"] { background: var(--dusty-red); }
.btn-primary[href$="contact.html"]:hover { background: #7a3e3e; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: white; }

.btn-outline {
  background: transparent;
  color: var(--slate-blue);
  border: 2px solid var(--slate-blue);
}
.btn-outline:hover { background: var(--slate-blue); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--slate-blue);
  border: none;
  padding: 10px 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.btn-ghost:hover { transform: translateX(4px); box-shadow: none; }
.btn-ghost::after { content: ' →'; }

/* ── HEADER ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  padding: 12px 48px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.header-logo img {
  height: 68px;
  width: auto;
}

/* ── DESKTOP NAV ────────────────────────────────────────── */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.desktop-nav a {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--slate-blue);
  background: var(--slate-blue-xlt);
}

/* Services dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--mid-gray);
  margin-top: 1px;
  transition: transform var(--transition);
}

.nav-dropdown:hover > a::after { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 20px 0 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-4px);
}

/* Open on hover (mouse), on focus (keyboard tabbing), and via the .open
   class that main.js toggles on touch devices with no hover. */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:focus-within > a::after,
.nav-dropdown.open > a::after { transform: rotate(180deg); }

.dropdown-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none;
  padding: 9px 20px;
  transition: color var(--transition), background var(--transition);
  border-radius: 0;
}

.dropdown-menu a:hover {
  color: var(--slate-blue);
  background: var(--slate-blue-xlt);
}

/* Phone number in desktop nav */
.desktop-nav .nav-phone {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate-blue);
  margin-left: 10px;
}

/* CTA button in nav */
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white) !important;
  background: var(--dusty-red) !important;
  text-decoration: none;
  padding: 9px 22px !important;
  border-radius: var(--radius);
  margin-left: 14px;
  transition: background var(--transition);
}
.nav-cta:hover { background: #7a3e3e !important; }

/* ── HAMBURGER ──────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.hamburger:hover { background: var(--slate-blue-xlt); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ─────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  box-shadow: var(--shadow-md);
  padding: 16px 0 20px;
  z-index: 199;
}

.mobile-nav.open {
  display: block;
  animation: navSlideDown 0.22s ease forwards;
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none;
  padding: 11px 32px;
  transition: color var(--transition), background var(--transition);
}

.mobile-nav a:hover { color: var(--slate-blue); background: var(--slate-blue-xlt); }

.mobile-nav .mobile-section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  padding: 12px 32px 4px;
  pointer-events: none;
}

.mobile-nav .mobile-cta {
  display: block;
  margin: 12px 20px 4px;
  text-align: center;
  background: var(--dusty-red);
  color: var(--white) !important;
  padding: 14px 20px !important;
  border-radius: var(--radius);
}
.mobile-nav .mobile-cta:hover { background: #7a3e3e !important; }

/* ── PAGE HERO (inner pages) ────────────────────────────── */
.page-hero {
  margin-top: var(--header-h);
  background: var(--charcoal);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--slate-blue) 0%, var(--charcoal) 70%);
  opacity: 0.5;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ── OVERLAY HEADER (homepage) ────────────────────────────
   Transparent with white type while it sits over the hero; main.js adds
   .is-solid once the hero has scrolled away or the mobile menu opens. */
header { transition: background var(--transition), box-shadow var(--transition), border-color var(--transition); }

.header-logo .logo-on-dark { display: none; }

header.header-overlay:not(.is-solid) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

header.header-overlay:not(.is-solid) .logo-on-light { display: none; }
header.header-overlay:not(.is-solid) .logo-on-dark  { display: block; }

header.header-overlay:not(.is-solid) .desktop-nav > a,
header.header-overlay:not(.is-solid) .nav-dropdown > a {
  color: rgba(255,255,255,0.9);
}

header.header-overlay:not(.is-solid) .desktop-nav > a:hover,
header.header-overlay:not(.is-solid) .nav-dropdown > a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

header.header-overlay:not(.is-solid) .nav-dropdown > a::after { border-top-color: rgba(255,255,255,0.9); }
header.header-overlay:not(.is-solid) .desktop-nav .nav-phone { color: var(--white); }
header.header-overlay:not(.is-solid) .hamburger span { background: var(--white); }
header.header-overlay:not(.is-solid) .hamburger:hover { background: rgba(255,255,255,0.12); }
header.header-overlay:not(.is-solid) .header-call { background: rgba(255,255,255,0.16); color: var(--white); }

/* The hero runs up under the header instead of starting below it. */
header.header-overlay ~ .home-hero {
  margin-top: 0;
  height: 100vh;
  padding-top: var(--header-h);
}

/* ── HOME HERO ──────────────────────────────────────────── */
.home-hero {
  position: relative;
  /* Header is fixed, so the hero is offset by its height. Subtract that back
     out or the page overflows the viewport by --header-h and the scroll cue
     lands below the fold. */
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  display: flex;
  align-items: center;
  margin-top: var(--header-h);
  overflow: hidden;
}

/* Hero photo: "Horse behind a wooden fence at sunset" by Lucas Pezeta (Pexels license).
   On wide screens the layer is made wider than the hero and anchored left, which
   pushes the horse into the right third so the headline sits over the dark trees. */
.home-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg-mobile.webp');
  background-size: cover;
  background-position: 47% 50%;
  z-index: 0;
}

@media (min-width: 961px) {
  .home-hero-bg {
    background-image: url('../images/hero-bg.webp');
    inset: 0 auto 0 0;
    width: 130%;
    background-position: center 58%;
  }
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,35,50,0.86) 0%,
    rgba(26,35,50,0.68) 50%,
    rgba(26,35,50,0.82) 100%
  );
  z-index: 1;
}

/* Wide screens: dark behind the text on the left, lifting over the horse.
   The first layer is a short scrim along the top so the header's white type
   stays readable over the bright sky. */
@media (min-width: 961px) {
  .home-hero-overlay {
    background:
      linear-gradient(180deg, rgba(26,35,50,0.55) 0, rgba(26,35,50,0) 170px),
      linear-gradient(
      90deg,
      rgba(26,35,50,0.92) 0%,
      rgba(26,35,50,0.82) 35%,
      rgba(26,35,50,0.45) 62%,
      rgba(26,35,50,0.22) 100%
    );
  }
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-blue-lt);
  margin-bottom: 1.2rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  max-width: 700px;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
}

.hero-scroll span {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.5);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body { padding: 28px; }

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--slate-blue-xlt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--slate-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.93rem;
  color: var(--mid-gray);
  line-height: 1.65;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

/* ── SERVICE CARD (linked) ──────────────────────────────── */
.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card .card-img {
  height: 200px;
  overflow: hidden;
  background: var(--slate-blue-lt);
}

.service-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .card-img img { transform: scale(1.04); }

/* ── PHOTO GALLERY GRID ─────────────────────────────────── */
.photo-grid {
  display: grid;
  gap: 16px;
}

.photo-grid.two-up { grid-template-columns: 1fr 1fr; }
.photo-grid.three-up { grid-template-columns: 1fr 1fr 1fr; }

.photo-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ── ACCENT STRIPE ──────────────────────────────────────── */
.accent-stripe {
  background: var(--charcoal);
  color: var(--white);
  padding: 72px 0;
}

.accent-stripe.blue { background: var(--slate-blue); }

.accent-stripe h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.accent-stripe p {
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* ── PRICING TABLE ──────────────────────────────────────── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--light-gray);
}

.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-table td:last-child {
  font-weight: 600;
  color: var(--slate-blue);
  white-space: nowrap;
}

.pricing-table tr:hover td { background: var(--slate-blue-xlt); }

/* ── CERT LOGOS ─────────────────────────────────────────── */
.cert-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cert-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cert-logo-item img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: grayscale(15%);
  opacity: 0.85;
  transition: opacity var(--transition), filter var(--transition);
}

.cert-logo-item:hover img { opacity: 1; filter: none; }

.cert-logo-item span {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-align: center;
}

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding: 40px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-item svg {
  width: 28px;
  height: 28px;
  stroke: var(--slate-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.trust-item-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}

.trust-item-text span {
  font-size: 0.8rem;
  color: var(--mid-gray);
}

/* ── ABOUT SECTION ──────────────────────────────────────── */
.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

.about-photo-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--slate-blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-photo-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.about-photo-badge span {
  font-size: 0.72rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.about-text p {
  margin-bottom: 1.1rem;
  color: var(--charcoal);
  font-size: 0.97rem;
}

/* ── TIMELINE (SI series) ───────────────────────────────── */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--light-gray);
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding-bottom: 28px;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--slate-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  margin-top: 8px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--mid-gray);
}

/* ── FORM ───────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--slate-blue-mid);
  box-shadow: 0 0 0 3px rgba(61,90,122,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── RESOURCE CARDS ─────────────────────────────────────── */
.resource-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: box-shadow var(--transition);
}

.resource-card:hover { box-shadow: var(--shadow-md); }

.resource-icon {
  width: 44px;
  height: 44px;
  background: var(--slate-blue-xlt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-icon svg {
  width: 22px; height: 22px;
  stroke: var(--slate-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-body h4 { font-size: 1rem; margin-bottom: 4px; }
.resource-body p { font-size: 0.88rem; color: var(--mid-gray); margin-bottom: 12px; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
  display: block;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 240px;
}

.footer-badges {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-badge {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate-blue-lt);
  border: 1px solid rgba(194,212,228,0.28);
  border-radius: 3px;
  padding: 3px 9px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.73rem;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ── VETERAN BADGE ──────────────────────────────────────── */
.veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(140,74,74,0.12);
  border: 1px solid rgba(140,74,74,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-red);
  margin-bottom: 1rem;
}

/* ── SPLIT COLUMNS ──────────────────────────────────────────
   Two equal columns that collapse to one. Use this instead of an inline
   grid-template-columns — inline styles outrank media queries, so a hardcoded
   1fr 1fr can never stack. */
.split-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.split-cols.tight { gap: 24px; }

@media (max-width: 760px) {
  .split-cols,
  .split-cols.tight {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── PULL QUOTE (home) ──────────────────────────────────── */
.quote-block { background: var(--charcoal); position: relative; overflow: hidden; }

.quote-block .container {
  padding-top: 64px;
  padding-bottom: 64px;
}

.quote-block-text {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quote-block-text blockquote {
  font-family: var(--font-accent);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.quote-block-text cite {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ── DIVIDER ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 0;
}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.4; }

/* ── PLACEHOLDER IMAGE ──────────────────────────────────── */
.img-placeholder {
  background: var(--slate-blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-blue);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 960px) {
  header { padding: 12px 32px; }
  .container { padding: 0 28px; }

  .desktop-nav { display: none; }
  .hamburger { display: flex; }

  section { padding: 64px 0; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col.reverse { direction: ltr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .about-photo-badge {
    right: 0;
    bottom: -16px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  /* Declared on :root, not on header — anything outside the header subtree
     (the hero offset, main.js's scroll offset) needs to see the smaller value. */
  :root { --header-h: 72px; }

  header { padding: 12px 20px; height: var(--header-h); }
  .header-logo img { height: 52px; }

  .container { padding: 0 20px; }

  section { padding: 52px 0; }

  /* svh, so mobile browser chrome collapsing doesn't resize the hero mid-scroll. */
  .home-hero { height: calc(100svh - var(--header-h)); min-height: 500px; }
  header.header-overlay ~ .home-hero { height: 100svh; min-height: 560px; }

  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .cards-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-row { grid-template-columns: 1fr; }

  .trust-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-grid.two-up { grid-template-columns: 1fr; }
  .photo-grid.three-up { grid-template-columns: 1fr; }

  .cert-logos { gap: 24px; }

  .section-title { margin-bottom: 0.75rem; }
  .section-header { margin-bottom: 36px; }

  .about-photo img { height: 340px; }

  .pricing-table { font-size: 0.85rem; }
  .pricing-table th, .pricing-table td { padding: 10px 12px; }
}

/* ── MOBILE CLICK-TO-CALL ───────────────────────────────
   Sits beside the hamburger. Hidden on desktop, where the number is
   shown as text in the nav (.nav-phone). */
.header-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--slate-blue-xlt);
  color: var(--slate-blue);
  flex-shrink: 0;
}

.header-call svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-call:hover { background: var(--slate-blue-lt); }

@media (max-width: 960px) {
  .header-call { display: flex; }
}

/* ── FORM STATUS + HONEYPOT ─────────────────────────────── */

/* Honeypot wrapper: removed from the visual and accessibility tree,
   but still submitted by bots that fill every input they find. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Always rendered, never display:none — a live region that was hidden when
   its text arrived is unreliably announced by screen readers. Idle it is an
   empty, transparent box holding one message-height of space open, so a
   result appearing does not shove the page around. */
.form-status {
  margin-top: 16px;
  min-height: 48px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid transparent;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}

.form-status.is-success,
.form-status.is-error,
.form-status.is-pending { opacity: 1; }

.form-status.is-success {
  background: #EDF6F0;
  border-color: #B9DCC6;
  color: #2C6141;
}

.form-status.is-error {
  background: #FBEDED;
  border-color: #E4BCBC;
  color: #8C4A4A;
}

.form-status.is-pending {
  background: var(--slate-blue-xlt);
  border-color: var(--slate-blue-lt);
  color: var(--slate-blue);
}

button[disabled],
[aria-disabled="true"] { opacity: 0.65; cursor: not-allowed; }

button[disabled]:hover,
[aria-disabled="true"]:hover { transform: none; box-shadow: var(--shadow-sm); }

/* Respect users who have asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card:hover { transform: none; }
}

/* Visible keyboard focus for everything, not just form fields. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--slate-blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Screen-reader-only utility (used for SEO/service-area text) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
