/* =========================================================
   Alexandra Rufă — Cabinet de avocat
   Smarald închis #123B30 · Ivoire #FBF8F1 / #EDE3CF · Auriu #E8CD7F
   ========================================================= */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.375rem, 1.15rem + 1vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.25rem + 1.9vw, 3rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1.2rem + 4.6vw, 5.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-full: 999px;

  --font-display: 'Newsreader', 'Times New Roman', serif;
  --font-body: 'Geist', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 220ms var(--ease);
  --content: 1200px;

  --emerald: #123B30;
  --emerald-deep: #0C2A22;
  --emerald-soft: #1A4A3D;
  --ivory: #FBF8F1;
  --ivory-2: #F4EEE1;
  --ivory-warm: #EDE3CF;
  --gold: #E8CD7F;
  --gold-deep: #9A7A2E;
  --ink-muted: rgb(237 227 207 / 0.74);
  --ink-border: rgb(237 227 207 / 0.16);
}

/* Ivory sections (default) */
:root, .ivory {
  --color-bg: var(--ivory);
  --color-surface: var(--ivory-2);
  --color-surface-2: #FFFDF8;
  --color-text: #15241E;
  --color-text-muted: #4E5B54;
  --color-text-faint: #8A928B;
  --color-border: rgb(18 59 48 / 0.12);
  --color-border-strong: rgb(18 59 48 / 0.22);
  --color-primary: var(--emerald);
  --color-primary-hover: var(--emerald-deep);
  --color-primary-soft: rgb(18 59 48 / 0.07);
  --color-on-primary: var(--ivory-warm);
  --color-title: var(--emerald);
  --color-title-accent: var(--gold-deep);
  --color-error: #A3362A;
  --shadow-md: 0 18px 40px -20px rgb(12 42 34 / 0.35);
  --shadow-lg: 0 40px 80px -40px rgb(12 42 34 / 0.45);
}

/* Emerald sections */
.ink {
  --color-bg: var(--emerald);
  --color-surface: var(--emerald-soft);
  --color-surface-2: rgb(237 227 207 / 0.06);
  --color-text: var(--ivory-warm);
  --color-text-muted: var(--ink-muted);
  --color-text-faint: rgb(237 227 207 / 0.45);
  --color-border: var(--ink-border);
  --color-border-strong: rgb(237 227 207 / 0.26);
  --color-primary: var(--gold);
  --color-primary-hover: #F0DA9A;
  --color-primary-soft: rgb(232 205 127 / 0.1);
  --color-on-primary: var(--emerald);
  --color-title: var(--gold);
  --color-title-accent: var(--ivory-warm);
  background: var(--color-bg);
  color: var(--color-text);
}
.ink--deep { --color-bg: var(--emerald-deep); }
.ivory { background: var(--color-bg); color: var(--color-text); }

/* ---------- Base ---------- */
body { font-family: var(--font-body); font-weight: 400; overflow-x: clip; }
.container { width: min(100% - 2 * clamp(var(--space-5), 4vw, var(--space-12)), var(--content)); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; background: var(--color-primary); color: var(--color-on-primary); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); }
.skip-link:focus { top: var(--space-4); }

.eyebrow { display: flex; align-items: center; gap: var(--space-3); color: var(--color-title-accent); }

