/* ============================================================
   DOUG BETZ REAL ESTATE & LENDING — DESIGN SYSTEM
   ============================================================
   Aesthetic: Refined editorial trust — financial bodyguard
   Audience: 50-75 yr old OC homeowners, high readability priority
   Conversion philosophy: contrast-driven CTAs, trust-first hierarchy
   ============================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ===== DESIGN TOKENS ===== */
:root {
  /* Color — sales-impact predicated */
  --navy-900: #0A1F38;        /* Deepest navy — headers, hero backgrounds */
  --navy-800: #0F2A47;        /* Primary navy — text, primary brand color */
  --navy-700: #1A3A5C;        /* Lighter navy — accent surfaces */
  --navy-600: #2A4A6E;        /* Lightest navy — borders, dividers */

  --gold-700: #B8881E;        /* Deep gold — hover states */
  --gold-600: #D4A14A;        /* Primary CTA gold — high-conversion warm action color */
  --gold-500: #E0B560;        /* Light gold — accents, highlights */
  --gold-100: #FAF1DC;        /* Pale gold — subtle backgrounds */

  --green-700: #1F5E3D;       /* Trust green — money/equity values */
  --green-600: #2D7A4F;       /* Trust green primary */
  --green-100: #E8F5EE;       /* Trust green background */

  --red-600: #B83A2A;         /* Urgency only — used sparingly */

  --cream: #FAFAF7;           /* Warm off-white — main background, easier on eyes */
  --cream-dark: #F2EFE8;      /* Slightly darker cream — section breaks */

  --ink-900: #0A1628;         /* Body text — high contrast */
  --ink-700: #2A3645;         /* Secondary text */
  --ink-500: #5C6878;         /* Tertiary text, captions */
  --ink-300: #A8B0BB;         /* Disabled, placeholders */

  --white: #FFFFFF;
  --rule: #D8DEE5;
  --rule-dark: #B8C0CB;

  /* Typography — authoritative, established, trustworthy */
  --font-display: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Font sizes — modular scale, generous for older audience */
  --fs-xs: 0.8125rem;     /* 13px */
  --fs-sm: 0.9375rem;     /* 15px */
  --fs-base: 1.0625rem;   /* 17px — larger than typical for readability */
  --fs-lg: 1.1875rem;     /* 19px */
  --fs-xl: 1.4375rem;     /* 23px */
  --fs-2xl: 1.75rem;      /* 28px */
  --fs-3xl: 2.25rem;      /* 36px */
  --fs-4xl: 3rem;         /* 48px */
  --fs-5xl: 4rem;         /* 64px */
  --fs-6xl: 5rem;         /* 80px */

  /* Spacing — 8pt grid */
  --space-1: 0.5rem;      /* 8px */
  --space-2: 1rem;        /* 16px */
  --space-3: 1.5rem;      /* 24px */
  --space-4: 2rem;        /* 32px */
  --space-5: 2.5rem;      /* 40px */
  --space-6: 3rem;        /* 48px */
  --space-8: 4rem;        /* 64px */
  --space-10: 5rem;       /* 80px */
  --space-12: 6rem;       /* 96px */
  --space-16: 8rem;       /* 128px */

  /* Layout */
  --container-narrow: 760px;   /* Reading content */
  --container-base: 1140px;    /* Standard sections */
  --container-wide: 1320px;    /* Hero, full-width sections */

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(10, 31, 56, 0.08), 0 1px 2px rgba(10, 31, 56, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 31, 56, 0.08), 0 2px 4px rgba(10, 31, 56, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 31, 56, 0.12), 0 4px 8px rgba(10, 31, 56, 0.06);
  --shadow-xl: 0 24px 48px rgba(10, 31, 56, 0.16), 0 8px 16px rgba(10, 31, 56, 0.08);
  --shadow-cta: 0 4px 14px rgba(212, 161, 74, 0.4);
  --shadow-cta-hover: 0 6px 20px rgba(212, 161, 74, 0.55);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink-900);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  letter-spacing: -0.03em;
  font-weight: 600;
}

