/* ============================================================
   ELITE COLLECTIVE — Master Brand Stylesheet
   Version: 2.0 | Platform: Luxury Presence
   Design Language: Architectural Digest editorial meets
   five-star hotel booking. Luxury breathes — never crowd content.
   ============================================================ */

/* --- CSS Custom Properties (Brand Tokens) --- */
:root {
  /* Primary Colors — Non-Negotiable */
  --navy: #1B2A4A;
  --navy-deep: #1B2A4A;
  --gold: #C9A84C;
  --gold-light: #E2C97A;
  --cream: #F5F0E8;
  --white: #FFFFFF;

  /* Derived from approved palette */
  --navy-light: #1B2A4A;
  --gold-muted: #A38B3D;

  /* Neutral System (palette-derived) */
  --warm-gray: #EDEBE5;
  --sand: #D4C9B0;
  --near-black: #1B2A4A;

  /* Forbidden: #1B2A4A, purple, gray-blue, teal, any off-palette */

  /* Typography Scale */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* H1: 72–96px Cormorant Garamond 300 italic */
  --h1-size: clamp(3rem, 5vw, 6rem);
  /* H2: 48–64px Cormorant Garamond 400 */
  --h2-size: clamp(2.5rem, 3.5vw, 4rem);
  /* H3: 28–36px Cormorant Garamond 600 */
  --h3-size: clamp(1.75rem, 2.5vw, 2.25rem);
  /* Body: 15–16px Lato 400 */
  --body-size: 1rem;
  /* Labels: Lato 700 uppercase, 0.3–0.4em letter-spacing, 10–11px */
  --label-size: 0.6875rem;
  --label-tracking: 0.35em;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1280px;
  --container-narrow: 960px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 0.3s var(--ease-smooth);

  /* Shadows — subtle, no heavy box-shadows */
  --shadow-card: 0 2px 20px rgba(27,42,74, 0.06);
  --shadow-hover: 0 8px 40px rgba(27,42,74, 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  font-size: var(--h1-size);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--h2-size);
  font-weight: 400;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  max-width: 70ch;
}

.label,
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--gold);
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--charcoal);
}

blockquote,
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.375rem, 2vw, 2rem);
  line-height: 1.5;
  color: var(--navy);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--section-padding) 0;
}

/* Section rhythm: Cream → Navy → Cream → Navy */
.section--cream { background-color: var(--cream); }
.section--navy { background-color: var(--navy); color: var(--cream); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--cream); }
.section--navy .eyebrow { color: var(--gold-light); }
.section--navy p { color: rgba(245, 240, 232, 0.85); }
.section--white { background-color: var(--white); }
.section--deep-navy { background-color: var(--navy-deep); color: var(--cream); }
.section--deep-navy h2,
.section--deep-navy h3 { color: var(--cream); }

/* --- Grid System --- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --- Buttons / CTAs --- */
/* Gold filled: deep navy text */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 2px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn--primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}

/* Gold outlined */
.btn--secondary {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--secondary:hover {
  background-color: var(--gold);
  color: var(--navy-deep);
}

/* Gold text on dark backgrounds */
.btn--ghost {
  background-color: transparent;
  color: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.4);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Never a generic colored button */

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-smooth);
  /* Glass-morphism on hero video */
  background: transparent;
}

.site-header.scrolled {
  background-color: var(--navy);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(27,42,74, 0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo .logo-monogram {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.05em;
  position: relative;
}

.header-logo .logo-monogram::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold);
}

.header-logo .logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.02em;
}

/* Below logo: subdued KW affiliation */
.header-logo .kw-affiliation {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  display: block;
  margin-top: -2px;
}

/* Center nav links */
.nav-main {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-main a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 0.25rem 0;
}

.nav-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width var(--transition-base);
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--white);
}

.nav-main a:hover::after,
.nav-main a.active::after {
  width: 100%;
}

/* Properties dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-deep);
  border-top: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Right side: phone + CTA */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-phone {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

.header-phone:hover {
  color: var(--gold-light);
}

.header-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  background-color: var(--gold);
  color: var(--navy-deep);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.header-cta:hover {
  background-color: var(--gold-light);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 1.5px;
  background-color: var(--cream);
  transition: all var(--transition-base);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  opacity: 0.8;
}

.mobile-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.mobile-nav .mobile-phone {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 1rem;
}

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 1024px) {
  .nav-main,
  .header-right { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video,
.hero-video-wrap .hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 40% deep navy gradient overlay from bottom */
.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27,42,74, 0.85) 0%,
    rgba(27,42,74, 0.4) 50%,
    rgba(27,42,74, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content .logo-hero {
  margin: 0 auto 2rem;
  width: 80px;
  height: 80px;
}

.hero-content h1 {
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.hero-content .hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  color: rgba(245, 240, 232, 0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Credential Bar (below hero) --- */
.credential-bar {
  background-color: var(--navy);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  padding: 1.5rem 0;
}

.credential-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
}

.credential-item {
  text-align: center;
  padding: 0 1rem;
}

.credential-item .credential-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--gold);
}

.credential-item .credential-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.6);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.credential-divider {
  width: 1px;
  height: 2.5rem;
  background-color: rgba(201, 168, 76, 0.2);
}

