/*
Theme Name: You Win Estates
Theme URI: https://www.youwinestatesllc.com/
Author: You Win Estates LLC
Description: Custom marketing theme for You Win Estates — sell your house fast for cash. Ported from a React/Tailwind build to a dependency-free classic WordPress theme.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: youwinestates
*/

/* ==========================================================================
   Design tokens — mirrors the original Tailwind @theme palette exactly.
   ========================================================================== */
:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Deep evergreen — primary brand color */
  --brand-50: #f2f6f4;
  --brand-100: #dfe9e4;
  --brand-200: #bfd3ca;
  --brand-300: #95b5a7;
  --brand-400: #689280;
  --brand-500: #497c69;
  --brand-600: #35594a;
  --brand-700: #2c483d;
  --brand-800: #16332a;
  --brand-900: #0f241d;
  --brand-950: #091712;

  /* Warm gold accent */
  --gold-50: #fbf8f0;
  --gold-100: #f4ecd6;
  --gold-200: #e8d5a8;
  --gold-300: #d9ba78;
  --gold-400: #c9a054;
  --gold-500: #b8863d;
  --gold-600: #986c31;
  --gold-700: #78542a;

  /* Warm neutral background */
  --cream-50: #fdfbf7;
  --cream-100: #faf6ef;
  --cream-200: #f3ecdf;

  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;

  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --container-7xl: 80rem;
  --container-6xl: 72rem;
  --container-4xl: 56rem;
  --container-3xl: 48rem;
  --container-2xl: 42rem;
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--cream-50);
  color: var(--brand-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: var(--container-7xl);
}

@media (min-width: 640px) {
  .container {
    padding-inline: 2rem;
  }
}

.container--6xl {
  max-width: var(--container-6xl);
}
.container--4xl {
  max-width: var(--container-4xl);
}
.container--3xl {
  max-width: var(--container-3xl);
}
.container--2xl {
  max-width: var(--container-2xl);
}

.icon-fill {
  fill: currentColor;
}

.scroll-mt {
  scroll-margin-top: 6rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn--sm {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

.btn--gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--brand-950);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(184, 134, 61, 0.3);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
}

.btn--gold::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: badge-wave 2.8s ease-in-out infinite;
  pointer-events: none;
}

.btn--dark {
  background: var(--brand-900);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 36, 29, 0.2);
}
.btn--dark:hover {
  background: var(--brand-800);
}

.btn--outline-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn--outline-dark {
  background: transparent;
  border: 1px solid var(--brand-200);
  color: var(--brand-900);
  font-weight: 600;
}
.btn--outline-dark:hover {
  background: var(--brand-50);
}

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

@media (min-width: 640px) {
  .btn--auto-sm {
    width: auto;
  }
}

/* ==========================================================================
   Section heading
   ========================================================================== */
.section-heading {
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
}

.section-heading__eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-600);
}

.section-heading--dark .section-heading__eyebrow {
  color: var(--gold-400);
}

.section-heading__title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--brand-950);
}

.section-heading--dark .section-heading__title {
  color: #fff;
}

@media (min-width: 640px) {
  .section-heading__title {
    font-size: 2.25rem;
  }
}

.section-heading__desc {
  margin-top: 1rem;
  color: var(--brand-600);
}

.section-heading--dark .section-heading__desc {
  color: var(--brand-200);
}