h2 {
  font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl));
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl));
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-2);
  max-width: 70ch;
}

p.lead {
  font-size: var(--fs-xl);
  line-height: 1.55;
  color: var(--ink-700);
  margin-bottom: var(--space-4);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--space-2);
  display: block;
}

a:not(.btn):not(.nav__link) {
  color: var(--navy-700);
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
a:not(.btn):not(.nav__link):hover {
  color: var(--gold-700);
  text-decoration-color: var(--gold-700);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-base);
  margin: 0 auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: var(--container-wide); }

.section {
  padding: var(--space-12) 0;
}

.section--tight {
  padding: var(--space-8) 0;
}

.section--cream {
  background: var(--cream-dark);
}

.section--navy {
  background: var(--navy-900);
  color: var(--white);
}

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

.section--gold {
  background: var(--gold-100);
}

/* ===== BUTTONS — CONVERSION-OPTIMIZED ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: 0.01em;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gold-600);
  color: var(--navy-900);
  box-shadow: var(--shadow-cta);
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--gold-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--navy-800);
  color: var(--white);
}
.btn--secondary:hover {
  background: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-700);
  padding: 0.75rem 1rem;
}
.btn--ghost:hover {
  color: var(--gold-700);
}

.btn--lg {
  padding: 1.25rem 2.5rem;
  font-size: var(--fs-lg);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-sm);
}

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

.btn-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
  gap: var(--space-3);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-mark__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}

.brand-mark__tagline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold-700);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--navy-800);
  background: var(--cream-dark);
}

.nav__link--active {
  color: var(--navy-800);
  font-weight: 600;
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold-600);
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}

.header-phone__icon {
  width: 16px;
  height: 16px;
  color: var(--gold-600);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--navy-800);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--navy-900);
  color: var(--cream);
  padding: 0.625rem 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  opacity: 0.92;
}

.trust-bar__item strong {
  color: var(--gold-500);
  font-weight: 600;
}

.trust-bar__divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.2);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background-color: var(--navy-900);
  background-image:
    /* Dark overlay gradient — heavier on left for text readability */
    linear-gradient(
      to right,
      rgba(10, 31, 56, 0.92) 0%,
      rgba(10, 31, 56, 0.78) 40%,
      rgba(10, 31, 56, 0.55) 70%,
      rgba(10, 31, 56, 0.45) 100%
    ),
    /* Extra darkness at the very top and bottom for trust bar / breadcrumb readability */
    linear-gradient(
      to bottom,
      rgba(10, 31, 56, 0.4) 0%,
      transparent 30%,
      transparent 70%,
      rgba(10, 31, 56, 0.5) 100%
    ),
    /* The actual hero photo */
    url('../images/rancho-mission-viejo-aerial-large.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--space-12) 0 var(--space-16);
  overflow: hidden;
}

/* Use smaller image on mobile to save bandwidth */
@media (max-width: 720px) {
  .hero {
    background-image:
      linear-gradient(
        to bottom,
        rgba(10, 31, 56, 0.85) 0%,
        rgba(10, 31, 56, 0.75) 50%,
        rgba(10, 31, 56, 0.85) 100%
      ),
      url('../images/rancho-mission-viejo-aerial-mobile.jpg');
  }
}