@media (max-width: 768px) {
  .credential-divider { display: none; }
  .credential-bar .container { gap: 1.5rem; }
}

/* --- Cards (Listing, Neighborhood, Article) --- */
.card {
  background: var(--white);
  border-top: 3px solid var(--gold); /* Signature gold top-border accent */
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.card:hover .card-image img {
  transform: scale(1.03);
}

.card-body {
  padding: 1.75rem;
}

.card-body h3 {
  margin-bottom: 0.5rem;
}

.card-body .card-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card-body .card-address {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--taupe);
  margin-bottom: 1rem;
}

.card-body .card-specs {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

/* Neighborhood hub cards */
.card--neighborhood .card-image {
  aspect-ratio: 4 / 3;
}

.card--neighborhood .card-body {
  padding: 1.5rem;
}

/* Article / Intelligence cards */
.card--article .card-body .card-category {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.card--article .card-body .card-date {
  font-size: 0.75rem;
  color: var(--taupe);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--sand);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition-base);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input::placeholder {
  color: var(--taupe);
  font-weight: 300;
}

/* Dark form variant */
.form--dark .form-group label {
  color: var(--gold-light);
}

.form--dark .form-group input,
.form--dark .form-group select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--cream);
}

.form--dark .form-group input::placeholder {
  color: rgba(245, 240, 232, 0.4);
}

.form--dark .form-group input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

/* --- Home Valuation Tool Section --- */
.valuation-section {
  background-color: var(--cream);
  padding: var(--section-padding) 0;
}

.valuation-form {
  max-width: 640px;
  margin: 0 auto;
}

/* Google Places autocomplete styling placeholder */
.address-autocomplete {
  position: relative;
}

/* --- Testimonial Carousel --- */
.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--gold);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.25);
}

/* --- Stat Counters --- */
.stat-grid {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--gold);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--taupe);
  margin-top: 0.25rem;
}

.section--navy .stat-label {
  color: rgba(245, 240, 232, 0.6);
}

/* --- Market Pulse Widget --- */
.market-pulse {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 2rem;
}

.market-pulse-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--warm-gray);
}

.market-pulse-stat:last-child {
  border-bottom: none;
}

.market-pulse-stat .stat-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--charcoal);
}

.market-pulse-stat .stat-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
}

/* --- Split-Screen Layout (Properties) --- */
.split-screen {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: calc(100vh - 80px);
}

.split-map {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  background-color: var(--navy);
}

.split-listings {
  padding: 2rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

@media (max-width: 1024px) {
  .split-screen {
    grid-template-columns: 1fr;
  }
  .split-map {
    position: relative;
    top: 0;
    height: 50vh;
  }
  .split-listings {
    max-height: none;
  }
}

/* --- Property Sidebar --- */
.property-sidebar {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 2rem;
}

.property-sidebar .agent-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--navy);
}

.property-sidebar .agent-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

.property-sidebar .agent-phone {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-top: 0.75rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--navy-deep);
  border-top: 2px solid var(--gold);
  padding: 4rem 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.footer-brand .footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-brand .footer-agent {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.8;
}

.footer-brand .footer-agent strong {
  color: var(--cream);
  font-weight: 700;
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-nav a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.6);
  padding: 0.375rem 0;
  transition: color var(--transition-base);
}

.footer-nav a:hover {
  color: var(--cream);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--gold);
  font-size: 1.125rem;
  transition: color var(--transition-base);
}

.footer-social a:hover {
  color: var(--gold-light);
}

/* Footer bottom bar */
.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
}

.footer-legal a {
  color: rgba(245, 240, 232, 0.5);
}

.footer-legal a:hover {
  color: var(--cream);
}

/* <!-- KW AFFILIATION BLOCK — REMOVABLE --> */
.footer-kw {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  text-align: right;
}
/* <!-- END KW AFFILIATION BLOCK --> */

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
  .footer-kw { text-align: center; }
}

/* --- Animations --- */
/* Fade-in on scroll: opacity 0→1, translateY 24px→0, 0.7s ease-out */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gold underline hover: scaleX 0→1, 0.3s */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-smooth);
}

.gold-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Section Dividers --- */
.divider {
  width: 80px;
  height: 1px;
  background-color: var(--gold);
  margin: 2rem auto;
}

.divider--left {
  margin-left: 0;
}

/* --- Gold Border Frame (1px accent) --- */
.gold-frame {
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 2rem;
}

/* --- Lightbox (for photo galleries) --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27,42,74, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--cream);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Breadcrumbs (interior pages) --- */
.breadcrumbs {
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--taupe);
}

.breadcrumbs a {
  color: var(--taupe);
}

.breadcrumbs a:hover {
  color: var(--navy);
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: var(--sand);
}

/* --- CTA Band (Strategy Call) --- */
.cta-band {
  background-color: var(--navy);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.cta-band .cta-phone {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold);
  display: block;
  margin-bottom: 2rem;
}

/* --- Accessibility (WCAG 2.1 AA) --- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.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;
}

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .mobile-nav,
  .cta-band { display: none; }

  body {
    color: #1B2A4A;
    background: #fff;
    font-size: 12pt;
  }
}