/* =============================================================================
   ZEMO'S — system.css
   Tokenii, tipografia și regulile de bază. Se încarcă pe TOATE paginile.
   -----------------------------------------------------------------------------
   Direcție editorială: Aesop / The Local Project. Hârtie caldă, cerneală,
   un singur accent cald, fotografii mari. Nimic nu strigă: fructele vorbesc.

   REGULA ANTI-ORFANI (obligatorie pe tot site-ul)
   Niciun cuvânt nu rămâne singur pe ultimul rând și niciun cuvânt scurt
   (a, la, de, în, pe, cu, și, of, the...) nu rămâne la capăt de rând.
     1. CSS: text-wrap: pretty pe paragrafe, text-wrap: balance pe titluri.
     2. JS: js/orphans.js leagă ultimele două cuvinte și cuvintele scurte
        de următorul cuvânt cu spațiu nesecabil (U+00A0).
   Vezi .claude/skills/zemos/SKILL.md.
   ============================================================================= */

:root {
    /* hârtie și cerneală */
    --paper:      #F4EFE6;
    --paper-2:    #ECE5D6;
    --paper-3:    #E3DAC7;
    --ink:        #1E1B18;
    --ink-2:      rgba(30, 27, 24, 0.74);
    --ink-3:      #5E584F;
    --ink-4:      #645E56;
    --rule:       rgba(30, 27, 24, 0.14);
    --rule-2:     rgba(30, 27, 24, 0.28);
    --tint:       30, 27, 24;

    /* verdele de brand (logo, subsol, banda de contact) și piatra deschisă (Rodul) */
    --green:      #364A2F;   /* oliv-închis, aceeași nuanță ca logo-ul */
    --green-2:    #495732;   /* verdele logo-ului (accente, linkuri) */
    --dot-ok:     #5BA544;
    --stone:      #E9E2D4;

    /* accent: coaja mărului roșu, stins; aronia pentru umbre adânci */
    --accent:     #8A3B2F;
    --accent-2:   #3D1E3F;
    --ok:         #4C6B3C;

    /* culorile celor 14 fructe */
    --f-mar:      #C8362F;
    --f-aronia:   #3D1E3F;
    --f-afine:    #3F4C8C;
    --f-visine:   #8F1B2E;
    --f-mure:     #2E1A33;
    --f-capsuni:  #D63A4B;
    --f-zmeura:   #D8285C;
    --f-pere:     #A7B35A;
    --f-prune:    #5B2D5E;
    --f-caise:    #F1A23A;
    --f-agrise:   #B7BF5E;
    --f-dude:     #3A1A3A;
    --f-porumbele: #3C4A6E;
    --f-gutui:    #E2B23C;

    /* Fraunces și Manrope sunt servite local prin css/fonts.css. */
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --font-body:    "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* ritm */
    --wrap:       1280px;
    --gutter:     clamp(1rem, 4vw, 3rem);
    --section:    clamp(4rem, 10vw, 9rem);
    --t:          240ms;
    --ease:       cubic-bezier(.2, .7, .2, 1);

    /* compatibilitate cu consent.css / anpc-compliance.css (preluate din 82design) */
    --bg-dark:    var(--paper);
    --white:      var(--ink);
    --white-dim:  var(--ink-2);
    --white-muted: var(--ink-3);

    color-scheme: light;
}

/* ---------- reset mic ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
/* Pe telefon, atingerea unui link nu mai aprinde albastrul implicit al browserului;
   în locul lui, verdele site-ului (doar pe ecrane tactile, cât ține atingerea). */