/* ==========================================================================
   Scroll reveal — blur/fade/translate-up, replays every time in view.
   Mirrors the framer-motion "revealUp" behavior from the React build.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3px);
  transition:
    opacity 0.45s var(--ease-apple),
    transform 0.45s var(--ease-apple),
    filter 0.45s var(--ease-apple);
  will-change: opacity, transform, filter;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.4) 100%),
    radial-gradient(ellipse 70% 140% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%),
    rgba(22, 51, 42, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 160, 84, 0.25);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.4) 100%),
    radial-gradient(ellipse 70% 140% at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%),
    rgba(22, 51, 42, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header__nav {
  margin-inline: auto;
  max-width: var(--container-7xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .site-header__nav {
    padding: 1rem 2rem;
  }
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__logo-mark {
  height: 3.25rem;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(15, 36, 29, 0.25));
}

.site-header__name {
  font-family: 'Playfair Display', var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gold-200);
}

.site-header__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .site-header__links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold-300);
  transition: color 0.2s ease;
  padding-bottom: 2px;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: var(--gold-400);
  transition: width 0.3s var(--ease-apple);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .site-header__actions {
    display: flex;
  }
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  background: var(--brand-50);
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-700);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.phone-chip:hover {
  background: var(--brand-100);
  color: var(--brand-950);
}

.phone-chip svg {
  width: 0.875rem;
  height: 0.875rem;
}

.phone-chip--icon-only {
  display: none;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--brand-950);
}

@media (min-width: 640px) {
  .phone-chip--icon-only {
    display: flex;
  }
}

.phone-chip--dark {
  background: rgba(0, 0, 0, 0.3);
  color: var(--gold-200);
  box-shadow: inset 0 0 0 1px rgba(201, 160, 84, 0.25);
}
.phone-chip--dark:hover {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--gold-300);
  background: none;
  border: none;
}

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

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .site-header__mobile-actions {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--brand-100);
  background: var(--cream-50);
  padding: 1rem 1.25rem;
}

.mobile-menu.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mobile-menu__list .nav-link {
  color: var(--gold-600);
  padding: 0.25rem 0;
  text-align: center;
}

.mobile-menu__list .nav-link::after {
  display: none;
}

.mobile-phone-chip {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.5rem;
  background: var(--brand-800);
  padding: 0.625rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.mobile-phone-chip svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-950);
}

.hero__dots {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.hero__glow--gold {
  top: -10rem;
  right: -10rem;
  height: 24rem;
  width: 24rem;
  background: rgba(184, 134, 61, 0.1);
}

.hero__glow--brand {
  bottom: -10rem;
  left: 25%;
  height: 24rem;
  width: 24rem;
  background: rgba(73, 124, 105, 0.1);
}

.hero__grid {
  position: relative;
  margin-inline: auto;
  max-width: var(--container-7xl);
  display: grid;
  gap: 3rem;
  padding: 4rem 1.25rem;
}

@media (min-width: 640px) {
  .hero__grid {
    padding: 6rem 2rem;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-block: 7rem;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-300);
}

.hero__badge svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--gold-300);
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero__title .accent {
  color: var(--gold-400);
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.25rem;
  }
}

.hero__lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--brand-200);
}

.hero__badges {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

.hero__badge-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  padding: 0.75rem 0.875rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.18);
}

@keyframes badge-wave {
  0% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

.hero__badge-item svg {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  box-sizing: content-box;
  padding: 0.375rem;
  border-radius: 999px;
  background: rgba(9, 23, 18, 0.35);
  color: var(--brand-300);
}

.hero__badge-item span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar {
  border-bottom: 1px solid var(--brand-100);
  background: #fff;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-block: 2.5rem;
}

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

.trust-stat {
  text-align: center;
}

.trust-stat__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-900);
}

@media (min-width: 640px) {
  .trust-stat__value {
    font-size: 1.875rem;
  }
}

.trust-stat__label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-500);
}

@media (min-width: 640px) {
  .trust-stat__label {
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   How it works
   ========================================================================== */
.section {
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 7rem;
  }
}

.section--tinted {
  background: var(--brand-900);
}

.how-it-works__panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 8px),
    radial-gradient(circle at 20% 15%, rgba(201, 160, 84, 0.12), transparent 55%),
    linear-gradient(160deg, var(--brand-800), var(--brand-950));
  padding: 3rem 1.5rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .how-it-works__panel {
    padding: 3.5rem 3rem;
  }
}

.panel-corner {
  position: absolute;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--gold-400);
  opacity: 0.6;
  pointer-events: none;
}

