/* ============================================
   Silvia Real Estate — styles.css
   Shared across index.html, listings.html, contact.html
   Vanilla CSS, no build step. Design system driven by
   the custom properties in :root below.
   ============================================ */

:root {
  --bg:           #F7F4EE;  /* warm ivory page background */
  --bg-alt:       #EEE7DA;  /* section band, one step warmer/darker */
  --bg-tint:      #E7DECD;  /* card media placeholders, community tiles */
  --dark:         #26221D;  /* footer + interior page heroes */
  --dark-alt:     #322C24;
  --accent:       #A9884F;  /* bronze-gold — decorative / large text only */
  --accent-ink:   #8A6D3B;  /* darker gold that clears 4.5:1 on --bg for body-size text/buttons */
  --accent-dark:  #75592C;  /* button hover */
  --text:         #2C2823;
  --text-muted:   #776E60;
  --text-light:   #F4EFE6;
  --border:       rgba(44, 40, 35, 0.14);
  --border-light: rgba(244, 239, 230, 0.18);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script:  'Parisienne', 'Playfair Display', cursive;

  --section-pad: clamp(64px, 9vw, 128px);
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { position: relative; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.005em;
  color: var(--text);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

.btn-solid { background: var(--accent-ink); color: var(--text-light); }
.btn-solid:hover { background: var(--accent-dark); }
.btn-solid:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-solid:disabled:hover { background: var(--accent-ink); }

.btn-outline { background: transparent; border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }

/* outline button sitting on a dark/photo hero */
.btn-ghost { background: rgba(247, 244, 238, 0.06); border-color: var(--text-light); color: var(--text-light); }
.btn-ghost:hover { background: var(--text-light); color: var(--text); }

.link-arrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.25s ease;
}
.link-arrow:hover { gap: 16px; }

/* ── Header / Nav ────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(247, 244, 238, 0.97);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  padding: 12px 0;
  box-shadow: 0 6px 24px rgba(44, 40, 35, 0.07);
}

/* Home page: header is transparent over the photo hero until scrolled. */
body.home .site-header {
  background: transparent;
  border-bottom-color: transparent;
}
body.home .site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.97);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s ease;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 5px;
  transition: color 0.3s ease;
}
body.home .site-header:not(.is-scrolled) .logo-name { color: var(--text-light); }
body.home .site-header:not(.is-scrolled) .logo-sub { color: var(--text-light); }

.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s ease;
}
body.home .site-header:not(.is-scrolled) .nav { color: var(--text-light); }

.nav a { position: relative; padding-bottom: 4px; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }

.nav-cta { margin-left: 8px; }
body.home .site-header:not(.is-scrolled) .nav-cta { border-color: var(--text-light); color: var(--text-light); }
body.home .site-header:not(.is-scrolled) .nav-cta:hover { background: var(--text-light); color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); transition: background 0.3s ease; }
body.home .site-header:not(.is-scrolled) .nav-toggle span { background: var(--text-light); }

/* ── Hero (home) ─────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #3a4a52 0%, #2b3840 45%, #222c30 100%);
}

/* Real hero photo: aerial of a San Antonio subdivision
   (assets/images/hero-home.jpg, master in dev/source-media/). The .hero
   background gradient shows through only if the image fails to load. */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* favour the rooftops in the lower half while keeping some sky behind
     the headline */
  object-position: center 60%;
}

/* Sits over the photo so the headline stays readable — heavier on the left
   where the copy is (and where the bright sky sits), and a vertical
   darkening bottom-to-... so the buttons read over the rooftops. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 22, 20, 0.82) 0%, rgba(18, 22, 20, 0.52) 45%, rgba(18, 22, 20, 0.18) 100%),
    linear-gradient(180deg, rgba(18, 22, 20, 0.35) 0%, rgba(18, 22, 20, 0.28) 45%, rgba(18, 22, 20, 0.6) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 180px 32px 120px;
  width: 100%;
}
.hero .script { font-size: clamp(40px, 6vw, 76px); display: block; margin-bottom: 6px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  color: var(--text-light);
  max-width: 760px;
  margin-bottom: 24px;
}
.hero-copy {
  font-size: 17px;
  color: rgba(244, 239, 230, 0.82);
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-tagline {
  position: absolute;
  right: 32px;
  top: 46%;
  z-index: 2;
  text-align: right;
  max-width: 300px;
}
.hero-tagline .script { font-size: clamp(34px, 4vw, 52px); color: var(--text-light); }
.hero-tagline p {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.75);
  margin-top: 10px;
}

/* ── Page hero (listings / contact) ──────────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #2f3a37 0%, #26221D 70%);
  padding: 180px 0 80px;
  text-align: center;
}
.page-hero .skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 200px;
  color: #1c1915;
  opacity: 0.55;
}
.page-hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; padding: 0 32px; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--text-light); }
.page-hero p { color: rgba(244, 239, 230, 0.75); font-size: 17px; margin-top: 18px; }

/* ── Section heads ───────────────────────────────────── */

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--text-light); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 16px; }
.section-dark .section-head h2 { color: var(--text-light); }
.section-dark .section-head p { color: rgba(244, 239, 230, 0.7); }

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  max-width: none;
}

