/* Nicole Lloyd Realtor — Brand Stylesheet
   Palette: Dark Mahogany Brown + Brownish Gold + Warm Cream
   Typography: Playfair Display (headings) + Inter (body)
   Mobile-first, CSS variables throughout
*/

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

:root {
  /* Brand Colors */
  --color-mahogany: #3D1C0E;
  --color-mahogany-dark: #2A1208;
  --color-mahogany-mid: #5C2C18;
  --color-gold: #B8892A;
  --color-gold-light: #D4A84B;
  --color-gold-pale: #F0D898;
  --color-cream: #FAF6EF;
  --color-cream-dark: #F0E8D8;
  --color-white: #FFFFFF;
  --color-text: #1A0D06;
  --color-text-muted: #6B4C38;
  --color-text-light: #9E7A5E;
  --color-border: #DDD0BB;
  --color-overlay: rgba(42, 18, 8, 0.72);

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

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(61,28,14,0.12);
  --shadow-md: 0 4px 16px rgba(61,28,14,0.14);
  --shadow-lg: 0 8px 32px rgba(61,28,14,0.18);
  --shadow-gold: 0 4px 20px rgba(184,137,42,0.25);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-mahogany);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--color-text-muted); line-height: 1.75; }
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

section { padding: var(--space-xl) 0; }
section.tight { padding: var(--space-lg) 0; }
section.flush { padding: 0; }

/* ─── Header / Nav ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-mahogany);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.logo-mark {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}
.logo-mark .name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}
.logo-mark .title {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}
.nav-primary {
  display: none;
  gap: 0;
}
@media (min-width: 900px) {
  .nav-primary { display: flex; align-items: center; gap: 0.25rem; }
}
.nav-primary a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-primary a:hover, .nav-primary a.active {
  color: var(--color-gold-light);
  background: rgba(255,255,255,0.06);
}
.header-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) { .header-cta { display: flex; } }
.header-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.02em;
}
.btn-header {
  padding: 0.5rem 1.1rem;
  background: var(--color-gold);
  color: var(--color-mahogany-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-header:hover {
  background: var(--color-gold-light);
  transform: translateY(-1px);
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  background: none;
  border: none;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  background: var(--color-mahogany-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: var(--color-gold-light); background: rgba(255,255,255,0.04); }
.mobile-nav .phone-link {
  display: block;
  padding: 1rem 1.5rem 0;
  color: var(--color-gold-light);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  min-height: 48px;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-mahogany-dark);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(184,137,42,0.38);
}
.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
}
.btn-outline {
  background: transparent;
  color: var(--color-mahogany);
  border: 2px solid var(--color-mahogany);
}
.btn-outline:hover {
  background: var(--color-mahogany);
  color: var(--color-white);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-mahogany-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/placeholder-hero.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.45;
}
/* PLACEHOLDER: replace assets/placeholder-hero.jpg with South Florida aerial/waterfront photography */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(42,18,8,0.88) 0%,
    rgba(61,28,14,0.6) 50%,
    rgba(42,18,8,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) 0 var(--space-lg);
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-gold);
}
.hero h1 {
  color: var(--color-white);
  max-width: 700px;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero h1 em {
  font-style: italic;
  color: var(--color-gold-light);
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: var(--space-xl);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(184,137,42,0.15);
  border: 1px solid rgba(184,137,42,0.35);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.04em;
}
.hero-badge .star { color: var(--color-gold); font-size: 0.9em; }

/* ─── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--color-mahogany);
  border-top: 3px solid var(--color-gold);
  padding: var(--space-md) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--color-mahogany);
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ─── Section Headings ───────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}
.section-header .label { margin-bottom: 0.5rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }

/* ─── Service Cards ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--transition-slow);
  transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.92rem; color: var(--color-text-muted); margin: 0; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.04em;
}
.service-card .card-link:hover { color: var(--color-mahogany); }

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials-section { background: var(--color-cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold-pale);
  pointer-events: none;
}
.stars {
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.15em;
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1.25rem;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 0.85rem;
}
.testimonial-meta .reviewer {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-mahogany);
}
.testimonial-meta .platform {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.review-cta {
  text-align: center;
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.review-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.review-link:hover { color: var(--color-mahogany); }

/* ─── IDX Search Box ─────────────────────────────────────── */
.idx-section { background: var(--color-cream-dark); }
.idx-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.idx-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.idx-tab {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition);
  background: none;
}
.idx-tab.active {
  color: var(--color-mahogany);
  border-bottom-color: var(--color-gold);
}
.idx-tab:hover { color: var(--color-mahogany); }
.idx-search-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.idx-input-wrap { flex: 1 1 220px; position: relative; }
.idx-input-wrap input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: border-color var(--transition);
}
.idx-input-wrap input:focus { border-color: var(--color-gold); background: var(--color-white); }
.idx-input-wrap input::placeholder { color: var(--color-text-light); }
.idx-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 1rem;
  pointer-events: none;
}
.idx-select-wrap { flex: 0 1 160px; }
.idx-select-wrap select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B4C38' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}
.idx-select-wrap select:focus { border-color: var(--color-gold); }
.idx-cta-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
}
.idx-cta-note a { color: var(--color-gold); font-weight: 600; }

