/*
 * AGRICRIS Family Group — Despre Noi (Editorial)
 * PHP: page-despre-noi.php  |  JS: assets/js/page-despre-noi.js
 * Design: editorial warm-cream (afg-), consistent cu front-page.php / home.css.
 * Self-contained: redeclara tokenii --c-* scopat pe #afg-about (home.css nu se
 * incarca aici), astfel pagina nu depinde de body.home si nu polueaza global.
 * ========================================================================== */

/* ==========================================================================
   RESET ASTRA + FUNDAL CREAM (clasa pusa pe body din template)
   ========================================================================== */
body.afg-light-page .site,
body.afg-light-page .site-content,
body.afg-light-page .ast-container,
body.afg-light-page #primary,
body.afg-light-page #content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    background: #FAF6F1 !important;
}
body.afg-light-page .ast-container { display: block !important; }
body.afg-light-page { background: #FAF6F1 !important; }
body.afg-light-page .ast-post-title,
body.afg-light-page .entry-header,
body.afg-light-page .ast-single-post .post-thumb { display: none !important; }

/* ==========================================================================
   TOKENI + BAZA (scopate pe wrapper)
   ========================================================================== */
#afg-about {
    --c-cream-50: #FDFBF7;
    --c-cream-100: #FAF6F1;
    --c-cream-200: #F1E9DC;
    --c-cream-300: #E8DCC8;
    --c-ink-900: #1F1812;
    --c-ink-700: #3D2C1F;
    --c-ink-500: #6E5A47;
    --c-ink-300: #A89684;
    --c-forest-700: #2D5016;
    --c-flame-900: #7C2D12;
    --c-flame-700: #9A3412;
    --c-flame-500: #C2410C;
    --c-amber-500: #D97706;
    --c-amber-400: #F59E0B;

    --f-display: 'Outfit', 'Times New Roman', serif;
    --f-text: 'Outfit', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', monospace;

    --r-md: 12px;
    --r-lg: 20px;

    --shadow-sm: 0 2px 6px rgba(31, 24, 18, 0.04), 0 1px 2px rgba(31, 24, 18, 0.06);
    --shadow-md: 0 10px 30px rgba(31, 24, 18, 0.08), 0 2px 6px rgba(31, 24, 18, 0.06);
    --shadow-lg: 0 30px 60px rgba(31, 24, 18, 0.18), 0 10px 20px rgba(31, 24, 18, 0.1);

    --t-fast: 0.25s ease;
    --t-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: var(--f-text);
    color: var(--c-ink-900);
    background: var(--c-cream-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: block;
}
#afg-about *, #afg-about *::before, #afg-about *::after { box-sizing: border-box; }

#afg-about .afg-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* ==========================================================================
   TIPOGRAFIE COMUNA (clonata din sistemul home)
   ========================================================================== */
#afg-about .afg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--c-flame-700);
    padding: 8px 16px;
    border: 1px solid var(--c-cream-300);
    border-radius: 100px;
    background: var(--c-cream-50);
    margin-bottom: 28px;
}
#afg-about .afg-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-flame-500);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}
#afg-about .afg-eyebrow--light {
    color: var(--c-amber-400);
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#afg-about .afg-eyebrow--light::before {
    background: var(--c-amber-400);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), 0 0 12px rgba(245, 158, 11, 0.6);
}

#afg-about .afg-display {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--c-ink-900);
    margin-bottom: 24px;
}
#afg-about .afg-display--light { color: #FAF6F1; }
#afg-about .afg-mark {
    color: var(--c-flame-700);
    font-weight: 400;
    position: relative;
    white-space: nowrap;
}
#afg-about .afg-mark::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 0.35em;
    background: rgba(217, 119, 6, 0.18);
    z-index: -1;
}
#afg-about .afg-mark--light { color: var(--c-amber-400); }
#afg-about .afg-mark--light::after { background: rgba(245, 158, 11, 0.28); }

#afg-about .afg-prose {
    font-size: 1.08rem;
    line-height: 1.78;
    color: var(--c-ink-700);
    margin-bottom: 18px;
    max-width: 58ch;
    font-weight: 400;
}
#afg-about .afg-prose strong { color: var(--c-ink-900); font-weight: 600; }
#afg-about .afg-prose--center { margin-left: auto; margin-right: auto; text-align: center; }
#afg-about .afg-prose--light {
    color: rgba(253, 248, 243, 0.95);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

