/* ===============================================
   D.R. Horton Cape Coral — Google Ads Landing Page
   High-Conversion, Mobile-First Design
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  /* Core Palette */
  --navy: #0c1d3a;
  --navy-deep: #060f1f;
  --navy-light: #142d52;
  /* Brand accent — D.R. Horton blue family.
     Variable name kept as --teal to avoid churn; semantically this is now "brand". */
  --teal: #1d4ed8;
  --teal-hover: #2563eb;
  --teal-glow: rgba(29, 78, 216, 0.18);
  --brand-deep: #003e7e;
  --amber: #e8a838;
  --amber-soft: #f5d48b;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --cream: #faf8f5;
  --text-primary: #1a1a2e;
  --text-secondary: #5a607f;
  --text-muted: #8e93a8;
  --border: #e4e7ec;
  --border-light: #f0f2f5;
  --red-tag: #e63946;
  --success: #10b981;

  /* Spacing */
  --section-y: 80px;
  --container: 1120px;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 100px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sh-md: 0 4px 14px rgba(0,0,0,0.06);
  --sh-lg: 0 10px 40px rgba(0,0,0,0.08);
  --sh-xl: 0 20px 60px rgba(0,0,0,0.12);
  --sh-glow: 0 0 40px rgba(29, 78, 216, 0.12);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.25s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img { display: block; max-width: 100%; }

/* ===== URGENCY BAR ===== */
.urgency-bar {
  background: var(--navy-deep);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.urgency-bar-red {
  background: linear-gradient(90deg, #6b0a14 0%, #b91c2a 50%, #6b0a14 100%);
}

.urgency-bar-red::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent) !important;
}

.urgency-bar-red .highlight {
  color: #ffd84a;
}

.urgency-tag-pill {
  display: inline-block;
  background: #ffd84a;
  color: #6b0a14;
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-right: 10px;
  text-transform: uppercase;
  vertical-align: middle;
}

.urgency-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232,168,56,0.08), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.urgency-bar .highlight {
  color: var(--amber);
  font-weight: 800;
}

.urgency-bar .divider {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  margin: 0 12px;
  vertical-align: middle;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: 60px;
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand-icon {
  width: 36px; height: 36px;
  background: var(--navy);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.navbar-brand-text {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.navbar-brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: white;
  padding: 10px 22px;
  border-radius: var(--r-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all var(--t);
  border: none;
  cursor: pointer;
}

.navbar-cta:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.3);
}

.navbar-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 16px;
}

.navbar-phone svg {
  color: var(--teal);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.hero-redtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d6293a, #b91c2a);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: var(--r-full);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(214, 41, 58, 0.35);
}

.hero-redtag-pill-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: redtag-pulse 1.8s ease-in-out infinite;
}

@keyframes redtag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); opacity: 0.85; }
}