.section { position: relative; padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); max-width: 52rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; max-width: 42rem; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { color: var(--color-title); font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.01em; font-variation-settings: 'opsz' 72; }
.section-title em { color: var(--color-title-accent); font-weight: 400; }
.title-plate { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
.title-plate__sub { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); line-height: 1.3; letter-spacing: 0; color: var(--color-title-accent); }
.section-lead { color: var(--color-text-muted); max-width: 52ch; font-size: var(--text-base); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 50px; padding: var(--space-3) var(--space-6); font-size: var(--text-sm); font-weight: 500; border-radius: var(--radius-md); border: 1px solid transparent; white-space: nowrap; }
.btn svg { transition: transform 300ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 10px 24px -14px rgb(0 0 0 / 0.5); }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { color: var(--color-text); background: var(--color-primary-soft); }
.btn--ghost:hover { background: var(--color-primary); color: var(--color-on-primary); }
.btn--outline-light { color: var(--ivory-warm); border-color: rgb(237 227 207 / 0.3); }
.btn--outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn--sm { min-height: 42px; padding: var(--space-2) var(--space-5); }
.btn--lg { min-height: 56px; font-size: var(--text-base); }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-full); color: var(--color-text); }
.icon-btn:hover { background: var(--color-primary-soft); color: var(--color-primary); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand__mark, .footer__mark { width: 40px; height: 40px; flex: none; }
.brand__mark path, .footer__mark path, .hero__ghost path { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .mk-bar, .footer__mark .mk-bar { stroke: var(--color-title-accent); stroke-width: 3; }
.brand__mark .mk-base, .footer__mark .mk-base { stroke-width: 1.4; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { color: var(--color-title); white-space: nowrap; font-family: var(--font-display); font-size: 1.3rem; font-weight: 450; letter-spacing: -0.01em; }
.brand__sub { white-space: nowrap; font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-top: 3px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgb(18 59 48 / 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.header.is-scrolled { border-color: rgb(232 205 127 / 0.18); box-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.5); }
.topbar { background: var(--emerald-deep); border-bottom: 1px solid rgb(232 205 127 / 0.14); font-size: var(--text-xs); color: var(--ink-muted); }
.topbar__inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-wrap: wrap; text-align: center; }
.topbar__label { color: var(--gold); font-weight: 500; }
.topbar a { color: var(--ivory-warm); font-weight: 500; border-radius: var(--radius-sm); }
.topbar a:hover { color: var(--gold); }
.topbar__sep { margin-inline: var(--space-2); color: rgb(232 205 127 / 0.5); }
html { scroll-padding-top: 124px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 76px; }
.nav__list { display: flex; gap: var(--space-1); }
.nav__list a { white-space: nowrap; font-size: var(--text-sm); color: var(--color-text-muted); padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); display: inline-block; }
.nav__list a:hover, .nav__list a.is-active { color: var(--color-text); background: rgb(237 227 207 / 0.08); }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.header__phone { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--color-text); padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); }
.header__phone svg { color: var(--gold); }
.header__phone:hover { background: rgb(237 227 207 / 0.08); }
.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span { width: 20px; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease); }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 110px 0 0 0; z-index: 49; padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; justify-content: space-between; opacity: 0; transition: opacity 300ms var(--ease); }
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu ul { display: grid; }
.mobile-menu li a { display: flex; align-items: baseline; gap: var(--space-4); font-family: var(--font-display); font-size: var(--text-xl); padding-block: var(--space-3); border-bottom: 1px solid var(--color-border); }
.mobile-menu__foot { display: grid; gap: var(--space-4); }
.mobile-menu__mail { text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--color-bg); padding-block: clamp(var(--space-10), 5vw, var(--space-16)) clamp(var(--space-12), 6vw, var(--space-20)); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; opacity: 0.16; mix-blend-mode: multiply; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(251 248 241 / 0.82) 0%, rgb(251 248 241 / 0.45) 45%, rgb(251 248 241 / 0.1) 75%), linear-gradient(0deg, var(--color-bg) 0%, transparent 22%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.hero__eyebrow { margin-bottom: var(--space-6); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: 0.01em; gap: var(--space-4); }
.hero__eyebrow .rule { width: 40px; height: 1px; background: var(--color-title-accent); }
.hero__title { color: var(--color-title); font-family: var(--font-display); font-weight: 350; font-size: var(--text-hero); line-height: 1.02; letter-spacing: -0.025em; font-variation-settings: 'opsz' 72; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > * { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > * { animation-delay: 120ms; }
.hero__title .line:nth-child(3) > * { animation-delay: 240ms; }
.hero__title em { font-style: italic; color: var(--color-title); font-weight: 400; padding-right: 0.06em; }
.hero__title .line:nth-child(2) em { color: var(--color-title-accent); }
@keyframes rise { to { transform: translateY(0); } }
.hero__lead { margin-top: var(--space-6); color: var(--color-text-muted); max-width: 46ch; line-height: 1.65; font-size: var(--text-base); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-8); }
.hero__copy > *:not(.hero__title) { opacity: 0; animation: fade 900ms var(--ease) forwards; animation-delay: 450ms; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; aspect-ratio: 4 / 5.2; max-height: 82vh; justify-self: end; width: 100%; }
.hero__panel { position: absolute; inset: 14% 0 0 8%; background: var(--emerald); border-radius: var(--radius-xl); overflow: hidden; clip-path: inset(100% 0 0 0 round var(--radius-xl)); animation: panel 1.3s var(--ease) 150ms forwards; }
@keyframes panel { to { clip-path: inset(0 0 0 0 round var(--radius-xl)); } }
.hero__ghost { position: absolute; width: 120%; right: -38%; top: -6%; color: var(--gold); opacity: 0.28; }
.hero__ghost path { stroke-width: 0.5; }
.hero__portrait { position: absolute; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none; translate: -50% 0; opacity: 0; animation: fade 1.2s var(--ease) 500ms forwards; filter: drop-shadow(0 20px 30px rgb(12 42 34 / 0.3)); }
.plaque { position: absolute; left: 0; bottom: 9%; background: var(--emerald-deep); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.6); border: 1px solid rgb(232 205 127 / 0.3); opacity: 0; animation: fade 900ms var(--ease) 900ms forwards; }
.plaque__label { font-family: var(--font-body); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.plaque__name { color: var(--ivory-warm); font-family: var(--font-display); font-size: 1.35rem; margin-top: 2px; }
.plaque__status { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); margin-top: var(--space-2); color: var(--ink-muted); }
.pulse { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--gold); box-shadow: 0 0 0 0 rgb(232 205 127 / 0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(232 205 127 / 0); } 100% { box-shadow: 0 0 0 0 rgb(232 205 127 / 0); } }