@media (min-width: 721px) and (max-width: 1280px) {
  .hero {
    background-image:
      linear-gradient(
        to right,
        rgba(10, 31, 56, 0.92) 0%,
        rgba(10, 31, 56, 0.78) 40%,
        rgba(10, 31, 56, 0.55) 70%,
        rgba(10, 31, 56, 0.45) 100%
      ),
      linear-gradient(
        to bottom,
        rgba(10, 31, 56, 0.4) 0%,
        transparent 30%,
        transparent 70%,
        rgba(10, 31, 56, 0.5) 100%
      ),
      url('../images/rancho-mission-viejo-aerial-medium.jpg');
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Subtle gold accent gradient on top of the photo */
  background-image:
    radial-gradient(ellipse at top right, rgba(212, 161, 74, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Removed the noise pattern — photo is texture enough */
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background: rgba(212, 161, 74, 0.15);
  border: 1px solid rgba(212, 161, 74, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-500);
  border-radius: 50%;
  display: inline-block;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  margin-bottom: var(--space-3);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero h1 em,
.hero-text-block h1 em {
  font-style: italic;
  color: var(--gold-500);
  font-weight: 500;
}

/* Global: every em element across the site renders in brand gold.
   Hero rule above keeps its weight/size adjustments via cascade specificity. */
em {
  color: var(--gold-500);
  font-style: italic;
}

.hero__lead {
  font-size: var(--fs-xl);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
  max-width: 32rem;
}

.hero__ctas {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.hero__sub {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
}

.hero__sub strong {
  color: var(--gold-500);
  font-weight: 600;
}

.hero__visual {
  position: relative;
}

.hero__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__card-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-2xl);
  color: var(--navy-900);
  flex-shrink: 0;
  overflow: hidden;
}

.hero__card-avatar {
  overflow: hidden;
}

.hero__card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.hero__card-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.hero__card-title {
  font-size: var(--fs-xs);
  color: var(--gold-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.hero__card-stat {
  text-align: center;
  padding: var(--space-2) 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

.hero__card-stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__card-stat-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero__card-quote {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  line-height: 1.5;
}

.hero__card-quote-attribution {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-2);
  font-style: normal;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.65);
}

.hero__card-quote-stars {
  color: var(--gold-500);
  letter-spacing: 0.1em;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin-bottom: var(--space-2);
}

.section-header__lead {
  font-size: var(--fs-lg);
  color: var(--ink-700);
  line-height: 1.55;
}

/* ===== SERVICES GRID ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--navy-700);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--gold-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--gold-700);
}

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

.service-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-1);
}

.service-card__desc {
  color: var(--ink-700);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  flex-grow: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-700);
  text-decoration: none !important;
  transition: gap var(--transition-fast);
  margin-top: auto;
}

.service-card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link {
  color: var(--gold-700);
  gap: 0.6rem;
}

/* ===== FEATURE / VALUE PROPS ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.value-item {
  text-align: left;
}

.value-item__number {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 600;
  color: var(--gold-600);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.04em;
}

.value-item h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: var(--fs-sm);
  color: var(--ink-700);
  line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3);
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  position: relative;
}

.testimonial__stars {
  color: var(--gold-600);
  font-size: var(--fs-base);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-2);
}

.testimonial__text {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-900);
  margin-bottom: var(--space-3);
}

.testimonial__attribution {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  padding-top: var(--space-2);
  border-top: 1px solid var(--rule);
}

.testimonial__attribution-name {
  font-weight: 600;
  color: var(--ink-900);
}

.testimonial__google {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--ink-500);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: var(--space-10) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 161, 74, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: var(--space-6);
}

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

.cta-banner p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.cta-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-10) 0 var(--space-4);
  font-size: var(--fs-sm);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.site-footer h4 {
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
}

.site-footer__brand .brand-mark__name {
  color: var(--white);
  font-size: var(--fs-xl);
}

.site-footer__brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-top: var(--space-2);
  max-width: 32rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none !important;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.site-footer__nav a:hover {
  color: var(--gold-500);
}

.site-footer__contact {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__contact strong {
  color: var(--white);
  font-weight: 600;
  display: block;
  margin-top: var(--space-1);
}

.site-footer__contact a {
  color: var(--gold-500);
  text-decoration: none !important;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.site-footer__legal {
  max-width: 800px;
}

.site-footer__credentials {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site-footer__credentials span {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== STICKY MOBILE CTA ===== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 0.75rem;
  gap: 0.5rem;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(10, 31, 56, 0.08);
}

.mobile-cta .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-gold { color: var(--gold-700); }
.text-navy { color: var(--navy-800); }
.text-green { color: var(--green-600); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

.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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .cta-banner__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cta-banner__actions {
    justify-content: flex-start;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
  }

  .nav,
  .header-phone {
    display: none;
  }

  /* When hamburger is tapped, JS adds .nav--open — show the nav as a
     full-screen overlay covering the entire viewport including the
     trust bar and site header above it. */
  .nav.nav--open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* modern viewport unit accounts for mobile browser chrome */
    background: var(--navy-900);
    padding: 5rem 1.5rem 2rem;
    z-index: 9999; /* above site-header (z:100) and any other layered UI */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.nav--open .nav__link {
    padding: 1rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gold-500);
    border-bottom: 1px solid rgba(224, 181, 96, 0.18);
    border-radius: 0;
    background: transparent;
  }

  .nav.nav--open .nav__link:hover,
  .nav.nav--open .nav__link:focus {
    color: var(--gold-600);
    background: rgba(224, 181, 96, 0.06);
  }

  /* Active page link gets a slightly bolder, brighter treatment so users
     know where they are in the site */
  .nav.nav--open .nav__link--active {
    color: var(--gold-600);
    font-weight: 600;
  }
  .nav.nav--open .nav__link--active::after {
    display: none; /* hide the underline indicator from desktop styles */
  }

  /* Make sure the close (X) icon is visible against the dark overlay */
  .mobile-toggle[aria-expanded="true"] {
    color: var(--gold-500);
  }

  .mobile-toggle {
    display: flex;
    position: relative;
    z-index: 10000; /* above nav overlay (9999) so user can tap to close */
  }

  /* Visual cue: when nav is open, rotate the hamburger icon slightly so
     the user understands tapping it again will close the menu. Subtle but
     clear without needing to swap SVGs. */
  .mobile-toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
  }
  .mobile-toggle svg {
    transition: transform 0.2s ease;
  }

  .section {
    padding: var(--space-8) 0;
  }

  .trust-bar {
    font-size: 0.75rem;
  }

  .trust-bar__inner {
    gap: var(--space-2);
  }

  .trust-bar__divider {
    display: none;
  }

  .hero {
    padding: var(--space-8) 0 var(--space-10);
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-delay-1 { animation-delay: 100ms; }
.animate-delay-2 { animation-delay: 200ms; }
.animate-delay-3 { animation-delay: 300ms; }
.animate-delay-4 { animation-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .mobile-cta, .cta-banner {
    display: none;
  }
}

/* ===== SERVICE AREAS GRID ===== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.area-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: all var(--transition-base);
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-600);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

.area-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.area-card__desc {
  font-size: var(--fs-sm);
  color: var(--ink-500);
  line-height: 1.4;
}

.area-card__cta {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.area-card__cta::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.area-card--linked {
  cursor: pointer;
}

.area-card--linked:hover {
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.area-card--linked:hover::before {
  transform: scaleY(1);
}

.area-card--linked:hover .area-card__cta::after {
  transform: translateX(3px);
}

.areas-grid__footnote {
  text-align: center;
  font-size: var(--fs-base);
  color: var(--ink-700);
  margin-top: var(--space-4);
  margin-bottom: 0;
  max-width: none;
}

.areas-grid__footnote a {
  color: var(--gold-700);
  font-weight: 600;
}

@media (max-width: 720px) {
  .areas-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-1);
  }

  .area-card {
    padding: var(--space-2);
  }

  .area-card__name {
    font-size: var(--fs-base);
  }
}

/* ===== FOOTER SOCIAL/CONNECT BLOCK ===== */
.footer-connect {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-4);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
}

.footer-connect__phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-connect__phone-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 161, 74, 0.15);
  border: 1px solid rgba(212, 161, 74, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-500);
}

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