/* ===== LEAD FORM (used inside the modal) ===== */
.lead-form-incentive {
  background: linear-gradient(135deg, #fef3cd, #fff8e1);
  border: 1px solid #f0dfa0;
  border-radius: var(--r-md);
  padding: 12px 16px;
  text-align: center;
  margin-bottom: 20px;
}

.lead-form-incentive-red {
  background: linear-gradient(135deg, #fff5f6, #ffe9eb);
  border: 1px solid #f0b8be;
}

.lead-form-incentive-tag {
  display: inline-block;
  background: var(--red-tag);
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.lead-form-incentive-amount {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.lead-form-incentive-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: all var(--t);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-group input::placeholder { color: #c0c5d0; }

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

.btn-convert {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.btn-convert:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(29, 78, 216,0.3);
}

.btn-convert svg {
  width: 18px; height: 18px;
}

.form-disclaimer {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.form-trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.form-trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  color: var(--text-secondary);
  font-weight: 700;
}

.form-trust-badge svg {
  width: 14px; height: 14px;
  color: var(--teal);
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ===== LOCK STATE UTILITIES ===== */
.unlocked-only { display: none !important; }
body.unlocked .locked-only { display: none !important; }
body.unlocked .unlocked-only { display: inline-flex !important; }
body.unlocked p .unlocked-only,
body.unlocked .models-header p .unlocked-only { display: inline !important; }
body.unlocked .models-unlocked-banner.unlocked-only { display: flex !important; }

/* ===== MODELS SECTION ===== */
.models {
  padding: var(--section-y) 0;
  background: var(--white);
}

.models-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.models-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.models-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.models-header p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.models-header p strong {
  color: var(--text-primary);
  font-weight: 700;
}

.models-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.models-tab {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.models-tab span {
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-full);
  transition: all var(--t);
}

.models-tab:hover {
  border-color: var(--teal);
  color: var(--text-primary);
}

.models-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.models-tab.active span {
  background: rgba(255,255,255,0.18);
  color: white;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

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

.model-card:hover {
  border-color: transparent;
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

button.model-card-img {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--off-white);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}

.model-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.model-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.model-card:hover .model-card-img img {
  transform: scale(1.06);
}

.model-card-img-hover {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 31, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.model-card-img-hover svg {
  width: 16px;
  height: 16px;
}

.model-card-img:hover .model-card-img-hover,
.model-card-img:focus-visible .model-card-img-hover {
  opacity: 1;
}

.model-card-img:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}

.model-card-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 12px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 35%, transparent 70%, rgba(0,0,0,0.25) 100%);
}

.model-card-photos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(12, 29, 58, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}

.model-card-photos svg {
  width: 11px;
  height: 11px;
}

.model-card-flag {
  background: var(--red-tag);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(214,41,58,0.35);
}

.model-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.model-card-series {
  text-transform: uppercase;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.model-card-series-express { color: var(--teal); }
.model-card-series-tradition { color: #c0892a; }

.model-card-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
}

.model-card-community {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.72rem;
}

.model-card-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.model-card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.model-card-specs .spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
}

.model-card-specs .spec svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex-shrink: 0;
}

.model-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
}

.model-card-price {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.model-card-price-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.model-card-price-locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.model-card-price-locked svg {
  width: 13px;
  height: 13px;
}

.model-card-price-amount {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.model-card-cta {
  background: var(--navy);
  color: white;
  border: none;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.model-card-cta:hover {
  background: var(--teal);
  transform: translateX(2px);
}

.model-card-cta svg {
  width: 14px;
  height: 14px;
}

/* Unlock CTA bar */
.models-unlock-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.models-unlock-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at right, rgba(29, 78, 216,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.models-unlock-text {
  position: relative;
  z-index: 2;
}

.models-unlock-text h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.models-unlock-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 540px;
}

.models-unlock-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t);
  box-shadow: 0 6px 20px rgba(29, 78, 216,0.35);
}

.models-unlock-button:hover {
  background: var(--teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(29, 78, 216,0.45);
}

/* Unlocked state banner */
.models-unlocked-banner {
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #e6f9f1, #d0f3e3);
  border: 1px solid #9bdcc0;
  border-radius: var(--r-lg);
  padding: 18px 22px;
}

.models-unlocked-banner svg {
  color: #047857;
  flex-shrink: 0;
}

.models-unlocked-banner strong {
  display: block;
  color: #064e3b;
  font-weight: 800;
  font-size: 0.95rem;
}

.models-unlocked-banner span {
  color: #065f46;
  font-size: 0.82rem;
}

/* ===== VALUE PROPS ===== */
.value-props {
  padding: var(--section-y) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.value-props::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 50%, rgba(29, 78, 216,0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(232,168,56,0.06) 0%, transparent 40%);
}

.value-props-header {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
  z-index: 2;
}

.value-props-header h2 {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.value-props-header p {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.value-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--t);
}

.value-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.value-card-icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  background: rgba(29, 78, 216,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.value-card h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.value-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ===== COMMUNITIES SECTION ===== */
.communities {
  padding: var(--section-y) 0;
  background: var(--off-white);
}

.communities-header {
  text-align: center;
  margin-bottom: 44px;
}

.communities-header h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.communities-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.communities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.community-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--t);
  cursor: pointer;
}

.community-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.community-card-img {
  height: 150px;
  overflow: hidden;
  position: relative;
}

.community-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.community-card:hover .community-card-img img {
  transform: scale(1.08);
}

.community-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.community-card-body {
  padding: 18px 16px;
}

.community-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.community-card-series {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.community-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.community-card-stat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.community-card-stat span {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 100px 0;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(29, 78, 216,0.15) 0%, transparent 60%);
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.final-cta p {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.final-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--text-primary);
  padding: 15px 32px;
  border-radius: var(--r-full);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: all var(--t);
  border: none;
  cursor: pointer;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,255,255,0.15);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  padding: 15px 32px;
  border-radius: var(--r-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: all var(--t);
  cursor: pointer;
}

.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  padding: 40px 0 32px;
  color: rgba(255,255,255,0.4);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-text {
  font-size: 0.7rem;
  line-height: 1.6;
  max-width: 600px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  transition: color var(--t);
}

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

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ===== STICKY MOBILE CTA ===== */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.sticky-mobile-cta .btn-convert {
  margin: 0;
}

/* ===== RED TAG EVENT SECTION ===== */
.redtag-event {
  position: relative;
  padding: var(--section-y) 0;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(214,41,58,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 110%, rgba(214,41,58,0.12) 0%, transparent 55%),
    linear-gradient(180deg, #0a172e 0%, var(--navy-deep) 100%);
  overflow: hidden;
}

.redtag-event::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(214,41,58,0.04) 0 1px, transparent 1px 12px);
  pointer-events: none;
}

.redtag-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
  position: relative;
  z-index: 2;
}

.redtag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(214,41,58,0.15);
  border: 1px solid rgba(214,41,58,0.32);
  padding: 6px 14px;
  border-radius: var(--r-full);
  color: #ff8a96;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.redtag-eyebrow-dot {
  width: 8px; height: 8px;
  background: #ff5868;
  border-radius: 50%;
  animation: redtag-pulse 1.8s ease-in-out infinite;
}

.redtag-header h2 {
  font-size: 2.6rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.redtag-headline-accent {
  background: linear-gradient(135deg, #ff5868, #d6293a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.redtag-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.6;
}

.redtag-feature {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, rgba(214,41,58,0.18) 0%, rgba(139,14,26,0.16) 100%);
  border: 1.5px solid rgba(214,41,58,0.45);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(214,41,58,0.18);
  overflow: hidden;
}

.redtag-feature::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,88,104,0.28), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.redtag-feature-tag {
  display: inline-block;
  background: var(--red-tag);
  color: white;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.redtag-feature-rate {
  position: relative;
  z-index: 2;
  font-family: var(--font);
  font-size: 5.6rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 6px;
}

.redtag-feature-rate-sym {
  font-size: 2.8rem;
  vertical-align: super;
  margin-left: 4px;
  background: linear-gradient(135deg, #ff8a96, #ff5868);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.redtag-feature-label {
  position: relative; z-index: 2;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  margin-bottom: 6px;
}

.redtag-feature-fine {
  position: relative; z-index: 2;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}

.redtag-feature-cta {
  position: relative; z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--navy-deep);
  padding: 13px 30px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--t);
}

.redtag-feature-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.18);
}