@media (hover: none) {
    a:active:not(.btn), .link-btn:active { color: var(--green-2); opacity: .8; }
    .btn:active { background: var(--green); border-color: var(--green); color: var(--paper); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------- anti-orfani (partea CSS) ---------- */
p, li, dd, figcaption, blockquote, .lead, .st-lead { text-wrap: pretty; }
h1, h2, h3, h4, .display, .st-quote { text-wrap: balance; }
/* Nimic nu se rupe într-un link sau o etichetă scurtă. */
a, .st-mono, .eyebrow, .tag, .btn { overflow-wrap: normal; }
/* La 320 px, grupurile legate de orphans.js trebuie să poată încăpea pe ecran. */
@media (max-width: 359px) {
    h1, h2, h3, p, li, dd, figcaption, blockquote { overflow-wrap: anywhere; }
    .rod3 > *, .jfeat > *, .journal2 > * { min-width: 0; }
}

/* ---------- tipografie ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.08;
    margin: 0 0 0.6em;
}
h1, .display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
.lead, .st-lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.st-mono, .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.eyebrow { display: block; margin-bottom: 1.2rem; }
.muted { color: var(--ink-3); }
em { font-style: italic; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* ---------- layout ---------- */
.wrap, .st-wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 1rem 3rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }

/* ---------- butoane ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 0.92rem; font-weight: 500;
    background: transparent; color: var(--ink);
    cursor: pointer;
    transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--link { border: 0; padding: 0; border-radius: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn--link:hover { background: none; color: var(--accent); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px;
}
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }

/* ---------- navigație ---------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 10001; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.nav {
    position: sticky; top: 0; z-index: 1000;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
/* Logo: ca pe cutii — litere groase, rotunjite, verde, cu E-ul întors (ZƐMO’S). Până vine
   fișierul vectorial al clientului (images/logo.svg, pus automat de build.py), e desenat din text. */
.logo { font-family: "Arial Rounded MT Bold", "Segoe UI Black", "Segoe UI", system-ui, sans-serif; font-weight: 900; font-size: 1.7rem; letter-spacing: .01em; line-height: 1; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 0.45rem; transform: skewX(-4deg); }
.logo img { height: 30px; width: auto; }
.logo small { display: none; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.92rem; color: var(--ink-2); padding: 0.4rem 0; border-bottom: 1px solid transparent; transition: color var(--t), border-color var(--t); }
.nav__links a:hover, .nav__links a[aria-current="true"], .nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green-2); }
.nav__right { display: flex; align-items: center; gap: 0.8rem; }
.lang { display: inline-flex; gap: 0.2rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; }
.lang a, .lang span { padding: 0.35rem 0.45rem; border-radius: 3px; color: var(--ink-3); }
.lang [aria-current="true"] { color: var(--ink); background: rgba(var(--tint), 0.07); }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-2); border-radius: 999px; background: transparent; cursor: pointer; place-items: center; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 2.5px auto; transition: transform var(--t), opacity var(--t); }
@media (max-width: 860px) {
    .logo small { display: none; }
    .nav__burger { display: grid; }
    .nav__links {
        position: fixed; inset: 68px 0 0 0; z-index: 999;
        flex-direction: column; align-items: flex-start; gap: 0;
        padding: 1.5rem var(--gutter);
        background: var(--paper);
        display: none;
    }
    .nav.is-open .nav__links { display: flex; }
    .nav__links li { width: 100%; border-bottom: 1px solid var(--rule); }
    .nav__links a { display: block; padding: 1rem 0; font-size: 1.3rem; font-family: var(--font-display); border: 0; }
    .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- placeholder foto (până vin fotografiile) ---------- */
.ph {
    position: relative; overflow: hidden;
    background: var(--ph, var(--paper-3));
    color: rgba(255, 255, 255, 0.88);
    aspect-ratio: var(--ratio, 4 / 3);
    display: grid; place-items: center;
    isolation: isolate;
}
.ph::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 60% at 30% 30%, rgba(255, 255, 255, 0.28), transparent 70%),
        radial-gradient(50% 50% at 75% 70%, rgba(0, 0, 0, 0.28), transparent 70%);
}
.ph__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; padding: 1rem; max-width: 28ch; opacity: 0.9; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- subsol, exact ca în mock-up ----------
   Un singur bloc verde cu banda „Să vorbim despre rod.” de deasupra: fără chenar între ele,
   doar o linie subțire în interiorul coloanei. Rândul: logo | meniu centrat | RO / EN,
   sub limbă „Termeni și condiții · Confidențialitate” mic. Ce cere legea stă dedesubt, discret. */
