/* ============================================================
   CASARADO ESTATES — main.css
   All color comes from tokens.css. No hex values here.
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  /* brand-primary #044A9E — 8.47:1 on white, passes AA */
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p + p { margin-top: var(--space-4); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-action);
  color: #fff;
  border-color: var(--color-action);
}
.btn-primary:hover {
  background: var(--color-action-hover);
  border-color: var(--color-action-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-action);
  border-color: var(--color-action);
}
.btn-secondary:hover {
  background: var(--color-action);
  color: #fff;
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .site-header .container { height: 72px; }
  .site-logo img { height: 44px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.site-nav a {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.18s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-action);
  text-decoration: none;
}

/* Buttons in the nav (e.g. "Get in touch") must not inherit nav-link styling */
.site-nav a.btn {
  text-transform: none;
  letter-spacing: 0;
}
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover,
.site-nav a.btn-primary:focus,
.site-nav a.btn-primary[aria-current="page"] {
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6);
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
}

/* ---- Flash messages ---- */
.flash-messages { padding: var(--space-4) 0; }

.flash {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.flash-success {
  background: #dff0ff;
  color: var(--brand-primary-700);
  border: 1px solid var(--brand-accent);
}
.flash-error {
  background: #fff0f0;
  color: #9b2335;
  border: 1px solid #f0b8be;
}

/* ---- Page hero (home) ---- */
.hero {
  /* Lighter navy overlay so the Colorado mountain photo carries through.
     Text remains AA-legible thanks to the gradient + text-shadow on .hero-* elements. */
  background:
    linear-gradient(135deg,
      rgba(4, 30, 74, .58) 0%,
      rgba(6, 64, 142, .42) 50%,
      rgba(2, 30, 74, .68) 100%
    ),
    url("../img/hero-colorado.jpg") center 55% / cover no-repeat;
  color: #fff;
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(108,197,252,.14) 0%, transparent 60%);
  pointer-events: none;
}

/* Slightly stronger overlay on phones — text wraps to more lines and sits closer to image highlights */
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(135deg,
        rgba(4, 30, 74, .68) 0%,
        rgba(6, 64, 142, .52) 50%,
        rgba(2, 30, 74, .78) 100%
      ),
      url("../img/hero-colorado-sm.jpg") center 55% / cover no-repeat;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  /* Soft shadow keeps white text legible against the brighter parts of the photo */
  text-shadow: 0 2px 12px rgba(2, 16, 48, .55);
}

.hero-logo {
  width: 100px;
  height: auto;
  margin: 0 auto var(--space-6);
  display: block;
  /* Lift the icon off the navy background with a soft glow */
  filter: drop-shadow(0 4px 16px rgba(108, 197, 252, .35));
}
@media (max-width: 480px) {
  .hero-logo { width: 80px; margin-bottom: var(--space-4); }
}

.hero-eyebrow {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;          /* white on navy hero — 8.47:1 ✓ AA */
  opacity: .85;
  margin-bottom: var(--space-4);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  color: #fff;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
  max-width: 800px;
  margin-inline: auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Page header (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #1a5eb8 100%);
  color: #fff;
  padding: var(--space-16) 0;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: #fff;
  margin-bottom: var(--space-4);
}
.page-header p {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-inline: auto;
}

/* ---- Section layout ---- */
.section {
  padding: var(--space-24) 0;
}
.section-alt {
  background: var(--color-surface);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--space-12);
}
.section-header {
  margin-bottom: var(--space-12);
}

/* ---- Teaser cards (services preview on home) ---- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .teaser-grid { grid-template-columns: 1fr; }
}

.teaser-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.teaser-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.teaser-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}
.teaser-card h3 {
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.teaser-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

/* Commission rate badge — marketing hook for selling services.
   Sky-blue on dark ink reads well on both light cards and the navy hero. */
