/* main.css — Stiluri pentru landing page-ul public */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1a1a2e;
    background: #fff;
}

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

a {
    color: inherit;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BUTOANE
   ============================================================ */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn-cta {
    background: #f4a127;
    color: #fff;
    padding: 14px 32px;
    font-size: 17px;
    box-shadow: 0 4px 16px rgba(244, 161, 39, 0.35);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 161, 39, 0.45);
}

.btn-cta:active {
    transform: translateY(0);
}

.btn-cta--large {
    padding: 18px 48px;
    font-size: 19px;
}

/* ============================================================
   TITLURI DE SECȚIUNE
   ============================================================ */
.section__title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 48px;
    color: #1a1a2e;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: #1a1a2e; /* fallback dacă nu există imagine */
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Overlay întunecat peste imaginea de fundal */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.80) 0%,
        rgba(26, 26, 46, 0.55) 100%
    );
}

/* Conținut hero — deasupra overlay-ului */
.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero__logo {
    height: 48px;
    width: auto;
}

.hero__title {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 900;
    line-height: 1.15;
    max-width: 700px;
}

.hero__subtitle {
    font-size: clamp(17px, 2.5vw, 22px);
    opacity: 0.88;
    max-width: 560px;
}

/* ============================================================
   CURS
   ============================================================ */
.course {
    padding: 96px 0;
    background: #fff;
}

.course__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

/* Dacă nu există thumbnail, conținutul se extinde pe tot rândul */
.course__layout:has(.course__info:only-child) {
    grid-template-columns: 1fr;
}

.course__image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.course__name {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}

.course__tagline {
    font-size: 18px;
    color: #f4a127;
    font-weight: 600;
    margin-bottom: 20px;
}

.course__description {
    font-size: 16px;
    color: #444;
    margin-bottom: 28px;
}

/* Lista de feature-uri: durată, lecții, acces */
.course__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.feature__icon {
    font-size: 20px;
}

/* ============================================================
   PREȚ
   ============================================================ */
.pricing {
    padding: 96px 0;
    background: #f5f6fa;
}

.pricing__card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.pricing__title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 28px;
}

.pricing__amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 32px;
}

/* Preț vechi — tăiat */
.price__old {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

/* Preț curent — evidențiat */
.price__current {
    font-size: 56px;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1.1;
}

.price__currency {
    font-size: 28px;
    font-weight: 700;
}

.pricing__note {
    margin-top: 16px;
    font-size: 13px;
    color: #999;
}

/* ============================================================
   INSTRUCTOR
   ============================================================ */
.instructor {
    padding: 96px 0;
    background: #fff;
}

.instructor__layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: center;
}

.instructor__photo img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.instructor__label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #f4a127;
    margin-bottom: 8px;
}

.instructor__name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
}

.instructor__title {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.instructor__bio {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
}

/* ============================================================
   TESTIMONIALE
   ============================================================ */
.testimonials {
    padding: 96px 0;
    background: #f5f6fa;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial__card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial__text {
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    flex: 1;
}

.testimonial__name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
    padding: 96px 0;
    background: #1a1a2e;
    color: #fff;
    text-align: center;
}

.cta-final__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.cta-final h2 {
    font-size: 34px;
    font-weight: 800;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 32px 0;
    background: #111120;
    color: #888;
    font-size: 14px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* ============================================================
   RESPONSIVE — breakpoint 768px
   ============================================================ */
@media (max-width: 768px) {

    .hero__content {
        align-items: center;
        text-align: center;
    }

    .course__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .instructor__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .instructor__photo {
        max-width: 280px;
        margin: 0 auto;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .pricing__card {
        padding: 32px 24px;
    }

    .section__title {
        font-size: 26px;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
    }
}
