/* ============================================================
   METODA MIDLIFE — Design System
   Brand: Antonela Butuc · Metoda Midlife · Menopauza la Locul de Muncă
   Zero dependencies. Self-hosted fonts. Romanian diacritics verified.
   ============================================================ */

/* ---------- Fonts (variable, self-hosted) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette — warm, premium, trustworthy */
  --ink: #2D2A32;
  --ink-soft: #55505E;
  --ink-faint: #6E6879; /* ≥4.5:1 on cream & white (WCAG AA at small sizes) */
  --plum: #5C3A5E;
  --plum-deep: #462C48;
  --plum-tint: #F2EAF2;
  --terracotta: #C4704B;
  --terracotta-deep: #A85A38;
  --terracotta-tint: #F9EDE7;
  --sage: #8A9B7C;
  --sage-deep: #6E7F60;
  --sage-tint: #EEF2EA;
  --cream: #FAF6F0;
  --card: #FFFFFF;
  --line: #E8E1D8;
  --gold: #C9A227;

  /* Type scale */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.2rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.6rem;
  --fs-3xl: 3.4rem;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6rem;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(45, 42, 50, 0.08);
  --shadow-md: 0 6px 24px rgba(45, 42, 50, 0.10);
  --shadow-lg: 0 16px 48px rgba(45, 42, 50, 0.14);
  --maxw: 1120px;
  --maxw-narrow: 760px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--plum-deep);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, var(--fs-3xl)); }
h2 { font-size: clamp(1.7rem, 4vw, var(--fs-2xl)); }
h3 { font-size: clamp(1.3rem, 3vw, var(--fs-xl)); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--sp-4); }
a { color: var(--terracotta-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8F4A28; }
strong { font-weight: 600; }
ul, ol { padding-left: 1.3rem; margin: 0 0 var(--sp-4); }
li { margin-bottom: var(--sp-2); }
blockquote {
  margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--terracotta); background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--ink-soft);
}
hr { border: none; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
::selection { background: var(--plum); color: #fff; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--plum); color: #fff;
  padding: var(--sp-3) var(--sp-4); z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--alt { background: var(--card); }
.section--plum { background: linear-gradient(160deg, var(--plum-deep), var(--plum)); color: #fff; }
.section--plum h2, .section--plum h3 { color: #fff; }
.section--plum a { color: #F4C9AE; }
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta-deep);
  margin-bottom: var(--sp-3);
}
.section--plum .eyebrow { color: #F4C9AE; }
.lead { font-size: var(--fs-md); color: var(--ink-soft); max-width: 46em; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.7rem var(--sp-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--plum-deep); line-height: 1.1; }
.brand__tag { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: var(--fs-sm); padding: 0.35rem 0.2rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--plum-deep); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--terracotta); }
.lang-switch {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem;
  text-decoration: none; color: var(--ink-soft) !important; background: var(--card);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--sp-2); }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--plum-deep); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--sp-5) var(--sp-5); box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav .lang-switch { margin-top: var(--sp-3); text-align: center; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--sp-8) 0 var(--sp-8); position: relative; overflow: hidden; }
