/* === Melania Imobiliare — pure CSS, no framework === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf7f2;
  --bg-alt: #f3efe6;
  --fg: #2c2c2c;
  --fg-soft: rgba(44, 44, 44, 0.78);
  --fg-muted: #7a7a6e;
  --card: #ffffff;
  --primary: #7d9b76;
  --primary-dark: #4a6b44;
  --primary-fg: #faf7f2;
  --accent: #c4714a;
  --accent-dark: #a85f3d;
  --gold: #c9a84c;
  --border: #e2dccf;
  --destructive: #c0392b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow-soft: 0 8px 30px -12px rgba(60, 50, 30, 0.18);
  --shadow-card: 0 4px 20px -8px rgba(60, 50, 30, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) {
  .container, .container-narrow, .container-wide { padding: 0 2rem; }
}

.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.text-balance { text-wrap: balance; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }

/* === Nav === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background 0.3s, box-shadow 0.3s; background: transparent; }
.nav.solid { background: rgba(250,247,242,0.95); backdrop-filter: blur(8px); box-shadow: var(--shadow-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; max-width: 80rem; margin: 0 auto; }
@media (min-width: 768px) { .nav-inner { padding: 1rem 2rem; } }
.nav-brand { display: flex; align-items: baseline; gap: 0.5rem; }
.nav-brand-name { font-family: var(--serif); font-size: 1.5rem; color: #fff; transition: color 0.3s; }
.nav-brand-sub { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.8); transition: color 0.3s; }
.nav.solid .nav-brand-name { color: var(--primary-dark); }
.nav.solid .nav-brand-sub { color: var(--fg-muted); }
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link { font-size: 0.875rem; font-weight: 500; color: #fff; transition: color 0.2s; }
.nav.solid .nav-link { color: var(--fg); }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-cta { border-radius: 999px; background: var(--primary); color: var(--primary-fg); padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 500; transition: background 0.2s; }
.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle { display: block; padding: 0.5rem; color: #fff; }
.nav.solid .nav-toggle { color: var(--fg); }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-mobile { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: 1rem 1.25rem; flex-direction: column; gap: 1rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--fg); font-weight: 500; }
.nav-mobile a.active { color: var(--accent); }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 999px; padding: 0.75rem 1.75rem; font-size: 0.875rem; font-weight: 500; transition: transform 0.2s, background 0.2s; box-shadow: var(--shadow-soft); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-ghost { background: var(--primary); color: var(--primary-fg); }
.btn-ghost:hover { background: var(--primary-dark); }
.btn-block { width: 100%; }
.btn-outline-primary { border: 1px solid rgba(125,155,118,0.4); color: var(--primary-dark); border-radius: 999px; padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; transition: background 0.2s; }
.btn-outline-primary:hover { background: rgba(125,155,118,0.1); }

/* === Hero === */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #1a1610; }
@media (min-width: 768px) { .hero { align-items: center; } }
.hero-media, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,16,10,0.55), rgba(20,16,10,0.45) 55%, rgba(20,16,10,0.75)); }
.hero-inner { position: relative; max-width: 72rem; width: 100%; margin: 0 auto; padding: 8rem 1.25rem 35svh; }
@media (min-width: 768px) { .hero-inner { padding: 8rem 2rem 0; text-align: center; } }
.hero-eyebrow { color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; margin-bottom: 1.25rem; }
.hero-title { font-family: var(--serif); color: #fff; font-size: clamp(2.25rem, 6vw, 4.5rem); max-width: 56rem; line-height: 1.05; text-wrap: balance; }
@media (min-width: 768px) { .hero-title { margin-left: auto; margin-right: auto; } }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 768px) { .hero-actions { justify-content: center; } }