/* ─── Contact / Lead Forms ───────────────────────────────── */
.form-section { background: var(--color-mahogany); }
.form-section .section-header h2,
.form-section .section-header .label { color: var(--color-white); }
.form-section .section-header p { color: rgba(255,255,255,0.7); }
.lead-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 480px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-mahogany);
}
.form-input, .form-select, .form-textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-gold);
  background: var(--color-white);
  outline: none;
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B4C38' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  background-color: var(--color-cream);
}
.form-submit { width: 100%; margin-top: 1.25rem; }
.form-success {
  display: none;
  text-align: center;
  padding: 1.25rem;
  background: #f0faf4;
  border: 1px solid #a3d9b8;
  border-radius: var(--radius-md);
  color: #1a6b3a;
  font-weight: 600;
  margin-top: 1rem;
}
.form-error {
  display: none;
  text-align: center;
  padding: 0.85rem;
  background: #fff0f0;
  border: 1px solid #f5aaaa;
  border-radius: var(--radius-md);
  color: #b52020;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}
.form-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* ─── About / Bio Split ──────────────────────────────────── */
.bio-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 860px) {
  .bio-split { grid-template-columns: 1fr 1.3fr; }
}
.bio-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.bio-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.bio-photo-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: var(--color-mahogany);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: center;
}
.bio-photo-badge .badge-title {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.2rem;
}
.bio-photo-badge .badge-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}
.bio-text .label { margin-bottom: 0.5rem; }
.bio-text h2 { margin-bottom: 1rem; }
.bio-text p { color: var(--color-text-muted); margin-bottom: 1rem; }
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.credential-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--color-gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-top: 0.05em;
}
.credential-text strong { color: var(--color-mahogany); font-weight: 600; }
.credential-text span { color: var(--color-text-muted); font-size: 0.88em; }

/* ─── Neighborhoods Grid ─────────────────────────────────── */
.areas-section { background: var(--color-cream); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 600px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .areas-grid { grid-template-columns: repeat(6, 1fr); } }
.area-pill {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.area-pill:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-pale);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.area-pill .area-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-mahogany);
  display: block;
}
.area-pill .area-county {
  font-size: 0.7rem;
  color: var(--color-text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ─── Case Study (Commercial) ────────────────────────────── */
.case-study {
  background: linear-gradient(135deg, var(--color-mahogany-dark) 0%, var(--color-mahogany-mid) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.case-study::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,137,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.case-study-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-gold);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mahogany-dark);
  margin-bottom: 1rem;
}
.case-study h3 {
  color: var(--color-white);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.case-study .case-subtitle {
  color: var(--color-gold-light);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.case-study p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.case-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}
.case-outcome {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(184,137,42,0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.case-outcome-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.case-outcome-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.25rem;
}
.case-outcome-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
}

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--color-gold);
  padding: var(--space-lg) 0;
}
.cta-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
@media (min-width: 768px) {
  .cta-banner-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.cta-banner h3 {
  color: var(--color-mahogany-dark);
  margin-bottom: 0.25rem;
}
.cta-banner p { color: rgba(42,18,8,0.75); font-size: 0.95rem; margin: 0; }
.btn-dark {
  background: var(--color-mahogany);
  color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-dark:hover {
  background: var(--color-mahogany-dark);
  transform: translateY(-2px);
}

/* ─── Interior Pages Header ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--color-mahogany) 0%, var(--color-mahogany-mid) 100%);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom right, transparent 49%, var(--color-white) 50%);
}
.page-hero .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 540px; }

/* ─── Feature List (Buy/Sell pages) ──────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-bullet {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-gold-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 0.1em;
}
.feature-text h4 { color: var(--color-mahogany); margin-bottom: 0.2rem; }
.feature-text p { font-size: 0.88rem; color: var(--color-text-muted); margin: 0; }

/* ─── Two-col content layout ─────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}
@media (min-width: 860px) { .split-section { grid-template-columns: 1fr 1fr; } }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--color-mahogany-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 2px solid var(--color-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.footer-brand .tagline {
  font-size: 0.8rem;
  color: var(--color-gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-contact {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-contact a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--color-gold-light); }
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--color-white); }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-mahogany-dark);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.footer-license { font-size: 0.72rem; color: rgba(255,255,255,0.35); }

/* ─── Utility ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.bg-cream { background: var(--color-cream); }
.bg-mahogany { background: var(--color-mahogany); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.divider {
  height: 2px;
  background: linear-gradient(to right, var(--color-gold), transparent);
  margin: var(--space-lg) 0;
  max-width: 180px;
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up-delay-1 { animation-delay: 0.12s; }
.fade-up-delay-2 { animation-delay: 0.24s; }
.fade-up-delay-3 { animation-delay: 0.36s; }
.fade-up-delay-4 { animation-delay: 0.48s; }

/* ─── Responsive helpers ─────────────────────────────────── */
@media (max-width: 599px) { .hide-mobile { display: none !important; } }
@media (min-width: 600px) { .hide-desktop { display: none !important; } }
