/* ==========================================================================
   Carson Properties — Modern Redesign 2025/2026
   Brand: Navy #0A1F44 · Gold #D4AF37 · White / Light Gray
   Stack: Pure CSS3 · Mobile-first · No frameworks
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #0A1F44;
  --navy-deep: #06142d;
  --navy-mid: #122a55;
  --navy-soft: #1a3a6b;
  --gold: #D4AF37;
  --gold-light: #e4c65a;
  --gold-dark: #b8942a;
  --gold-muted: rgba(212, 175, 55, 0.14);
  --gold-glow: rgba(212, 175, 55, 0.35);

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray-50: #f4f6f9;
  --gray-100: #eef1f6;
  --gray-200: #e2e7ef;
  --gray-300: #c8d0dc;
  --gray-400: #9aa6b8;
  --gray-500: #6b788c;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a2332;
  --black: #0b1220;

  /* Semantic */
  --success: #1f8a4c;
  --success-bg: #e8f7ee;
  --error: #c0392b;
  --error-bg: #fdecea;
  --warning: #c47f17;
  --warning-bg: #fff6e5;

  /* Typography */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 80px;
  --header-top-h: 34px;
  --mobile-nav-h: 68px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 31, 68, 0.05);
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.06);
  --shadow: 0 8px 24px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 12px 40px rgba(10, 31, 68, 0.1);
  --shadow-lg: 0 20px 50px rgba(10, 31, 68, 0.14);
  --shadow-gold: 0 8px 28px rgba(212, 175, 55, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.28s;
  --duration-slow: 0.5s;

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(212, 175, 55, 0.45);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  /* Fixed header offset (mobile + desktop) */
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

/* Space for floating mobile bottom nav */
@media (max-width: 899px) {
  body {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  }
}

/* Desktop also shows utility bar above main header */
@media (min-width: 900px) {
  body {
    padding-top: calc(var(--header-h) + var(--header-top-h, 34px) + env(safe-area-inset-top, 0px));
  }
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--gold-dark);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--gray-600);
  line-height: 1.7;
}

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--gray {
  background: var(--gray-50);
}

.section--navy {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.85rem;
}

.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-header--center .section-eyebrow {
  justify-content: center;
}

.section-header--center .section-eyebrow::before {
  display: none;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex {
  display: flex;
  gap: 1rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Deep gold so white text passes WCAG AA contrast (4.7–5.3:1) */
.btn--primary {
  background: linear-gradient(135deg, #856812 0%, #8f7019 100%);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #7d6110 0%, #856812 100%);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--navy:hover {
  background: var(--navy-soft);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  padding-inline: 1rem;
}

.btn--ghost:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 1.85rem;
  font-size: 1.05rem;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
  transform: none;
}

.btn.is-loading::after {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.35);
}

.card--static:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--gray-200);
}

.card__body {
  padding: 1.5rem;
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-muted), rgba(212, 175, 55, 0.08));
  color: var(--gold-dark);
  margin-bottom: 1.15rem;
  position: relative;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* Feature / service cards */
.feature-card {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card .card__text {
  flex: 1;
}

/* --------------------------------------------------------------------------
   7. Header — fixed on top (mobile + desktop)
   Solid navy only — no gradient/rgba/backdrop transitions (prevents white flash)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  /* Fully opaque solid color — never semi-transparent */
  background-color: #06142d;
  background-image: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 4px 20px rgba(6, 20, 45, 0.4);
  overflow: visible; /* logo hangs below the bar */
  /* Safe area for notched phones */
  padding-top: env(safe-area-inset-top, 0px);
  /* Do NOT transition background — causes white flash between color stops */
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  /* Same solid navy — only deepen shadow slightly */
  background-color: #06142d;
  background-image: none;
  box-shadow: 0 6px 28px rgba(6, 20, 45, 0.55);
  border-bottom-color: rgba(212, 175, 55, 0.28);
}

.header-top {
  display: none;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100%;
}

.header-top a {
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-top a:hover {
  color: var(--gold-light);
}

.header-top__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .header-top { display: block; }
}

.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Allow logo to hang below the bar */
  overflow: visible;
  position: relative;
  z-index: 1001;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--container));
  max-width: 100%;
  overflow: visible;
}

/* Logo only (brand mark already includes name + tagline — no duplicate text) */
.logo {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
  z-index: 1002;
  margin-bottom: -18px; /* hangs below nav */
  align-self: flex-start;
  margin-top: 0.35rem;
}

