/* ============================================
   YOUR HOMETOWN REAL ESTATE - DESIGN SYSTEM
   ============================================ */

/* --- CSS Reset / Base --- */
*, *::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); color: var(--color-text); background: var(--color-bg); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--color-accent-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* --- Design Tokens --- */
:root {
  /* Warm hometown palette - Brand Purple + Warm Gold */
  --color-bg: #FAF5EB;
  --color-bg-alt: #F2EAD8;
  --color-bg-deep: #2A0E40;
  --color-primary: #6B1E9F;          /* Brand purple */
  --color-primary-dark: #4A1470;     /* Deep purple */
  --color-primary-light: #8C42B8;    /* Light purple */
  --color-primary-deeper: #2A0E40;   /* Near-black purple for footer */
  --color-accent: #F4B942;           /* Warm gold (matches logo key) */
  --color-accent-dark: #D89B22;
  --color-accent-light: #FCD475;
  --color-text: #2C2230;
  --color-text-muted: #5C4E66;
  --color-text-light: #8A7F95;
  --color-border: #E0D6E5;
  --color-border-light: #ECE5F0;
  --color-white: #FFFFFF;
  --color-overlay: rgba(42, 14, 64, 0.62);

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

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

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(74, 20, 112, 0.08);
  --shadow-md: 0 8px 24px rgba(74, 20, 112, 0.12);
  --shadow-lg: 0 20px 60px rgba(74, 20, 112, 0.18);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 880px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--color-primary); font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.85rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; }
h4 { font-size: 1.35rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
.hero-content h1, .page-header h1 { text-wrap: balance; max-width: 18ch; }
.hero-content p.lead, .page-header p { text-wrap: pretty; }
p { margin-bottom: 1.1em; color: var(--color-text-muted); }
.eyebrow { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; color: var(--color-accent-dark); margin-bottom: var(--space-sm); display: inline-block; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--color-text-muted); max-width: 720px; }

/* --- Layout Utilities --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-2xl) 0; }
.section-sm { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-deep { background: var(--color-primary); color: var(--color-bg); }
.section-deep h1, .section-deep h2, .section-deep h3, .section-deep h4 { color: var(--color-bg); }
.section-deep p { color: rgba(250, 245, 235, 0.85); }
.section-deep .eyebrow { color: var(--color-accent-light); }
.text-center { text-align: center; }
.divider { width: 60px; height: 2px; background: var(--color-accent); margin: var(--space-md) auto; border: 0; }
.divider-left { width: 60px; height: 2px; background: var(--color-accent); margin: var(--space-md) 0; border: 0; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 1.75rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; border-radius: var(--radius-sm); transition: all var(--transition); cursor: pointer; text-align: center; line-height: 1; }
.btn-primary { background: var(--color-primary); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-primary-dark); color: var(--color-bg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--color-accent); color: var(--color-white); }
.btn-accent:hover { background: var(--color-accent-dark); color: var(--color-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-bg); }
.btn-outline-light { background: transparent; color: var(--color-bg); border: 1.5px solid var(--color-bg); }
.btn-outline-light:hover { background: var(--color-bg); color: var(--color-primary); }
.btn-ghost { color: var(--color-primary); padding: 0.5rem 0; border-bottom: 1.5px solid var(--color-accent); border-radius: 0; }
.btn-ghost:hover { color: var(--color-accent-dark); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn-arrow::after { content: "→"; font-size: 1.1em; transition: transform var(--transition); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
/* License bar (above header) */
.license-bar { background: var(--color-primary-deeper); color: rgba(250, 245, 235, 0.85); font-size: 0.78rem; letter-spacing: 0.05em; }
.license-bar > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.65rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.license-bar strong { color: var(--color-accent-light); font-weight: 600; letter-spacing: 0.04em; margin-left: 0.25rem; }
.license-bar a { color: rgba(250, 245, 235, 0.85); font-weight: 500; }
.license-bar a:hover { color: var(--color-accent-light); }
.license-sep { color: rgba(250, 245, 235, 0.4); }
@media (max-width: 600px) { .license-bar { font-size: 0.72rem; } .license-sep { display: none; } .license-bar > .container { gap: 0.35rem 0.85rem; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 245, 235, 0.96); backdrop-filter: saturate(180%) blur(8px); -webkit-backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--color-border-light); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-logo-footer { height: 64px; width: auto; display: block; margin-bottom: 1.25rem; }
@media (max-width: 600px) { .brand-logo { height: 48px; } }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.75rem; align-items: center; }
.nav-list a { color: var(--color-text); font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0; position: relative; }
.nav-list a:hover, .nav-list a.active { color: var(--color-primary); }
.nav-list a.active::after { content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--color-accent); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone { color: var(--color-primary); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-sm); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-primary); margin: 5px auto; transition: all var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { position: fixed; top: 78px; right: 0; bottom: 0; left: 0; background: var(--color-bg); flex-direction: column; padding: 2rem 1.5rem; gap: 1.5rem; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all var(--transition); align-items: stretch; }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; align-items: stretch; }
  .nav-list a { padding: 1rem 0; border-bottom: 1px solid var(--color-border-light); font-size: 1.1rem; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 0.75rem; padding-top: 1rem; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: block; }
}

