/* ============================================================
   site.css — pielea paginilor de conținut
   Alb dominant, benzi și butoane aurii (#8f6319), accente auriu
   deschis. Fără negru, fără verde.
   Se încarcă ULTIMA în <head>, deci înlocuiește stilurile vechi.
   ============================================================ */

:root {
    --canvas: #ffffff;
    --paper: #ffffff;
    --tint: #f8f3e9;
    --tint-2: #fdfaf3;
    --ink: #3a3227;
    --ink-soft: #6b6154;
    --muted: #6b6154;
    --brand: #8f6319;
    --brand-dark: #6f4c12;
    --brand-soft: #f6ead0;
    --gold: #c08a2e;
    --gold-ink: #8f6319;
    --gold-soft: #fdf6e7;
    --line: #ece2cd;
    --line-strong: #dcc9a4;
    --radius: 10px;
    --r: 10px;

    /* nume vechi, remapate */
    --deep: #8f6319;
    --teal: #8f6319;
    --lime: #f0d39a;
    --mint: #f8f3e9;
    --accent: #c08a2e;
    --accent-2: #c08a2e;

    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

/* ---------- bază ---------- */

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: 3px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

::selection { background: var(--brand-soft); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); letter-spacing: -.015em; }

.container, .shell { margin-inline: auto; }

/* ---------- antet ---------- */

header,
.site-header {
    background: var(--brand);
    color: #fff;
    border-bottom: 3px solid var(--brand-dark);
}

.header-row,
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 26px;
}

.brand, a.brand,
.logo, a.logo {
    color: #fff;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
    text-shadow: none;
}

.brand span, .logo b { color: var(--lime); }

.nav,
header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 22px;
}

.nav a,
header nav a {
    padding: 6px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    line-height: 1.5;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
header nav a:hover,
header nav a:focus-visible {
    border-bottom-color: var(--lime);
    background: transparent;
    color: #fff;
}

.nav .nav-cta {
    padding: 8px 14px;
    border: 1px solid var(--lime);
    border-radius: 6px;
    background: var(--lime);
    color: var(--brand-dark);
}

.nav .nav-cta:hover { background: #fff; border-color: #fff; color: var(--brand-dark); }

/* ---------- hero ---------- */

.hero {
    position: relative;
    overflow: visible;
    padding: clamp(44px, 7vw, 74px) 0 clamp(34px, 5vw, 54px);
    background: var(--tint);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.hero::after { display: none; content: none; }

.hero-inner { position: relative; z-index: 1; padding-block: 0; }

.eyebrow, .kicker, .section-kicker, .path-tag, .card .label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow, .kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--gold-ink);
}

.hero .eyebrow, .hero .kicker { color: var(--gold-ink); }

.eyebrow::before, .kicker::before {
    width: 26px;
    height: 1px;
    background: currentColor;
    content: "";
}

.section-kicker { margin: 0 0 10px; color: var(--gold-ink); }

h1 {
    max-width: 22ch;
    margin: 0;
    font-size: clamp(34px, 5.6vw, 56px);
    line-height: 1.06;
    letter-spacing: -.03em;
}

.hero h1 { color: var(--ink); }
.hero h1 span { color: var(--brand); }

.hero p,
.hero p:last-child,
.hero p:last-of-type,
.hero-copy {
    max-width: 66ch;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 17.5px;
    line-height: 1.65;
}

.frameworks span {
    padding: 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- butoane ---------- */

.button, a.button, .btn, button, button[type="submit"] {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--brand);
    border-radius: 6px;
    background: var(--brand);
    box-shadow: 0 1px 2px rgba(58, 50, 39, .08);
    color: #fff;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transform: none;
    transition: background .15s ease, border-color .15s ease;
}

.button:hover, a.button:hover, .btn:hover, button:hover, button[type="submit"]:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
    transform: none;
}

.button.alt, .button.secondary, .btn.alt,
.path-card .button.secondary, .path-card .button.alt,
.hero .button.alt, .hero .button.secondary,
.bottom .button.alt, .bottom .button.secondary {
    border-color: var(--line-strong);
    background: #fff;
    box-shadow: none;
    color: var(--ink);
}

.button.alt:hover, .button.secondary:hover, .btn.alt:hover,
.hero .button.alt:hover, .bottom .button.alt:hover,
.hero .button.secondary:hover, .bottom .button.secondary:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-dark);
}

/* ---------- secțiuni ---------- */

.method { background: var(--tint); border-block: 1px solid var(--line); }

.section-heading { max-width: 740px; margin-bottom: 28px; }

h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 32px); line-height: 1.18; }
h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.32; }