.logo img {
  height: 68px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--navy-deep);
  border-radius: 0 0 14px 14px;
  padding: 0.35rem 0.55rem 0.55rem;
  box-shadow:
    0 10px 24px rgba(6, 20, 45, 0.35),
    0 2px 0 rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-top: none;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.logo:hover img {
  transform: translateY(2px);
  box-shadow:
    0 14px 28px rgba(6, 20, 45, 0.4),
    0 2px 0 rgba(212, 175, 55, 0.45);
}

.logo__text {
  display: none !important; /* brand text is inside CP-logo.png */
}

@media (min-width: 480px) {
  .logo img {
    height: 78px;
    max-width: 230px;
  }
  .logo {
    margin-bottom: -22px;
  }
}

@media (min-width: 900px) {
  .logo img {
    height: 88px;
    max-width: 260px;
  }
  .logo {
    margin-bottom: -28px;
  }
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: nowrap;
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
}

.nav-desktop > a,
.nav-desktop .nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-desktop > a:hover,
.nav-desktop .nav-dropdown > button:hover,
.nav-desktop > a.is-active,
.nav-desktop .nav-dropdown.is-active > button {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
}

.nav-desktop > a.is-active {
  color: var(--gold-light);
}

.nav-desktop > a.is-active::after {
  content: "";
}

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

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  max-width: min(90vw, 280px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    visibility var(--duration);
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}

.nav-dropdown__menu a:hover {
  background: var(--gold-muted);
  color: var(--navy);
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta { display: inline-flex; }
}

/* Mobile menu toggle (desktop hidden — we use bottom nav + slide menu) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

/* Mobile slide-out panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.mobile-panel.is-open {
  pointer-events: auto;
}

.mobile-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 45, 0.5);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.mobile-panel.is-open .mobile-panel__overlay {
  opacity: 1;
}

.mobile-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 340px);
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 2rem;
  overflow-y: auto;
}

.mobile-panel.is-open .mobile-panel__drawer {
  transform: translateX(0);
}

.mobile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.mobile-panel__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

.mobile-panel__nav a:hover,
.mobile-panel__nav a.is-active {
  color: var(--gold-dark);
}

.mobile-panel__sub {
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}

.mobile-panel__sub a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  border-bottom-color: transparent;
  padding: 0.55rem 0.25rem;
}

.mobile-panel__footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .mobile-panel { display: none; }
}

/* --------------------------------------------------------------------------
   8. Floating Mobile Bottom Nav
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1050;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(calc(100% - 1.5rem), 420px);
  height: var(--mobile-nav-h);
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border-radius: var(--radius);
  color: var(--gray-500);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  text-decoration: none;
  min-width: 0;
  text-align: center;
  line-height: 1.15;
  padding: 0.15rem 0.1rem;
}

.mobile-bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.is-active {
  color: var(--navy);
  background: var(--gold-muted);
}

.mobile-bottom-nav a.is-active {
  color: var(--navy);
}

.mobile-bottom-nav a.is-active svg {
  stroke: var(--gold-dark);
}

@media (min-width: 900px) {
  .mobile-bottom-nav { display: none; }
}

/* --------------------------------------------------------------------------
   9. Hero — Washington Monument backdrop + frosted glass UI
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(2.75rem, 8vw, 7rem);
  max-width: 100vw;
  isolation: isolate;
}

/* Background photo layer */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: none;
  filter: none; /* sharp background photo — dark overlay handles contrast */
  display: block;
}

/* Dark navy + gold wash over sharp photo (no blur) */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(6, 20, 45, 0.82) 0%,
      rgba(10, 31, 68, 0.72) 42%,
      rgba(10, 31, 68, 0.68) 70%,
      rgba(6, 20, 45, 0.8) 100%
    ),
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(212, 175, 55, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 50% at 10% 90%, rgba(6, 20, 45, 0.4), transparent 55%);
}

/* Soft grid texture on top of photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(100% - 1.5rem, var(--container));
  max-width: 100%;
}

@media (min-width: 900px) {
  .hero .container {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    width: min(100% - 2rem, var(--container));
  }
}

/* Frosted glass panel for main copy */
.hero__glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  box-shadow:
    0 20px 50px rgba(6, 20, 45, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.hero__content {
  min-width: 0;
  max-width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  max-width: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__eyebrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 100%;
  font-size: clamp(1.75rem, 6.5vw, 3.25rem);
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-shadow: 0 2px 24px rgba(6, 20, 45, 0.35);
}

.hero h1 .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  display: inline;
  font-size: 0.88em;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  max-width: 40ch;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__actions .btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.hero__actions .btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero__actions .btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 480px) {
  .hero__actions .btn {
    width: 100%;
  }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 100%;
}

