/* ============================================================
   CASTELLAN — Étude d'avocats
   Thème « Counsel » : papier froid, marine, oxblood, Baskerville.
   Institutionnel, rectiligne, texte d'abord.
   ============================================================ */

:root {
  --ivory: #f4f5f7;
  --porcelain: #ffffff;
  --ink: #1a2332;
  --stone: #5b6472;
  --gold: #7d2434;            /* accent oxblood */
  --gold-soft: #b0842f;       /* filet bronze discret */
  --forest: #16283c;          /* bandes marine */
  --forest-soft: #1f3550;
  --hairline: #d7dbe2;
  --display: "Libre Baskerville", Georgia, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--forest); color: #fff; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }

h1, h2, h3, .serif { font-family: var(--display); font-weight: 400; line-height: 1.2; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); flex: none; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
.section-sub { color: var(--stone); max-width: 52ch; margin-top: 0.9rem; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 2px solid var(--ink);
  transition: all 0.25s var(--ease);
  text-align: center;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--solid { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--light { color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--forest); }
.btn--ghost { color: var(--ink); }
.btn--block { display: block; width: 100%; margin-top: 0.7rem; }

.link-arrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.3rem;
  transition: color 0.25s, border-color 0.25s;
}
.link-arrow:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background 0.3s, box-shadow 0.3s; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-header.on-hero { color: #fff; }
.site-header.on-hero .logo, .site-header.on-hero .nav-links a { color: #fff; }
.site-header.scrolled { background: rgba(255,255,255,0.97); box-shadow: 0 1px 0 var(--hairline); color: var(--ink); }
.site-header.scrolled .logo, .site-header.scrolled .nav-links a { color: var(--ink); }

.logo { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.22em; text-indent: 0.22em; font-weight: 700; }
.logo span { color: var(--gold-soft); }

.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; position: relative; padding-bottom: 0.3rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.current::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-switch { display: flex; gap: 0.15rem; align-items: center; }
.lang-switch button { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; padding: 0.3rem 0.45rem; opacity: 0.55; transition: opacity 0.2s; }
.lang-switch button.active { opacity: 1; border-bottom: 2px solid var(--gold); }
.lang-switch button:hover { opacity: 1; }

.burger { display: none; width: 30px; height: 22px; position: relative; z-index: 70; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: all 0.3s var(--ease); }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 18px; }
.burger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 65;
  background: var(--forest); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--display); font-size: 1.7rem; }
.mobile-menu a:hover { color: var(--gold-soft); }

/* ---------- Hero : duotone marine, sobre ---------- */
.hero { position: relative; min-height: 88svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,40,60,0.96) 0%, rgba(22,40,60,0.82) 45%, rgba(22,40,60,0.45) 100%);
}
.hero .container { position: relative; z-index: 2; padding: 8rem 0 5rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }

.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.18; max-width: 22ch; }
.hero__title em { font-style: normal; color: var(--gold-soft); }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; transform: translateY(110%); transition: transform 0.9s var(--ease); }
body.loaded .hero__line > span { transform: translateY(0); }
body.loaded .hero__line:nth-child(2) > span { transition-delay: 0.12s; }

.hero__sub {
  margin-top: 1.6rem; max-width: 54ch; color: rgba(255,255,255,0.85);
  border-left: 3px solid var(--gold-soft); padding-left: 1.2rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.8s var(--ease) 0.45s, transform 0.8s var(--ease) 0.45s;
}
.hero__ctas { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; transform: translateY(12px); transition: opacity 0.8s var(--ease) 0.6s, transform 0.8s var(--ease) 0.6s; }
body.loaded .hero__sub, body.loaded .hero__ctas { opacity: 1; transform: none; }
.hero__scroll { display: none; }

@media (max-height: 720px) { .hero__title { font-size: clamp(1.9rem, 4vw, 2.8rem); } }

/* ---------- Chiffres ---------- */
.stats { background: var(--porcelain); border-bottom: 1px solid var(--hairline); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: clamp(2.2rem, 4vw, 3.2rem); }
.stat { padding-inline: 1.4rem; border-left: 3px solid var(--hairline); }
.stat:first-child { border-left-color: var(--gold); }
.stat__n { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.stat__l { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); margin-top: 0.35rem; }