.hero--home {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--plum-tint), transparent 65%),
    radial-gradient(700px 380px at -5% 100%, var(--terracotta-tint), transparent 60%),
    var(--cream);
}
.hero h1 { max-width: 15em; }
.hero .lead { margin-bottom: var(--sp-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.hero__note { font-size: var(--fs-sm); color: var(--ink-faint); margin-top: var(--sp-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  padding: 0.85rem 1.6rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--terracotta-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #8F4A28; color: #fff; box-shadow: var(--shadow-md); }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:hover { background: var(--plum-deep); color: #fff; }
.btn--ghost { border-color: var(--plum); color: var(--plum-deep); background: transparent; }
.btn--ghost:hover { background: var(--plum-tint); color: var(--plum-deep); }
.btn--light { background: #fff; color: var(--plum-deep); }
.btn--light:hover { color: var(--plum); }
.btn--lg { font-size: var(--fs-base); padding: 1rem 2rem; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: var(--fs-xs); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
}
.card--lift { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3, .card h4 { margin-bottom: var(--sp-3); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--plum-tint); margin-bottom: var(--sp-4); font-size: 1.5rem;
}
.card__icon--terra { background: var(--terracotta-tint); }
.card__icon--sage { background: var(--sage-tint); }
.card--feature { border-top: 4px solid var(--terracotta); }
.card--outline-plum { border: 2px solid var(--plum); }
a.card { color: inherit; text-decoration: none; }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: var(--sp-4); }
.stat__num {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--terracotta-deep); line-height: 1; display: block; margin-bottom: var(--sp-2);
}
.section--plum .stat__num { color: #F4C9AE; }
.stat__label { font-size: var(--fs-sm); color: var(--ink-soft); max-width: 20em; margin: 0 auto; }
.section--plum .stat__label { color: rgba(255,255,255,0.85); }
.stat__src { display: block; font-size: 0.7rem; color: var(--ink-faint); margin-top: var(--sp-1); }
.section--plum .stat__src { color: rgba(255,255,255,0.55); }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem; border-radius: 999px;
}
.badge--plum { background: var(--plum-tint); color: var(--plum-deep); }
.badge--terra { background: var(--terracotta-tint); color: #8F4A28; }
.badge--sage { background: var(--sage-tint); color: #55643F; }
.badge--gold { background: #F7EFD4; color: #6E5710; }

/* ---------- Notices ---------- */
.notice {
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line); background: var(--card); font-size: var(--fs-sm);
  margin: var(--sp-4) 0;
}
.notice--info { border-left: 4px solid var(--plum); }
.notice--warn { border-left: 4px solid var(--gold); background: #FDFAF0; }
.notice--sage { border-left: 4px solid var(--sage-deep); background: var(--sage-tint); }
.notice--terra { border-left: 4px solid var(--terracotta); background: var(--terracotta-tint); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: var(--sp-4); }
label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
select, textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-base);
  padding: 0.75rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px var(--plum-tint); }
textarea { min-height: 120px; resize: vertical; }
.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); }
.checkbox-row input { width: auto; margin-top: 0.3rem; }
.form-hint { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: var(--sp-1); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin: 0 0 var(--sp-5); }
legend { font-weight: 700; font-family: var(--font-head); color: var(--plum-deep); padding: 0 var(--sp-2); }

/* Likert / radio option rows */
.option-row { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.option-row label {
  display: flex; align-items: center; gap: 0.7rem; font-weight: 500; margin: 0;
  padding: 0.7rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: border-color 0.1s, background 0.1s;
}
.option-row label:hover { border-color: var(--plum); }
.option-row input { width: auto; accent-color: var(--plum); }
.option-row label:has(input:checked) { border-color: var(--plum); background: var(--plum-tint); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: var(--sp-5) 0; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: var(--fs-sm); }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--plum-tint); color: var(--plum-deep); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #FCFAF7; }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; padding: 0; margin: var(--sp-5) 0; counter-reset: step; }
.steps > li {
  position: relative; padding: 0 0 var(--sp-5) 3.4rem; counter-increment: step;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--plum); color: #fff; font-weight: 700; font-family: var(--font-head);
  display: grid; place-items: center;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: 0.2rem;
  width: 2px; background: var(--line);
}
.steps h4 { margin-bottom: var(--sp-1); }
.steps p { margin-bottom: 0; color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .price {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--plum-deep);
  margin: var(--sp-2) 0;
}
.price-card .price small { font-size: 0.95rem; font-weight: 500; color: var(--ink-faint); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; flex: 1; }
.price-card li { padding-left: 1.6rem; position: relative; font-size: var(--fs-sm); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--sage-deep); font-weight: 700; }
.price-card--hero { border: 2px solid var(--terracotta); box-shadow: var(--shadow-md); position: relative; }
.price-card--hero .badge { position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%); }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; margin-bottom: var(--sp-3); overflow: hidden;
}
details.faq summary {
  cursor: pointer; font-weight: 600; padding: var(--sp-4) var(--sp-5);
  list-style: none; position: relative; padding-right: 3rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: var(--sp-5); top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--terracotta); font-weight: 400;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq__body { padding: 0 var(--sp-5) var(--sp-4); color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- Progress bar ---------- */
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--plum), var(--terracotta)); border-radius: 999px; transition: width 0.3s ease; }

/* ---------- Bar chart (survey readouts) ---------- */
.bar-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 3.5rem; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.bar-row__track { height: 18px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar-row__fill { height: 100%; background: var(--plum); border-radius: 999px; }
.bar-row__fill--terra { background: var(--terracotta); }
.bar-row__fill--sage { background: var(--sage-deep); }
.bar-row__val { font-weight: 700; text-align: right; color: var(--plum-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-deep); color: rgba(255,255,255,0.85); padding: var(--sp-7) 0 var(--sp-5); margin-top: var(--sp-8); font-size: var(--fs-sm); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--sp-3); }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #F4C9AE; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--sp-6); padding-top: var(--sp-4);
  font-size: var(--fs-xs); color: rgba(255,255,255,0.6);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
}
.disclaimer-strip {
  font-size: var(--fs-xs); color: rgba(255,255,255,0.6); margin-top: var(--sp-4);
  max-width: 60em; line-height: 1.5;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.muted { color: var(--ink-faint); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.flow > * + * { margin-top: var(--sp-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
