:root {
  --bg: #FAF8F5;
  --bg-alt: #F2EFE9;
  --fg: #1C2127;
  --fg-muted: #6B7280;
  --accent: #1B4D3E;
  --accent-light: #2A6B56;
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --border: #E2DDD5;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 60px 80px;
  min-height: 90vh;
  background: var(--accent);
  color: #FAF8F5;
}

.hero-inner { max-width: 560px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-tag {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 3px 10px;
  border-radius: 20px;
}
.eyebrow-sep { color: rgba(250,248,245,0.3); }
.eyebrow-sub { color: rgba(250,248,245,0.5); font-weight: 300; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: #FAF8F5;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(250,248,245,0.72);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-data-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.data-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(250,248,245,0.06);
  border: 1px solid rgba(250,248,245,0.12);
  padding: 12px 18px;
  border-radius: 8px;
}
.data-chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
}
.data-chip-val {
  font-size: 13px;
  color: rgba(250,248,245,0.85);
  font-weight: 400;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.compass-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.compass-label {
  text-align: center;
}
.compass-label-text {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.compass-label-sub {
  display: block;
  font-size: 12px;
  color: rgba(250,248,245,0.45);
  margin-top: 4px;
  font-weight: 300;
}

/* ── STATS ── */
.stats {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 60px;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ── FEATURES ── */
.features {
  padding: 100px 60px;
  background: var(--bg);
}
.features-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.features-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 60px;
  line-height: 1.2;
  max-width: 600px;
}

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

.feature-card {
  padding: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }

.feature-num {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 14px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.feature-src {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  background: rgba(27,77,62,0.07);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* ── MODEL ── */
.model {
  padding: 100px 60px;
  background: var(--accent);
  color: #FAF8F5;
}
.model-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.model-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.15;
  color: #FAF8F5;
}

.model-body {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(250,248,245,0.65);
  margin-bottom: 36px;
}

.model-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pillar-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.pillar-text {
  font-size: 14px;
  color: rgba(250,248,245,0.8);
}
.pillar-text strong { color: #FAF8F5; }

.pull-quote {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  line-height: 1.5;
  color: rgba(250,248,245,0.85);
  margin-bottom: 20px;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}

.pull-cite {
  font-size: 12px;
  color: rgba(250,248,245,0.4);
  display: block;
  padding-left: 24px;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ── DATA ── */
.data-section {
  padding: 100px 60px;
  background: var(--bg);
}
.data-inner { max-width: 1100px; margin: 0 auto; }

.data-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 60px;
  line-height: 1.2;
  max-width: 640px;
}

.data-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.data-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.data-row:last-child { border-bottom: none; }

.data-source {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}
.data-use {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--fg-muted);
}

.source-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.source-desc {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.data-callout {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.data-callout p {
  font-size: 14px;
  color: var(--fg-muted);
}
.data-callout strong { color: var(--fg); }

/* ── CLOSING ── */
.closing {
  padding: 120px 60px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.closing-inner { max-width: 1100px; margin: 0 auto; }

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 28px;
}

.closing-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 680px;
}

/* ── FOOTER ── */
.footer {
  padding: 32px 60px;
  background: var(--fg);
  color: rgba(250,248,245,0.5);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #FAF8F5;
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 12px;
  color: rgba(250,248,245,0.4);
}
.footer-meta {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-sep { color: rgba(250,248,245,0.2); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 32px;
    min-height: auto;
  }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .model-inner { grid-template-columns: 1fr; }
  .stats-inner { flex-wrap: wrap; gap: 32px; }
  .stat-divider { display: none; }
  .data-row { grid-template-columns: 1fr; }
  .data-source { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero, .features, .model, .data-section, .closing, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .stats { padding: 40px 24px; }
  .stat-num { font-size: 36px; }
}

/* ══════════════════════════════════════════════
   CITY PAGES — /ehpad/:city
   ══════════════════════════════════════════════ */

/* ── City hero ── */
.city-hero {
  background: var(--accent);
  color: #FAF8F5;
  padding: 64px 60px 80px;
}
.city-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
  font-size: 13px;
}
.breadcrumb-link {
  color: rgba(250,248,245,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb-link:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(250,248,245,0.3); }
.breadcrumb-current { color: rgba(250,248,245,0.85); }

.city-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.city-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #FAF8F5;
}

.city-hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(250,248,245,0.68);
  max-width: 620px;
  margin-bottom: 40px;
  font-weight: 300;
}

/* KPI chips */
.city-kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kpi-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(250,248,245,0.06);
  border: 1px solid rgba(250,248,245,0.12);
  padding: 14px 20px;
  border-radius: 8px;
  min-width: 160px;
}
.kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
}
.kpi-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #FAF8F5;
}