/* ---------- Areas ---------- */


/* ---------- About ---------- */
.about { overflow: hidden; isolation: isolate; }
.about__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; opacity: 0.2; mix-blend-mode: screen; filter: contrast(1.15); }
.about__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(18 59 48 / 0.1) 0%, rgb(18 59 48 / 0.6) 50%, rgb(18 59 48 / 0.92) 100%), linear-gradient(0deg, var(--emerald) 0%, transparent 20%), linear-gradient(180deg, var(--emerald) 0%, transparent 20%); }
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(var(--space-10), 6vw, var(--space-24)); align-items: center; }
.about__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.about__frame::after { content: ''; position: absolute; inset: var(--space-4); border: 1px solid rgb(232 205 127 / 0.5); border-radius: calc(var(--radius-xl) - var(--space-4)); pointer-events: none; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease); }
.about__figure:hover img { transform: scale(1.03); }
.about__head { display: grid; gap: var(--space-3); }
.about__role { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--color-title-accent); line-height: 1.2; margin-top: calc(-1 * var(--space-1)); }
.about__intro { margin-top: var(--space-6); display: grid; gap: var(--space-4); color: var(--color-text-muted); line-height: 1.65; }
.about__intro p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; max-width: none; }
.about__intro p { max-width: 64ch; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.step { position: relative; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6) var(--space-6); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-on-primary); font-family: var(--font-display); font-size: var(--text-base); line-height: 1; }
.step h3 { color: var(--color-title); font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); line-height: 1.2; margin-top: var(--space-6); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-3); }
.step:not(:last-child)::after { content: ''; position: absolute; top: calc(var(--space-8) + 22px); right: calc(-1 * var(--space-5)); width: var(--space-5); height: 1px; background: var(--color-border-strong); }

