/*
Theme Name: Rita Chemilian Team
Theme URI: https://ritachemilian.com
Author: Rita Chemilian Team
Description: Custom theme for the Rita Chemilian Team — RE/MAX Your Community Realty, Brokerage. Flat, editorial design: Archivo type, square corners, 2px rules, red poster bands.
Version: 1.2.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ritachemilian
*/

/* ============ Tokens ============ */
:root {
  --bg: #ffffff;
  --ink: #201e1d;
  --body: #3a3735;
  --muted: #5c5751;
  --faint: #8a847d;
  --red: #83291f;
  --red-dark: #712219;
  --red-deep: #5e1b14;
  --yellow: #f2efb4;
  --yellow-hover: #e9e59a;
  --tint: #faf8e8;
  --border: #d8d5d2;
  --divider: #dedbd7;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 28px;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.container { max-width: 1440px; margin: 0 auto; padding-left: 64px; padding-right: 64px; }

/* Type */
.kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin: 0 0 20px;
}
.h-display { font-size: 82px; line-height: 1.06; letter-spacing: -0.02em; margin-left: -0.058em; }
.h-page    { font-size: 68px; line-height: 1.06; letter-spacing: -0.02em; margin-left: -0.058em; }
.h-page.h-64 { font-size: 64px; line-height: 1.08; }
.h-page.h-56 { font-size: 56px; line-height: 1.08; }
.h-section { font-size: 34px; line-height: 1.2;  letter-spacing: -0.015em; }
.lede { font-size: 17px; line-height: 28px; max-width: 58ch; margin: 32px 0 0; color: var(--body); }
.body-copy { font-size: 15.5px; line-height: 28px; color: var(--body); max-width: 52ch; }
.meta-line { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.footnote { font-size: 12.5px; line-height: 20px; color: var(--muted); }

hr.rule { height: 2px; border: 0; background: var(--divider); margin: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 800; font-size: 14px; line-height: 1.2;
  padding: 14px 22px; border: 0; border-radius: 0; cursor: pointer;
  text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
  min-height: 44px; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { background: var(--yellow); color: var(--red); }
.btn-secondary:hover { background: var(--yellow-hover); color: var(--red); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-ghost[disabled], .btn-ghost.is-disabled { border-color: var(--border); color: var(--border); pointer-events: none; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ============ Header / Nav ============ */
.site-header { background: var(--bg); border-bottom: 2px solid var(--divider); }
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding-top: 18px; padding-bottom: 18px;
}
.nav-brand {
  font-weight: 800; font-size: 16px; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ink); margin-right: auto; white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { font-size: 15px; color: var(--ink); white-space: nowrap; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--red); }
.nav-links .btn { padding: 12px 18px; }
/* Nav link color rules must not override button label colors */
.nav-links > a.btn-primary, .nav-links > a.btn-primary:hover { color: #fff; }
.nav-links > a.btn-secondary, .nav-links > a.btn-secondary:hover { color: var(--red); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
  flex-direction: column; gap: 5px; width: 24px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* ============ Hero ============ */
.hero { padding: 104px 0 84px; }
.hero-inner .btn-row { margin-top: 32px; }

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 70px 0; }
.stat-number { font-family: var(--font); font-weight: 800; font-size: 48px; line-height: 1; color: var(--red); margin: 0; }
.stat-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 0; }

/* ============ Split sections (5fr/7fr) ============ */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 28px 96px; align-items: center; }
.split.align-start { align-items: start; }
.section { padding: 70px 0 84px; }
.section-tall { padding: 84px 0; }

/* Page-hero grids with an ink-sketch illustration beside the headline */
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-grid .h-page { font-size: clamp(38px, 4.2vw, 60px); }
.hero-grid .hero-art { width: 100%; height: auto; margin-top: -40px; }
.hero-grid.quotes { grid-template-columns: minmax(0, 1fr) 460px; align-items: end; }
.hero-grid.quotes .hero-art { margin-top: 0; }

/* Image slots */
.img-cover { width: 100%; object-fit: cover; object-position: center 22%; }
.img-slot-placeholder {
  width: 100%; display: flex; align-items: center; justify-content: center;
  background: #e7e4e1; color: var(--faint); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 16px;
}

/* ============ Card grids ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-3.roomy { row-gap: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* Listing card */
.listing-card figure { position: relative; }
.listing-card .card-img { width: 100%; height: 260px; object-fit: cover; }
.listing-card .card-rule { border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 16px; }
.listing-card h3 { font-size: 20px; }
.listing-card h3 a { color: var(--ink); }
.listing-card h3 a:hover { color: var(--red); }
.badge-status {
  position: absolute; top: 0; left: 0;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px;
}

/* Team cards (home strip) */
.team-card .card-img { width: 100%; height: 280px; object-fit: cover; object-position: center 22%; }
.team-card h3 { font-size: 18px; margin: 16px 0 0; }
.team-card .role { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }

/* ============ Testimonial band (home) ============ */
.quote-band {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 64px;
  background: var(--tint);
  padding: 70px 64px 84px; margin: 0 -64px;
}
.quote-band .kicker { grid-column: 1 / -1; margin: 0; }
.quote-band blockquote {
  font-weight: 800; font-size: 19px; line-height: 28px; letter-spacing: -0.01em;
  color: var(--ink); margin: 0; text-indent: -0.496em;
}
.quote-band figcaption { font-size: 14px; color: var(--muted); margin: 20px 0 0; }

/* Testimonials page */
.quote-featured blockquote {
  font-weight: 800; font-size: 34px; line-height: 44px; letter-spacing: -0.015em;
  color: var(--ink); max-width: 34ch; margin: 0; text-indent: -0.496em;
}
.quote-featured figcaption { font-size: 15.5px; color: var(--muted); margin: 32px 0 0; }
.quote-wall { columns: 3; column-gap: 48px; padding: 24px 0 84px; }
.quote-wall figure {
  margin: 0 0 48px; break-inside: avoid;
  border-top: 2px solid var(--ink); padding-top: 20px;
}
.quote-wall blockquote { font-size: 15.5px; line-height: 26px; color: var(--body); margin: 0; }
.quote-wall figcaption { font-weight: 800; font-size: 14px; color: var(--ink); margin: 16px 0 0; }

/* ============ Numbered ruled rows ============ */
.num-row {
  display: grid; grid-template-columns: 140px 380px 1fr; gap: 24px 72px;
  align-items: start; padding: 36px 0; border-bottom: 2px solid var(--divider);
}
.num-row:last-child { border-bottom: 0; }
.num-row .num { font-weight: 800; font-size: 15px; color: var(--ink); margin: 0; }
.num-row h2, .num-row h3 { font-size: 24px; line-height: 28px; letter-spacing: -0.01em; }
.num-row p.copy { font-size: 15.5px; line-height: 28px; color: var(--body); max-width: 56ch; margin: 0; }

/* Team rows (About) */
.team-row {
  display: grid; grid-template-columns: 280px 300px 1fr; gap: 24px 56px;
  align-items: start; padding: 36px 0; border-bottom: 2px solid var(--divider);
}
.team-row:last-child { border-bottom: 0; }
.team-row .card-img { width: 100%; height: 220px; object-fit: cover; object-position: center 22%; }
.team-row h3 { font-size: 24px; letter-spacing: -0.01em; }
.team-row .role { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
.team-row .bio { font-size: 15.5px; line-height: 28px; color: var(--body); max-width: 56ch; margin: 0; }

/* Awards list */
.award-row {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 18px 0; border-bottom: 2px solid var(--divider);
}
.award-row:last-child { border-bottom: 0; }
.award-row .award-name { font-weight: 800; font-size: 17px; color: var(--ink); }
.award-row .award-years { font-size: 14px; color: var(--muted); }

/* ============ Door cards (Residential) ============ */
.door-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.door-card {
  display: block; border: 2px solid var(--ink); padding: 32px 36px;
  color: var(--ink); transition: background 0.15s ease, color 0.15s ease;
}
.door-card:hover { background: var(--ink); color: var(--bg); }
.door-card .door-kicker {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); margin: 0 0 12px;
}
.door-card .door-title { display: block; font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
.door-card .door-sub { display: block; font-size: 14.5px; line-height: 24px; margin-top: 10px; opacity: 0.75; }
.door-card .door-points { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; line-height: 22px; }
.door-card .door-points > span { display: flex; gap: 10px; }
.door-card .door-points .n { color: var(--red); font-weight: 800; }
.door-card .door-cta { display: block; font-weight: 800; font-size: 14px; margin-top: 20px; }

/* ============ Filter tags (Listings) ============ */
.tag-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.tag {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font); font-weight: 800; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 18px; border: 2px solid var(--ink); color: var(--ink);
}
.tag:hover { background: var(--ink); color: var(--bg); }
.tag.is-active { background: #f6e4e1; border-color: #f6e4e1; color: var(--red); }

/* Pagination */
.listing-pager {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 2px solid var(--ink); padding: 24px 0 84px; gap: 16px; flex-wrap: wrap;
}
.listing-pager .count { font-size: 14px; color: var(--muted); }
.pager-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pager-links .btn { min-width: 44px; padding: 12px 14px; }
.pager-ellipsis { color: var(--muted); font-weight: 800; padding: 0 4px; }

/* Mobile-only helpers */
.mobile-only { display: none !important; }

/* Section header with pager arrows */
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 28px; }
.section-head .kicker { margin: 0; }

/* ============ Red poster band ============ */
.band {
  background: var(--red); color: #fff;
  padding: 84px 64px;
}
.band h2 {
  color: #fff; font-size: 56px; line-height: 1.06; letter-spacing: -0.015em;
  margin-left: -0.058em;
}
.band .btn-row { margin-top: 40px; }
.band.band-slim { padding: 64px; }
.band.band-slim h2 { font-size: 44px; }

/* ============ Forms ============ */
.field { margin: 0; }
.field label {
  display: block; font-weight: 800; font-size: 14px; color: var(--ink); margin: 0 0 8px;
}
.field label .optional { font-weight: 400; color: var(--faint); }
.input {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink);
  background: #fff; border: 2px solid var(--border); border-radius: 0;
  padding: 12px 14px; min-height: 44px;
}
.input:focus { border-color: var(--ink); outline: none; }
textarea.input { resize: vertical; }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field + .field, .field-grid-2 + .field, .field + .field-grid-2 { margin-top: 20px; }
.field-grid-2 > .field { margin-top: 0; } /* columns in the same row stay level */