/* ---------- Cartes (expertises) ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.prop-card { display: block; background: var(--porcelain); border: 1px solid var(--hairline); border-top: 3px solid var(--forest); transition: border-color 0.25s, box-shadow 0.25s; }
.prop-card:hover { border-top-color: var(--gold); box-shadow: 0 14px 34px rgba(22,40,60,0.10); }
.prop-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #dfe3e9; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7); transition: filter 0.4s; }
.prop-card:hover .prop-card__media img { filter: saturate(1); }
.prop-card__badge {
  position: absolute; top: 0.9rem; left: 0.9rem;
  background: var(--forest); color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.4rem 0.8rem;
}
.prop-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.prop-card__commune { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-style: normal; }
.prop-card__name { font-size: 1.22rem; margin-top: 0.4rem; transition: color 0.25s; }
.prop-card:hover .prop-card__name { color: var(--gold); }
.prop-card__rule { width: 34px; height: 2px; background: var(--hairline); margin: 0.85rem 0; }
.prop-card__specs { font-size: 0.8rem; color: var(--stone); letter-spacing: 0; text-transform: none; }
.prop-card__price { font-family: var(--display); font-size: 1.05rem; color: var(--forest); margin-top: 0.5rem; }

/* ---------- La maison ---------- */
.intro { background: var(--porcelain); border-block: 1px solid var(--hairline); }
.intro .container { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.intro__media { position: relative; }
.intro__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.75); }
.intro__media::after { content: ""; position: absolute; left: -0.9rem; top: 0.9rem; bottom: -0.9rem; width: 3px; background: var(--gold); border: 0; }
.intro__text p { color: var(--stone); margin-bottom: 1.4rem; max-width: 58ch; }
.intro__text .section-title { margin-bottom: 1.4rem; max-width: 24ch; }

/* ---------- Bande consultation (marine) ---------- */
.cta-band { background: var(--forest); color: #fff; text-align: left; position: relative; overflow: hidden; }
.cta-band::before { display: none; }
.cta-band .container { position: relative; max-width: 860px; border-left: 3px solid var(--gold-soft); padding-left: clamp(1.5rem, 4vw, 3rem); }
.cta-band .eyebrow { color: var(--gold-soft); }
.cta-band .eyebrow::before { background: var(--gold-soft); }
.cta-band .section-title { color: #fff; margin-inline: 0; }
.cta-band p:not(.eyebrow) { color: rgba(255,255,255,0.72); margin: 1.1rem 0 2rem; max-width: 56ch; }

/* ---------- Témoignages ---------- */
.testimonials .prop-grid { grid-template-columns: repeat(3, 1fr); }
.tst { background: var(--porcelain); border: 1px solid var(--hairline); border-left: 3px solid var(--gold); padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1.4rem; }
.tst q, .tst blockquote { font-family: var(--display); font-size: 1.02rem; line-height: 1.6; quotes: none; flex: 1; }
.tst cite { font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }

/* ---------- Pages intérieures ---------- */
.page-head { padding: calc(80px + clamp(2.6rem, 6vw, 4.5rem)) 0 clamp(2.2rem, 4vw, 3.2rem); border-bottom: 1px solid var(--hairline); margin-bottom: 2.6rem; }
.page-head .section-title { max-width: 26ch; }

.filters { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding-bottom: 2.2rem; }
.filter-pills { display: flex; border: 2px solid var(--forest); }
.filter-pill { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.7rem 1.4rem; color: var(--forest); transition: all 0.2s; }
.filter-pill + .filter-pill { border-left: 2px solid var(--forest); }
.filter-pill.active { background: var(--forest); color: #fff; }
.filter-select { font-family: var(--sans); font-size: 0.8rem; color: var(--ink); background: #fff; border: 1px solid var(--hairline); padding: 0.7rem 1rem; cursor: pointer; }
.listing-count { margin-left: auto; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.listing-empty { grid-column: 1 / -1; color: var(--stone); font-family: var(--display); font-size: 1.15rem; padding: 3rem 0; }

/* ---------- Fiche détail ---------- */
.det-gallery { display: grid; grid-template-columns: 2.2fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 0.5rem; padding-top: 80px; height: calc(80px + 56vh); }
.det-main { display: block; width: 100%; height: 100%; overflow: hidden; }
.det-main img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); }
.det-thumbs { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 0.5rem; height: 100%; min-height: 0; }
.det-thumb { display: block; width: 100%; overflow: hidden; min-height: 0; }
.det-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); transition: filter 0.3s; }
.det-thumb:hover img { filter: saturate(1); }

.det-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); padding-block: clamp(2.6rem, 5vw, 4rem); align-items: start; }
.det-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-top: 0.3rem; }
.det-price { font-family: var(--display); font-size: 1.3rem; color: var(--gold); margin-top: 0.7rem; }
.det-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; margin: 2rem 0; border-top: 2px solid var(--forest); }
.det-spec { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--hairline); }
.det-spec__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); align-self: center; }
.det-spec__value { font-family: var(--display); font-size: 1rem; text-align: right; }
.det-h2 { font-size: 1.4rem; margin: 2.2rem 0 0.9rem; }
.det-desc { color: var(--stone); max-width: 64ch; }
.det-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 2rem; }
.det-feats li { padding-left: 1.3rem; position: relative; color: var(--stone); font-size: 0.95rem; }
.det-feats li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 12px; height: 2px; background: var(--gold); }