/* ── Shared section wrapper ── */
.city-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.city-section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 36px;
  line-height: 1.2;
}

.city-section-intro {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 680px;
}

/* ── Pricing section ── */
.city-pricing {
  padding: 80px 60px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.pricing-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row > * {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.pricing-row > *:last-child { border-right: none; }
.pricing-row--header {
  background: var(--fg);
  color: #FAF8F5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-row--header > * { padding: 12px 20px; }

.pricing-note {
  padding: 16px 20px;
  background: rgba(27,77,62,0.06);
  border: 1px solid rgba(27,77,62,0.15);
  border-radius: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Facility cards ── */
.city-facilities {
  padding: 80px 60px;
  background: var(--bg);
}

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

.facility-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.facility-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 16px rgba(27,77,62,0.08);
}

.facility-card-header { display: flex; align-items: center; gap: 8px; }

.facility-type-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(27,77,62,0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.facility-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}

.facility-address {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.facility-address svg { flex-shrink: 0; margin-top: 1px; color: var(--fg-muted); }

.facility-meta { margin-top: auto; }

.facility-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-from {
  font-size: 12px;
  color: var(--fg-muted);
}
.price-val {
  font-size: 15px;
  color: var(--fg);
}
.price-val strong {
  font-size: 20px;
  color: var(--accent);
}

.facility-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.data-source-tag {
  font-size: 11px;
  color: var(--fg-muted);
}

/* "More facilities" teaser card */
.facility-card--more {
  background: var(--accent);
  border-color: var(--accent);
  color: #FAF8F5;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.facility-more-count {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.facility-more-label {
  font-size: 16px;
  color: rgba(250,248,245,0.85);
  line-height: 1.4;
}
.facility-more-sub {
  font-size: 12px;
  color: rgba(250,248,245,0.45);
  font-weight: 300;
}

/* ── FAQ section ── */
.city-faq {
  padding: 80px 60px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  background: #fff;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--bg); }
.faq-item[open] .faq-question { color: var(--accent); background: var(--bg); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: transform 0.2s;
}

.faq-answer {
  padding: 0 28px 24px;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}
.faq-answer p { margin: 0; }

/* ── Other cities nav ── */
.city-nav {
  padding: 80px 60px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.city-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.city-nav-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.city-nav-card:hover {
  border-color: var(--accent);
  background: #fff;
}
.city-nav-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.city-nav-meta {
  font-size: 12px;
  color: var(--fg-muted);
}
.city-nav-dep {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.city-nav-dep-name {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 4px;
}
.city-nav-grid--large { grid-template-columns: repeat(3, 1fr); }
.city-nav-card--large { padding: 28px 28px; }
.city-nav-card--large .city-nav-name { font-size: 17px; font-weight: 600; }
.city-nav-card--large .city-nav-meta { font-size: 13px; }

/* ── City page responsive ── */
@media (max-width: 1024px) {
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .city-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .city-nav-grid--large { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .city-hero { padding: 48px 24px 60px; }
  .city-pricing, .city-facilities, .city-faq, .city-nav {
    padding: 60px 24px;
  }
  .pricing-row { grid-template-columns: 1fr 1fr; }
  .pricing-row > :nth-child(3),
  .pricing-row > :nth-child(4) { display: none; }
  .pricing-row--header > :nth-child(3),
  .pricing-row--header > :nth-child(4) { display: none; }
}

@media (max-width: 600px) {
  .facility-grid { grid-template-columns: 1fr; }
  .city-nav-grid,
  .city-nav-grid--large { grid-template-columns: 1fr 1fr; }
  .city-kpi-strip { gap: 8px; }
  .kpi-chip { min-width: 140px; }
}