.section-heading p, .lead { max-width: 68ch; margin: 10px 0 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- carduri ---------- */

.card, .panel, .service-card, .path-card, .step, .plan, article, .framework,
.intro-card, .connect, .scope-note, .bottom, details, .topic {
    box-shadow: 0 1px 2px rgba(58, 50, 39, .05);
}

.card, .panel, .service-card, .path-card, .step, .plan, article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.card p, .card li, .service-card p, .path-card p, .panel p, .step p, .step span, article p {
    color: var(--ink-soft);
    font-size: 14.5px;
}

.card h3, .service-card h3, .path-card h3, .panel h3 { margin: 8px 0 6px; color: var(--ink); font-size: 18px; }

.card .label, .service-card .number, article span, .path-card .path-tag, .example small {
    color: var(--gold-ink);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.card a, .service-card a { color: var(--brand); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.card ul, .plan ul, .answer ul { margin: 8px 0 0; padding-left: 20px; }
.card li, .plan li { padding: 2px 0; }
.card li::marker, .plan li::marker, .answer li::marker { color: var(--brand); }

.step b, .step strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-dark);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.step { background: var(--paper); border-top: 3px solid var(--brand); }

.framework { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint-2); }
.framework b { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.framework span { color: var(--ink-soft); font-size: 12.5px; }

.connect, .intro-card { padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--brand-soft); }
.connect .lead, .intro-card p { color: var(--ink-soft); }

.scope-note { padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); background: var(--gold-soft); }
.scope-note h3 { font-size: 18px; }
.scope-note p { color: var(--ink-soft); font-size: 14px; }

.principle-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.principle-list li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
}

.bottom {
    margin-top: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--tint);
    color: var(--ink);
}

.bottom h2 { color: var(--ink); }
.bottom p { max-width: 68ch; color: var(--ink-soft); font-size: 14.5px; }

.example { border-top: 3px solid var(--brand); }

/* ---------- planuri ---------- */

.plan { display: flex; flex-direction: column; }
.plan h2 { margin: 0; font-size: 20px; }
.price { margin: 8px 0 12px; color: var(--brand); font-family: var(--serif); font-size: 32px; font-weight: 700; line-height: 1; }
.price::after { display: block; width: 32px; height: 3px; margin-top: 10px; background: var(--gold); content: ""; }
.plan ul { flex: 1; margin: 0 0 16px; color: var(--ink-soft); font-size: 13px; }
.btn { width: 100%; margin-top: 6px; }

/* ---------- note, detalii ---------- */

.notice, .note, .disclaimer, .status {
    margin: 18px 0;
    padding: 15px 18px;
    border: 1px solid #efe1c7;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: var(--gold-soft);
    color: #6b5a3d;
    font-size: 13px;
    line-height: 1.65;
}

.notice strong, .note strong, .disclaimer strong, .status strong { color: var(--ink); }

details { margin: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
details[open] { border-color: var(--line-strong); }

summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin-top: 1px;
    border: 1px solid var(--brand-soft);
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1;
    place-items: center;
    content: "+";
}

details[open] summary::before { content: "\2212"; }

.answer { padding: 0 18px 18px 54px; color: var(--ink-soft); font-size: 14.5px; }
.answer p { margin: 0 0 10px; color: var(--ink-soft); }
.answer li { padding: 3px 0; }

/* ---------- formulare ---------- */

form { display: grid; gap: 12px; }

label, .field label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

input, select, textarea, .email {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    outline: 2px solid var(--brand-soft);
    outline-offset: 0;
}

textarea { min-height: 140px; resize: vertical; }

.field { margin-bottom: 10px; }

.hint { margin: 0; color: #7d7466; font-size: 12px; }

.check, .interest-list label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.6;
    text-transform: none;
}

.check input, .interest-list input { width: 16px; min-height: 16px; flex: 0 0 16px; margin: 3px 0 0; accent-color: var(--brand); }
.check a { color: var(--brand); }