.panel-corner--tl {
  top: 1.25rem;
  left: 1.25rem;
  border-right: none;
  border-bottom: none;
}

.panel-corner--tr {
  top: 1.25rem;
  right: 1.25rem;
  border-left: none;
  border-bottom: none;
}

.panel-corner--bl {
  bottom: 1.25rem;
  left: 1.25rem;
  border-right: none;
  border-top: none;
}

.panel-corner--br {
  bottom: 1.25rem;
  right: 1.25rem;
  border-left: none;
  border-top: none;
}

.panel-sparkle {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  color: var(--gold-400);
  opacity: 0.5;
  pointer-events: none;
}

.panel-sparkle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-footer .panel-sparkle {
  bottom: 0.75rem;
}

.how-it-works__grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .how-it-works__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--brand-700);
  background: var(--brand-900);
  padding: 2rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.step-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.step-card__index {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
}

.step-card__icon {
  position: relative;
  overflow: hidden;
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 50%, var(--gold-700) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), inset 0 -2px 3px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.step-card__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, transparent 35%, transparent 65%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}

.step-card__icon svg {
  position: relative;
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--brand-950);
}

.step-card__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.step-card__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-200);
}

/* ==========================================================================
   Why us
   ========================================================================== */
.compare-panel {
  position: relative;
  margin-top: 3.5rem;
  overflow: hidden;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.compare-panel__head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, #6b7270 0%, #9aa19e 30%, #4d5250 65%, #71716f 100%);
  padding: 1rem 1rem;
}

@media (min-width: 640px) {
  .compare-panel__head {
    padding: 1rem 2rem;
  }
}

.compare-panel__head span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.compare-panel__head span.is-us {
  text-align: center;
  font-weight: 700;
  color: var(--gold-300);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.compare-panel__head span.is-them {
  text-align: center;
}

@media (min-width: 640px) {
  .compare-panel__head span {
    font-size: 0.875rem;
  }
}

.compare-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
  .compare-row {
    padding: 1rem 2rem;
  }
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-100);
}

@media (min-width: 640px) {
  .compare-row__label {
    font-size: 0.875rem;
  }
}

.compare-row__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.compare-row__cell svg {
  width: 1rem;
  height: 1rem;
}

.compare-row__cell.is-us svg {
  color: var(--gold-400);
}

.compare-row__cell.is-them svg {
  color: var(--brand-400);
}

.compare-row__cell.is-us span {
  font-size: 0.75rem;
  color: #fff;
}

.compare-row__cell.is-them span {
  font-size: 0.75rem;
  color: var(--brand-300);
}

@media (min-width: 640px) {
  .compare-row__cell span {
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials__grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.testimonial-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid var(--brand-100);
  background:
    repeating-linear-gradient(135deg, rgba(184, 134, 61, 0.04) 0px, rgba(184, 134, 61, 0.04) 1px, transparent 1px, transparent 10px),
    linear-gradient(160deg, #fff, var(--cream-50));
  padding: 1.75rem;
  box-shadow: 0 20px 40px -18px rgba(15, 36, 29, 0.25);
}

.testimonial-card__quote-icon {
  width: 2rem;
  height: 2rem;
  color: var(--gold-400);
}

.testimonial-card__stars {
  margin-top: 1rem;
  display: flex;
  gap: 0.125rem;
}

.testimonial-card__stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--gold-400);
  color: var(--gold-400);
}

.testimonial-card__quote {
  margin-top: 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-700);
}

.testimonial-card__person {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -2px 3px rgba(0, 0, 0, 0.2);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-950);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-950);
}

.testimonial-card__location {
  font-size: 0.75rem;
  color: var(--brand-500);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-panel {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  padding-inline: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

@media (min-width: 640px) {
  .faq-item {
    padding-inline: 1.75rem;
  }
}

.faq-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 30%, transparent 70%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.faq-item.is-open {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--gold-400), 0 0 24px rgba(201, 160, 84, 0.25);
}

.faq-item.is-open::after {
  opacity: 1;
}

.faq-item__question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
}

