﻿/* ==============================================
   analiza-faciala.css
   Pagina: Analiză Facială Computerizată — Observ 520x
   ============================================== */

/* ===== VARIABLES ===== */
:root {
    --af-rose: #801483;
    --af-rose-light: #9b3fa2;
    --af-rose-bright: #b85db2;
    --af-blush: #f3e4f4;
    --af-dark: #2D2D2D;
    --af-cream: #faf5fb;
    --af-text: #2D2D2D;
    --af-muted: #6B6B6B;
    --af-gradient: linear-gradient(135deg, #801483 0%, #9b3fa2 50%, #801483 100%);
    --af-gradient-bg: linear-gradient(180deg, #FFFFFF 0%, #faf5fb 100%);
}

/* ===== BASE ===== */
.af-page {
    font-family: 'Montserrat', sans-serif;
    color: var(--af-text);
    overflow-x: hidden;
    line-height: 1.6;
}

    .af-page h1, .af-page h2, .af-page h3, .af-page h4, .af-page h5 {
        font-family: 'Playfair Display', serif;
    }

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
    will-change: opacity, transform;
}

[data-reveal="fade-up"] {
    transform: translateY(50px);
}

[data-reveal="fade-down"] {
    transform: translateY(-50px);
}

[data-reveal="fade-left"] {
    transform: translateX(60px);
}

[data-reveal="fade-right"] {
    transform: translateX(-60px);
}

[data-reveal="zoom-in"] {
    transform: scale(0.88);
}

[data-reveal="zoom-up"] {
    transform: scale(0.92) translateY(30px);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal].af-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

[data-reveal-stagger] > [data-reveal] {
    transition-delay: calc(var(--reveal-i, 0) * 120ms);
}

/* ===== HERO ===== */
.af-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--af-gradient-bg);
    padding: 5rem 0 3.5rem;
}

    .af-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(128,20,131,0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(155,63,162,0.1) 0%, transparent 40%);
        pointer-events: none;
    }

.af-hero-content {
    position: relative;
    z-index: 2;
}

.af-hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(128,20,131,0.1);
    border: 1px solid var(--af-rose);
    border-radius: 50px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--af-rose);
    margin-bottom: 2rem;
}

.af-hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

    .af-hero-title .highlight {
        background: var(--af-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.af-hero-subtitle {
    font-size: 1.15rem;
    color: var(--af-muted);
    font-weight: 400;
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.af-hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(128,20,131,0.15);
    border: 1px solid rgba(128,20,131,0.1);
}

    .af-hero-image img {
        width: 100%;
        height: auto;
        display: block;
    }

.af-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    padding: 1.25rem 2rem;
    border: 1px solid rgba(128,20,131,0.2);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(128,20,131,0.15);
    margin-top: 1.5rem;
    width: 100%;
}

.af-stat-item {
    text-align: center;
    flex: 1;
}

.af-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(128,20,131,0.15);
    margin: 0 auto;
}

.af-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--af-rose);
    line-height: 1.1;
}

.af-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--af-muted);
    margin-top: 2px;
    line-height: 1.3;
}

/* ===== BUTTONS ===== */
.btn-af {
    background: var(--af-gradient);
    color: #fff;
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    text-decoration: none !important;
    display: inline-block;
}

    .btn-af::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .btn-af:hover::before {
        left: 100%;
    }

    .btn-af:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 40px rgba(128,20,131,0.4);
        color: #fff;
    }

.btn-af-outline {
    background: transparent;
    color: var(--af-rose);
    border: 2px solid var(--af-rose);
    padding: 1rem 2.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.4s;
    text-decoration: none !important;
    display: inline-block;
}

    .btn-af-outline:hover {
        background: var(--af-rose);
        color: #fff;
        transform: translateY(-3px);
    }

.btn-af-sm {
    background: var(--af-gradient);
    color: #fff !important;
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 10px;
}

    .btn-af-sm:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(128,20,131,0.35);
        color: #fff !important;
    }

