/* ==========================================================================
   RED DOOR REAL ESTATE — MODERNIZED STYLE
   Editorial / refined residential aesthetic
   ========================================================================== */

:root {
  --cream:        #FAF6EF;
  --cream-deep:   #F2EBDD;
  --paper:        #FFFFFF;
  --ink:          #1A1410;
  --ink-soft:     #3D342B;
  --ink-faint:    #7A6F62;
  --rule:         #E3DACA;

  --red:          #A8201A;
  --red-dark:     #7E1612;
  --red-glow:     #C4302B;
  --brass:        #B68C4F;
  --brass-soft:   #D4B488;
  --sage:         #6B7563;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 8px rgba(26, 20, 16, 0.06);
  --shadow:    0 12px 36px rgba(26, 20, 16, 0.08);
  --shadow-lg: 0 24px 64px rgba(26, 20, 16, 0.14);

  --container:  1240px;
  --container-narrow: 920px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-variation-settings: 'SOFT' 30, 'opsz' 144;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--red);
}

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow { max-width: var(--container-narrow); }
section { padding: 100px 0; position: relative; }
section.compact { padding: 60px 0; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
  background: rgba(250, 246, 239, 0.96);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 50px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: var(--red); }
/* Selector must out-specify `.nav-links a` (0,1,1) above, which would
   otherwise win and force padding:4px 0 — collapsing the pill onto the text
   so the rounded ends clip the first and last characters. */
.nav-cta,
.nav-links a.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px;
  flex-shrink: 0;
  background: var(--red);
  color: white !important;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .25s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 24px 28px 32px;
    border-bottom: 1px solid var(--rule);
    gap: 18px; align-items: flex-start;
    box-shadow: var(--shadow);
  }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .25s ease; text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--red); color: white; }
.btn--primary:hover { background: var(--red-dark); color: white; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168, 32, 26, 0.28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light:hover { background: white; color: var(--red); }
.btn--arrow::after { content: '→'; transition: transform .25s ease; font-weight: 400; }
.btn:hover .btn--arrow::after, .btn--arrow:hover::after { transform: translateX(4px); }

/* HERO */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy h1 .accent { font-style: italic; color: var(--red); font-weight: 400; }
.hero-lede { font-size: 1.15rem; line-height: 1.6; color: var(--ink-soft); max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 60px; display: flex; gap: 48px; flex-wrap: wrap; }
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--ink); line-height: 1; }
.hero-meta-label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

.hero-visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-deep); }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.02); }
.hero-badge {
  position: absolute; bottom: 28px; left: 28px;
  background: var(--cream); border-radius: var(--radius);
  padding: 18px 22px; display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow); max-width: 280px;
}
.hero-badge-icon { width: 38px; height: 38px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-badge-icon svg { width: 18px; height: 18px; fill: white; }
.hero-badge-text { font-size: 0.85rem; line-height: 1.4; color: var(--ink); }
.hero-badge-text strong { color: var(--red); display: block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }

.hero::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(168, 32, 26, 0.06) 0%, transparent 70%);
  border-radius: 50%; z-index: -1;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero { padding: 50px 0 80px; }
}

/* VALUES */
.values { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.values-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card { padding: 32px 28px; background: var(--cream); border-radius: var(--radius-lg); transition: transform .35s ease, box-shadow .35s ease; position: relative; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-icon { width: 48px; height: 48px; background: var(--red); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: white; }
.value-icon svg { width: 22px; height: 22px; fill: currentColor; }
.value-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.value-card p { font-size: 0.95rem; color: var(--ink-faint); margin: 0; line-height: 1.55; }
@media (max-width: 980px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* COVERAGE */
.coverage { background: var(--cream); }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.coverage-card { position: relative; aspect-ratio: 5 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .4s ease; }
.coverage-card:hover { transform: translateY(-4px); }
.coverage-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.coverage-card:hover img { transform: scale(1.05); }
.coverage-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26, 20, 16, 0.85) 0%, rgba(26, 20, 16, 0.1) 50%, transparent 100%); }
.coverage-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 36px; color: white; z-index: 2; }
.coverage-card-content .state-tag { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; margin-bottom: 8px; }
.coverage-card-content h3 { color: white; font-size: 2rem; margin: 0 0 8px; }
.coverage-card-content p { margin: 0 0 16px; opacity: 0.92; font-size: 0.95rem; }
.coverage-card-link { display: inline-flex; align-items: center; gap: 6px; color: white; font-weight: 600; font-size: 0.9rem; }
@media (max-width: 760px) { .coverage-grid { grid-template-columns: 1fr; } }