.redtag-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.redtag-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: all var(--t);
}

.redtag-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(214,41,58,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(214,41,58,0.18);
}

.redtag-card-tag {
  display: inline-block;
  background: rgba(214,41,58,0.18);
  color: #ff8a96;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.redtag-card h4 {
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.redtag-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.83rem;
  line-height: 1.55;
}

.redtag-bottom-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 22px 28px;
}

.redtag-bottom-text strong {
  display: block;
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.redtag-bottom-text span {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

.redtag-bottom-button {
  background: var(--red-tag);
  color: white;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t);
  box-shadow: 0 6px 20px rgba(214,41,58,0.35);
}

.redtag-bottom-button:hover {
  background: #ff3a4a;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(214,41,58,0.45);
}

/* ===== RESPONSIVE ===== */
.communities-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}

.communities-grid-2 .community-card-img { height: 200px; }

@media (max-width: 1024px) {
  .communities-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .redtag-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   MOBILE-FIRST BREAKPOINTS
   The base CSS is desktop-tuned. Below 900px we collapse to
   single-column, tighten spacing, bump tap targets to 44px,
   and prioritize the lead form above content density.
   ========================================================= */

@media (max-width: 900px) {
  /* Tighter section rhythm so users don't scroll empty space */
  :root { --section-y: 56px; }

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

  /* iOS Safari zooms inputs <16px on focus — keep inputs at 16px */
  .form-group input,
  .form-group select {
    font-size: 16px;
    padding: 14px 14px;
  }
  .btn-convert { padding: 16px; font-size: 0.98rem; }

  /* ---- NAVBAR — tap-friendly phone icon (44x44 minimum) ---- */
  .navbar-phone {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal);
    color: white !important;
    justify-content: center;
    margin-right: 0;
    overflow: hidden;
    text-indent: -9999px;
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.35);
  }
  .navbar-phone svg { color: white; text-indent: 0; flex-shrink: 0; width: 18px; height: 18px; }
  .navbar-phone:active { transform: scale(0.96); }

  /* ---- URGENCY BAR — single-line, hide secondary content ---- */
  .urgency-bar { font-size: 0.74rem; padding: 8px 14px; line-height: 1.4; }
  .urgency-bar .urgency-item-secondary { display: none; }
  .urgency-bar .divider { margin: 0 8px; }
  .urgency-tag-pill { font-size: 0.66rem; padding: 3px 9px; margin-right: 8px; }

  /* ---- MODELS ---- */
  .models { padding: 56px 0; }
  .models-header { margin-bottom: 28px; }
  .models-header h2 { font-size: 1.6rem; line-height: 1.15; }
  .models-header p { font-size: 0.92rem; }
  .models-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .models-tabs { margin-bottom: 24px; gap: 6px; }
  .models-tab { font-size: 0.78rem; padding: 9px 14px; }
  .models-unlock-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 16px;
  }
  .models-unlock-text h3 { font-size: 1.1rem; }
  .models-unlock-text p { max-width: none; font-size: 0.85rem; }

  /* ---- TESTIMONIALS ---- */
  .testimonials { padding: 56px 0 40px; }
  .testimonials-header { margin-bottom: 32px; }
  .testimonials-header h2 { font-size: 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }
  .testimonial-card { padding: 22px 22px 18px; }

  /* ---- RED TAG EVENT ---- */
  .redtag-event { padding: 56px 0; }
  .redtag-header { margin-bottom: 28px; }
  .redtag-header h2 { font-size: 1.7rem; line-height: 1.15; }
  .redtag-header p { font-size: 0.92rem; }
  .redtag-feature { padding: 28px 22px; margin-bottom: 24px; }
  .redtag-feature-rate { font-size: 4rem; }
  .redtag-feature-label { font-size: 0.95rem; }
  .redtag-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
  .redtag-card { padding: 20px 18px; }
  .redtag-bottom-cta {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
    gap: 14px;
  }

  /* ---- COMMUNITIES ---- */
  .communities { padding: 56px 0; }
  .communities-header { margin-bottom: 28px; }
  .communities-header h2 { font-size: 1.55rem; }
  .communities-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* ---- FAQ ---- */
  .faq { padding: 56px 0; }
  .faq-header { margin-bottom: 28px; }
  .faq-header h2 { font-size: 1.55rem; }
  .faq-item summary { font-size: 0.94rem; padding: 16px 18px; }
  .faq-item p { padding: 0 18px 18px; font-size: 0.88rem; }

  /* ---- VALUE PROPS ---- */
  .value-props { padding: 56px 0; }
  .value-props-header { margin-bottom: 36px; }
  .value-props-header h2 { font-size: 1.65rem; }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .value-card { padding: 24px 20px; }

  /* ---- FINAL CTA ---- */
  .final-cta { padding: 64px 0; }
  .final-cta h2 { font-size: 1.65rem; line-height: 1.15; }
  .final-cta p { font-size: 0.92rem; }
  .final-cta-eyebrow { font-size: 0.66rem; }

  /* ---- FOOTER ---- */
  .footer { padding-top: 32px; }
  .footer-inner { flex-direction: column; text-align: left; gap: 14px; }
}

