/* ==========================================================================
   Mambo — temă generală
   Tokenii de design (culori, tipografie, spațiere, raze) și primitivele
   refolosibile. Layout-ul secțiunilor stă în landing.css.
   Referință: designul XD la lățime 1440px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Font
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-Variable.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokeni
   -------------------------------------------------------------------------- */

:root {
    /* Culori */
    --c-magenta: #d342b8;
    --c-magenta-dark: #b6339d;
    --c-green: #20603d;
    --c-green-dark: #184b30;
    --c-ink: #272624;
    --c-heading: #243232;
    --c-body: #a9a6a1;
    --c-muted: #a7a4a0;
    --c-surface: #f7f6f4;
    --c-line: #e4e3df;
    --c-white: #fff;

    /* Tipografie */
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Scală fluidă: valoarea maximă = mărimea din design la 1440px */
    --fs-h1: clamp(2rem, 4.167vw, 3.75rem);           /* 60px */
    --fs-h2: clamp(1.625rem, 3.125vw, 2.8125rem);     /* 45px */
    --fs-card: clamp(1.125rem, 1.667vw, 1.5rem);      /* 24px */
    --fs-lead: clamp(1rem, 1.389vw, 1.25rem);         /* 20px */
    --fs-title-sm: clamp(1rem, 1.389vw, 1.25rem);     /* 20px */
    --fs-body: clamp(0.9375rem, 1.25vw, 1.125rem);    /* 18px */
    --fs-small: clamp(0.875rem, 1.111vw, 1rem);       /* 16px */
    --fs-nav: 0.875rem;                               /* 14px */
    --fs-phone: clamp(1rem, 1.319vw, 1.1875rem);      /* 19px */

    --lh-h1: 1;
    --lh-h2: 1.222;
    --lh-card: 1.333;
    --lh-lead: 1.5;
    --lh-body: 1.778;

    /* Layout */
    --container: 1222px;
    --gutter: clamp(1.25rem, 3vw, 2rem);
    --grid-gap: clamp(1rem, 1.389vw, 1.25rem);        /* 20px */

    /* Ritm vertical între secțiuni */
    --section-gap: clamp(3.5rem, 8.33vw, 7.5rem);     /* 120px */
    --section-gap-sm: clamp(2.5rem, 5.56vw, 5rem);    /* 80px */

    /* Raze */
    --r-pill: 999px;
    --r-lg: 52px;
    --r-md: 15px;

    /* Înălțimea hero-ului (702px pe 1440 în design) */
    --hero-h: clamp(30rem, 48.75vw, 43.875rem);
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--c-white);
    color: var(--c-body);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: var(--fw-regular);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--c-magenta);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-gap);
}

.section--tight {
    padding-block: var(--section-gap-sm);
}

.stack > * + * {
    margin-top: var(--stack-gap, 1rem);
}

/* --------------------------------------------------------------------------
   Tipografie
   -------------------------------------------------------------------------- */

.h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-h1);
    font-weight: var(--fw-extrabold);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--c-white);
}

.h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    font-weight: var(--fw-extrabold);
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: var(--c-magenta);
}

/* Titlu de secțiune, centrat */
.section-title {
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    font-weight: var(--fw-extrabold);
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: var(--c-magenta);
    text-align: center;
}

.eyebrow {
    font-size: var(--fs-lead);
    line-height: var(--lh-lead);
    font-weight: var(--fw-medium);
    color: var(--c-green);
}

.lead {
    font-size: var(--fs-lead);
    line-height: var(--lh-lead);
    font-weight: var(--fw-medium);
}

.body-text {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--c-body);
}

/* --------------------------------------------------------------------------
   Butoane
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 209px;
    min-height: 45px;
    padding: 0.5rem 1.75rem;
    border-radius: var(--r-pill);
    font-size: var(--fs-lead);
    line-height: 1;
    font-weight: var(--fw-extrabold);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--light {
    background: var(--c-white);
    color: var(--c-magenta);
}

.btn--light:hover {
    background: var(--c-magenta);
    color: var(--c-white);
}

.btn:active {
    transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   Iconițe
   -------------------------------------------------------------------------- */

.icon {
    display: block;
    width: auto;
    height: auto;
}

/* „bulele” decorative din spatele iconițelor (SVG-uri exportate din design) */
.blob {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
}

/* --------------------------------------------------------------------------
   Animația de apariție
   Elementele marcate cu data-reveal intră cu fade + ridicare, când ajung în
   ecran (clasa .is-visible vine din landing.js). Starea ascunsă se aplică doar
   dacă JS e activ, ca pagina să rămână lizibilă fără el.
   Eșalonarea se face cu --i pe fiecare element dintr-un grup.
   -------------------------------------------------------------------------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
    will-change: opacity, transform;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Utilitare
   -------------------------------------------------------------------------- */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.hr {
    height: 1px;
    background: var(--c-line);
    border: 0;
    margin: 0;
}