#afg-about .afg-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 72px;
}

#afg-about .afg-signature {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-ink-500);
}
#afg-about .afg-signature__line { width: 40px; height: 1px; background: var(--c-ink-300); }

/* ==========================================================================
   BUTOANE
   ========================================================================== */
#afg-about .afg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: var(--f-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 100px;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t-smooth);
    letter-spacing: 0.01em;
}
#afg-about .afg-btn--solid {
    background: var(--c-ink-900);
    color: var(--c-cream-50);
    border-color: var(--c-ink-900);
}
#afg-about .afg-btn--solid:hover {
    background: var(--c-flame-700);
    border-color: var(--c-flame-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.25);
}
#afg-about .afg-btn--ghost {
    background: transparent;
    color: #FAF6F1;
    border-color: rgba(250, 246, 241, 0.4);
}
#afg-about .afg-btn--ghost:hover {
    background: rgba(250, 246, 241, 0.12);
    border-color: #FAF6F1;
}
#afg-about .afg-btn--dark-ghost {
    background: transparent;
    color: var(--c-ink-900);
    border-color: var(--c-ink-300);
}
#afg-about .afg-btn--dark-ghost:hover {
    background: var(--c-ink-900);
    color: var(--c-cream-50);
    border-color: var(--c-ink-900);
    transform: translateY(-2px);
}

/* ==========================================================================
   REVEAL
   ========================================================================== */
#afg-about .afg-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--t-smooth), transform 0.9s var(--t-smooth);
}
#afg-about .afg-reveal.is-visible { opacity: 1; transform: translateY(0); }
#afg-about .afg-reveal--delay { transition-delay: 0.15s; }
#afg-about .afg-reveal--delay-2 { transition-delay: 0.3s; }
#afg-about .afg-reveal--delay-3 { transition-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
    #afg-about .afg-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
#afg-about .afg-ab-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 78vh;
    overflow: hidden;
    color: #FAF6F1;
    isolation: isolate;
}
#afg-about .afg-ab-hero__media { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #2D1810, #7C2D12); }
#afg-about .afg-ab-hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.05) brightness(0.9);
    animation: afgAbZoom 18s ease-out forwards;
}
@keyframes afgAbZoom { from { transform: scale(1.12); } to { transform: scale(1.02); } }
#afg-about .afg-ab-hero__overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(8,4,2,0.85) 0%, rgba(8,4,2,0.5) 45%, rgba(8,4,2,0.3) 75%, rgba(8,4,2,0.5) 100%),
        linear-gradient(180deg, rgba(8,4,2,0.55) 0%, rgba(8,4,2,0) 30%, rgba(8,4,2,0) 55%, rgba(8,4,2,0.9) 100%),
        radial-gradient(ellipse at 22% 65%, rgba(194,65,12,0.18) 0%, transparent 55%);
}
#afg-about .afg-ab-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(190px, 22vh, 260px) 32px clamp(80px, 12vh, 130px);
}
#afg-about .afg-ab-hero__title {
    font-family: var(--f-display);
    font-weight: 300;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin-bottom: 26px;
    max-width: 16ch;
    color: #FAF6F1;
    text-shadow: 0 2px 24px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.7);
}
#afg-about .afg-ab-hero__title em {
    font-style: italic;
    font-weight: 300;
    color: var(--c-amber-400);
    text-shadow: 0 2px 24px rgba(0,0,0,0.85), 0 0 30px rgba(245,158,11,0.45);
}
#afg-about .afg-ab-hero__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.65;
    color: rgba(253,248,243,0.96);
    max-width: 54ch;
    margin-bottom: 28px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.6);
}
#afg-about .afg-ab-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250,246,241,0.9);
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}
#afg-about .afg-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--c-amber-400); }

/* ==========================================================================
   2. POVESTEA (split)
   ========================================================================== */