/* ---- 640px and below: phones ---- */
@media (max-width: 640px) {
  /* Single-column grids */
  .form-row { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: 1fr; }
  .communities-grid,
  .communities-grid-2 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .value-grid { grid-template-columns: 1fr; }
  .redtag-grid { grid-template-columns: 1fr; }

  /* Section header sizes for phones */
  .models-header h2 { font-size: 1.45rem; }
  .redtag-header h2 { font-size: 1.5rem; }
  .redtag-feature-rate { font-size: 3.6rem; }
  .testimonials-header h2 { font-size: 1.35rem; }
  .faq-header h2 { font-size: 1.45rem; }
  .communities-header h2 { font-size: 1.45rem; }
  .value-props-header h2 { font-size: 1.5rem; }
  .final-cta h2 { font-size: 1.55rem; }

  /* Final CTA actions stack */
  .final-cta-actions { flex-direction: column; }
  .btn-white, .btn-outline-white { width: 100%; justify-content: center; }

  /* Tighter form button on small phones */
  .urgency-bar { font-size: 0.7rem; padding: 7px 10px; }
}

/* ---- 480px and below: small phones ---- */
@media (max-width: 480px) {
  /* Tighter cards */
  .model-card-body { padding: 14px 16px 16px; }
  .model-card-name { font-size: 1.1rem; }
  .model-card-img { aspect-ratio: 16/10; }

  /* Tighter testimonial */
  .testimonial-card { padding: 20px 20px 16px; }
  .testimonial-quote { font-size: 0.9rem; }

  /* Compact urgency tag-pill becomes stacked block */
  .urgency-tag-pill { display: inline-block; margin: 0 6px 0 0; }
}