.hero__stat {
  min-width: 0;
  text-align: center;
  padding: 0.7rem 0.35rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__stat-icon {
  width: 22px;
  height: 22px;
  margin: 0 auto 0.35rem;
  color: var(--gold);
}

.hero__stat-icon svg {
  width: 100%;
  height: 100%;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.hero__stat-label {
  font-size: clamp(0.65rem, 2.2vw, 0.75rem);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Media column: video + badge BELOW video (not overlay) */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(6, 20, 45, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  aspect-ratio: 16 / 10;
  background: rgba(6, 20, 45, 0.5);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 900px) {
  .hero__media {
    aspect-ratio: 4 / 3;
  }
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

/* Trust badge sits under the video — frosted glass */
.hero__badge {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 32px rgba(6, 20, 45, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.55);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero__badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold-muted), rgba(212, 175, 55, 0.28));
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero__badge-icon svg {
  width: 22px;
  height: 22px;
}

.hero__badge-body {
  min-width: 0;
  flex: 1;
}

.hero__badge strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.hero__badge span {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: block;
  margin-top: 0.15rem;
}

.hero__badge-pills {
  display: none;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

@media (min-width: 400px) {
  .hero__badge-pills {
    display: flex;
  }
}

.hero__badge-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--navy);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.55rem;
  margin-top: 0;
}

.hero__badge-pills svg {
  width: 12px;
  height: 12px;
  color: var(--gold-dark);
}

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 90% 50%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-mid));
  color: var(--white);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   10. Trust / Logo strip
   -------------------------------------------------------------------------- */
.trust-strip {
  padding-block: 1.75rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-strip img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter var(--duration) var(--ease);
}

.trust-strip img:hover {
  filter: grayscale(0) opacity(1);
}

/* --------------------------------------------------------------------------
   11. Listings
   -------------------------------------------------------------------------- */
.listing-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.listing-card__image {
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--gray-100);
  overflow: hidden;
}

.listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.listing-card:hover .listing-card__image img {
  transform: scale(1.05);
}

.listing-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
}

.listing-card__badge--gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.listing-card__price {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.listing-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.listing-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.listing-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.listing-card__meta svg {
  width: 16px;
  height: 16px;
  color: var(--gold-dark);
}

.listing-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}

.listing-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy), var(--navy-soft));
  color: var(--gold);
}

.listing-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video tour / co-op info links pulled out of the Buildium description */
.listing-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.listing-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
}

.listing-card__links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.listing-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.listings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.listings-toolbar__meta {
  font-size: 0.92rem;
}

.listings-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   12. Team
   -------------------------------------------------------------------------- */
.team-card {
  text-align: center;
  overflow: hidden;
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--gray-100);
  max-height: 320px;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Face / head at top — fix mobile crop showing only torso */
  object-position: top center;
  transition: transform var(--duration-slow) var(--ease);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.03);
}

.team-card__body {
  padding: 1.35rem 1.25rem 1.5rem;
  text-align: left;
}

.team-card__role {
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 0.65rem;
}

.team-card__bio {
  font-size: 0.9rem;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* "Read more" — shown by main.js only when the bio is clamped */
.team-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-dark);
  cursor: pointer;
}

.team-card__more[hidden] {
  display: none;
}

.team-card__more:hover {
  color: var(--navy);
}

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

.team-card__more svg {
  transition: transform var(--duration-fast, 0.2s) ease;
}