.footer-connect__phone-info {
  display: flex;
  flex-direction: column;
}

.footer-connect__phone-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-connect__phone-number {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--white);
  text-decoration: none !important;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.footer-connect__phone-number:hover {
  color: var(--gold-500);
}

.footer-connect__social {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-connect__social-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: var(--space-1);
}

.footer-connect__social-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-fast);
  text-decoration: none !important;
}

.footer-connect__social-icon:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.footer-connect__social-icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 720px) {
  .footer-connect {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3);
  }

  .footer-connect__phone {
    justify-content: center;
  }

  .footer-connect__social {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  padding: 0;
}

.gallery-filter {
  padding: 0.625rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-filter:hover {
  border-color: var(--navy-700);
  color: var(--navy-800);
}

.gallery-filter--active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.gallery-filter--active:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.gallery-item {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  margin: 0;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item--hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-item__placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--cream-dark), var(--rule));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--ink-300);
}

.gallery-item__placeholder svg {
  width: 48px;
  height: 48px;
}

.gallery-item__placeholder-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-item__caption {
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gallery-item__title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.3;
}

.gallery-item__category {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gallery-footnote {
  text-align: center;
  font-size: var(--fs-base);
  color: var(--ink-700);
  margin-top: var(--space-5);
  margin-bottom: 0;
  max-width: none;
}

.gallery-footnote a {
  color: var(--gold-700);
  font-weight: 600;
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .gallery-filters {
    gap: 0.5rem;
  }

  .gallery-filter {
    padding: 0.5rem 1rem;
    font-size: var(--fs-xs);
  }

  .gallery-item img,
  .gallery-item__placeholder {
    height: 200px;
  }
}

/* ============================================================
   VLOGS PAGE
   ============================================================ */

.vlogs-coming-soon {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.vlogs-coming-soon::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 161, 74, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.vlogs-coming-soon > * {
  position: relative;
}

.vlogs-coming-soon__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-3);
  background: rgba(212, 161, 74, 0.15);
  border: 2px solid rgba(212, 161, 74, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
}

.vlogs-coming-soon__icon svg {
  width: 36px;
  height: 36px;
}

.vlogs-coming-soon h2 {
  color: var(--white);
  margin-bottom: var(--space-2);
  font-size: var(--fs-3xl);
}

.vlogs-coming-soon p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto var(--space-2);
  line-height: 1.6;
}