/* ============================================
   HERO (Animated Video Background)
   ============================================ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 5rem 0; overflow: hidden; background: var(--color-primary-deeper); }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; width: 100%; height: 100%; }
/* Single hero photo with continuous Ken Burns zoom + subtle pan, looping smoothly */
.hero-bg-single { animation: kenBurnsLoop 24s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(115deg, rgba(42, 14, 64, 0.85) 0%, rgba(74, 20, 112, 0.65) 45%, rgba(107, 30, 159, 0.35) 100%),
  radial-gradient(circle at 20% 80%, rgba(244, 185, 66, 0.18), transparent 55%);
}
.hero-content { position: relative; z-index: 2; color: var(--color-bg); max-width: 760px; }
.hero-content .eyebrow { color: var(--color-accent-light); animation: fadeUp 0.9s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-content h1 { color: var(--color-bg); margin-bottom: 1.25rem; text-shadow: 0 2px 30px rgba(0,0,0,0.4); animation: fadeUp 1s 0.25s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-content h1 em { font-style: italic; color: var(--color-accent-light); font-weight: 400; }
.hero-content p.lead { color: rgba(250, 245, 235, 0.95); font-size: 1.25rem; max-width: 620px; margin-bottom: 2.25rem; text-shadow: 0 1px 20px rgba(0,0,0,0.3); animation: fadeUp 1s 0.45s cubic-bezier(0.4, 0, 0.2, 1) both; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 1s 0.65s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* Animated scroll indicator */
.hero-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(250, 245, 235, 0.7); text-align: center; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; animation: fadeUp 1s 0.85s both, bob 2.4s ease-in-out infinite 1.5s; }
.hero-scroll::before { content: ""; display: block; width: 1px; height: 38px; background: rgba(250, 245, 235, 0.5); margin: 0 auto 0.6rem; }

/* Animated decorative blob (gold glow) */
.hero-glow { position: absolute; z-index: 1; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 185, 66, 0.25), transparent 70%); filter: blur(40px); right: -100px; top: 10%; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }

@keyframes kenBurnsLoop {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.20) translate(-2%, -1%); }
}
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.15); }
}

/* Page-header (sub-page hero) */
.page-header { background: linear-gradient(135deg, var(--color-primary-deeper) 0%, var(--color-primary) 100%); color: var(--color-bg); padding: 7rem 0 5rem; position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(244, 185, 66, 0.20), transparent 60%); }
.page-header > .container { position: relative; z-index: 1; }
.page-header .eyebrow { color: var(--color-accent-light); }
.page-header h1 { color: var(--color-bg); margin-bottom: 1rem; }
.page-header p { color: rgba(250, 245, 235, 0.85); font-size: 1.15rem; max-width: 640px; }
.breadcrumbs { font-size: 0.85rem; color: rgba(250, 245, 235, 0.7); margin-bottom: 1rem; }
.breadcrumbs a { color: rgba(250, 245, 235, 0.7); }
.breadcrumbs a:hover { color: var(--color-accent-light); }

/* ============================================
   GRID & CARDS
   ============================================ */
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 881px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card { background: var(--color-white); border-radius: var(--radius-md); padding: 2rem; border: 1px solid var(--color-border-light); transition: all var(--transition); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border); }
.card-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--color-bg-alt); color: var(--color-accent-dark); display: grid; place-items: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.98rem; }

/* Service feature card (with image header) */
.feature-card { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border-light); transition: all var(--transition); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card-img { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--color-bg-alt); position: relative; }
.feature-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20, 40, 35, 0.25)); }
.feature-card-body { padding: 1.75rem; }
.feature-card-body h3 { margin-bottom: 0.5rem; }