.team-card__more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.team-card.is-expanded .team-card__bio {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* While a bio is open, let each card size to its own content */
.team-grid:has(.team-card.is-expanded) {
  align-items: start;
}

.team-card__creds {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.team-card--row {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  text-align: left;
}

/* Mobile: portrait photo on top, top-aligned crop */
@media (max-width: 639px) {
  .team-card--row .team-card__photo {
    aspect-ratio: 3 / 4;
    max-height: 280px;
  }

  .team-card--row .team-card__photo img {
    object-position: top center;
  }
}

@media (min-width: 640px) {
  .team-card--row {
    grid-template-columns: 180px 1fr;
    align-items: stretch;
  }

  .team-card--row .team-card__photo {
    aspect-ratio: auto;
    max-height: none;
    min-height: 100%;
    height: 100%;
  }

  .team-card--row .team-card__photo img {
    object-position: top center;
  }

  /* Expanded bio: keep the portrait at its normal size instead of stretching */
  .team-card--row.is-expanded .team-card__photo {
    align-self: start;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 900px) {
  .team-card--row {
    grid-template-columns: 200px 1fr;
  }

  .team-card__bio {
    -webkit-line-clamp: 8;
  }
}

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card__quote {
  color: var(--gold);
  opacity: 0.35;
  margin-bottom: 0.75rem;
}

.testimonial-card__quote svg {
  width: 36px;
  height: 36px;
}

.testimonial-card__text {
  flex: 1;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* --------------------------------------------------------------------------
   14. Pricing / Document cards
   -------------------------------------------------------------------------- */
.price-card {
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card--featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.price-card--featured::before {
  content: "Popular";
  position: absolute;
  top: -0.65rem;
  right: 1.25rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.price-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-muted);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.price-card__icon svg {
  width: 24px;
  height: 24px;
}

.price-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.5rem 0 0.75rem;
  line-height: 1;
}

.price-card__price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
}

.price-card__desc {
  color: var(--gray-500);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.price-card__note {
  font-size: 0.8rem;
  color: var(--warning);
  background: var(--warning-bg);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
  .form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group label .req {
  color: var(--error);
  margin-left: 0.15rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
  color: var(--gray-800);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--gray-300);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

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

.form-group .hint {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--error);
}

.form-message {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(31, 138, 76, 0.2);
}

.form-message--error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* File upload */
.file-drop {
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  background: var(--gray-50);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
  cursor: pointer;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--gold);
  background: var(--gold-muted);
}

.file-drop input[type="file"] {
  display: none;
}

.file-drop__text {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.file-drop__name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* Stripe Payment Element container */
#payment-element,
.stripe-element {
  padding: 0.5rem 0;
  min-height: 40px;
}

#payment-message {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   16. Contact info cards
   -------------------------------------------------------------------------- */
.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  align-items: flex-start;
}

.contact-info-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-muted);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-info-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-card h4 {
  margin-bottom: 0.25rem;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.92rem;
  color: var(--gray-600);
}

.contact-info-card a:hover {
  color: var(--gold-dark);
}

/* --------------------------------------------------------------------------
   17. CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(212, 175, 55, 0.2), transparent 55%),
    linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-banner {
    grid-template-columns: 1fr auto;
  }
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo img {
  height: 52px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 32ch;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.15rem;
}

/* Footer affiliations */
.footer-affiliations {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem 0 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-affiliations__title {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.03em;
}

.footer-affiliations__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}

.footer-affiliations__logos img {
  height: 44px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  opacity: 0.92;
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.footer-affiliations__logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-brand .logo {
  margin: 0 0 1rem;
  align-self: flex-start;
}

.footer-brand .logo img {
  filter: none;
  background: transparent;
  height: 64px;
  max-width: 180px;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   19. Tabs (services, order docs)
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  width: fit-content;
  max-width: 100%;
}

.tabs button {
  padding: 0.7rem 1.2rem;
  border-radius: calc(var(--radius) - 2px);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.tabs button:hover {
  color: var(--navy);
}

.tabs button.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-xs);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fadeUp 0.4s var(--ease);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   20. Checklist
   -------------------------------------------------------------------------- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.check-list li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   21. Split layout
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}

.split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
  aspect-ratio: 4 / 3;
}

.split__media img,
.split__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   22. Modal (feedback, etc.)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 45, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  transform: translateY(12px) scale(0.98);
  transition: transform var(--duration-slow) var(--ease-out);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal__close:hover {
  background: var(--gray-200);
}

/* Floating feedback button */
.feedback-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--mobile-nav-h) + 28px + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 650;
  box-shadow: var(--shadow-md);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.feedback-fab:hover {
  background: var(--navy-soft);
  color: var(--white);
  transform: translateY(-2px);
}