/* ---------- Areas (cards) ---------- */
.areas__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.acard { position: relative; display: flex; flex-direction: column; gap: var(--space-5); background: linear-gradient(180deg, #FFFDF8 0%, var(--ivory-2) 100%); border: 1px solid rgb(154 122 46 / 0.22); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6) var(--space-6); box-shadow: 0 1px 2px rgb(12 42 34 / 0.04), 0 18px 36px -30px rgb(12 42 34 / 0.35); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), opacity 900ms var(--ease); }
.acard::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgb(154 122 46 / 0.14); border-radius: calc(var(--radius-lg) - 6px); pointer-events: none; transition: border-color 500ms var(--ease); }
.acard:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(12 42 34 / 0.04), 0 30px 50px -30px rgb(12 42 34 / 0.45); }
.acard:hover::after { border-color: rgb(154 122 46 / 0.45); }
.acard__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); }
.acard__medal { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: var(--radius-full); background: radial-gradient(circle at 50% 35%, var(--emerald-soft) 0%, var(--emerald) 70%); color: var(--gold); box-shadow: 0 10px 22px -12px rgb(12 42 34 / 0.6); }
.acard__medal::before { content: ''; position: absolute; inset: 4px; border-radius: inherit; border: 1px solid rgb(232 205 127 / 0.45); }
.acard__medal svg { width: 38px; height: 38px; }
.acard__title { font-family: var(--font-display); font-weight: 400; font-size: 1.3125rem; line-height: 1.15; color: var(--color-title); letter-spacing: -0.005em; }
.acard__rule { position: relative; display: block; height: 1px; background: linear-gradient(90deg, transparent, rgb(154 122 46 / 0.4) 20%, rgb(154 122 46 / 0.4) 80%, transparent); }
.acard__rule::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: var(--ivory-2); border: 1px solid var(--gold-deep); transform: translate(-50%, -50%) rotate(45deg); }
.acard__list { display: grid; gap: var(--space-3); }
.acard__list li { position: relative; padding-left: var(--space-5); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); max-width: none; }
.acard__list li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 5px; height: 5px; background: var(--gold-deep); transform: rotate(45deg); }

@media (max-width: 1240px) { .areas__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band (before footer) ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ivory-warm); padding-block: clamp(var(--space-16), 8vw, var(--space-24)); text-align: center; }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: 0.2; mix-blend-mode: multiply; filter: sepia(0.35); }
.cta-band__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgb(237 227 207 / 0.88) 0%, rgb(237 227 207 / 0.55) 45%, rgb(237 227 207 / 0.2) 100%); }
.cta-band__title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.01em; color: var(--emerald); }
.cta-band__ctas { margin-top: var(--space-8); display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3); }
.btn--outline-dark { color: var(--emerald); border-color: rgb(18 59 48 / 0.35); background: rgb(251 248 241 / 0.5); }
.btn--outline-dark:hover { border-color: var(--emerald); background: var(--emerald); color: var(--ivory-warm); }

/* ---------- Guide ---------- */
.guide__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.gcard { display: flex; flex-direction: column; gap: var(--space-4); background: var(--ivory); color: #15241E; border-radius: var(--radius-lg); padding: var(--space-6); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), opacity 900ms var(--ease); }
.gcard.is-in { transform: none; }
.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gcard__tag { font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }
.gcard h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); line-height: 1.2; color: var(--emerald); margin-top: calc(-1 * var(--space-2)); }
.gcard__steps { counter-reset: s; display: grid; gap: var(--space-3); }
.gcard__steps li { counter-increment: s; display: grid; grid-template-columns: 1.625rem 1fr; gap: var(--space-3); align-items: start; font-size: var(--text-sm); color: #4E5B54; line-height: 1.5; max-width: none; }
.gcard__steps li::before { content: counter(s); display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: var(--radius-full); background: rgb(18 59 48 / 0.08); color: var(--emerald); font-family: var(--font-display); font-size: var(--text-sm); }
.gcard__steps li span { padding-top: 0.15rem; }
.gcard__avoid { font-size: var(--text-sm); color: #4E5B54; line-height: 1.5; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: rgb(163 54 42 / 0.06); margin-top: auto; }
.gcard__avoid strong { color: #A3362A; font-weight: 500; }
.gcard__link { margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--emerald); min-height: 44px; }
.gcard__link svg { transition: transform 300ms var(--ease); }
.gcard__link:hover svg { transform: translateX(3px); }
.gcard--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); grid-template-areas: "tag steps" "title steps" "link steps"; grid-template-rows: auto auto 1fr; column-gap: var(--space-10); row-gap: var(--space-3); align-items: start; }
.gcard--wide .gcard__tag { grid-area: tag; }
.gcard--wide h3 { grid-area: title; font-size: var(--text-xl); }
.gcard--wide .gcard__steps { grid-area: steps; }
.gcard--wide .gcard__avoid { grid-area: avoid; margin-top: var(--space-2); }
.gcard--wide .gcard__link { grid-area: link; align-self: end; }
.guide__note { margin-top: var(--space-8); text-align: center; font-size: var(--text-xs); color: var(--color-text-faint); margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(var(--space-10), 6vw, var(--space-24)); align-items: start; }
.faq__aside { display: grid; gap: var(--space-5); position: sticky; top: 140px; align-content: start; justify-items: start; }
.faq__img { margin-top: var(--space-6); aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--radius-xl); }
.faq__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.faq__list { display: grid; gap: var(--space-3); }
.faq__item { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: box-shadow 300ms var(--ease); }
.faq__item[open] { box-shadow: var(--shadow-md); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: var(--space-5) var(--space-6); font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.25; color: var(--color-title); border-radius: var(--radius-lg); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: var(--radius-full); background: var(--color-primary-soft); }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--color-primary); transition: transform 350ms var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__body { padding: 0 var(--space-6) var(--space-6); color: var(--color-text-muted); animation: fade 400ms var(--ease); }