/* Property/listing card */
.listing-card { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border-light); transition: all var(--transition); }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.listing-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: var(--color-bg-alt); position: relative; }
.listing-tag { position: absolute; top: 1rem; left: 1rem; background: var(--color-accent); color: var(--color-white); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: var(--radius-sm); }
.listing-tag-sold { background: var(--color-primary); }
.listing-body { padding: 1.5rem; }
.listing-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-primary); font-weight: 600; margin-bottom: 0.25rem; }
.listing-address { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.listing-meta { display: flex; gap: 1.25rem; font-size: 0.85rem; color: var(--color-text-muted); padding-top: 1rem; border-top: 1px solid var(--color-border-light); }
.listing-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Agent / team card */
.agent-card { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border-light); transition: all var(--transition); text-align: center; }
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.agent-img { aspect-ratio: 1/1; background: var(--color-bg-alt); background-size: cover; background-position: center; position: relative; }
.agent-img-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-size: 4rem; color: var(--color-white); background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); }
.agent-img-fallback::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(244, 185, 66, 0.25), transparent 60%); pointer-events: none; }
.agent-img { position: relative; }
.agent-body { padding: 1.5rem; }
.agent-body h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; color: var(--color-primary); margin-bottom: 0.25rem; }
.agent-role { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-accent-dark); font-weight: 600; margin-bottom: 1rem; }
.agent-contact { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; color: var(--color-text-muted); }
.agent-contact a { color: var(--color-text-muted); }
.agent-contact a:hover { color: var(--color-accent-dark); }

/* Stat block */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 500; color: var(--color-accent); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); font-weight: 600; }

/* Testimonial card */
.testimonial { background: var(--color-white); border-radius: var(--radius-md); padding: 2.5rem 2rem; border: 1px solid var(--color-border-light); position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: 0.5rem; left: 1.25rem; font-family: var(--font-display); font-size: 5rem; color: var(--color-accent); opacity: 0.25; line-height: 1; }
.testimonial-text { font-size: 1.05rem; line-height: 1.7; color: var(--color-text); margin-bottom: 1.5rem; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border-light); }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg-alt); color: var(--color-accent-dark); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; flex-shrink: 0; }
.testimonial-name { font-weight: 600; color: var(--color-primary); font-size: 0.95rem; }
.testimonial-meta { font-size: 0.8rem; color: var(--color-text-light); }
.stars { color: var(--color-accent); letter-spacing: 0.1em; font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ============================================
   SPLIT SECTIONS (image + text)
   ============================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.split-img { aspect-ratio: 4/5; border-radius: var(--radius-md); background-size: cover; background-position: center; background-color: var(--color-bg-alt); box-shadow: var(--shadow-md); }
.split-img-wide { aspect-ratio: 5/4; }
.split-flip .split-img { order: 2; }
@media (max-width: 880px) { .split-flip .split-img { order: 0; } }

/* Pillar list */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 2rem; border: 1px solid var(--color-border-light); background: var(--color-white); border-radius: var(--radius-md); }
.pillar-num { font-family: var(--font-display); font-size: 2.5rem; color: var(--color-accent); font-weight: 400; line-height: 1; margin-bottom: 0.75rem; }

/* CTA Banner */
.cta-banner { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: var(--color-bg); padding: var(--space-2xl) 0; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; right: -150px; top: -50px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 185, 66, 0.22), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.cta-banner::after { content: ""; position: absolute; left: -100px; bottom: -100px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 66, 184, 0.30), transparent 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.cta-banner > .container { position: relative; z-index: 1; text-align: center; }
.cta-banner h2 { color: var(--color-bg); }
.cta-banner p { color: rgba(250, 245, 235, 0.85); font-size: 1.15rem; margin: 0 auto 2rem; max-width: 600px; }

/* ============================================
   FORMS
   ============================================ */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); letter-spacing: 0.02em; }
.form-field input, .form-field select, .form-field textarea { padding: 0.85rem 1rem; font-family: inherit; font-size: 1rem; color: var(--color-text); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: all var(--transition); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(181, 135, 75, 0.15); }
.form-field textarea { resize: vertical; min-height: 140px; }

/* ============================================
   ARTICLE / BLOG STYLES
   ============================================ */
.article-card { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border-light); transition: all var(--transition); display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.article-card h3 { transition: color var(--transition); }
.article-card:hover h3 { color: var(--color-accent-dark); }
.article-img { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--color-bg-alt); }
.article-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-accent-dark); font-weight: 600; margin-bottom: 0.5rem; }
.article-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; line-height: 1.3; }
.article-meta { font-size: 0.85rem; color: var(--color-text-light); margin-top: auto; padding-top: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--color-primary-deeper); color: rgba(250, 245, 235, 0.75); padding: var(--space-2xl) 0 2rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: -200px; right: -150px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 66, 184, 0.18), transparent 70%); pointer-events: none; }
.site-footer > .container { position: relative; z-index: 1; }
.site-footer h5 { color: var(--color-bg); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(250, 245, 235, 0.7); display: block; padding: 0.3rem 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--color-accent-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand .brand-name { color: var(--color-bg); }
.footer-brand p { color: rgba(250, 245, 235, 0.65); font-size: 0.92rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(250, 245, 235, 0.08); display: grid; place-items: center; padding: 0; transition: all var(--transition); }
.footer-social a:hover { background: var(--color-accent); color: var(--color-white); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(250, 245, 235, 0.1); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.footer-licenses { color: rgba(250, 245, 235, 0.55); font-size: 0.8rem; }

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* ============================================
   MISC
   ============================================ */
.iconify { width: 24px; height: 24px; flex-shrink: 0; }
.muted { color: var(--color-text-light); }
.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Two-col content section */
.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* Process step list */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
.step { background: var(--color-white); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); padding: 1.75rem 1.75rem 1.75rem 5.5rem; position: relative; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 1.5rem; top: 1.5rem; font-family: var(--font-display); font-size: 2rem; color: var(--color-accent); font-weight: 400; line-height: 1; }
.step h4 { margin-bottom: 0.4rem; }
.step p { margin-bottom: 0; font-size: 0.95rem; }

/* Area card (for Areas We Serve page) */
.area-card { background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border-light); transition: all var(--transition); }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.area-img { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--color-bg-alt); }
.area-body { padding: 1.5rem; }
.area-body h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.area-body p { font-size: 0.95rem; margin-bottom: 1rem; }
.area-stats { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--color-border-light); font-size: 0.85rem; color: var(--color-text-muted); }