.faq-item__question span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.25s ease;
}

.faq-item.is-open .faq-item__question span {
  color: var(--gold-300);
}

.faq-item__chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold-400);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.25s ease-in-out,
    opacity 0.25s ease-in-out;
}

.faq-item.is-open .faq-item__answer {
  max-height: 20rem;
  opacity: 1;
}

.faq-item__answer p {
  padding-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-200);
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--brand-950);
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .final-cta {
    padding-block: 5rem;
  }
}

.final-cta__glow {
  position: absolute;
  top: -6rem;
  right: -6rem;
  height: 18rem;
  width: 18rem;
  border-radius: 999px;
  background: rgba(184, 134, 61, 0.1);
  filter: blur(80px);
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  text-align: center;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: #fff;
}

@media (min-width: 640px) {
  .final-cta__title {
    font-size: 2.25rem;
  }
}

.final-cta__text {
  margin-top: 1rem;
  color: var(--gold-200);
}

.final-cta__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.final-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-200);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.final-cta__phone:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.final-cta__phone svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--brand-950);
  color: var(--brand-300);
  padding-top: 3rem;
  padding-bottom: 7rem;
}

@media (min-width: 640px) {
  .site-footer {
    padding-top: 6.75rem;
    padding-bottom: 3rem;
  }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

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

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.site-footer__brand-icon {
  height: 6rem;
  width: auto;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .site-footer__brand-icon {
    margin-top: -6.75rem;
  }
}

.site-footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gold-300);
}

.site-footer__desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-100);
}

.site-footer__desc--gold {
  color: var(--gold-200);
}

.site-footer h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.site-footer__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.site-footer__list a,
.site-footer__list button {
  background: none;
  border: none;
  color: var(--gold-200);
  text-align: left;
  padding: 0;
}

.site-footer__list a:hover,
.site-footer__list button:hover {
  color: #fff;
}

.site-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-200);
}

.site-footer__contact-row svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--gold-400);
}

.site-footer__legal {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.site-footer__legal p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--gold-200);
  opacity: 0.7;
}

.site-footer__legal-bottom {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.site-footer__legal-links {
  display: flex;
  gap: 0.5rem;
}

.site-footer__legal-links a {
  color: var(--gold-200);
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__legal-links a:hover {
  color: #fff;
}

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */
.sticky-mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--brand-100);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1rem;
}

@media (min-width: 640px) {
  .sticky-mobile-cta {
    display: none;
  }
}

.sticky-mobile-cta__call {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-900);
}

.sticky-mobile-cta__call svg {
  width: 1rem;
  height: 1rem;
}

.sticky-mobile-cta__offer {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background: var(--gold-500);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-950);
}

.sticky-mobile-cta__offer svg {
  width: 1rem;
  height: 1rem;
}

/* ==========================================================================
   Lead form
   ========================================================================== */
.lead-form {
  position: relative;
  border-radius: 1rem;
  background:
    repeating-linear-gradient(135deg, rgba(184, 134, 61, 0.05) 0px, rgba(184, 134, 61, 0.05) 1px, transparent 1px, transparent 10px),
    var(--gold-100);
  padding: 1.5rem;
  box-shadow: inset 0 0 0 2px var(--gold-400), 0 20px 25px -5px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .lead-form {
    padding: 2rem;
  }
}

.lead-form__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.lead-form__head svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold-500);
}

.lead-form__head h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-950);
}

.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.lead-form__field {
  display: flex;
  flex-direction: column;
}

.lead-form__field--span-2 {
  grid-column: 1 / -1;
}

.lead-form__row3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  grid-column: 1 / -1;
}

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

.lead-form__row3 .lead-form__field:first-child {
  grid-column: span 2;
}

@media (min-width: 640px) {
  .lead-form__row3 .lead-form__field:first-child {
    grid-column: span 1;
  }
}

.form-label {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-800);
}