.det-aside { position: sticky; top: calc(80px + 1.2rem); }
.agent-card { background: var(--porcelain); border: 1px solid var(--hairline); border-top: 3px solid var(--forest); padding: 2rem; text-align: center; }
.agent-card__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.agent-card__label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.agent-card__name { font-family: var(--display); font-size: 1.25rem; margin-top: 0.3rem; }
.agent-card__langs { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--stone); margin: 0.3rem 0 1.3rem; }
.agent-card__tel { display: block; margin-top: 1rem; font-family: var(--display); font-size: 1.05rem; }
.agent-card__tel:hover { color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(16,24,36,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; color: rgba(255,255,255,0.85); font-size: 1.6rem; padding: 1rem; line-height: 1; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--gold-soft); }
.lb-close { top: 1.2rem; right: 1.6rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Approche ---------- */
.srv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.srv { background: var(--porcelain); border: 1px solid var(--hairline); border-left: 3px solid var(--forest); padding: clamp(1.8rem, 3.5vw, 2.6rem); transition: border-color 0.25s, box-shadow 0.25s; }
.srv:hover { border-left-color: var(--gold); box-shadow: 0 14px 34px rgba(22,40,60,0.08); }
.srv::before { display: none; }
.srv h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.srv p { color: var(--stone); max-width: 56ch; font-size: 0.95rem; }

/* ---------- L'étude ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.value { background: var(--porcelain); border: 1px solid var(--hairline); border-top: 3px solid var(--gold); padding: 1.6rem; }
.value h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.value p { color: var(--stone); font-size: 0.9rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.member { background: var(--porcelain); border: 1px solid var(--hairline); padding-bottom: 1.4rem; }
.member img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; filter: saturate(0.6); transition: filter 0.35s; }
.member:hover img { filter: saturate(1); }
.member h3 { font-size: 1.15rem; margin: 1.1rem 1.3rem 0; }
.member .role { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0.3rem 1.3rem 0; }
.member .langs { font-size: 0.78rem; color: var(--stone); margin: 0.3rem 1.3rem 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.45rem; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.97rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 0.8rem 1rem;
  transition: border-color 0.25s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--forest); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-success { display: none; margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--gold); background: #fff; font-family: var(--display); font-size: 1rem; }
.form-success.show { display: block; }

.contact-info { background: var(--porcelain); border: 1px solid var(--hairline); border-top: 3px solid var(--forest); padding: 2.2rem; }
.contact-info h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.contact-info p { color: var(--stone); margin-bottom: 1.5rem; }
.contact-info .agent-card__tel { text-align: left; margin: 0.2rem 0 1.5rem; }

/* ---------- WhatsApp ---------- */
.whatsapp-fab {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 55;
  width: 52px; height: 52px; border-radius: 4px;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(22,40,60,0.3);
  transition: background 0.25s;
}
.whatsapp-fab:hover { background: var(--gold); }
.whatsapp-fab svg { width: 25px; height: 25px; fill: currentColor; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--forest); color: rgba(255,255,255,0.75); }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: clamp(3rem, 6vw, 4.5rem) 2.2rem; }
.site-footer .logo { color: #fff; font-size: 1.35rem; }
.ft-tag { margin-top: 0.9rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }
.ft-col h4 { font-family: var(--sans); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem; }
.ft-col li { margin-bottom: 0.55rem; }
.ft-col a { font-size: 0.9rem; transition: color 0.2s; }
.ft-col a:hover { color: #fff; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,0.14); }
.ft-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.3rem; font-size: 0.76rem; color: rgba(255,255,255,0.45); }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero__sub, .hero__ctas { opacity: 1; transform: none; }
  .hero__line > span { transform: none; }
}

/* ---------- Adaptatif ---------- */
@media (max-width: 1024px) {
  .prop-grid, .testimonials .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .det-layout { grid-template-columns: 1fr; }
  .det-aside { position: static; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 0; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .intro .container { grid-template-columns: 1fr; }
  .srv-grid, .contact-layout { grid-template-columns: 1fr; }
  .det-gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .det-main { aspect-ratio: 16 / 10; height: auto; }
  .det-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); height: auto; }
  .det-thumb { aspect-ratio: 4 / 3; }
  .det-specs, .det-feats { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prop-grid, .testimonials .prop-grid, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .filters { gap: 0.8rem; }
  .listing-count { margin-left: 0; width: 100%; }
}