.interest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin: 0; padding: 0; border: 0; }
.interest-list legend { margin-bottom: 8px; color: var(--ink); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.topics { display: grid; gap: 9px; margin-top: 18px; }

.topic {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 8px;
    background: var(--tint-2);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
}

.topic strong { color: var(--ink); }

.msg { margin-top: 10px; font-size: 12.5px; font-weight: 700; }
.msg.err { color: #b4452a; }
.msg.ok { color: var(--brand-dark); }

/* ---------- imagini, video, tabele ---------- */

.demo-video, video { display: block; width: 100%; max-height: 520px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }

table { width: 100%; border-collapse: collapse; }
th { color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* ---------- subsol ---------- */

footer, .site-footer {
    margin-top: 0;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    background: var(--tint);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    line-height: 1.9;
    text-transform: uppercase;
}

footer a, .footer-links a { color: var(--brand-dark); text-decoration: none; border-bottom: 1px solid transparent; }
footer a:hover, .footer-links a:hover { border-bottom-color: var(--brand); }

.footer-row, .footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
    .header-row, .top {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 12px 0;
    }

    .nav, header nav { width: 100%; gap: 4px 16px; }
    .nav a, header nav a { white-space: normal; }
    .actions .button, .hero-actions .button { width: 100%; }
    .principle-list, .interest-list { grid-template-columns: 1fr; }
    .answer { padding-left: 18px; }
    footer { text-align: center; }
    .footer-row, .footer-links { flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms; }
}

/* ============================================================
   RITM VERTICAL STRÎNS (corectat după observațiile de vizual)
   ------------------------------------------------------------
   Fiecare pagină avea propriile margini generoase; însumate, lăsau
   goluri inutile între titluri, subtitluri și secțiuni. Regulile de
   mai jos se aplică DUPĂ stilurile paginilor, deci le strîng pe toate
   la un singur ritm, fără să schimbe structura sau funcțiile.
   ============================================================ */

/* secțiunile: mai puțin aer deasupra și dedesubt */
.section { padding: clamp(26px, 3.2vw, 40px) 0; }
.section:first-of-type { padding-top: clamp(20px, 2.4vw, 30px); }

/* titlul de secțiune și subtitlul lui stau lipite */
.section-heading { margin-bottom: 16px; }
.section-kicker { margin: 0 0 6px; }
.section-heading h2 { margin: 0; }
.section-heading p,
.section-heading .lead { margin: 6px 0 0; }

h2 { margin: 0 0 6px; }
h3 { margin: 0 0 4px; }

/* hero: banda de sus se strînge, textul rămîne la fel de mare */
.hero { padding: clamp(22px, 3vw, 36px) 0 clamp(18px, 2.6vw, 30px); }
.hero-inner { padding: 0; }
.eyebrow, .kicker { margin: 0 0 10px; }
.hero-copy,
.hero p,
.hero p:last-child,
.hero p:last-of-type { margin-top: 12px; }
.frameworks { margin-top: 16px; }

/* carduri și grile: interval mai mic, fără schimbarea lățimii */
.paths,
.service-grid,
.method-grid { gap: 14px; }
.principle-list { margin-top: 14px; }
.scope-note,
.connect,
.intro-card { padding: 20px; }
.bottom { margin-top: 16px; padding: 22px; }

/* notele și avertismentele nu mai rup ritmul */
.notice,
.note,
.disclaimer,
.status { margin: 12px 0; }

/* benzile colorate lasă fotografia de fundal să se vadă prin ele */
.method { background: rgba(248, 243, 233, .70); }
.hero { background: rgba(248, 243, 233, .74); }

/* subsolul paginilor de conținut: fără bandă colorată, doar text */
footer,
.site-footer {
    padding: 0 16px 22px;
    border-top: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0;
    line-height: 1.8;
    text-align: center;
    text-transform: none;
}

/* zona foto nu îngroașă secțiunea */
.zona-poza + .section-heading,
.galerie + .section-heading { margin-top: 4px; }


/* ============================================================
   RITM VERTICAL STRÎNS — a doua trecere
   ------------------------------------------------------------
   După prima strîngere au rămas goluri pe verticală: spațiu între
   carduri și titluri, margini adunate între secțiuni, bandă goală
   sub ultimul paragraf. Regulile de mai jos taie doar aerul,
   nu conținutul și nu schimbă structura paginilor.
   ============================================================ */

/* secțiunile respiră mai puțin, la fel și prima dintre ele */
.section { padding: clamp(16px, 2vw, 26px) 0; }
.section:first-of-type { padding-top: clamp(12px, 1.6vw, 18px); }
.section + .section { padding-top: clamp(12px, 1.6vw, 20px); }
.section-heading { margin-bottom: 12px; }
h2 { margin: 0 0 4px; }

/* ultimul element dintr-o secțiune nu mai adaugă spațiu dedesubt */
.section > *:last-child,
.card > *:last-child,
.panel > *:last-child,
aside > *:last-child,
article > *:last-child { margin-bottom: 0; }

/* paragrafele au un singur ritm, nu trei */
.section p,
.section .lead,
.card p,
.panel p { margin: 6px 0; }
p + ul,
p + ol { margin-top: 6px; }
ul,
ol { margin: 6px 0; }
li + li { margin-top: 4px; }

/* grilele stau mai aproape unele de altele */
.paths,
.service-grid,
.method-grid,
.grid,
.cards,
.plans,
.topics,
.steps,
.frameworks { gap: 12px; }

/* cardurile au padding mai mic, dar rămîn lizibile */
.card,
.service-card,
.plan,
.panel,
.intro-card,
.connect,
.scope-note,
.bottom { padding: 16px; }
.card h2 + p,
.card h3 + p { margin-top: 4px; }

/* fotografiile nu mai împing secțiunea în jos */
.zona-poza { margin-bottom: 12px; }
.galerie,
.poza-dubla { margin-top: 12px; }
.poza-card { margin-top: 10px; }
.galerie img { height: 132px; }
.poza-dubla img { height: 176px; }

/* hero-ul se apropie de conținut */
.hero { padding: clamp(18px, 2.4vw, 28px) 0 clamp(14px, 2vw, 22px); }

/* zona de conținut nu mai lasă bandă goală la final */
main.wrap,
main.shell { padding-bottom: 18px; }

/* subsolul: puțin spațiu deasupra textului, fără bandă goală */
footer,
.site-footer { padding: 14px 16px 16px; }
.foot-firma { margin-top: 10px; }
.foot-copy { margin: 6px 0 0; }

@media (max-width: 640px) {
    .galerie img { height: 118px; }
    .poza-dubla img { height: 150px; }
    .card,
    .panel,
    .plan { padding: 14px; }
}