.footer { --accent: var(--paper); background: var(--green); color: rgba(244,239,228,.8); font-size: .9rem; }
.footer .logo { color: var(--paper); }
.footer .logo img { height: 26px; width: auto; }
.footer__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.2rem 2rem; padding: clamp(1.5rem, 3vw, 2.1rem) 0 clamp(1.2rem, 2.4vw, 1.6rem); border-top: 1px solid rgba(244,239,228,.2); }
.footer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem clamp(1.2rem, 2.6vw, 2.4rem); }
.footer__nav a { color: rgba(244,239,228,.88); font-size: .88rem; }
.footer__nav a:hover { color: var(--paper); }
.footer__end { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.lang--footer { font-family: var(--font-body); font-size: .85rem; letter-spacing: 0; gap: .3rem; align-items: center; }
.lang--footer a { padding: 0; color: rgba(244,239,228,.78); border-radius: 0; background: none; }
.lang--footer a[aria-current="true"] { color: var(--paper); background: none; font-weight: 600; }
.lang--footer .lang__slash { color: rgba(244,239,228,.78); }
.footer__small { margin: 0; display: flex; gap: 1.1rem; font-size: .72rem; }
.footer__small a { color: rgba(244,239,228,.78); }
.footer__small a:hover { color: var(--paper); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.6rem; padding: .9rem 0 1.2rem; border-top: 1px solid rgba(244,239,228,.12); font-size: .68rem; line-height: 1.55; color: rgba(244,239,228,.78); }
.footer-company { margin: 0; max-width: 52rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.footer__links a, .footer__links .link-btn { color: rgba(244,239,228,.78); font-size: .68rem; }
.footer__links a:hover, .footer__links .link-btn:hover { color: var(--paper); }
.footer .anpc-compliance { margin-top: 0; }
.footer .footer-links .cc__declansator { color: rgba(244,239,228,.78); font-size: .68rem; }
@media (max-width: 860px) {
    .footer__row { grid-template-columns: 1fr; justify-items: start; }
    .footer__nav { justify-content: flex-start; }
    .footer__end { justify-self: start; align-items: flex-start; }
}

/* ---------- formular ---------- */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.2rem; position: relative; }
.field label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select {
    width: 100%; padding: 0.9rem 0; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0;
    background: transparent; color: var(--ink); font: inherit;
    transition: border-color var(--t);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 2px solid var(--accent); outline-offset: 3px; border-bottom-color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field [aria-invalid="true"] { border-bottom-color: var(--accent); }
.field__err { color: var(--accent); font-size: 0.82rem; display: none; }
.field__err[data-show] { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.82rem; color: var(--ink-3); max-width: 52ch; }
.form-status { margin-top: 1rem; font-size: 0.92rem; min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: var(--accent); }

/* ---------- utilitare ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-js .needs-js { display: none; }

/* ---------- SUBMENIUL „Fructele” (mutat din site.css: meniul e pe toate paginile, și pe cele legale) ---------- */
.nav__links .has-sub { position: relative; display: flex; align-items: center; gap: .2rem; }
.sub-toggle { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.sub-toggle span { width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); transition: transform var(--t); }
.sub-toggle[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
.sub {
    list-style: none; margin: 0; padding: .6rem 0;
    position: absolute; top: calc(100% + .6rem); left: -1rem; min-width: 15rem; z-index: 1001;
    background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 18px 40px rgba(30,27,24,.12);
    display: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { display: block; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .7rem; } /* puntea până la listă */
.sub li a { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: baseline; gap: .5rem; padding: .5rem 1.1rem; font-size: .92rem; color: var(--ink); border: 0 !important; }
.sub li a:hover, .sub li a[aria-current="page"] { background: var(--paper-2); }
.sub li a .st-mono { font-size: .62rem; color: var(--ink-4); }
.sub li a em { font-style: normal; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
/* fructele „în curând”: gri, dar tot linkuri (pagina lor există) */
.sub .is-soon a { color: var(--ink-4); }
.sub .is-soon a:hover { color: var(--ink-3); }
.sub .sub__all { margin-top: .4rem; border-top: 1px solid var(--rule); padding-top: .4rem; }
.sub .sub__all a { grid-template-columns: 1fr; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 860px) {
    .nav__links .has-sub { flex-wrap: wrap; }
    .nav__links .has-sub > a { flex: 1; }
    .sub-toggle { width: 44px; height: 44px; }
    .sub { position: static; display: none; width: 100%; border: 0; box-shadow: none; background: transparent; padding: 0 0 .8rem; }
    .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
    .has-sub.is-open .sub { display: block; }
    .sub li { border: 0; }
    .sub li a { font-family: var(--font-body); font-size: 1rem; padding: .55rem 0 .55rem 1.2rem; }
}

.sub .is-soon .is-locked { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: baseline; gap: .5rem; padding: .5rem 1.1rem; font-size: .92rem; color: var(--ink-4); cursor: default; }
.sub .is-soon .is-locked .st-mono { font-size: .62rem; color: var(--ink-4); }
.sub .is-soon .is-locked em { font-style: normal; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
@media (max-width: 860px) { .sub .is-soon .is-locked { padding: .55rem 0 .55rem 1.2rem; font-size: 1rem; } }

/* Meniul de pe telefon: blur-ul barei face din .nav „containing block” pentru panoul fixed, care rămânea
   de 48 px și lăsa lista să curgă peste pagină. Pe telefon bara e opacă, fără blur, iar panoul are
   înălțimea ecranului și se derulează. */
@media (max-width: 860px) {
    .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
    .nav__links { height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 3rem; }
    .nav__links > li { flex: none; }
    .sub .is-soon .is-locked { padding: .55rem 0 .55rem 1.2rem; }
}