.vlogs-coming-soon__sub {
  font-size: var(--fs-base) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.vlogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-3);
}

.vlog-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

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

.vlog-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vlog-card--placeholder .vlog-card__thumb {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.vlog-card--placeholder .vlog-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    );
}

.vlog-card__thumb-inner {
  position: relative;
  width: 64px;
  height: 64px;
  background: rgba(212, 161, 74, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  transition: transform var(--transition-fast);
}

.vlog-card:hover .vlog-card__thumb-inner {
  transform: scale(1.1);
}

.vlog-card__play-icon {
  width: 28px;
  height: 28px;
  margin-left: 4px; /* visual centering offset for triangle */
}

.vlog-card__duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 31, 56, 0.85);
  color: var(--gold-500);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.vlog-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.vlog-card__category {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--gold-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vlog-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.3;
  margin: 0;
}

.vlog-card__desc {
  font-size: var(--fs-sm);
  color: var(--ink-700);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 720px) {
  .vlogs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .vlogs-coming-soon {
    padding: var(--space-4) var(--space-3);
  }

  .vlogs-coming-soon h2 {
    font-size: var(--fs-2xl);
  }
}

/* ===== VLOG VIDEO PLAYER (dynamic vlogs.php) ===== */
.vlog-card__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.vlog-card__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vlog-card__meta {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Replace gallery and vlogs nav links to point to .php where applicable */

/* ============================================================
   GALLERY — DYNAMIC ADDITIONS (gallery.php)
   ============================================================
   Appended for the dynamic gallery.php page. The existing
   .gallery-* styles above are reused as-is — only adding the
   description line under each title.
   ============================================================ */

.gallery-item__desc {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Make the linked image area inherit the rounded top corners */
.gallery-item > a {
  display: block;
  line-height: 0;
}