/* ===== SECTIONS ===== */
.af-section {
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.af-section-white {
    background: #fff;
}

.af-section-gradient {
    background: linear-gradient(180deg, #faf5fb 0%, #fff 100%);
}

.af-section-cream {
    background: var(--af-cream);
}

.af-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.af-section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(128,20,131,0.1);
    border: 1px solid rgba(128,20,131,0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--af-rose);
    margin-bottom: 1.5rem;
}

.af-section-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.af-section-subtitle {
    font-size: 1.1rem;
    color: var(--af-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.af-decorative-line {
    width: 60px;
    height: 3px;
    background: var(--af-gradient);
    margin: 1rem auto;
}

/* ===== TEXT UTILITIES ===== */
.af-text-body {
    line-height: 1.85;
    font-size: 1.02rem;
}

.af-text-rose {
    color: var(--af-rose);
}

.af-icon-rose {
    color: var(--af-rose);
}

.af-img-rounded {
    border-radius: 20px;
}

/* ===== SERVICE CARDS ===== */
.af-service-card {
    background: #fff;
    border: 1px solid rgba(128,20,131,0.12);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(128,20,131,0.08);
    display: flex;
    flex-direction: column;
}

    .af-service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 45px rgba(128,20,131,0.15);
        border-color: rgba(128,20,131,0.3);
    }

    .af-service-card img {
        width: 100%;
        aspect-ratio: 1.78;
        object-fit: cover;
        display: block;
        transition: transform 0.5s;
    }

    .af-service-card:hover img {
        transform: scale(1.03);
    }

.af-service-body {
    padding: 1.25rem 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.af-service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--af-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.af-service-sub {
    font-size: 0.8rem;
    color: var(--af-muted);
    margin-bottom: 10px;
}

.af-service-text {
    font-size: 0.9rem;
    color: var(--af-muted);
    line-height: 1.65;
    margin-bottom: 12px;
    flex: 1;
    text-align: center;
}

.af-service-footer {
    margin-top: auto;
}

/* ===== GALLERY CARDS ===== */
.af-gallery-card {
    background: #fff;
    border: 1px solid rgba(128,20,131,0.12);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(128,20,131,0.08);
    cursor: pointer;
}

    .af-gallery-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 45px rgba(128,20,131,0.15);
        border-color: rgba(128,20,131,0.3);
    }

    .af-gallery-card img {
        width: 100%;
        aspect-ratio: 0.789;
        object-fit: cover;
        display: block;
        transition: transform 0.5s;
    }

    .af-gallery-card:hover img {
        transform: scale(1.03);
    }

.af-gallery-body {
    padding: 1.5rem;
}

.af-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--af-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.af-gallery-text {
    font-size: 0.92rem;
    color: var(--af-muted);
    line-height: 1.65;
    margin: 0;
    text-align: justify;
}

/* ===== DETAIL CARD ===== */
.af-detail-card {
    background: #fff;
    border: 1px solid rgba(128,20,131,0.1);
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(128,20,131,0.06);
    position: relative;
    overflow: hidden;
}

    .af-detail-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--af-gradient);
        border-radius: 18px 0 0 18px;
    }

    .af-detail-card h4 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--af-dark);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .af-detail-card h4 i {
            color: var(--af-rose);
            font-size: 1rem;
        }

    .af-detail-card p {
        color: var(--af-muted);
        line-height: 1.75;
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
        text-align: justify;
    }

        .af-detail-card p:last-child {
            margin-bottom: 0;
        }

/* ===== CALLOUT ===== */
.af-callout {
    background: linear-gradient(135deg, rgba(128,20,131,0.06), rgba(155,63,162,0.03));
    border-left: 4px solid var(--af-rose);
    border-radius: 0 14px 14px 0;
    padding: 18px 22px;
    margin: 20px 0;
}

    .af-callout p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.7;
        color: var(--af-muted);
    }

/* ===== VIDEO ===== */
.af-video-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(128,20,131,0.15);
    border: 1px solid rgba(128,20,131,0.1);
}

    .af-video-wrap video {
        width: 100%;
        display: block;
    }

/* ===== MODE CARDS (9 moduri) ===== */
.af-mode-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(128,20,131,0.04);
    border: 1px solid rgba(128,20,131,0.1);
    border-radius: 14px;
    transition: all 0.3s;
    margin-bottom: 12px;
}

    .af-mode-card:hover {
        border-color: rgba(128,20,131,0.25);
        background: rgba(128,20,131,0.08);
        transform: translateX(4px);
    }

.af-mode-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--af-gradient);
    color: #fff;
    border-radius: 50%;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.af-mode-title {
    font-weight: 600;
    color: var(--af-dark);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.af-mode-desc {
    color: var(--af-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

/* ===== REC CARD ===== */
.af-rec-card {
    background: rgba(128,20,131,0.05);
    border: 1px solid rgba(128,20,131,0.2);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
}

    .af-rec-card h4 {
        color: var(--af-rose);
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

.af-rec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .af-rec-list li {
        padding: 0.75rem 0 0.75rem 30px;
        position: relative;
        color: var(--af-muted);
        line-height: 1.6;
    }

        .af-rec-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--af-rose);
            font-weight: 700;
        }

/* ===== FAQ ===== */
.af-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
}

.af-faq-item {
    background: #fff;
    border: 1px solid rgba(128,20,131,0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.35s;
    position: relative;
}

    .af-faq-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--af-gradient);
        opacity: 0;
        transition: opacity 0.3s;
        border-radius: 18px 0 0 18px;
    }

    .af-faq-item:hover {
        border-color: rgba(128,20,131,0.18);
        box-shadow: 0 6px 28px rgba(128,20,131,0.08);
    }

        .af-faq-item:hover::before {
            opacity: 1;
        }

    .af-faq-item.af-open {
        border-color: rgba(128,20,131,0.2);
        box-shadow: 0 8px 32px rgba(128,20,131,0.1);
    }

        .af-faq-item.af-open::before {
            opacity: 1;
        }

