/* FLAD.ro — ediția de toamnă. Tokens shared by public pages and admin. */
:root {
  --cream: #f3f7f0;
  --cream-2: #e5f0e9;
  --paper: #fffcf6;
  --ink: #274f52;
  --ink-soft: #597275;
  --terracotta: #bc654a;
  --terracotta-d: #a64f37;
  --honey: #d8a95a;
  --honey-soft: #fff0d6;
  --sage: #689b7d;
  --sage-soft: #dfefe3;
  --line: #cbded4;
  --gold: #bd8b40;
  --plum: #806b78;
  --glass: rgba(255, 252, 246, .96);
  --glass-2: rgba(255, 252, 246, .96);
  --glass-brd: #cbded4;
  --glass-blur: none;
  --glass-shadow: 0 14px 34px rgba(58, 42, 28, .08);
  --glass-shadow-lg: 0 22px 48px rgba(58, 42, 28, .14);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 8px 22px rgba(58, 42, 28, .07);
  --shadow: 0 18px 40px rgba(58, 42, 28, .11);
  --shadow-lg: 0 28px 58px rgba(39, 28, 19, .18);
  --wrap: 1600px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-padding-top: 118px; }
body { font-size: 17px; line-height: 1.62; background: var(--cream); }
body::before { display: none; }
body::selection, ::selection { color: #fffaf3; background: var(--terracotta); }
main { position: relative; z-index: 1; }
img { color: transparent; }
h1, h2, h3, h4 { letter-spacing: -.025em; }
p { max-width: 75ch; }
.wrap { max-width: var(--wrap); padding-inline: clamp(20px, 3vw, 56px); }
.muted { color: var(--ink-soft); }
.section { padding: clamp(64px, 6vw, 104px) 0; }
.section--alt { background: rgba(214, 236, 223, .52); }
.section__head { max-width: 82ch; margin-bottom: 40px; }
.section__title { font-size: clamp(2.1rem, 3vw, 3.4rem); line-height: 1.08; }
.section__lead { font-size: 1.05rem; }
.pagehead { padding: clamp(58px, 5vw, 92px) 0 28px; }
.pagehead__title { font-size: clamp(2.7rem, 5vw, 5.2rem); line-height: 1.04; max-width: 15ch; }
.pagehead__lead { font-size: 1.12rem; }
.pagehead__kicker { color: var(--terracotta-d); letter-spacing: .16em; }

/* The supplied transparent WebM sits behind opaque reading surfaces. */
.ambient-tree { position: fixed; z-index: 0; inset: auto auto 0 50vw; width: 100vw; height: 100vh; height: 100dvh; transform: translateX(-50%); pointer-events: none; opacity: .29; filter: saturate(.56) contrast(.84) blur(.35px); -webkit-mask-image: linear-gradient(to top, #000 0%, #000 74%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, #000 74%, transparent 100%); }
.ambient-tree video { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.ambient-tree img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.ambient-tree[data-season="spring"] { opacity: .22; filter: saturate(.45) contrast(.82); }
.ambient-tree[data-season="summer"] { opacity: .20; filter: saturate(.48) contrast(.82); }
.ambient-tree[data-season="winter"] { opacity: .28; filter: saturate(.55) contrast(.84); }

/* Brand-led navigation: one calm, generous horizontal bar. */
.topbar { position: sticky; z-index: 50; top: 0; background: rgba(255, 252, 246, .97); border: 0; border-bottom: 1px solid var(--line); box-shadow: 0 10px 26px rgba(40, 89, 83, .07); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
.topbar__inner { max-width: 1840px; min-height: 102px; margin: auto; padding: 8px clamp(18px, 2.2vw, 42px); gap: clamp(12px, 1.6vw, 32px); flex-wrap: nowrap; position: relative; }
.topbar__thread { height: 2px; opacity: 1; background: linear-gradient(90deg, #6fa492, #c26d4d 42%, #d8a95a 72%, #81a5aa); }
.brand { flex: 0 0 auto; min-width: 176px; }
.brand__logo { display: block; width: clamp(172px, 13.4vw, 226px); max-height: 90px; height: auto; object-fit: contain; filter: none; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-left: auto; flex-wrap: nowrap; }
.nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 11px clamp(7px, .72vw, 13px); color: #355f61; font-size: clamp(.72rem, .75vw, .84rem); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; border-radius: 10px; }
.nav a:hover { background: #e1f0e9; color: #24565a; }
.nav a.is-current { background: #d9ece4; color: #24565a; }
.nav a.is-current:hover { color: #24565a; }
.nav svg, .btn svg, .btn-icon svg, .nav-toggle svg { flex: 0 0 auto; width: 18px; height: 18px; stroke-width: 1.9; }
.nav__extra { align-items: center; margin-left: 8px; padding-left: 12px; border-color: #ccbba6; }
.nav__extra .btn-icon { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #eaf3eb; }
.nav__extra .btn-icon:hover { background: var(--honey-soft); }
.nav-toggle { border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--ink); background: var(--paper); }

/* Actions and form controls use clear contrast and repeatable dimensions. */
.btn { min-height: 46px; padding: 11px 20px; border-radius: 10px; font-size: .88rem; font-weight: 750; letter-spacing: .035em; box-shadow: none; }
.btn:hover { box-shadow: 0 12px 22px rgba(61, 38, 24, .12); }
.btn--primary { background: var(--terracotta-d); border-color: var(--terracotta-d); color: #fffaf3; }
.btn--primary:hover { background: #8b3e2d; border-color: #8b3e2d; }
.btn--ghost { color: var(--ink); border-color: #b79d7b; background: rgba(255, 250, 243, .78); }
.btn--ghost:hover { color: var(--ink); background: var(--honey-soft); }
.btn--small { min-height: 40px; padding: 8px 14px; }
.btn--tiny { min-height: 32px; padding: 5px 10px; }
.btn-icon { border-radius: 10px; }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], textarea, select { border: 1px solid #cbbb9f; border-radius: 10px; background: #fffdfa; color: var(--ink); }
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #c5823d; outline-offset: 3px; }

/* Spacious opening spread. The new logo is the image, not a decorative badge. */
.hero { padding: clamp(54px, 5vw, 88px) 0 clamp(56px, 5vw, 82px); overflow: visible; background: linear-gradient(110deg, rgba(233, 242, 227, .82), rgba(255, 248, 236, .52) 55%, rgba(233, 244, 238, .28)); border-bottom: 1px solid var(--line); }
.hero__glow { display: none; }
.hero__inner { max-width: var(--wrap); padding-inline: clamp(20px, 3vw, 56px); grid-template-columns: minmax(260px, .64fr) minmax(500px, 1.36fr); gap: clamp(28px, 4vw, 72px); }
.hero__art { position: relative; display: grid; place-items: center; min-width: 0; }
.hero__art::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 249, 238, .88), rgba(240, 224, 204, .12) 62%, transparent 75%); }
.hero__logo { position: relative; z-index: 1; width: min(100%, 390px); max-width: none; height: auto; margin: 0; filter: none; animation: none; }
.hero__text { min-width: 0; }
.hero__kicker { margin: 0 0 14px; font-size: .82rem; letter-spacing: .15em; color: var(--terracotta-d); }
.hero__title { font-size: clamp(3.2rem, 4.9vw, 5.7rem); line-height: 1.02; max-width: 13ch; margin-bottom: .24em; }
.hero__subtitle { max-width: 58ch; font-size: clamp(1.08rem, 1.25vw, 1.3rem); color: var(--ink-soft); }
.hero__motto { font-size: 1.23rem; max-width: 47ch; color: #9a583b; }
.hero__cta { margin: 32px 0 30px; gap: 10px; }
.together { background: rgba(255, 250, 243, .78); border: 1px solid #dccab0; border-radius: 12px; padding: 15px 20px; width: fit-content; max-width: 100%; box-shadow: 0 12px 30px rgba(71, 51, 33, .07); }
.together__label { color: #6f5538; }
.together__value { font-variant-numeric: tabular-nums; }

/* Editorial content: larger images, readable measures, quieter containers. */
.strip { background: #d8ebe1; color: var(--ink); }
.strip__inner { max-width: var(--wrap); }
.strip__inner > .stat { background: transparent; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-right: 1px solid rgba(54, 111, 104, .18); }
.strip__inner > .stat:last-child { border-right: 0; }
.strip .stat b { color: #a35540; font-variant-numeric: tabular-nums; }
.strip .stat span { color: #41696b; }
.grid { gap: clamp(20px, 2vw, 32px); }
.card, .member-card, .panel, .guest, .quiz__card, .form__box, .search__panel { background: rgba(255, 250, 243, .96); border: 1px solid #dfd1bd; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 14px; }
.card::after, .member-card::after, .panel::after, .guest::after { display: none; }
.card:hover, .member-card:hover, .panel:hover { background: #fffaf3; box-shadow: var(--shadow); }
.memory-card__media { aspect-ratio: 5 / 3.45; }
.memory-card__body { padding: 22px 24px 24px; }
.memory-card__title { font-size: 1.46rem; }
.memory-card__excerpt { font-size: .98rem; }
.panel { padding: clamp(24px, 2.2vw, 38px); }
.panel--warm, .panel--quiz { background: #fff8ee; }
.panel__title { font-size: 1.65rem; }
.member-strip { gap: 16px; }
.member-strip__item { background: #fffaf3; border: 1px solid #d9c7ab; border-radius: 12px; border-top: 0; text-align: left; padding: 26px; }
.member-strip__item::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 16px; background: var(--accent, var(--terracotta)); border-radius: 2px; }
.member-strip__avatar { font-size: 2.25rem; }
.member-strip__avatar img { display: block; width: 58px; height: 58px; margin: 0 auto 6px; object-fit: cover; border-radius: 50%; }
.member-card__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.member-strip__item strong { font-size: 1.5rem; }
.member-strip__item em { margin-top: 5px; }
.member-card { border-top: 0; }
.story { grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 4vw, 70px); }
.story__seal { width: min(100%, 300px); height: auto; filter: none; }
.rules li { border-left: 1px solid var(--line); }
.luna-corner { background: rgba(219, 199, 169, .32); }
.luna-corner__inner { gap: clamp(30px, 4vw, 72px); }
.luna-corner__photo { border-radius: 14px; }
.luna-corner__photo img { width: 100%; min-height: 390px; object-fit: cover; }
.gallery { gap: 18px; }
.gallery__item, .shape-0, .shape-1, .shape-2, .shape-3, .shape-4 { border-radius: 12px; }
.shape-0:hover, .shape-1:hover, .shape-2:hover, .shape-3:hover, .shape-4:hover { border-radius: 12px; }
.gallery__meta { opacity: 1; transform: none; }
.memory__figure { max-width: min(1260px, 94vw); }
.memory__body { max-width: 84ch; }
.memory__body > p { font-size: 1.14rem; line-height: 1.78; }
.chip { background: #f5e7ce; border-color: #d9be92; color: #503916; }
.chip--link:hover, .chip--link.is-active { color: #fffaf3; background: var(--terracotta-d); border-color: var(--terracotta-d); }
.footer { background: #3e7776; color: #f7fcf6; border-top: 4px solid #d7a55f; }
.footer__inner, .footer__bottom { max-width: var(--wrap); padding-inline: clamp(20px, 3vw, 56px); }
.footer__col h3 { color: #fff1ca; }
.luna-widget__button { display: grid; place-items: center; padding: 0; overflow: visible; background: #f8eee3; border-color: #fffdf8; box-shadow: 0 8px 22px rgba(71, 91, 74, .22); animation: lunaPulse 2.8s ease-in-out infinite; }
.luna-widget__button img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
@keyframes lunaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(188, 101, 74, .35), 0 8px 22px rgba(71, 91, 74, .22); } 55% { box-shadow: 0 0 0 12px rgba(188, 101, 74, 0), 0 8px 22px rgba(71, 91, 74, .22); } }

/* Every family member has a distinct editorial page, with the same shared reading rhythm. */
.member-card__profile-link { margin: 22px 0 0; }
.profile-hero { position: relative; overflow: hidden; background: linear-gradient(115deg, rgba(224, 239, 224, .87), rgba(255, 248, 235, .76)); border-bottom: 1px solid var(--line); }
.profile-hero::before { content: ""; position: absolute; width: min(55vw, 790px); aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--profile-accent) 35%, transparent); border-radius: 50%; right: -10%; top: -32%; opacity: .6; }
.profile-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); align-items: center; gap: clamp(35px, 6vw, 110px); min-height: 530px; padding-block: clamp(58px, 7vw, 112px); }
.profile-hero__intro { max-width: 850px; }
.profile-hero__eyebrow, .profile-section__eyebrow { margin: 0 0 14px; color: var(--terracotta-d); text-transform: uppercase; letter-spacing: .15em; font-size: .77rem; font-weight: 750; }
.profile-hero h1 { margin: 0 0 18px; font-size: clamp(4rem, 7vw, 8rem); line-height: .9; color: var(--ink); }
.profile-hero__tagline { font: italic clamp(1.35rem, 2.2vw, 2.1rem)/1.3 var(--font-display); max-width: 29ch; color: #a0543d; margin: 0 0 25px; }
.profile-hero__bio { font-size: 1.06rem; line-height: 1.75; max-width: 67ch; }
.profile-hero__facts { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 35px; }
.profile-hero__facts span { display: inline-flex; align-items: baseline; gap: 6px; border-top: 2px solid var(--profile-accent); padding-top: 9px; min-width: 90px; }
.profile-hero__facts b { font: 700 1.7rem var(--font-display); color: var(--ink); }
.profile-hero__portrait { display: grid; place-items: center; aspect-ratio: 1; max-width: 490px; width: 100%; margin-inline: auto; border-radius: 50% 50% 44% 44%; background: radial-gradient(circle at 48% 35%, #fffdf7, color-mix(in srgb, var(--profile-accent) 24%, #e6f0e8)); border: 1px solid color-mix(in srgb, var(--profile-accent) 30%, transparent); box-shadow: 0 32px 70px rgba(44, 86, 76, .11); overflow: hidden; }
.profile-hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero__portrait span { font-size: clamp(7rem, 15vw, 14rem); line-height: 1; }
.profile-empty { padding: 38px; border: 1px dashed #a9c8b7; border-radius: 12px; background: rgba(255, 252, 246, .65); }
.profile-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(36px, 4vw, 74px); }
.profile-extras h2 { margin-bottom: 28px; }
.profile-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.profile-photo-grid figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.profile-photo-grid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.profile-photo-grid figcaption { padding: 10px 14px; font-size: .9rem; }
.profile-timeline { list-style: none; margin: 0; padding: 0; }
.profile-timeline li { position: relative; border-left: 2px solid #a4cbb4; padding: 0 0 28px 25px; }
.profile-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--terracotta); border-radius: 50%; }
.profile-timeline time { display: block; color: var(--ink-soft); font-size: .82rem; letter-spacing: .06em; }
.profile-timeline strong { display: block; font: 700 1.35rem var(--font-display); color: var(--ink); margin: 5px 0; }
.profile-timeline p { margin: 0; }
.profile-timeline small { color: var(--ink-soft); }

@media (max-width: 1340px) {
  .topbar__inner { min-height: 88px; }
  .brand__logo { width: 182px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav { display: none; position: absolute; top: calc(100% + 1px); left: 18px; right: 18px; z-index: 60; width: auto; max-height: calc(100vh - 110px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 12px; background: #fffaf3; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
  .nav.is-open { display: flex; }
  .nav a { justify-content: flex-start; font-size: .9rem; padding: 12px 14px; }
  .nav__extra { border-left: 0; border-top: 1px solid var(--line); margin: 8px 0 0; padding: 10px 0 0; }
}

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: 22px; }
  .hero__art { order: 0; max-width: min(600px, 100%); margin: 0 auto; }
  .hero__text { text-align: center; }
  .hero__title, .hero__subtitle, .hero__motto { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .together { margin: 0 auto; }
  .ambient-tree { opacity: .26; }
  .story { grid-template-columns: 1fr; }
  .profile-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(230px, .55fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar__inner { flex-wrap: nowrap; min-height: 78px; }
  .brand__logo { width: 150px; max-height: 66px; }
  .hero { padding: 48px 0 58px; }
  .hero__logo { width: min(78vw, 300px); }
  .hero__title { font-size: clamp(2.75rem, 9vw, 4.5rem); }
  .hero__subtitle { font-size: 1.04rem; }
  .hero__cta { align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .strip__inner { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
  .strip__inner > .stat { border-right: 0; border-bottom: 1px solid rgba(54, 111, 104, .18); padding: 18px 12px; }
  .section { padding: 58px 0; }
  .section__title { font-size: 2.15rem; }
  .pagehead__title { font-size: 2.75rem; }
  .ambient-tree { opacity: .23; }
  .luna-corner__photo img { min-height: 250px; }
  .footer { margin-top: 22px; }
  .profile-hero__inner { grid-template-columns: 1fr; gap: 30px; min-height: 0; }
  .profile-hero__portrait { grid-row: 1; max-width: 240px; }
  .profile-hero__portrait span { font-size: 7rem; }
  .profile-hero h1 { font-size: clamp(3.9rem, 15vw, 6rem); }
  .profile-hero__facts { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; }
  .luna-widget__button { animation: none; }
}

@media print { .ambient-tree { display: none !important; } }