.rate-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  background: var(--brand-accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}
.rate-badge strong { font-weight: 800; font-size: 1.05em; }
.teaser-rate { margin-top: var(--space-4); }
.service-rate { margin-bottom: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.lp-rate { margin: var(--space-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- Agent intro block ---- */
.agent-intro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: center;
}
@media (max-width: 768px) {
  .agent-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .agent-intro .agent-photo { margin-inline: auto; }
}

.agent-photo {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;   /* keep the face in frame on portrait shots */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.agent-name {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.agent-role {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-action);
  margin-bottom: var(--space-6);
}
.agent-bio { color: var(--color-text-muted); }
.agent-bio p + p { margin-top: var(--space-4); }
.agent-creds {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.agent-cred-tag {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--sand);
  border: 1px solid var(--color-border);
  color: var(--ink-soft);
}

/* ---- Service blocks ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}
.service-block {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.service-block-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}
.service-block h3 {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.service-block p {
  color: var(--color-text-muted);
  line-height: var(--lh-body);
}

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after  { content: "\201D"; }
.testimonial-author {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-action);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- CTA strip ---- */
.cta-strip {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-700) 100%);
  padding: var(--space-16) 0;
  text-align: center;
  color: #fff;
}
.cta-strip h2 {
  font-family: var(--font-display);
  color: #fff;
  font-size: var(--fs-h2);
  margin-bottom: var(--space-4);
}
.cta-strip p {
  color: rgba(255,255,255,.85);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ---- Contact page (marketing + form) ---- */
.contact-marketing-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-marketing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

/* Left column: the pitch */
.contact-pitch-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  margin: var(--space-2) 0 var(--space-4);
}
.contact-pitch-lead {
  font-size: 1.075rem;
  color: var(--color-text-muted);
  line-height: var(--lh-body);
  margin-bottom: var(--space-8);
}

/* Services we offer (pill list) */
.contact-services { margin-bottom: var(--space-8); }
.contact-services-label {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-action);
  margin-bottom: var(--space-3);
}
.contact-services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.contact-services-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.contact-services-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.contact-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.contact-benefit {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--color-text-muted);
  line-height: var(--lh-body);
}
.contact-benefit strong { color: var(--color-text); }
.contact-benefit-icon {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15em;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Testimonial quote */
.contact-quote {
  margin: 0 0 var(--space-8);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.contact-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.contact-quote figcaption {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-action);
}

/* Direct contact strip */
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-direct-item {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: background-color 0.18s;
}
a.contact-direct-item:hover {
  background: var(--sand);
  text-decoration: none;
}
.contact-direct-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-direct-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-action);
}
.contact-direct-value { display: block; color: var(--color-text); }

/* Right column: the form card */
.contact-form-col { position: sticky; top: var(--space-8); }
@media (max-width: 900px) {
  .contact-form-col { position: static; }
}
.contact-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  margin-bottom: var(--space-2);
}
.contact-form-sub {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-8);
}

.form-group { margin-bottom: var(--space-6); }
.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgba(4,74,158,.15);
}
.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #c0392b;
}
.form-textarea { resize: vertical; min-height: 140px; }

/* Select dropdown with custom chevron */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230D1E3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
/* When the disabled placeholder is still selected, show muted text */
.form-select:invalid { color: var(--color-text-muted); }
.form-error {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--fs-small);
  color: #c0392b;
  font-weight: 500;
}
.form-required-star { color: #c0392b; }
.form-optional {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-left: .25rem;
}
.form-privacy {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.btn-full { width: 100%; justify-content: center; }

/* Honeypot — hide from real users, visible to bots */
.form-honeypot { display: none !important; }

/* ---- Thank you page ---- */
.thankyou-section {
  padding: var(--space-24) 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.thankyou-icon { font-size: 4rem; margin-bottom: var(--space-6); }
.thankyou-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  margin-bottom: var(--space-4);
}
.thankyou-body {
  color: var(--color-text-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-brand-logo {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-4);
  display: block;
  /* logo-white.png is already a transparent white mark — no filter needed */
  opacity: .92;
}
.footer-tagline {
  font-size: var(--fs-small);
  color: rgba(215,227,240,.65);
  line-height: var(--lh-body);
  max-width: 260px;
}
.footer-heading {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--space-4);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  color: rgba(215,227,240,.75);
  font-size: var(--fs-small);
  transition: color 0.18s;
}
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-contact-item {
  font-size: var(--fs-small);
  color: rgba(215,227,240,.75);
}

.footer-bottom {
  border-top: 1px solid rgba(215,227,240,.15);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-small);
  color: rgba(215,227,240,.45);
}

/* ---- Error pages ---- */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: var(--space-24) 0;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.error-title { margin-bottom: var(--space-4); }
.error-body { color: var(--color-text-muted); margin-bottom: var(--space-8); }

/* ---- Service detail (alternating text + visual) ---- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-16);
  align-items: center;
}
.service-detail--reverse {
  grid-template-columns: auto 1fr;
}
.service-detail--reverse .service-detail-text { order: 2; }
.service-detail--reverse .service-detail-visual { order: 1; }

@media (max-width: 768px) {
  .service-detail,
  .service-detail--reverse { grid-template-columns: 1fr; }
  .service-detail--reverse .service-detail-text  { order: 1; }
  .service-detail--reverse .service-detail-visual { order: 2; }
  .service-detail-visual { text-align: center; }
}

.service-eyebrow {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-action);
  margin-bottom: var(--space-3);
}
.service-icon-large {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  opacity: .85;
}
.service-list {
  margin-left: var(--space-6);
  color: var(--color-text-muted);
  line-height: var(--lh-body);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ---- Responsive fine-tuning ---- */

/* Nav pill button: smaller padding on mobile so it fits without overflow */
@media (max-width: 768px) {
  .site-nav a.btn { display: none; } /* "Get in touch" shows as normal link in mobile menu */
  .site-nav.is-open a.btn {
    display: inline-flex;
    margin-top: var(--space-2);
    width: max-content;
  }
}

/* Hero: tighten vertical padding on small screens */
@media (max-width: 480px) {
  .hero { padding: var(--space-16) 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
  .page-header { padding: var(--space-12) 0; }
}

/* Service detail icons: hide on very small viewports to save space */
@media (max-width: 480px) {
  .service-detail-visual { display: none; }
}

/* Thank-you action buttons: stack on small screens */
@media (max-width: 480px) {
  .thankyou-section .btn { width: 100%; justify-content: center; }
}

/* Footer bottom: stack at very narrow widths */
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--space-2); }
}