.af-faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--af-dark);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.25s;
    line-height: 1.45;
    font-family: 'Montserrat', sans-serif;
}

    .af-faq-question:hover {
        color: var(--af-rose);
    }

    .af-faq-question:focus {
        outline: none;
    }

    .af-faq-question span {
        flex: 1;
    }

.af-faq-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(128,20,131,0.08), rgba(155,63,162,0.04));
    color: var(--af-rose);
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s;
}

.af-faq-item:hover .af-faq-num, .af-faq-item.af-open .af-faq-num {
    background: var(--af-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(128,20,131,0.25);
}

.af-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(128,20,131,0.06);
    transition: all 0.3s;
    flex-shrink: 0;
}

    .af-faq-toggle i {
        color: var(--af-rose-light);
        font-size: 0.75rem;
        transition: transform 0.35s;
    }

.af-faq-item.af-open .af-faq-toggle {
    background: var(--af-gradient);
    box-shadow: 0 3px 10px rgba(128,20,131,0.25);
}

    .af-faq-item.af-open .af-faq-toggle i {
        color: #fff;
        transform: rotate(180deg);
    }

.af-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.5s cubic-bezier(0.4,0,0.2,1);
    padding: 0 24px 0 78px;
}

.af-faq-item.af-open .af-faq-answer {
    max-height: 2000px;
    padding: 0 24px 22px 78px;
}

.af-faq-answer p, .af-faq-answer div {
    font-size: 0.95rem;
    color: var(--af-muted);
    line-height: 1.75;
    margin: 0;
    text-align: justify;
}

.af-faq-answer ol {
    padding-left: 20px;
    margin: 10px 0;
}

    .af-faq-answer ol li {
        color: var(--af-muted);
        line-height: 1.7;
        margin-bottom: 8px;
        font-size: 0.93rem;
    }

/* ===== CTA ===== */
.af-cta-section {
    background-color: #f5ecf5 !important;
    background: linear-gradient(135deg, rgba(128,20,131,0.1), rgba(243,228,244,0.5));
    border-top: 1px solid rgba(128,20,131,0.2);
    border-bottom: 1px solid rgba(128,20,131,0.2);
    overflow: hidden;
    width: 100%;
    padding: 3.5rem 0;
}

.af-cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--af-dark);
}

/* ===== PRICE ===== */
.af-price-card {
    background: #fff;
    border: 2px solid rgba(128,20,131,0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(128,20,131,0.1);
    position: relative;
    overflow: hidden;
}

    .af-price-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--af-gradient);
    }

.af-price-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--af-dark);
    margin-bottom: 16px;
}

.af-price-note {
    font-size: 0.88rem;
    color: var(--af-muted);
    margin-top: 12px;
    line-height: 1.6;
}

/* ===== OBSERV SUBTITLE ===== */
.af-observ-subtitle {
    color: var(--af-rose);
    font-size: 1.6rem;
    text-align: center;
    margin: 1.5rem 0;
}

/* ===== GALLERY MODAL ===== */
.af-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14,14,14,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

    .af-modal-overlay.active {
        display: flex;
    }

.af-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #1a1a1a;
    border: 1px solid rgba(128,20,131,0.3);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    animation: afModalIn 0.3s ease;
}

@keyframes afModalIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.af-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .af-modal-header h5 {
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
        margin: 0;
    }

.af-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

    .af-modal-close:hover {
        color: #fff;
    }

.af-modal-body {
    padding: 0;
    text-align: center;
}

    .af-modal-body img {
        width: 100%;
        display: block;
    }

.af-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.af-modal-nav {
    background: var(--af-gradient);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .af-modal-nav:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(128,20,131,0.4);
    }

    .af-modal-nav:disabled {
        opacity: 0.3;
        cursor: default;
        transform: none;
        box-shadow: none;
    }

.af-modal-counter {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    align-self: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .af-hero-title {
        font-size: 3rem;
    }

    .af-section-title {
        font-size: 2.2rem;
    }

    .af-hero-stats {
        padding: 1rem 1.25rem;
    }

    .af-stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .af-hero-title {
        font-size: 2.2rem;
    }

    .af-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .af-section {
        padding: 3rem 0;
    }

    .af-section-title {
        font-size: 1.8rem;
    }

    .af-faq-answer {
        padding: 0 18px 0 18px;
    }

    .af-faq-item.af-open .af-faq-answer {
        padding: 0 18px 18px 18px;
    }

    .af-faq-question {
        padding: 16px 18px;
        gap: 12px;
        font-size: 0.92rem;
    }

    .af-cta-title {
        font-size: 1.8rem;
    }

    .af-stat-number {
        font-size: 1.5rem;
    }

    .af-stat-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .af-hero-title {
        font-size: 1.8rem;
    }

    .af-hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-af, .btn-af-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
}