/* ---------- Contact ---------- */
.contact__card { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: center; }
.contact__direct { display: grid; gap: var(--space-5); align-content: start; }
.contact__lead { color: var(--color-text-muted); max-width: 40ch; }
.contact__lines { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.contact__lines li { max-width: none; }
.contact__lines a, .contact__lines div { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.contact__lines a:hover { background: rgb(237 227 207 / 0.08); }
.contact__lines small { display: block; font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: 2px; }
.contact__lines span:not(.contact__icon) { font-size: var(--text-sm); font-weight: 500; }
.contact__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius-full); background: rgb(232 205 127 / 0.12); color: var(--gold); }

.form { background: var(--ivory); color: #15241E; --color-text: #15241E; --color-text-muted: #4E5B54; --color-text-faint: #8A928B; --color-title: var(--emerald); --color-primary: var(--emerald); --color-primary-hover: var(--emerald-deep); --color-on-primary: var(--ivory-warm); --color-error: #A3362A; padding: clamp(var(--space-8), 4vw, var(--space-12)); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); position: relative; }
.form__fields { display: grid; gap: var(--space-5); }
.form__fields[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); padding-left: var(--space-1); }
.field input, .field textarea { width: 100%; background: #FFFDF8; border: 1px solid rgb(18 59 48 / 0.14); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--text-base); color: var(--color-text); resize: vertical; min-height: 50px; }
.field textarea { min-height: 130px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgb(18 59 48 / 0.1); }
.field.has-error input, .field.has-error textarea { border-color: var(--color-error); }
.field__err { font-size: var(--text-xs); color: var(--color-error); padding-left: var(--space-1); }
.field__err:empty { display: none; }
.field__meta { display: flex; justify-content: space-between; gap: var(--space-4); }
.field__count { font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs); color: var(--color-text-faint); margin-left: auto; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); cursor: pointer; line-height: 1.5; padding-left: var(--space-1); }
.check input { width: 18px; height: 18px; accent-color: var(--emerald); margin-top: 2px; border-radius: 4px; }
.form__success { display: grid; justify-items: start; gap: var(--space-4); align-content: center; min-height: 420px; animation: fade 600ms var(--ease); }
.form__success[hidden] { display: none; }
.form__seal { width: 56px; height: 56px; }
.form__seal circle, .form__seal path { stroke: var(--emerald); stroke-width: 1.5; }
.form__seal path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 700ms var(--ease) 200ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form__success h3 { color: var(--color-title); font-family: var(--font-display); font-weight: 350; font-size: var(--text-2xl); line-height: 1.05; }
.form__success p { color: var(--color-text-muted); }
.form__success strong { color: var(--color-text); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { --color-bg: var(--emerald-deep); background: var(--emerald-deep); padding-top: var(--space-6); }
.footer__top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-6); padding-bottom: var(--space-12); border-bottom: 1px solid var(--ink-border); }
.footer__claim { color: var(--color-title); font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1.15; letter-spacing: -0.01em; }
.footer__claim em { color: var(--gold); }
.footer__ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--space-10); padding-block: var(--space-12); }
.footer__brand { display: grid; gap: var(--space-5); align-content: start; }
.footer__mark { width: 56px; height: 56px; color: var(--ivory-warm); }
.footer__brand p { font-size: var(--text-sm); color: var(--ink-muted); max-width: 34ch; }
.footer__h { font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: var(--space-4); }
.footer__cols ul { display: grid; gap: var(--space-2); }
.footer__cols li { font-size: var(--text-sm); color: var(--ivory-warm); }
.footer__cols li a:hover { color: var(--gold); }
.footer__muted { color: var(--ink-muted) !important; }
.footer__bottom { display: flex; justify-content: center; text-align: center; gap: var(--space-4) var(--space-8); padding-block: var(--space-8) var(--space-10); border-top: 1px solid var(--ink-border); font-size: var(--text-xs); color: var(--ink-muted); }
.footer__bottom ul { display: flex; gap: var(--space-3) var(--space-6); flex-wrap: wrap; justify-content: center; }
.footer__bottom a:hover { color: var(--ivory-warm); }
.footer__disclaimer { grid-column: 1 / -1; color: rgb(237 227 207 / 0.55); max-width: 90ch; }