/* ===== STICKY MOBILE CTA — phone + primary action side by side ===== */
.sticky-mobile-cta {
  display: none;
  gap: 10px;
  align-items: center;
}

.sticky-mobile-cta .btn-convert { flex: 1; }

.sticky-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--navy);
  color: white;
  border-radius: var(--r-sm);
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--t);
}

.sticky-call:hover { background: var(--navy-light); }

/* Sticky bottom CTA disabled — hero now carries the primary + call CTAs at every viewport. */

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 70px 0 50px;
  background: var(--cream);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-eyebrow {
  display: inline-block;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.testimonials-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-style: italic;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 26px 26px 22px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: var(--amber);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 18px;
  font-weight: 500;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-meta strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 1px;
}

.testimonial-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }
  .testimonials-header h2 { font-size: 1.5rem; }
}

/* ===== FAQ ===== */
.faq {
  padding: var(--section-y) 0;
  background: var(--white);
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  transition: all var(--t);
}

.faq-item[open] {
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.08);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform var(--t);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '\2013';
}

.faq-item p {
  padding: 0 24px 22px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 640px) {
  .faq-header h2 { font-size: 1.5rem; }
  .faq-item summary { font-size: 0.9rem; padding: 16px 18px; }
  .faq-item p { padding: 0 18px 18px; font-size: 0.86rem; }
}

/* ===== SCARCITY BADGE ===== */
.community-card-scarcity {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(214, 41, 58, 0.95);
  color: white;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-full);
  box-shadow: 0 2px 10px rgba(214, 41, 58, 0.4);
  backdrop-filter: blur(6px);
}

/* ===== FINAL CTA EYEBROW ===== */
.final-cta-eyebrow {
  display: inline-block;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ===== CONTRAST BUMP — model-card-series small caps ===== */
.model-card-series {
  font-weight: 900 !important;
}

.model-card-series-express { color: #1d4ed8 !important; }
.model-card-series-tradition { color: #b87a14 !important; }

/* ===== MOBILE GALLERY AFFORDANCE — pulse the photos badge on touch devices ===== */
@media (hover: none) {
  .model-card-photos {
    background: rgba(12, 29, 58, 0.92);
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  }
  .model-card-img-hover {
    /* Hide the desktop hover overlay on touch devices */
    display: none;
  }
}

/* ===== FOOTER DISCLAIMER ===== */
.footer-text p { margin-bottom: 10px; }
.footer-text p:last-child { margin-bottom: 0; }
.footer-disclaimer {
  font-size: 0.65rem !important;
  line-height: 1.55;
  color: rgba(255,255,255,0.32) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
}
.footer-text strong { color: rgba(255,255,255,0.7); }

/* =========================================================
   HERO ACTIONS — replaces the inline form column
   Big primary + secondary CTA + microcopy
   ========================================================= */

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--teal);
  color: white;
  padding: 17px 32px;
  border-radius: var(--r-full);
  border: none;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  letter-spacing: 0.005em;
  box-shadow: 0 8px 28px rgba(29, 78, 216, 0.45), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transition: all var(--t);
  white-space: nowrap;
}

.hero-cta-primary:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(29, 78, 216, 0.55);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 17px 28px;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--t);
  white-space: nowrap;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