/* AGENTS STRIP */
.agents-strip { background: var(--ink); color: var(--cream); padding: 110px 0; }
.agents-strip h2 { color: var(--cream); }
.agents-strip .eyebrow { color: var(--brass-soft); }
.agents-strip .eyebrow::before { background: var(--brass-soft); }
.agents-strip-header { display: flex; justify-content: space-between; align-items: end; margin-bottom: 56px; gap: 40px; flex-wrap: wrap; }
.agents-strip-header p { color: rgba(250, 246, 239, 0.72); max-width: 540px; }
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.agent-card { background: rgba(250, 246, 239, 0.03); border: 1px solid rgba(250, 246, 239, 0.08); border-radius: var(--radius-lg); padding: 0; overflow: hidden; transition: all .4s ease; }
.agent-card:hover { background: rgba(250, 246, 239, 0.06); border-color: var(--brass); transform: translateY(-4px); }
.agent-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-soft); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.agent-card:hover .agent-photo img { transform: scale(1.04); }
.agent-info { padding: 24px 26px 28px; }
.agent-info h3 { color: var(--cream); margin: 0 0 4px; font-size: 1.45rem; }
.agent-role { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 14px; }
.agent-tagline { font-family: var(--font-display); font-style: italic; color: rgba(250, 246, 239, 0.85); font-size: 1.05rem; margin: 0 0 18px; }
.agent-contact { display: flex; gap: 16px; font-size: 0.85rem; color: rgba(250, 246, 239, 0.7); padding-top: 16px; border-top: 1px solid rgba(250, 246, 239, 0.1); }
.agent-contact a { color: var(--brass-soft); }
.agent-contact a:hover { color: var(--cream); }
@media (max-width: 900px) { .agents-grid { grid-template-columns: 1fr; } }