/* Segmented intent selector */
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; }
.seg-opt span {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.02em;
  padding: 8px 16px; border: 2px solid var(--ink); color: var(--ink); cursor: pointer;
}
.seg-opt input:checked + span { background: var(--ink); color: var(--bg); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form-actions { display: flex; gap: 16px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.form-actions .hint { font-size: 13px; color: var(--faint); }
.form-notice {
  border: 2px solid var(--ink); padding: 16px 20px; margin: 0 0 28px;
  font-weight: 800; font-size: 15px; color: var(--ink);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Contact info blocks */
.contact-block { margin-top: 28px; border-top: 2px solid var(--divider); padding-top: 24px; }
.contact-block.first { margin-top: 44px; border-top: 2px solid var(--ink); }
.visit-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.visit-logo { height: 64px; width: auto; }
.contact-block .label { font-weight: 800; font-size: 15px; color: var(--ink); margin: 0; }
.contact-block p { font-size: 15px; line-height: 26px; color: var(--body); margin: 8px 0 0; }

/* ============ Footer ============ */
.site-footer { border-top: 2px solid var(--divider); }
.footer-cols {
  display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 48px;
  padding: 64px 64px 56px;
}
.footer-cols .kicker { margin-bottom: 20px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.footer-links a { display: block; font-size: 15px; line-height: 32px; color: var(--ink); }
.footer-links a:hover { color: var(--red); }
.footer-connect p { font-size: 15px; line-height: 28px; margin: 0; }
.footer-connect p + p { margin-top: 16px; }
.footer-connect a { color: var(--ink); }
.footer-connect a.email { color: var(--red-deep); }
.newsletter-title { font-weight: 800; font-size: 18px; margin: 0; color: var(--ink); }
.newsletter-form { display: flex; gap: 12px; margin-top: 16px; }
.newsletter-form .input { flex: 1; }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 24px 64px 40px; border-top: 2px solid var(--divider);
  font-size: 13px; line-height: 24px; color: var(--muted);
}
.footer-legal .legal-left { display: flex; align-items: center; gap: 20px; }
.footer-logo { height: 44px; width: auto; }

/* ============ Single listing (detail page, board 8a) ============ */
.detail-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap; padding: 64px 0 40px;
}
.detail-head h1 { font-size: 56px; line-height: 1.06; letter-spacing: -0.02em; margin-left: -0.058em; }
.detail-sub { font-size: 17px; line-height: 28px; color: var(--body); margin: 16px 0 0; }
.detail-sub strong { font-weight: 800; color: var(--ink); }
.breadcrumb a { color: var(--red-deep); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.gallery figure { position: relative; overflow: hidden; }
.gallery .g-hero { grid-row: span 2; min-height: 560px; }
.gallery img, .gallery .img-slot-placeholder { width: 100%; height: 100% !important; object-fit: cover; }
.gallery .g-side { height: 272px; }
.gallery.no-side { display: block; }
.gallery.no-side .g-hero { min-height: 0; height: 560px; }
.photo-chip {
  position: absolute; right: 16px; bottom: 16px;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 13px; padding: 8px 14px; white-space: nowrap;
}
.photo-chip.chip-mobile { display: none; }

.detail-body {
  display: grid; grid-template-columns: 7fr 5fr; gap: 28px 96px;
  align-items: start; padding: 56px 0 84px;
}
.detail-body .about-copy p { font-size: 15.5px; line-height: 28px; color: var(--body); max-width: 58ch; margin: 16px 0 0; }
.detail-body .about-copy p:first-child { margin-top: 24px; }
.text-link { display: inline-block; font-weight: 800; font-size: 15px; color: var(--red-deep); margin-top: 24px; }
.text-link:hover { color: var(--red); }

.fact-row {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 2px solid var(--divider);
}
.fact-row:last-of-type { border-bottom: 0; }
.fact-row .k { font-size: 14px; color: var(--muted); }
.fact-row .v { font-weight: 800; font-size: 15px; color: var(--ink); text-align: right; }

.ask-card { background: var(--tint); padding: 24px 28px; margin-top: 28px; }
.ask-card .title { font-weight: 800; font-size: 16px; color: var(--ink); margin: 0; }
.ask-card p { font-size: 14px; line-height: 23px; color: var(--body); margin: 8px 0 0; }
.ask-card .btn { margin-top: 16px; }

/* Generic page content */
.page-plain { padding: 96px 0 84px; }
.page-plain .entry-content { font-size: 15.5px; line-height: 28px; max-width: 64ch; }

/* ============ Mobile (≤768px) ============ */
@media (max-width: 768px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .nav-inner { padding-top: 14px; padding-bottom: 14px; gap: 16px; }
  .nav-brand { font-size: 15px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 2px solid var(--divider);
    padding: 8px 20px 20px; z-index: 20;
  }
  .site-header { position: relative; }
  .nav-links.is-open { display: flex; }
  .nav-links > a { padding: 12px 0; font-size: 16px; }
  .nav-links .btn { margin-top: 10px; width: 100%; }

  .hero { padding: 48px 0 40px; }
  .kicker { font-size: 11px; margin-bottom: 14px; }
  .h-display, .h-page { font-size: 38px; }
  .h-page.h-64 { font-size: 32px; }
  .h-page.h-56 { font-size: 30px; }
  .h-section { font-size: 26px; }
  .lede, .body-copy { font-size: 15px; line-height: 24px; margin-top: 20px; }
  .btn-row { flex-direction: column; margin-top: 24px; }
  .btn-row .btn { width: 100%; }

  .stats { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 36px 0; }
  .stat-number { font-size: 34px; }
  .stat-label { font-size: 11px; margin-top: 10px; }

  .section, .section-tall { padding: 40px 0 48px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .grid-3, .grid-2, .door-cards, .field-grid-2 { grid-template-columns: 1fr; }
  .grid-3 { gap: 40px; }

  .quote-band { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px 48px; margin: 0 -20px; }
  .quote-band figure:nth-of-type(n+2) { display: none; }
  .quote-featured blockquote { font-size: 24px; line-height: 32px; }
  .quote-wall { columns: 1; }

  .num-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .team-row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .team-row .card-img { height: 260px; }

  .band { padding: 48px 20px; }
  .band h2, .band.band-slim h2 { font-size: 32px; }
  .band.band-slim { padding: 40px 20px; }

  .footer-cols { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
  .footer-legal { padding: 20px 20px 32px; }
  .footer-legal .legal-left { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-logo { height: 36px; }
  .visit-logo { height: 48px; }
  .newsletter-form { flex-direction: column; }

  .listing-pager { padding-bottom: 48px; }
  .page-plain { padding: 48px 0 48px; }

  /* Mobile listing archive: arrows + count only, compact chips, shorter cards */
  .pager-links .num { display: none; }
  .tag-row { gap: 8px; margin-top: 24px; }
  .tag { font-size: 11px; padding: 6px 12px; min-height: 38px; }
  .listing-card .card-img { height: 200px !important; }
  .grid-3.roomy { row-gap: 36px; }

  /* Mobile door cards drop the sub-line; property grids show a shortlist */
  .door-card .door-sub { display: none; }
  .props-mobile-2 .listing-card:nth-child(n+3) { display: none; }
  .props-mobile-3 .listing-card:nth-child(n+4) { display: none; }

  /* Mobile home: tighter page per the mobile wireframe */
  .team-strip, .community-section { display: none; }
  .mobile-only { display: inline-block !important; margin-top: 24px; }

  /* Mobile page heroes: sketch stacks below the headline, full width */
  .hero-grid, .hero-grid.quotes { grid-template-columns: 1fr; gap: 0; }
  .hero-grid .hero-art, .hero-grid.quotes .hero-art { margin-top: 24px; }

  /* Mobile about: compact team rows — full bio for the first (Rita) only */
  .team-row { grid-template-columns: 96px 1fr; gap: 12px 16px; align-items: center; }
  .team-row .card-img, .team-row .img-slot-placeholder { height: 96px !important; width: 96px; }
  .team-row .bio { display: none; grid-column: 1 / -1; }
  .team-row:first-of-type { grid-template-columns: 1fr; align-items: start; }
  .team-row:first-of-type .card-img, .team-row:first-of-type .img-slot-placeholder { height: 260px !important; width: 100%; }
  .team-row:first-of-type .bio { display: block; }

  .detail-head { padding: 28px 0 24px; }
  .detail-head h1 { font-size: 32px; line-height: 1.08; }
  .detail-sub { font-size: 14px; line-height: 22px; margin-top: 10px; }
  .detail-head .btn { width: 100%; }
  .gallery { display: block; }
  .gallery .g-hero, .gallery.no-side .g-hero { min-height: 260px; height: 260px; }
  .gallery .g-side { display: none; }
  .photo-chip { right: 12px; bottom: 12px; font-size: 12px; padding: 7px 12px; }
  .photo-chip.chip-mobile { display: block; }
  .detail-body { grid-template-columns: 1fr; padding: 28px 0 36px; }
  .fact-row { padding: 13px 0; }
  .fact-row .k { font-size: 13px; }
  .fact-row .v { font-size: 14px; }
  .ask-card { padding: 20px; margin-top: 16px; }
  .ask-card .btn { width: 100%; }
}

/* ============ Photo gallery lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(20, 18, 17, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: calc(100vw - 140px); max-height: 88vh; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { color: #fff; font-weight: 800; font-size: 14px; margin-top: 14px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 0; font-family: var(--font); font-weight: 800; font-size: 18px;
  width: 48px; height: 48px; cursor: pointer;
}
.lightbox button:hover { background: var(--red); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.photo-chip.gallery-open { border: 0; cursor: pointer; font-family: var(--font); }
@media (max-width: 768px) {
  .lightbox figure { max-width: 100vw; padding: 0 8px; }
  .lightbox img { max-height: 74vh; }
  .lightbox .lb-prev { left: 8px; top: auto; bottom: 16px; transform: none; }
  .lightbox .lb-next { right: 8px; top: auto; bottom: 16px; transform: none; }
}

/* Footer social */
.footer-social { margin-top: 16px !important; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: var(--ink); }
.footer-social a:hover { color: var(--red); }
.footer-social svg { flex: none; }

/* ============ In-card photo arrows ============ */
.card-carousel { position: relative; overflow: hidden; }
.card-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; cursor: pointer;
  background: rgba(20, 18, 17, 0.55); color: #fff;
  font-family: var(--font); font-weight: 800; font-size: 15px;
  opacity: 0; transition: opacity 0.15s ease, background 0.15s ease;
}
.card-nav:hover { background: var(--red); }
.card-prev { left: 8px; }
.card-next { right: 8px; }
.card-count {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(20, 18, 17, 0.55); color: #fff;
  font-weight: 800; font-size: 11px; padding: 4px 8px;
  opacity: 0; transition: opacity 0.15s ease;
}
.listing-card figure:hover .card-nav,
.listing-card figure:hover .card-count,
.card-nav:focus-visible { opacity: 1; }
/* Touch screens have no hover — keep the arrows visible */
@media (hover: none) {
  .card-nav, .card-count { opacity: 1; }
}

/* "You're asking about" strip on the contact form */
.asking-about { border: 2px solid var(--ink); padding: 16px 20px; margin: 0 0 28px; }
.asking-about p { margin: 0; font-size: 15px; color: var(--body); }
.asking-about strong { color: var(--ink); }

/* ============ Hero home-sketch animation (design handoff) ============ */
@keyframes hSway { 0%,100% { transform: rotate(-1.3deg); } 50% { transform: rotate(1.3deg); } }
@keyframes leafBob { 0%,100% { transform: translate(0,0) rotate(-0.8deg); } 50% { transform: translate(4px,-3px) rotate(0.9deg); } }
@keyframes garageCycle { 0%,14% { transform: translateY(0); } 32%,62% { transform: translateY(-118px); } 82%,100% { transform: translateY(0); } }
@keyframes evergreenSway { 0%,100% { transform: rotate(-0.7deg); } 50% { transform: rotate(0.9deg); } }
@keyframes cloudDrift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(46px); } }
@keyframes smokeRise { 0% { transform: translate(0,0); opacity: 0; } 15% { opacity: 0.75; } 100% { transform: translate(14px,-34px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .home-sketch * { animation: none !important; } }

/* Hero with animated sketch to the right of the headline */
.hero-with-sketch {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: center;
}
.hero-sketch { margin-right: -24px; }
.hero-sketch .home-sketch { width: 118%; max-width: none; margin-left: -9%; }
.hero-sketch svg { width: 100%; height: auto; display: block; }
@media (max-width: 1100px) {
  .hero-with-sketch { grid-template-columns: 1fr; }
  .hero-sketch { display: none; }
}
.hero-with-sketch .h-display { font-size: clamp(38px, 3.6vw, 52px); }
.hero-with-sketch .lede { margin-top: 28px; }
.hero-sketch img { width: 112%; max-width: none; margin-left: -6%; height: auto; }