/* ── Expert / About ──────────────────────────────────── */

.expert-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.expert-portrait {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(169, 136, 79, 0.28), transparent 60%),
    linear-gradient(160deg, #cdbfa4, #a9976f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44, 40, 35, 0.32);
  font-size: 84px;
}
.expert-body h2 { font-size: clamp(28px, 3.4vw, 42px); }
.expert-body .lead { margin: 20px 0; color: var(--text-muted); }
.expert-body p { color: var(--text-muted); margin-bottom: 16px; }
.expert-sign { margin-top: 28px; }
/* Matches the header wordmark: Playfair Display, tracked caps.
   Selector is doubled up so it outranks `.expert-sign span` below. */
.expert-sign .expert-sign-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}
.expert-sign span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.value-props {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.value-prop { display: flex; gap: 16px; }
.value-prop i {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent-ink);
  font-size: 17px;
}
.value-prop h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.value-prop p { font-size: 14px; margin: 0; }

/* ── Listing cards ───────────────────────────────────── */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-alt .listing-card { background: var(--bg); }
.listing-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(44, 40, 35, 0.12); }

.listing-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(169, 136, 79, 0.20), transparent 62%),
    linear-gradient(150deg, #ddd0b8, #c3b291);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(44, 40, 35, 0.22);
  font-size: 40px;
}
.listing-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
/* Photo expands on hover; the stamp (a sibling, not inside the img) stays put. */
.listing-card:hover .listing-media img { transform: scale(1.12); }