.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--brand-200);
  background: var(--cream-50);
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--brand-950);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316332a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
}

.form-input::placeholder {
  color: var(--gold-600);
  opacity: 0.75;
}

.form-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(73, 124, 105, 0.2);
}

.form-input.has-error {
  border-color: var(--red-400);
}

.form-input.has-error:focus {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/*
 * Google Places Autocomplete dropdown (assets/js/main.js). Google injects
 * its own stylesheet at runtime, after ours — it can win equal-specificity
 * rules by load order, so the box-model overrides below use !important to
 * guarantee they stick.
 */
.pac-container {
  overflow: hidden;
  z-index: 10000;
  margin-top: 0.25rem;
  border: 1px solid var(--gold-300);
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  background-color: var(--gold-50) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.pac-item {
  padding: 0.625rem 1rem !important;
  font-size: 0.875rem;
  background-color: var(--gold-50) !important;
}

.pac-item:hover,
.pac-item-selected {
  background-color: var(--gold-200) !important;
}

.pac-icon {
  margin-left: 0.125rem !important;
}

.form-error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--red-600);
}

.lead-form__consent {
  margin-top: 0.25rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.form-checkbox input[type='checkbox'] {
  flex-shrink: 0;
  margin-top: 0.1875rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--brand-500);
}

.form-checkbox span {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--brand-500);
}

.form-checkbox span a {
  color: var(--brand-800);
  text-decoration: underline;
}

.lead-form__submit {
  margin-top: 1.5rem;
  width: 100%;
}

.lead-form__submit svg.spin {
  animation: spin 1s linear infinite;
}

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

.lead-form__status-error {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--red-600);
}

.lead-form__disclaimer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--brand-500);
}

.lead-form__disclaimer svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.lead-form__success {
  border-radius: 1rem;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--brand-100), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
}

.lead-form__success svg {
  margin-inline: auto;
  margin-bottom: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--brand-600);
}

.lead-form__success h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-950);
}

.lead-form__success p {
  margin-top: 0.5rem;
  color: var(--brand-700);
}

.lead-form__success button {
  margin-top: 1.5rem;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lead-form__success button:hover {
  color: var(--brand-800);
}

/* ==========================================================================
   Modal (Calendly)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 23, 18, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s var(--ease-apple);
}

.modal-overlay.is-open .modal-backdrop {
  opacity: 1;
}

.modal-panel {
  position: relative;
  display: flex;
  max-height: 90vh;
  width: 100%;
  max-width: 56rem;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.94) translateY(16px);
  transition:
    opacity 0.32s var(--ease-apple),
    transform 0.32s var(--ease-apple);
}

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

.calendly-frame {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  border-radius: 1.5rem;
  background: var(--brand-900);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.calendly-frame__close {
  position: absolute;
  right: -0.75rem;
  top: -0.75rem;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--brand-950);
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.calendly-frame__close:hover {
  background: var(--gold-400);
}

.calendly-frame__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.calendly-frame__body {
  flex: 1;
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
}

.calendly-frame__body iframe {
  width: 100%;
  height: 100%;
  min-height: 37.5rem;
  border: 0;
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   Generic legal/content pages (Privacy Policy, Terms of Service, etc.)
   ========================================================================== */
.legal-page__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-950);
  margin-bottom: 2rem;
}

.legal-page__content {
  color: var(--brand-700);
  line-height: 1.7;
}

.legal-page__content h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--brand-950);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-page__content h2:first-child {
  margin-top: 0;
}

.legal-page__content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-900);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-page__content p {
  margin-bottom: 1.1rem;
}

.legal-page__content ul,
.legal-page__content ol {
  margin: 0 0 1.1rem 1.25rem;
  padding: 0;
  list-style: revert;
}

.legal-page__content li {
  margin-bottom: 0.4rem;
}

.legal-page__content a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__content a:hover {
  color: var(--brand-800);
}

.legal-page__content strong {
  color: var(--brand-900);
}