#afg-about .afg-ab-story { padding: 140px 0; background: var(--c-cream-100); }
#afg-about .afg-ab-story__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 100px;
    align-items: center;
}
#afg-about .afg-ab-story__media {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
#afg-about .afg-ab-story__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--t-smooth);
}
#afg-about .afg-ab-story__media:hover img { transform: scale(1.05); }
#afg-about .afg-ab-story__badge {
    position: absolute;
    bottom: -30px; right: -30px;
    width: 160px; height: 160px;
    background: var(--c-flame-700);
    color: var(--c-cream-50);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transform: rotate(-8deg);
}
#afg-about .afg-ab-story__badge-num { font-family: var(--f-display); font-size: 4rem; font-weight: 300; line-height: 1; }
#afg-about .afg-ab-story__badge-lbl {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 4px;
    opacity: 0.92;
}

/* ==========================================================================
   3. VALORI
   ========================================================================== */
#afg-about .afg-ab-values {
    padding: 140px 0;
    background: var(--c-cream-50);
    border-top: 1px solid var(--c-cream-300);
    border-bottom: 1px solid var(--c-cream-300);
}
#afg-about .afg-ab-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
#afg-about .afg-ab-value {
    background: #fff;
    border: 1px solid var(--c-cream-300);
    border-radius: var(--r-lg);
    padding: 40px 34px 38px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}
#afg-about .afg-ab-value:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
#afg-about .afg-ab-value--active {
    background: linear-gradient(160deg, var(--c-flame-900), var(--c-flame-700));
    border-color: var(--c-flame-700);
    color: var(--c-cream-50);
}
#afg-about .afg-ab-value__icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--c-cream-50), var(--c-cream-200));
    border: 1.5px solid var(--c-cream-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-flame-700);
    margin-bottom: 26px;
}
#afg-about .afg-ab-value__icon svg { width: 34px; height: 34px; }
#afg-about .afg-ab-value--active .afg-ab-value__icon {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    color: var(--c-amber-400);
}
#afg-about .afg-ab-value__title {
    font-family: var(--f-display);
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--c-ink-900);
    margin-bottom: 12px;
}
#afg-about .afg-ab-value--active .afg-ab-value__title { color: #fff; }
#afg-about .afg-ab-value__desc {
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--c-ink-500);
}
#afg-about .afg-ab-value--active .afg-ab-value__desc { color: rgba(253,248,243,0.92); }

/* ==========================================================================
   4. CIFRE (band dark)
   ========================================================================== */
#afg-about .afg-ab-stats {
    position: relative;
    padding: 150px 0;
    color: #FAF6F1;
    overflow: hidden;
    isolation: isolate;
}
#afg-about .afg-ab-stats__bg { position: absolute; inset: 0; z-index: -1; }
#afg-about .afg-ab-stats__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.1) brightness(0.65);
}
#afg-about .afg-ab-stats__bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(15,8,4,0.8) 0%, rgba(28,15,8,0.9) 100%),
        radial-gradient(ellipse at 75% 25%, rgba(245,158,11,0.18) 0%, transparent 55%);
    box-shadow: inset 0 0 220px rgba(0,0,0,0.5);
}
#afg-about .afg-ab-stats__head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
#afg-about .afg-ab-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
#afg-about .afg-ab-stat {
    text-align: center;
    padding: 24px 16px;
    border-left: 1px solid rgba(250,246,241,0.15);
}
#afg-about .afg-ab-stat:first-child { border-left: none; }
#afg-about .afg-ab-stat__num {
    font-family: var(--f-display);
    font-size: clamp(2.8rem, 5.5vw, 4.6rem);
    font-weight: 300;
    line-height: 1;
    color: var(--c-amber-400);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
#afg-about .afg-ab-stat__lbl {
    font-size: 0.92rem;
    color: rgba(250,246,241,0.8);
    line-height: 1.5;
    max-width: 22ch;
    margin: 0 auto;
}

/* ==========================================================================
   5. CUM PRODUCEM (proces)
   ========================================================================== */
#afg-about .afg-ab-process { padding: 140px 0; background: var(--c-cream-100); }
#afg-about .afg-ab-process__rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
#afg-about .afg-ab-step {
    position: relative;
    padding: 36px 28px 34px;
    background: var(--c-cream-50);
    border: 1px solid var(--c-cream-300);
    border-radius: var(--r-lg);
    transition: transform var(--t-smooth), box-shadow var(--t-smooth), border-color var(--t-smooth);
}
#afg-about .afg-ab-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-flame-500);
}
#afg-about .afg-ab-step__num {
    font-family: var(--f-display);
    font-size: 2.6rem;
    font-weight: 300;
    line-height: 1;
    color: var(--c-flame-500);
    margin-bottom: 18px;
    opacity: 0.85;
}
#afg-about .afg-ab-step__title {
    font-family: var(--f-display);
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--c-ink-900);
    margin-bottom: 10px;
}
#afg-about .afg-ab-step p {
    font-size: 0.94rem;
    line-height: 1.68;
    color: var(--c-ink-500);
}