/* ---- Skip link (must be first focusable element) ---- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 8px;
  z-index: 9999;
  background: var(--color-surface);
  color: var(--color-action);
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-action);
  text-decoration: none;
  white-space: nowrap;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ---- Team page ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3.5rem;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
}
.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 15%;
}
.team-info { padding: var(--space-6) var(--space-8) var(--space-8); }
.team-name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-1);
}
.team-role {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-action);
  margin-bottom: var(--space-4);
}
.team-bio {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Paid-ad landing pages (base_landing.html + templates/landing/*)
   Standalone, conversion-focused. No site nav — minimal header + slim footer.
   ========================================================================== */

.lp-body { background: var(--color-surface); }

/* ---- Minimal header ---- */
.lp-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.lp-header-logo { height: 48px; width: auto; display: block; }
.lp-header-phone {
  font-weight: 700;
  color: var(--color-action);
  white-space: nowrap;
}
.lp-header-phone:hover { color: var(--color-action-hover); text-decoration: none; }
@media (max-width: 480px) {
  .lp-header-inner { height: 64px; }
  .lp-header-logo { height: 38px; }
  .lp-header-phone { font-size: var(--fs-small); }
}

/* ---- Hero: copy + form, all above the fold ---- */
.lp-hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-block: var(--space-24);
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: center;
}
.lp-eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--space-4);
}
.lp-hero-title {
  color: #fff;
  font-size: var(--fs-hero);
  margin-bottom: var(--space-6);
}
.lp-hero-lead {
  font-size: 1.125rem;
  line-height: var(--lh-body);
  color: rgba(255,255,255,.92);
  max-width: 36ch;
}
.lp-benefits {
  list-style: none;
  margin: var(--space-8) 0;
  display: grid;
  gap: var(--space-3);
}
.lp-benefits li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: rgba(255,255,255,.95);
  font-weight: 500;
}
.lp-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--brand-accent);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}
.lp-trust-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: rgba(255,255,255,.85);
}
.lp-stars { color: #FFC94D; letter-spacing: 0.1em; }

/* ---- Floating form card ---- */
.lp-form-card {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
}
.lp-form-title { font-size: var(--fs-h2); margin-bottom: var(--space-2); }
.lp-form-sub {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-6);
}
.lp-form-card .form-group { margin-bottom: var(--space-4); }
.lp-form-privacy {
  margin-top: var(--space-3);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---- Content sections ---- */
.lp-section { padding-block: var(--space-24); }
.lp-section--tint { background: var(--color-bg); }
.lp-section-title {
  text-align: center;
  font-size: var(--fs-h2);
  margin-bottom: var(--space-12);
}
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.lp-step {
  text-align: center;
  padding: var(--space-6);
}
.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.lp-step h3 { margin-bottom: var(--space-2); }
.lp-step p { color: var(--color-text-muted); }

/* ---- Social proof quote ---- */
.lp-quote-wrap { max-width: 760px; text-align: center; }
.lp-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--color-text);
}
.lp-quote blockquote::before { content: "\201C"; }
.lp-quote blockquote::after  { content: "\201D"; }
.lp-quote figcaption {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---- Final CTA band ---- */
.lp-cta {
  background: var(--brand-primary);
  color: #fff;
  padding-block: var(--space-16);
  text-align: center;
}
.lp-cta h2 { color: #fff; margin-bottom: var(--space-3); }
.lp-cta p { color: rgba(255,255,255,.9); margin-bottom: var(--space-8); }

/* ---- Slim footer ---- */
.lp-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding-block: var(--space-6);
  font-size: var(--fs-small);
}
.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.lp-footer a { color: rgba(255,255,255,.9); }
.lp-footer-contact { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .lp-hero { padding-block: var(--space-16); }
  .lp-hero-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .lp-hero-copy { order: 1; }
  .lp-form-card { order: 2; }
  .lp-steps { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 720px;
  margin-inline: auto;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text {
  flex: 1 1 280px;
  font-size: var(--fs-small);
  color: var(--color-text);
  margin: 0;
}
.cookie-banner-text a { color: var(--color-link); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: var(--space-3);
  flex: 0 0 auto;
}
.cookie-banner-actions .btn { padding: 0.5rem 1.25rem; }
@media (max-width: 520px) {
  .cookie-banner { gap: var(--space-4); }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Legal / prose pages (privacy policy)
   ========================================================================== */
.legal h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  font-size: var(--fs-h2);
}
.legal h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--fs-h3);
}
.legal ul {
  margin: var(--space-4) 0;
  padding-left: 1.5rem;
  list-style: disc;
}
.legal li { margin-bottom: var(--space-2); }
.legal p + p,
.legal ul + p,
.legal p + ul { margin-top: var(--space-4); }
.legal a { text-decoration: underline; }

/* ==========================================================================
   Landing: credibility strip, hero testimonials, urgency line
   (sell-your-home conversion elements)
   ========================================================================== */

/* Credibility strip (on the navy hero) */
.lp-cred {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}
.lp-cred-photo {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.12);
}
.lp-cred-text { min-width: 0; }
.lp-cred-name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: #fff;
}
/* Hero testimonials (replaces the single trust line) */
.lp-testimonials {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.lp-testimonial {
  font-size: var(--fs-small);
  color: rgba(255,255,255,.92);
  line-height: 1.5;
}
.lp-testimonial .lp-stars { margin-right: var(--space-2); }
.lp-testimonial-attr {
  display: inline-block;
  margin-left: var(--space-2);
  color: var(--brand-accent);
  font-weight: 600;
}
.lp-testimonials .lp-trust-line { margin-top: var(--space-2); }

/* Urgency line above the form CTA. Sits on the white card, so it uses
   brand-primary (8.47:1 on white, AA) rather than the hero's light blue,
   which would be unreadable here. */
.lp-urgency {
  font-size: var(--fs-small);
  color: var(--brand-primary);
  text-align: center;
  margin-bottom: var(--space-3);
}

/* Condensed agent bio in the credibility strip */
.lp-cred-bio {
  font-size: var(--fs-small);
  color: rgba(255,255,255,.88);
  margin-top: 2px;
}

/* Mobile ordering for heroes carrying the conversion layer (.lp-hero--cro,
   currently the sell and cash-offer pages): promote the
   form above the testimonials so it isn't buried under the proof content.
   display:contents lifts the copy column's children into the 1-col grid so
   they can be ordered around the form card. Spacing comes from the elements'
   own margins, so the grid gap is zeroed here. */
@media (max-width: 880px) {
  .lp-hero--cro .lp-hero-grid { gap: 0; }
  .lp-hero--cro .lp-hero-copy { display: contents; }
  .lp-hero--cro .lp-eyebrow      { order: 1; }
  .lp-hero--cro .lp-hero-title   { order: 2; }
  .lp-hero--cro .lp-hero-lead    { order: 3; }
  .lp-hero--cro .lp-cred         { order: 4; }
  .lp-hero--cro .lp-rate         { order: 5; }
  .lp-hero--cro .lp-benefits     { order: 6; }
  .lp-hero--cro .lp-form-card    { order: 7; margin-top: var(--space-8); }
  .lp-hero--cro .lp-testimonials { order: 8; margin-top: var(--space-8); }
}