/* Logo strip / community */
.logo-strip { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; justify-content: center; opacity: 0.85; }
.logo-strip span { font-family: var(--font-display); font-size: 1.05rem; color: var(--color-text-muted); font-style: italic; }

/* Anchor offset for sticky nav */
[id] { scroll-margin-top: 100px; }

/* ============================================
   ARTICLE CONTENT (long-form prose)
   ============================================ */
.article-content { font-size: 1.08rem; line-height: 1.75; color: var(--color-text); }
.article-content p { margin-bottom: 1.4em; color: var(--color-text); }
.article-content p.lead { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 2em; font-weight: 400; max-width: 100%; }
.article-content h2 { margin-top: 2.5em; margin-bottom: 0.8em; font-size: 1.7rem; }
.article-content h3 { margin-top: 2em; margin-bottom: 0.6em; font-size: 1.3rem; }
.article-content h2:first-child, .article-content h3:first-child { margin-top: 0; }
.article-content strong { color: var(--color-primary); font-weight: 600; }
.article-content ul, .article-content ol { margin: 0 0 1.5em 1.5em; }
.article-content li { margin-bottom: 0.5em; }
.article-content a { color: var(--color-accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content a:hover { color: var(--color-primary); }

/* Key takeaways callout (top of article) */
.takeaways { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 1.75rem 2rem; margin: 0 0 2.5rem; border: 1px solid var(--color-border-light); }
.takeaways h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-accent-dark); font-weight: 700; margin: 0 0 0.85rem; font-family: var(--font-body); }
.takeaways ul { margin: 0; padding-left: 1.25rem; list-style: disc; }
.takeaways li { margin-bottom: 0.5rem; color: var(--color-text); font-size: 1rem; }
.takeaways li:last-child { margin-bottom: 0; }

/* Comparison tables */
.article-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.95rem; background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-content thead { background: var(--color-primary); color: var(--color-bg); }
.article-content th { padding: 0.85rem 1rem; text-align: left; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.article-content td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--color-border-light); color: var(--color-text); }
.article-content tr:last-child td { border-bottom: none; }
.article-content tr:nth-child(even) td { background: rgba(220, 213, 198, 0.15); }

/* FAQ accordion */
.faq { margin-top: 3rem; }
.faq h2 { font-size: 1.85rem; }
.faq-item { background: var(--color-white); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); padding: 1.5rem 1.75rem; margin-bottom: 1rem; }
.faq-item h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-primary); margin-bottom: 0.6rem; line-height: 1.3; }
.faq-item p { font-size: 0.98rem; line-height: 1.7; margin-bottom: 0; color: var(--color-text); }
.faq-item p + p { margin-top: 0.85rem; }

/* Article meta strip (date + read time + share) */
.article-meta-strip { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; padding-bottom: 1.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--color-border-light); font-size: 0.88rem; color: var(--color-text-light); }
.article-meta-strip strong { color: var(--color-text); font-weight: 600; }

/* Related articles block (bottom of article) */
.related-articles { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--color-border-light); }
.related-articles h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.related-articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 720px) { .related-articles-grid { grid-template-columns: 1fr; } }
.related-link { display: block; padding: 1.1rem 1.25rem; background: var(--color-bg-alt); border-radius: var(--radius-md); border: 1px solid var(--color-border-light); transition: all var(--transition); text-decoration: none; }
.related-link:hover { transform: translateX(2px); box-shadow: var(--shadow-sm); }
.related-link-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent-dark); font-weight: 600; }
.related-link-title { font-family: var(--font-display); font-size: 1.05rem; color: var(--color-primary); margin-top: 0.25rem; line-height: 1.3; }