/* ==========================================================================
   6. DATELE FIRMEI
   ========================================================================== */
#afg-about .afg-ab-company { padding: 140px 0; background: var(--c-cream-50); border-top: 1px solid var(--c-cream-300); }
#afg-about .afg-ab-company__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
#afg-about .afg-ab-company__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
#afg-about .afg-ab-company__card {
    background: var(--c-ink-900);
    border-radius: var(--r-lg);
    padding: 14px 36px;
    box-shadow: var(--shadow-lg);
}
#afg-about .afg-ab-facts { margin: 0; }
#afg-about .afg-ab-fact {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(250,246,241,0.1);
}
#afg-about .afg-ab-fact:last-child { border-bottom: none; }
#afg-about .afg-ab-fact dt {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-amber-400);
    align-self: center;
}
#afg-about .afg-ab-fact dd {
    margin: 0;
    font-size: 1.02rem;
    color: var(--c-cream-50);
    font-weight: 500;
    line-height: 1.55;
}
#afg-about .afg-ab-fact dd a { color: var(--c-amber-400); text-decoration: none; transition: color var(--t-fast); }
#afg-about .afg-ab-fact dd a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   7. CTA FINAL
   ========================================================================== */
#afg-about .afg-ab-cta {
    position: relative;
    padding: 160px 0;
    color: #FAF6F1;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
#afg-about .afg-ab-cta__bg { position: absolute; inset: 0; z-index: -1; }
#afg-about .afg-ab-cta__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.05) brightness(0.8);
}
#afg-about .afg-ab-cta__bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(120deg, rgba(15,8,4,0.92) 0%, rgba(28,58,18,0.78) 60%, rgba(15,8,4,0.88) 100%),
        radial-gradient(ellipse at 30% 70%, rgba(194,65,12,0.18) 0%, transparent 55%);
    box-shadow: inset 0 0 240px rgba(0,0,0,0.55);
}
#afg-about .afg-ab-cta__inner { max-width: 760px; margin: 0 auto; }
#afg-about .afg-ab-cta__inner .afg-eyebrow { margin-left: auto; margin-right: auto; }
#afg-about .afg-ab-cta__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    #afg-about .afg-ab-story__grid,
    #afg-about .afg-ab-company__grid { grid-template-columns: 1fr; gap: 60px; }
    #afg-about .afg-ab-values__grid { grid-template-columns: 1fr; gap: 24px; }
    #afg-about .afg-ab-process__rail { grid-template-columns: 1fr 1fr; gap: 24px; }
    #afg-about .afg-ab-stats__grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
    #afg-about .afg-ab-stat { padding: 28px 16px; }
    #afg-about .afg-ab-stat:nth-child(odd) { border-left: none; }
}
@media (max-width: 768px) {
    #afg-about .afg-wrap { padding: 0 20px; }
    #afg-about .afg-ab-story,
    #afg-about .afg-ab-values,
    #afg-about .afg-ab-stats,
    #afg-about .afg-ab-process,
    #afg-about .afg-ab-company,
    #afg-about .afg-ab-cta { padding: 90px 0; }
    #afg-about .afg-ab-process__rail { grid-template-columns: 1fr; }
    #afg-about .afg-ab-stats__grid { grid-template-columns: 1fr; }
    #afg-about .afg-ab-stat { border-left: none !important; border-top: 1px solid rgba(250,246,241,0.15); padding: 26px 16px; }
    #afg-about .afg-ab-stat:first-child { border-top: none; }
    #afg-about .afg-ab-story__badge { width: 110px; height: 110px; bottom: -16px; right: -16px; }
    #afg-about .afg-ab-story__badge-num { font-size: 2.6rem; }
    #afg-about .afg-ab-fact { grid-template-columns: 1fr; gap: 6px; }
    #afg-about .afg-ab-company__card { padding: 10px 24px; }
    #afg-about .afg-section-head { margin-bottom: 50px; }
}