.listing-status {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent-ink);
  color: var(--text-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 1px;
}
.listing-status.is-sold { background: var(--text); }
.listing-status.is-pending { background: #7a6a45; }

.listing-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(247, 244, 238, 0.9);
  color: var(--accent-ink);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.listing-fav:hover { transform: scale(1.1); }
.listing-fav.is-active { background: var(--accent-ink); color: var(--text-light); }

.listing-info { padding: 22px 22px 24px; }
.listing-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.listing-meta { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* Sold / Active badge — small tab in the lower-right corner of the photo,
   with a slight extruded shadow for a subtle 3D lift. */
.stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  pointer-events: none;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.stamp-sold   { background: #C0392B; box-shadow: 2px 2px 0 #7c1c12, 0 4px 10px rgba(0, 0, 0, 0.32); }
.stamp-active { background: #2E7D3A; box-shadow: 2px 2px 0 #1c5426, 0 4px 10px rgba(0, 0, 0, 0.32); }
.listing-card:hover .stamp { transform: translateY(-2px); }

.listing-price { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.listing-specs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 10px;
}
.listing-specs span { display: inline-flex; align-items: center; gap: 6px; }
.listing-specs i { color: var(--accent-ink); font-size: 12px; }
.listing-address { font-size: 14px; color: var(--text-muted); }

/* ── Communities strip ───────────────────────────────── */

.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.community-tile {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--text-light);
  background: linear-gradient(160deg, #7f8b83, #4a534d);
  isolation: isolate;
}
.community-tile::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 25%, rgba(20, 24, 22, 0.78) 100%);
}
.community-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.community-tile:hover img { transform: scale(1.06); }
.community-tile span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ── Services two-up (Buying / Selling) ──────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.split-item { display: flex; gap: 20px; }
.split-item > i {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent-ink);
  font-size: 20px;
}
.split-item h3 { font-size: 22px; margin-bottom: 10px; }
.split-item p { color: var(--text-muted); font-size: 15px; margin-bottom: 14px; }

/* ── Services page cards ─────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  padding: 30px 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.section-alt .service-card { background: var(--bg); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(44, 40, 35, 0.10); }
.service-card > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent-ink);
  font-size: 19px;
}
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* ── Testimonials ────────────────────────────────────── */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 44px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-alt .testimonial { background: var(--bg); }
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 14px; left: 24px;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
}
.testimonial-quote { display: flex; flex-direction: column; gap: 14px; }
.testimonial-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.testimonial-by { margin-top: auto; }
.testimonial-stars { color: var(--accent); font-size: 12px; letter-spacing: 2px; margin-bottom: 6px; }
.testimonial-name { font-family: var(--font-body); font-weight: 700; font-size: 14px; }
.testimonial-role {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Dots for the mobile swipe slider — hidden until the ≤620px breakpoint
   turns .testimonial-grid into a scroll-snap carousel (see Responsive). */
.testimonial-dots { display: none; }
.testimonial-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.testimonial-dot.is-active { background: var(--accent); transform: scale(1.25); }

/* ── CTA band ────────────────────────────────────────── */

.cta-band {
  background: var(--dark);
  color: var(--text-light);
  text-align: center;
  padding: var(--section-pad) 32px;
}
.cta-band .script { font-size: clamp(30px, 4vw, 46px); color: var(--accent); display: block; margin-bottom: 8px; }
.cta-band h2 { color: var(--text-light); font-size: clamp(28px, 3.4vw, 42px); max-width: 640px; margin: 0 auto 14px; }
.cta-band p { color: rgba(244, 239, 230, 0.72); max-width: 520px; margin: 0 auto 32px; }

/* ── Listings filter bar ─────────────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.filter-bar label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}
.filter-bar select {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1px;
  padding: 10px 14px;
  cursor: pointer;
}
.filter-count { margin-left: auto; font-size: 13px; color: var(--text-muted); }
.listings-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  display: none;
}
.listings-empty.is-visible { display: block; }

/* ── Contact page ────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-details h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 20px; }
.contact-details > p { color: var(--text-muted); margin-bottom: 28px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.contact-list i { color: var(--accent-ink); width: 18px; text-align: center; }
.contact-list a:hover { color: var(--accent-ink); }
.contact-hours {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.contact-hours strong { color: var(--text); font-weight: 700; display: block; margin-bottom: 6px; font-family: var(--font-body); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-alt .contact-form { background: var(--bg); }
.form-row { display: flex; gap: 16px; }
.form-row > * { flex: 1; }

.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form label.field-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: -6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-ink);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(44, 40, 35, 0.55); }
.contact-form select { color: rgba(44, 40, 35, 0.7); }
.contact-form select option { color: var(--text); }
.contact-form textarea { resize: vertical; min-height: 120px; }

.form-status {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  min-height: 18px;
}
.form-status.is-success { color: #2F6B33; }
.form-status.is-error { color: #A8412C; }

/* ── Footer ──────────────────────────────────────────── */

.site-footer { background: var(--dark); color: var(--text-light); }
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-name { color: var(--text-light); }
.footer-brand .logo-sub { color: rgba(244, 239, 230, 0.6); }
.footer-brand p { color: rgba(244, 239, 230, 0.6); font-size: 14px; margin-top: 16px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 18px;
}
.footer-col a, .footer-col address {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: rgba(244, 239, 230, 0.82);
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--text-light); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(244, 239, 230, 0.45);
}
.footer-bottom a { text-decoration: underline; }
.footer-legal { display: flex; align-items: center; gap: 10px; }
.footer-legal i { font-size: 15px; }

/* ── Scroll reveal ───────────────────────────────────── */

/* Only hidden when JS is running (html.js is set by main.js). With JS
   disabled or broken, revealed content stays visible rather than blank.
   The .is-visible rule is scoped under html.js too so it outranks the
   hide rule on specificity. */
html.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Lightbox ────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 18, 15, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 2px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 960px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 18px;
    color: var(--text-light);
    z-index: 99;
  }
  body.home .site-header.nav-open .nav { color: var(--text-light); }

  .expert-grid { grid-template-columns: 1fr; gap: 40px; }
  .expert-portrait { max-width: 380px; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .hero-tagline { display: none; }
}

@media (max-width: 620px) {
  .container, .header-inner, .hero-inner, .page-hero-inner { padding-left: 22px; padding-right: 22px; }
  .hero-inner { padding-top: 150px; padding-bottom: 90px; }
  .listing-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .value-props { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions .btn { flex: 1; }

  /* Testimonials become a horizontal swipe slider — one card at a time,
     native CSS scroll-snap (touch swipe works with no JS; the dots below
     are progressive enhancement synced by main.js). Bleeds to the screen
     edges so the next card peeks in. */
  .testimonial-grid {
    display: flex;
    grid-template-columns: none;
    max-width: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -22px;
    padding: 0 22px 2px;
    scroll-padding-left: 22px;
  }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .testimonial {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
  .testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