/* TESTIMONIALS */
.testimonials { background: var(--cream); position: relative; overflow: hidden; }
.testimonials::before {
  content: '"'; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 28rem; line-height: 1;
  color: var(--red); opacity: 0.05; pointer-events: none; font-weight: 400;
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.testimonial-card { background: var(--paper); padding: 40px 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; }
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.55; color: var(--ink); font-style: italic; flex: 1; margin-bottom: 28px; }
.testimonial-author { display: flex; flex-direction: column; padding-top: 20px; border-top: 1px solid var(--rule); }
.testimonial-name { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.testimonial-context { font-size: 0.82rem; color: var(--ink-faint); margin-top: 2px; }
.stars { color: var(--brass); font-size: 0.9rem; letter-spacing: 0.15em; margin-bottom: 18px; }
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta-strip { background: var(--red); color: white; text-align: center; position: relative; overflow: hidden; }
.cta-strip::before, .cta-strip::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.cta-strip::before { top: -100px; left: -80px; }
.cta-strip::after { bottom: -120px; right: -80px; }
.cta-strip h2 { color: white; margin-bottom: 18px; }
.cta-strip p { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; max-width: 580px; margin: 0 auto 36px; position: relative; }
.cta-strip-actions { position: relative; display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* FOOTER */
.site-footer { background: var(--ink); color: rgba(250, 246, 239, 0.75); padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-tag { color: var(--brass-soft); }
.footer-brand p { margin: 18px 0; max-width: 320px; font-size: 0.95rem; line-height: 1.6; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-soft); margin: 0 0 20px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: rgba(250, 246, 239, 0.75); font-size: 0.92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { padding-top: 32px; border-top: 1px solid rgba(250, 246, 239, 0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: rgba(250, 246, 239, 0.5); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(250, 246, 239, 0.06); border-radius: 50%; transition: all .25s ease; }
.footer-social a:hover { background: var(--red); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; color: var(--cream); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* PAGE HEADER */
.page-header { padding: 80px 0 60px; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(168, 32, 26, 0.06) 0%, transparent 70%); border-radius: 50%; z-index: -1; }
.page-header h1 { margin-bottom: 18px; }
.page-header .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 680px; margin: 0; }

/* AGENTS FULL */
.agents-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
.agent-full-card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all .35s ease; display: flex; flex-direction: column; }
.agent-full-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.agent-full-photo { aspect-ratio: 4 / 5; background: var(--cream-deep); overflow: hidden; }
.agent-full-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.agent-full-card:hover .agent-full-photo img { transform: scale(1.04); }
.agent-full-body { padding: 28px 30px 32px; flex: 1; display: flex; flex-direction: column; }
.agent-full-body h3 { font-size: 1.55rem; margin-bottom: 4px; }
.agent-full-role { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; font-weight: 700; }
.agent-full-bio { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.65; margin-bottom: 20px; flex: 1; }
.agent-specialties { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.specialty-pill { background: var(--cream); color: var(--ink-soft); font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); }
.agent-full-contact { padding-top: 18px; border-top: 1px solid var(--rule); font-size: 0.92rem; }
.agent-full-contact a { font-weight: 600; }
.agent-full-contact .phone-label, .agent-full-contact .email-label { color: var(--ink-faint); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; display: block; margin-bottom: 2px; }
.agent-full-contact > div { margin-bottom: 10px; }
.agent-full-contact > div:last-child { margin-bottom: 0; }
@media (max-width: 980px) { .agents-full-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .agents-full-grid { grid-template-columns: 1fr; } }

/* FORMS */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--rule);
  background: var(--paper); color: var(--ink); transition: all .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(168, 32, 26, 0.12);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-success { background: #ECF4ED; color: #2B5732; padding: 18px 22px; border-radius: var(--radius); border-left: 4px solid #4A8B5A; margin-top: 16px; display: none; }
.form-success.show { display: block; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* CONTENT PAGES */
.content-section { padding: 80px 0; }
.content-section .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.content-section .two-col.reverse { direction: rtl; }
.content-section .two-col.reverse > * { direction: ltr; }
.content-section h2 { margin-bottom: 22px; }
.content-section p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); }
.content-img { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.content-img img { width: 100%; height: 100%; object-fit: cover; }

.fact-list { list-style: none; padding: 0; margin: 24px 0; }
.fact-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 18px; align-items: flex-start; font-size: 1rem; }
.fact-list li:last-child { border-bottom: none; }
.fact-list li::before { content: ''; width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin-top: 9px; flex-shrink: 0; }

@media (max-width: 800px) { .content-section .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* REFERRAL PAGE */
.refer-hero { background: linear-gradient(135deg, var(--ink) 0%, #2A201A 100%); color: var(--cream); padding: 100px 0 80px; position: relative; overflow: hidden; }
.refer-hero::before { content: ''; position: absolute; top: -160px; right: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(168, 32, 26, 0.4) 0%, transparent 70%); }
.refer-hero::after { content: ''; position: absolute; bottom: -120px; left: -100px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(182, 140, 79, 0.18) 0%, transparent 70%); }
.refer-hero-inner { position: relative; max-width: 860px; }
.refer-hero .eyebrow { color: var(--brass-soft); }
.refer-hero .eyebrow::before { background: var(--brass-soft); }
.refer-hero h1 { color: var(--cream); font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 28px; }
.refer-hero h1 .accent { color: var(--red-glow); font-style: italic; font-weight: 400; }
.refer-hero-lede { font-size: 1.2rem; color: rgba(250, 246, 239, 0.82); max-width: 640px; margin-bottom: 36px; line-height: 1.6; }
.refer-stats { display: flex; gap: 60px; margin-top: 56px; flex-wrap: wrap; }
.refer-stat { position: relative; }
.refer-stat-num { font-family: var(--font-display); font-size: 3.2rem; font-weight: 400; color: var(--red-glow); line-height: 1; letter-spacing: -0.02em; }
.refer-stat-label { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250, 246, 239, 0.7); margin-top: 10px; }

.refer-offer { background: var(--paper); padding: 100px 0; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.offer-card { padding: 36px 32px; border-radius: var(--radius-lg); background: var(--cream); position: relative; border: 2px solid transparent; transition: all .3s ease; }
.offer-card:hover { border-color: var(--red); transform: translateY(-4px); }
.offer-num { font-family: var(--font-display); font-size: 4rem; font-weight: 400; color: var(--red); line-height: 1; font-style: italic; }
.offer-card h3 { margin: 16px 0 10px; font-size: 1.4rem; }
.offer-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; line-height: 1.6; }
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } }

.refer-why { background: var(--cream); padding: 100px 0; }
.refer-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.refer-why-list { margin-top: 24px; }
.refer-why-list .fact-list li { padding: 18px 0; }