/* === Page header === */
.page-header { position: relative; overflow: hidden; padding: 8rem 1.25rem 4rem; text-align: center; background: linear-gradient(to bottom, #e8efd9, var(--bg) 80%); }
.page-header-eyebrow { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.page-header-title { font-size: clamp(2.5rem, 5vw, 3.75rem); text-wrap: balance; }
.page-header-sub { margin-top: 1.25rem; color: var(--fg-muted); font-size: 1.05rem; max-width: 38rem; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* === About teaser / feature cards === */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-h { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); text-wrap: balance; }
.about-link { display: inline-flex; margin-top: 1.5rem; color: var(--primary-dark); font-weight: 500; }
.about-link:hover { color: var(--accent); }
.feature-list { display: grid; gap: 1rem; }
.feature-card { background: var(--card); border-radius: 1rem; padding: 1.5rem; box-shadow: var(--shadow-card); display: flex; gap: 1.25rem; align-items: flex-start; }
.feature-num { font-family: var(--serif); font-size: 1.875rem; color: rgba(196,113,74,0.7); line-height: 1; margin-top: 0.25rem; }
.feature-card h3 { font-size: 1.25rem; }
.feature-card p { color: var(--fg-muted); font-size: 0.875rem; margin-top: 0.25rem; }

.section-cream { background: #f1ede2; }
.row-between { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .row-between { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.props-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .props-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .props-grid { grid-template-columns: repeat(3, 1fr); } }
.props-grid.two-col { grid-template-columns: 1fr; }
@media (min-width: 768px) { .props-grid.two-col { grid-template-columns: repeat(2, 1fr); } }

.video-frame { margin-top: 4rem; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-soft); position: relative; aspect-ratio: 16/9; background: #1a1610; }
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-caption { text-align: center; margin-top: 1rem; color: var(--fg-muted); font-style: italic; font-family: var(--serif); font-size: 0.95rem; }

/* === Property card === */
.prop { background: var(--card); border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.3s, box-shadow 0.3s; }
.prop:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.prop-img { position: relative; aspect-ratio: 4/3; background: #ecead8; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(74,107,68,0.7); }
.prop-img .placeholder-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 0.5rem; opacity: 0.5; }
.prop-img .placeholder-label { font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 500; }
.prop-badge { position: absolute; top: 1rem; left: 1rem; font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 999px; backdrop-filter: blur(6px); border: 1px solid; }
.badge-disponibil { background: rgba(125,155,118,0.15); color: var(--primary-dark); border-color: rgba(125,155,118,0.3); }
.badge-rezervat { background: rgba(201,168,76,0.2); color: #8a7126; border-color: rgba(201,168,76,0.4); }
.badge-vandut { background: var(--bg-alt); color: var(--fg-muted); border-color: var(--border); }
.prop-body { padding: 1.5rem; }
.prop-title { font-family: var(--serif); font-size: 1.5rem; }
.prop-desc { margin-top: 0.5rem; font-size: 0.875rem; color: var(--fg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prop-specs { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; text-align: center; font-size: 0.75rem; color: var(--fg-muted); border-top: 1px solid var(--border); padding-top: 1rem; }
.spec-val { font-family: var(--serif); font-size: 1rem; color: var(--fg); }
.spec-label { font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.125rem; }
.prop-cta { margin-top: 1.25rem; width: 100%; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary); color: var(--primary-fg); padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; transition: background 0.2s; }
.prop-cta:hover { background: var(--primary-dark); }

/* === Why-us list === */
.why-list { max-width: 56rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.why-item { display: flex; flex-direction: column; gap: 1.5rem; padding: 2rem; border-radius: 1rem; }
@media (min-width: 768px) { .why-item { flex-direction: row; align-items: flex-start; } }
.why-item.alt { background: var(--card); box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .why-item.flip { flex-direction: row-reverse; text-align: right; } }
.why-num { font-family: var(--serif); font-size: 3rem; color: rgba(196,113,74,0.7); line-height: 1; }
.why-item h3 { font-size: 1.5rem; }
.why-item p { margin-top: 0.5rem; color: var(--fg-soft); }

/* === Gallery teaser === */
.gallery-teaser { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .gallery-teaser { grid-template-columns: repeat(6, 1fr); } }
.gallery-teaser a { aspect-ratio: 1; overflow: hidden; border-radius: 0.75rem; display: block; }
.gallery-teaser img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.gallery-teaser a:hover img { transform: scale(1.1); }

/* === Clients gallery === */
.gallery-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.gallery-row.feature { grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-row.feature { grid-template-columns: repeat(2, 1fr); } }
.gallery-row.compact { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery-row.compact { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: 1rem; box-shadow: var(--shadow-card); aspect-ratio: 1; cursor: pointer; }
.gallery-row.feature .gallery-item { aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.gallery-item:hover img { transform: scale(1.05); }

/* === Lightbox === */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; object-fit: contain; border-radius: 0.5rem; }
.lb-btn { position: absolute; color: rgba(255,255,255,0.85); font-size: 2.5rem; padding: 0.5rem 1rem; line-height: 1; }
.lb-btn:hover { color: #fff; }
.lb-close { top: 1rem; right: 1rem; font-size: 2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* === About-page blocks === */
.about-quote { background: var(--card); border-radius: 1.5rem; padding: 2.5rem; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .about-quote { padding: 3rem; } }
.about-quote .lead { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.3; text-wrap: balance; color: var(--fg-soft); }
.about-quote .body { margin-top: 1.5rem; color: var(--fg-soft); }
.reasons-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .reasons-grid { grid-template-columns: repeat(2, 1fr); } }
.reason { background: var(--card); padding: 1.75rem; border-radius: 1rem; box-shadow: var(--shadow-card); }
.reason .num { font-family: var(--serif); font-size: 1.875rem; color: rgba(196,113,74,0.8); }
.reason h3 { font-size: 1.5rem; margin-top: 0.5rem; }
.reason p { margin-top: 0.75rem; color: var(--fg-soft); }
.acte-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .acte-grid { grid-template-columns: repeat(2, 1fr); } }
.acte-grid li { background: var(--card); padding: 0.75rem 1.25rem; border-radius: 0.75rem; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 0.75rem; color: var(--fg-soft); }
.acte-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary); flex-shrink: 0; }
.location-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .location-grid { grid-template-columns: 1fr 1fr; } }
.map-frame { aspect-ratio: 4/3; border-radius: 1rem; overflow: hidden; box-shadow: var(--shadow-card); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.cta-card { background: var(--primary-dark); color: #fff; border-radius: 1.5rem; padding: 3rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .cta-card { padding: 3.5rem; } }
.cta-card h2 { font-size: clamp(2rem, 5vw, 3rem); color: #fff; }
.cta-card p { margin-top: 1rem; color: rgba(255,255,255,0.85); max-width: 32rem; margin-left: auto; margin-right: auto; }

/* === Contact === */
.contact-wrap { display: flex; flex-direction: column; background: var(--card); box-shadow: 0 20px 50px rgba(125,155,118,0.1); overflow: hidden; }
@media (min-width: 992px) { .contact-wrap { flex-direction: row; } }
.contact-form-side { padding: 2rem 1.5rem; border-bottom: 1px solid rgba(125,155,118,0.1); }
@media (min-width: 768px) { .contact-form-side { padding: 4rem; } }
@media (min-width: 992px) { .contact-form-side { width: 60%; border-bottom: 0; border-right: 1px solid rgba(125,155,118,0.1); } }
.contact-info-side { background: var(--bg); display: flex; flex-direction: column; }
@media (min-width: 992px) { .contact-info-side { width: 40%; } }
.contact-info-map { position: relative; height: 16rem; overflow: hidden; border-bottom: 1px solid rgba(125,155,118,0.1); }
.contact-info-map iframe { width: 100%; height: 100%; border: 0; }
.contact-info-details { padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 768px) { .contact-info-details { padding: 3rem; } }
.contact-info-block { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-block svg { color: var(--accent); flex-shrink: 0; margin-top: 0.25rem; }
.contact-heading-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.625rem; font-weight: 700; display: block; margin-bottom: 0.75rem; }
.contact-heading h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.contact-heading p { font-size: 0.875rem; color: var(--fg-soft); margin-top: 1.25rem; max-width: 28rem; }
.contact-heading .rule { height: 1px; width: 3rem; background: var(--gold); margin-top: 1.5rem; }
.field label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); font-weight: 700; display: block; margin-bottom: 0.25rem; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(125,155,118,0.3); padding: 0.75rem 0; font: inherit; font-size: 0.875rem; color: var(--fg); outline: none; transition: border-color 0.2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: none; }
.contact-form { display: flex; flex-direction: column; gap: 2rem; margin-top: 2.5rem; }
.field-row { display: grid; gap: 2rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.submit-btn { align-self: flex-start; background: var(--accent); color: #fff; padding: 1rem 2.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; transition: background 0.4s; border: none; cursor: pointer; }
.submit-btn:hover { background: var(--primary-dark); }
.contact-success { background: rgba(125,155,118,0.1); border: 1px solid rgba(125,155,118,0.3); padding: 1.5rem; margin-top: 2rem; display: none; }
.contact-success p:first-child { font-family: var(--serif); font-size: 1.5rem; color: var(--primary-dark); }
.contact-success p:last-child { font-size: 0.875rem; color: var(--fg-soft); margin-top: 0.5rem; }
.form-error { color: var(--destructive); font-size: 0.875rem; min-height: 1.2em; }

/* === Footer === */
.footer { margin-top: 6rem; border-top: 1px solid var(--border); background: #f1ede2; }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { font-family: var(--serif); font-size: 1.125rem; margin-bottom: 0.75rem; }
.footer ul li { font-size: 0.875rem; color: var(--fg-soft); padding: 0.25rem 0; }
.footer ul li a:hover { color: var(--accent); }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.875rem; color: var(--primary-dark); }
.footer-brand .brand-sub { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-muted); margin-left: 0.5rem; }
.footer-brand .tagline { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--fg-soft); margin-top: 0.75rem; }
.footer-brand .blurb { margin-top: 1rem; font-size: 0.875rem; color: var(--fg-muted); max-width: 24rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0; display: flex; flex-direction: column; gap: 0.75rem; justify-content: space-between; font-size: 0.75rem; color: var(--fg-muted); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* === WhatsApp float === */
.wa-float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.2); transition: transform 0.2s; }
.wa-float:hover { transform: scale(1.1); }

/* === Cookie banner === */
.cookie { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; padding: 0.75rem; display: none; }
@media (min-width: 768px) { .cookie { padding: 1.25rem; } }
.cookie-inner { max-width: 64rem; margin: 0 auto; border-radius: 1rem; border: 1px solid var(--border); background: #faf6ed; box-shadow: var(--shadow-soft); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .cookie-inner { padding: 1.5rem; flex-direction: row; align-items: center; } }
.cookie-inner p { font-size: 0.875rem; color: var(--fg-soft); flex: 1; }
.cookie-inner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn { border-radius: 999px; padding: 0.5rem 1.25rem; font-size: 0.875rem; transition: background 0.2s; }
.cookie-btn-refuse { border: 1px solid var(--border); background: transparent; color: var(--fg); }
.cookie-btn-refuse:hover { background: var(--bg-alt); }
.cookie-btn-accept { background: var(--accent); color: #fff; border: none; }
.cookie-btn-accept:hover { background: var(--accent-dark); }

/* === Dialog === */
.dialog-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; padding: 1rem; }
.dialog-overlay.open { display: flex; }
.dialog { background: var(--card); border-radius: 1rem; max-width: 32rem; width: 100%; max-height: 90vh; overflow-y: auto; padding: 1.5rem; position: relative; }
.dialog-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--fg-muted); font-size: 1.25rem; }
.dialog-close:hover { background: var(--bg-alt); }
.dialog h3 { font-family: var(--serif); font-size: 1.75rem; margin-top: 0.5rem; }
.dialog .dialog-img { aspect-ratio: 4/3; border-radius: 0.75rem; overflow: hidden; margin-top: 1rem; position: relative; background: #ecead8; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(74,107,68,0.7); }
.dialog .dialog-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; text-align: center; font-size: 0.75rem; color: var(--fg-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; margin: 1rem 0; }
.dialog-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 480px) { .dialog-actions { flex-direction: row; } }
.dialog-actions > * { flex: 1; }

/* === Article (legal pages) === */
.article { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem 6rem; color: var(--fg-soft); line-height: 1.7; }
@media (min-width: 768px) { .article { padding: 0 2rem 6rem; } }
.article h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 1.875rem); margin: 3rem 0 1rem; color: var(--primary-dark); }
.article h3 { font-family: var(--serif); font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
.article p { margin: 0.75rem 0; }
.article ul { padding-left: 0; margin-top: 0.75rem; }
.article ul.disc { list-style: disc; padding-left: 1.5rem; }
.article ul li { margin: 0.25rem 0; }
.article a { color: var(--accent); }
.article a:hover { text-decoration: underline; }
.article strong { color: var(--fg); }

/* === Anim === */
.slide-in-left { animation: slideInLeft 0.9s cubic-bezier(0.22,1,0.36,1) both; animation-delay: 0.5s; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
.delay-100 { animation-delay: 0.6s; }
.delay-200 { animation-delay: 0.75s; }
.delay-300 { animation-delay: 0.9s; }

.muted { color: var(--fg-muted); }
.center { text-align: center; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