/* =========================================================
   LEAD CAPTURE MODAL
   Mobile: full-screen sheet sliding up
   Desktop: centered card with overlay
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(6, 15, 31, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: modal-fade 0.18s ease;
}

.modal.open { display: flex; }

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modal-slide 0.22s var(--ease);
  scrollbar-width: thin;
}

@keyframes modal-slide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Close button — solid white pill with dark icon for maximum contrast against the
   dark navy modal header. High-priority affordance, easy to spot in any context. */
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid white;
  background: white;
  color: var(--navy-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 0 4px rgba(255, 255, 255, 0.18);
  transition: all var(--t);
}

.modal-close svg { stroke-width: 3; width: 24px; height: 24px; }

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--red-tag);
  border-color: var(--red-tag);
  color: white;
  transform: rotate(90deg) scale(1.05);
  outline: none;
  box-shadow:
    0 8px 22px rgba(214, 41, 58, 0.5),
    0 0 0 4px rgba(214, 41, 58, 0.18);
}

.modal-close:active { transform: rotate(90deg) scale(0.95); }

.modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  padding: 28px 32px 22px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(29, 78, 216, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.modal-eyebrow {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: var(--red-tag);
  color: white;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.modal-header h2 {
  position: relative;
  z-index: 2;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.modal-header p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.5;
}

.modal-body {
  padding: 22px 32px 28px;
}

.modal-body .lead-form-incentive {
  margin-bottom: 18px;
}

.modal-body .form-trust-badges {
  margin-top: 14px;
  padding-top: 14px;
}

@media (max-width: 640px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-card {
    max-width: 100%;
    max-height: 96vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: modal-slide-mobile 0.24s var(--ease);
  }
  .modal-header {
    padding: 24px 22px 18px;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .modal-header h2 { font-size: 1.35rem; }
  .modal-body { padding: 20px 22px 26px; }
  .modal-close { top: 10px; right: 10px; }
}

@keyframes modal-slide-mobile {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Lock background scroll when modal open without layout shift */
body:has(.modal.open) { overflow: hidden; }

/* ===== REQUIRED-FIELD ASTERISKS ===== */
.form-required {
  color: var(--red-tag);
  font-weight: 800;
  margin-left: 1px;
}

/* Match the asterisks to the input's invalid state — subtle UX cue */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: rgba(214, 41, 58, 0.35);
}

/* =========================================================
   CINEMATIC HERO — full-screen image with overlay + minimal copy
   ========================================================= */

.hero-cinema {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px;
  background: var(--navy-deep);
}

/* Image is a separate layer so we can ken-burns it without moving the overlay */
.hero-bg {
  position: absolute;
  inset: -4%;
  background-image: url('images/models/stonewater-pool.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: hero-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-kenburns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Multi-stop gradient for legibility — darker at top + bottom, slightly lifted in middle */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(6, 15, 31, 0.7) 0%,
      rgba(6, 15, 31, 0.45) 30%,
      rgba(6, 15, 31, 0.4) 55%,
      rgba(6, 15, 31, 0.78) 100%),
    radial-gradient(ellipse 90% 60% at center, rgba(6, 15, 31, 0) 30%, rgba(6, 15, 31, 0.45) 100%);
  z-index: 1;
}

.hero-cinema-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: hero-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pill keeps its red glow but sits on the dark background */
.hero-redtag-pill-cinema {
  margin-bottom: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Editorial serif headline — Playfair Display already imported in :root */
.hero-headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.3rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: white;
  margin: 4px 0;
  text-shadow:
    0 4px 30px rgba(0, 0, 0, 0.45),
    0 1px 4px rgba(0, 0, 0, 0.5);
  max-width: 13ch;
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* Override default hero-actions spacing for the cinematic context */
.hero-cinema .hero-actions {
  margin-top: 18px;
  gap: 14px;
}

/* Stronger primary CTA presence on a busy background — bigger pad, brighter glow */
.hero-cinema .hero-cta-primary {
  padding: 18px 36px;
  font-size: 1.02rem;
  box-shadow:
    0 12px 40px rgba(29, 78, 216, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-cinema .hero-cta-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 28px;
}

.hero-cinema .hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Animated chevron at the bottom hints "scroll for homes" */
.hero-scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: hero-bounce 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: all var(--t);
}

.hero-scroll-cue:hover {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

@keyframes hero-bounce {
  0%, 30%, 60%, 100% { transform: translate(-50%, 0); }
  15% { transform: translate(-50%, -8px); }
  45% { transform: translate(-50%, -4px); }
}

/* Mobile: shorter, tighter, scroll cue smaller */
@media (max-width: 900px) {
  .hero-cinema {
    min-height: 78vh;
    padding: 64px 20px;
  }
  .hero-cinema-inner { gap: 14px; }
  .hero-headline {
    font-size: clamp(2rem, 8.5vw, 3.4rem);
    max-width: 14ch;
  }
  .hero-tagline { font-size: 0.82rem; letter-spacing: 0.06em; }
  .hero-cinema .hero-cta-primary { padding: 16px 28px; font-size: 0.98rem; width: 100%; max-width: 320px; }
  .hero-cinema .hero-cta-secondary { padding: 16px 24px; font-size: 0.92rem; width: 100%; max-width: 320px; }
  .hero-cinema .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 12px;
  }
  .hero-scroll-cue { bottom: 18px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .hero-cinema { min-height: 76vh; padding: 56px 18px; }
  .hero-headline { font-size: clamp(1.85rem, 9vw, 2.6rem); }
}

/* Reduce motion preference: disable ken-burns + bounce for users who opt out */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .hero-scroll-cue { animation: none; }
  .hero-cinema-inner { animation: none; }
}

/* ===== HEADLINE ROTATOR ===== */
.hero-headline {
  transition: opacity 0.48s ease, transform 0.48s ease;
  /* min-height keeps the layout stable while text swaps */
  min-height: 1.04em;
}

.hero-headline.headline-fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.hero-headline.headline-fade-in {
  animation: headline-fade-in 0.48s ease both;
}

@keyframes headline-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== MODAL "KEEP BROWSING" CLOSE LINK ===== */
.modal-keep-browsing {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
  transition: all var(--t);
}

.modal-keep-browsing:hover {
  color: var(--teal);
  background: var(--off-white);
}

/* =========================================================
   IN-CARD PHOTO BROWSER
   Prev/next arrows let users flip through photos right on
   the card. Clicking the image itself opens the lead modal.
   ========================================================= */

.model-card-img-wrap {
  position: relative;
}

.card-photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}

.card-photo-arrow svg { width: 18px; height: 18px; pointer-events: none; }

.card-photo-prev { left: 10px; }
.card-photo-next { right: 10px; }

/* Reveal on hover (desktop) — they stay always-visible on touch */
.model-card:hover .card-photo-arrow,
.card-photo-arrow:focus-visible {
  opacity: 1;
}

.card-photo-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.08);
  border-color: var(--teal);
  color: var(--teal);
}

.card-photo-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

/* Touch devices (no hover capability) get always-visible arrows */
@media (hover: none) {
  .card-photo-arrow { opacity: 1; }
}

/* Belt-and-suspenders: at tablet-portrait and below, force arrows visible regardless
   of what the browser reports for `hover`. Some mobile browsers and emulators
   misreport hover capability — width-based rule guarantees arrows show on every
   real phone/tablet, sized for thumb tappability. */
@media (max-width: 900px) {
  .card-photo-arrow {
    opacity: 1;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }
  .card-photo-arrow svg { width: 20px; height: 20px; }
  .card-photo-prev { left: 8px; }
  .card-photo-next { right: 8px; }
}