/* ---------- Quickbar (mobile) ---------- */
.quickbar { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1400px) { .header__phone { display: none; } }
@media (max-width: 1180px) { .nav__list li:nth-child(5) { display: none; } }
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; justify-self: center; max-height: none; }
              .about__grid, .faq__grid { grid-template-columns: 1fr; }
  .about__figure, .faq__aside { position: static; }
  .about__figure { max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
  .guide__grid { grid-template-columns: 1fr 1fr; }
  .areas__grid { grid-template-columns: 1fr 1fr; }
  .gcard--wide { grid-column: auto; display: flex; }
  .gcard--wide h3 { font-size: var(--text-lg); }
  .contact__card { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header__inner { min-height: 68px; }
  .mobile-menu { inset: 102px 0 0 0; }
  .topbar__mail, .topbar__sep { display: none; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.15rem; }
  .hero__ctas .btn { width: 100%; }
        .about__figure figcaption { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
  .about__cap-role { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .guide__grid { grid-template-columns: 1fr; }
  .areas__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: var(--space-8); }
  .plaque { bottom: 6%; padding: var(--space-3) var(--space-4); }
  .quickbar { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); position: fixed; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 40; padding: var(--space-2); background: var(--emerald-deep); border: 1px solid rgb(232 205 127 / 0.25); border-radius: var(--radius-lg); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5); transform: translateY(150%); transition: transform 500ms var(--ease); }
  .quickbar.is-visible { transform: none; }
  .quickbar a { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 46px; padding-inline: var(--space-4); font-size: var(--text-sm); color: var(--ivory-warm); border-radius: var(--radius-md); }
  .quickbar__main { background: var(--gold); color: var(--emerald) !important; font-weight: 500; }
  .footer { padding-bottom: var(--space-16); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > *, .hero__copy > *, .hero__panel, .hero__portrait, .plaque { animation: none !important; opacity: 1 !important; clip-path: none !important; }
}
.nw { white-space: nowrap; }
@media (max-width: 640px) { .cta-band__title { font-size: 1.75rem; } .cta-band__ctas .btn { min-width: 220px; } }
.form a { text-decoration: underline; text-underline-offset: 3px; color: var(--emerald); }

/* Language switcher (flags) */
.lang { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: var(--radius-full); background: rgb(237 227 207 / 0.06); border: 1px solid rgb(237 227 207 / 0.12); }
.lang__opt { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-full); opacity: 0.8; transition: opacity 200ms var(--ease), background 200ms var(--ease); }
.lang__opt:hover { opacity: 0.9; background: rgb(237 227 207 / 0.08); }
.lang__opt[aria-current='true'] { opacity: 1; background: rgb(232 205 127 / 0.22); box-shadow: inset 0 0 0 1px rgb(232 205 127 / 0.55); }
.lang__opt svg { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35); display: block; }
.lang__opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