.feedback-fab svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 900px) {
  .feedback-fab {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   23. Order flow — left product rail + right form panel
   -------------------------------------------------------------------------- */
.order-workspace {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  .order-workspace {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.75rem;
  }
}

/* Left: vertical product list (sticky on desktop) */
.order-rail {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

@media (min-width: 900px) {
  .order-rail {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    max-height: calc(100vh - var(--header-h) - 2rem);
    display: flex;
    flex-direction: column;
  }
}

.order-rail__head {
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(180deg, var(--gray-50), var(--white));
}

.order-rail__head h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.order-rail__head p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.order-rail__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Horizontal scroll chips on mobile */
@media (max-width: 899px) {
  .order-rail__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.55rem;
    padding: 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .order-doc-item {
    min-width: 220px;
    scroll-snap-align: start;
  }
}

.order-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 0.9rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition:
    background var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
  color: inherit;
}

.order-doc-item:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.order-doc-item.is-selected {
  background: var(--gold-muted);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

.order-doc-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-muted);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.order-doc-item.is-selected .order-doc-item__icon {
  background: linear-gradient(145deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  border-color: transparent;
}

.order-doc-item__icon svg {
  width: 22px;
  height: 22px;
}

.order-doc-item__body {
  min-width: 0;
  flex: 1;
}

.order-doc-item__name {
  font-weight: 650;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.order-doc-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.order-doc-item__price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.95rem;
}

.order-doc-item__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: grid;
  place-items: center;
  color: transparent;
  transition: all var(--duration) var(--ease);
}

.order-doc-item.is-selected .order-doc-item__check {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

.order-doc-item__check svg {
  width: 12px;
  height: 12px;
}

/* Right: form panel */
.order-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 1.85rem);
  min-width: 0;
}

.order-panel__placeholder {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--gray-500);
}

.order-panel__placeholder .card__icon {
  margin: 0 auto 1rem;
}

.order-panel.is-ready .order-panel__placeholder {
  display: none;
}

.order-panel:not(.is-ready) .order-panel__form {
  display: none;
}

.order-summary {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.order-summary h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}

.order-summary__total {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

/* Legacy price-card kept for other pages if needed */
.order-layout {
  display: grid;
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   24. Misc / helpers
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.divider {
  height: 1px;
  background: var(--gray-200);
  border: 0;
  margin: 1.5rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--gold {
  background: var(--gold-muted);
  color: var(--gold-dark);
}

.badge--navy {
  background: rgba(10, 31, 68, 0.08);
  color: var(--navy);
}

.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 22px; height: 22px; }
.icon-lg { width: 28px; height: 28px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Success page state */
.payment-status {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 480px;
  margin-inline: auto;
}

.payment-status__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
}

.payment-status__icon--success {
  background: var(--success-bg);
  color: var(--success);
}

.payment-status__icon--error {
  background: var(--error-bg);
  color: var(--error);
}

/* --------------------------------------------------------------------------
   25. UI polish — icons, cards, mobile overflow safety
   -------------------------------------------------------------------------- */
.feature-card:hover .card__icon,
.card:hover .card__icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.22);
}

.icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-muted), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--gold-dark);
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(10, 31, 68, 0.06);
}

.icon-ring svg {
  width: 28px;
  height: 28px;
}

.icon-ring--navy {
  background: linear-gradient(145deg, rgba(10, 31, 68, 0.08), rgba(10, 31, 68, 0.02));
  border-color: rgba(10, 31, 68, 0.12);
  color: var(--navy);
}

/* Mini feature chips under intro */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}

.pill svg {
  width: 14px;
  height: 14px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

/* Quote card polish */
.quote-card {
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
}

/* Global overflow guards (mobile) */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.container,
.section,
.hero,
.page-hero,
.cta-banner,
.split,
.grid,
.card,
img,
video {
  max-width: 100%;
}

.container {
  width: min(100% - 1.5rem, var(--container));
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }
}

/* Prevent long words / emails from blowing content layout */
.hero h1,
.hero__lead,
.lead,
.card__text,
.card__title,
.testimonial-card__text,
.cta-banner p,
.section-header p,
.promo-card p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Buttons on narrow screens */
@media (max-width: 480px) {
  .btn--lg {
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  .cta-banner {
    padding: 1.5rem;
  }

  .cta-banner__actions {
    width: 100%;
  }

  .cta-banner__actions .btn {
    width: 100%;
    white-space: normal;
  }

  .split {
    gap: 1.5rem;
  }

  .section {
    padding-block: clamp(2.5rem, 8vw, 4rem);
  }

  .feedback-fab span {
    /* label text only on slightly wider phones */
  }
}

/* Feedback FAB — icon-only on very small screens to avoid edge overflow */
@media (max-width: 380px) {
  .feedback-fab {
    padding: 0.75rem;
    right: 0.65rem;
  }
  .feedback-fab .fab-label {
    display: none;
  }
}

/* Why-us dark card */
.promo-card {
  padding: 1.75rem;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.promo-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
  pointer-events: none;
}

.promo-card h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.promo-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.15rem 0 1.35rem;
}

.promo-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.promo-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   26. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .mobile-bottom-nav,
  .feedback-fab,
  .mobile-panel {
    display: none !important;
  }
  body {
    padding-top: 0;
    padding-bottom: 0;
  }
}
