/* ============================================================
   EDUCATA - HOMEPAGE
   Rollover / Hero + introdução + acessos rápidos
   ============================================================ */

/* ============================================================
   HERO / ROLLOVER
   ============================================================ */

.home-hero {
    position: relative;
    min-height: 320px;

    display: grid;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(38, 20, 10, 0.92) 0%,
            rgba(54, 30, 15, 0.78) 47%,
            rgba(54, 30, 15, 0.35) 100%
        ),
        url("/images/home/hero-principal.jpg") center / cover no-repeat;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 7px;
    background:
        linear-gradient(
            90deg,
            var(--educata-gold) 0 22%,
            var(--educata-brown) 22% 100%
        );
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    padding: 28px 0 46px;
}

.home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 9px;

    color: #ffe59a;

    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero__eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--educata-gold);
}

.home-slide {
    display: none;
    max-width: 780px;
}

.home-slide.is-active {
    display: block;
    animation: homeSlideIn 0.35s ease;
}

@keyframes homeSlideIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.home-hero__title {
    margin: 0;

    color: var(--educata-white);

    font-size: clamp(2rem, 4.2vw, 3.65rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.home-hero__title--compact {
    font-size: clamp(1.75rem, 3.5vw, 2.85rem);
    line-height: 1.02;
}

.home-hero__subtitle {
    display: block;

    margin-top: 7px;

    color: #ead7ca;

    font-size: 0.46em;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.home-hero__text {
    max-width: 700px;
    margin: 12px 0 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.94rem;
}

.home-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 15px;
}

.home-hero__actions .btn {
    min-height: 40px;
    padding: 9px 17px;
    font-size: 0.90rem;
}

.home-hero__controls {
    position: absolute;
    z-index: 3;

    left: 50%;
    bottom: 12px;

    transform: translateX(-50%);

    width: min(calc(100% - 40px), var(--site-max-width));

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-hero__dots {
    display: flex;
    gap: 8px;
}

.home-hero__dot {
    width: 9px;
    height: 9px;

    padding: 0;
    border: 0;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.45);

    transition:
        width 0.20s ease,
        background-color 0.20s ease;
}

.home-hero__dot.is-active {
    width: 30px;
    background: var(--educata-gold);
}

.home-hero__arrows {
    display: flex;
    gap: 8px;
}

.home-hero__arrow {
    width: 36px;
    height: 36px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.14);
    color: var(--educata-white);

    font-size: 1.10rem;
}

.home-hero__arrow:hover,
.home-hero__arrow:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

/* ============================================================
   INTRODUÇÃO
   ============================================================ */

.home-intro {
    padding: 76px 0 70px;
}

.home-intro__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.section-kicker {
    color: var(--educata-brown);

    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-intro__title {
    margin: 10px 0 0;

    color: var(--educata-brown-dark);

    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.home-intro__text {
    margin: 0;

    color: var(--educata-muted);

    font-size: 1.05rem;
}

/* ============================================================
   ACESSOS RÁPIDOS
   ============================================================ */

.quick-access {
    padding: 80px 0 88px;
    background: var(--educata-soft);
}

.quick-access__head {
    display: flex;
    justify-content: space-between;
    gap: 36px;
    align-items: end;

    margin-bottom: 36px;
}

.quick-access__title {
    margin: 8px 0 0;

    color: var(--educata-brown-dark);

    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.quick-access__description {
    max-width: 470px;
    margin: 0;

    color: var(--educata-muted);
}

.quick-access__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.quick-card {
    position: relative;

    min-height: 260px;
    padding: 26px;

    border: 1px solid var(--educata-line);
    border-radius: var(--radius-md);

    background: var(--educata-white);

    box-shadow: 0 8px 30px rgba(45, 26, 15, 0.05);

    transition:
        transform 0.20s ease,
        box-shadow 0.20s ease,
        border-color 0.20s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: #dbc1ad;
    box-shadow: 0 18px 40px rgba(45, 26, 15, 0.10);
}

.quick-card__number {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: #fff4cf;
    color: var(--educata-brown);

    font-size: 1rem;
    font-weight: 900;
}

.quick-card__title {
    margin: 25px 0 10px;

    color: var(--educata-brown-dark);

    font-size: 1.22rem;
    line-height: 1.22;
}

.quick-card__text {
    margin: 0 0 42px;

    color: var(--educata-muted);

    font-size: 0.93rem;
}

.quick-card__link {
    position: absolute;
    left: 26px;
    bottom: 22px;

    color: var(--educata-brown);

    font-size: 0.90rem;
    font-weight: 800;
}

.quick-card__link:hover,
.quick-card__link:focus-visible {
    color: var(--educata-brown-dark);
    outline: none;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 980px) {

    .home-intro__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .quick-access__head {
        align-items: start;
        flex-direction: column;
    }

    .quick-access__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .home-hero {
        min-height: 410px;
    }

    .home-hero__inner {
        padding: 30px 0 58px;
    }

    .home-hero__text {
        font-size: 0.90rem;
    }

    .home-hero__controls {
        width: min(calc(100% - 28px), var(--site-max-width));
    }

    .home-intro,
    .quick-access {
        padding-block: 62px;
    }

    .quick-access__grid {
        grid-template-columns: 1fr;
    }
}