.refer-form-section { background: var(--ink); color: var(--cream); padding: 100px 0; }
.refer-form-section h2 { color: var(--cream); }
.refer-form-section .lede { color: rgba(250, 246, 239, 0.78); margin-bottom: 40px; max-width: 680px; }
.refer-form-section .eyebrow { color: var(--brass-soft); }
.refer-form-section .eyebrow::before { background: var(--brass-soft); }
.refer-form-wrap { background: rgba(250, 246, 239, 0.04); border: 1px solid rgba(250, 246, 239, 0.1); padding: 50px; border-radius: var(--radius-lg); backdrop-filter: blur(10px); }
.refer-form-section .form-field label { color: var(--brass-soft); }
.refer-form-section .form-field input, .refer-form-section .form-field select, .refer-form-section .form-field textarea {
  background: rgba(250, 246, 239, 0.06); border-color: rgba(250, 246, 239, 0.15); color: var(--cream);
}
.refer-form-section .form-field input:focus, .refer-form-section .form-field select:focus, .refer-form-section .form-field textarea:focus {
  background: rgba(250, 246, 239, 0.1); border-color: var(--brass); box-shadow: 0 0 0 3px rgba(182, 140, 79, 0.2);
}
.refer-form-section .form-field input::placeholder, .refer-form-section .form-field textarea::placeholder { color: rgba(250, 246, 239, 0.35); }
.refer-form-section .form-field select option { background: var(--ink); color: var(--cream); }

.refer-process { background: var(--paper); padding: 100px 0; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 56px; position: relative; }
.process-step { position: relative; padding: 0 12px; }
.process-step-num { width: 50px; height: 50px; background: var(--red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: 22px; position: relative; z-index: 2; }
.process-step h4 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 10px; color: var(--ink); font-weight: 500; }
.process-step p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .process-steps { grid-template-columns: 1fr; } }

.refer-faq { background: var(--cream); padding: 100px 0; }
.faq-list { max-width: 820px; margin: 40px auto 0; }
.faq-item { border-bottom: 1px solid var(--rule); padding: 24px 0; }
.faq-q { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: '+'; font-family: var(--font-body); font-size: 1.6rem; color: var(--red); transition: transform .3s ease; flex-shrink: 0; font-weight: 300; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; color: var(--ink-soft); line-height: 1.7; font-size: 1rem; padding-right: 40px; }
.faq-item.open .faq-a { display: block; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { animation: fadeUp .8s ease-out backwards; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease-out, transform .9s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* UTILS */
.center { text-align: center; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.flex-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hidden { display: none; }

.value-form-card { background: var(--paper); padding: 50px; border-radius: var(--radius-lg); box-shadow: var(--shadow); max-width: 620px; margin: 0 auto; }
@media (max-width: 600px) { .value-form-card { padding: 30px; } }

.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.contact-info-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-info-icon { width: 42px; height: 42px; background: var(--cream-deep); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.contact-info-icon svg { width: 18px; height: 18px; fill: currentColor; }
.contact-info-label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; font-weight: 600; }
.contact-info-value { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   HOMEPAGE REFERRAL BANNER
   ========================================================================== */
.refer-banner {
  display: block;
  background: var(--red);
  color: var(--cream);
  text-decoration: none;
  transition: background .25s ease;
}
.refer-banner:hover { background: var(--red-dark); }
.refer-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.refer-banner-tag {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass-soft);
  white-space: nowrap;
}
.refer-banner-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(250, 246, 239, 0.92);
}
.refer-banner-text strong { color: var(--cream); font-weight: 700; }
.refer-banner-cta {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--cream);
  border-bottom: 1px solid rgba(250, 246, 239, 0.45);
  padding-bottom: 1px;
  transition: border-color .25s ease;
}
.refer-banner:hover .refer-banner-cta { border-bottom-color: var(--cream); }
@media (max-width: 760px) {
  .refer-banner-inner { padding: 12px 20px; gap: 8px; flex-direction: column; }
  .refer-banner-text { font-size: 0.88rem; }
}

/* Two-up variant of the offer grid (used by "Who sends us referrals") */
.offer-grid--two { grid-template-columns: repeat(2, 1fr); }
.offer-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 10px;
}
@media (max-width: 900px) { .offer-grid--two { grid-template-columns: 1fr; } }
