/*
 * AEvent homepage — Light hero.
 * Chỉ áp dụng cho `.ae-hero--light` (và header trên trang chủ qua `body.ae-hero-light`).
 * Nạp SAU homepage.css; không đổi style toàn cục. Xoá link trong customer_11/home.blade.php để quay lại hero tối.
 */

.ae-hero--light {
    --hl-bg: #faf7f3;
    --hl-ink: #171927;
    --hl-muted: #4b4d58;
    --hl-orange: var(--ae-orange, #ff6600);
    --hl-orange-hover: var(--ae-orange-hover, #e85c00);

    /* Hình học ảnh: tỉ lệ khung + độ nghiêng. sp = độ lệch chéo (% bề rộng khung),
       wp = bề rộng mặt nạ, iw = bề rộng ảnh bù nghiêng (tính theo mặt nạ). */
    --hl-skew: 23deg;
    --hl-sp: 18.46%;
    --hl-wp: 81.54%;
    --hl-iw: 122.64%;
    --hl-ratio: 2.3;
    --hl-pad-x: 120px;

    display: block;
    min-height: 0;
    padding: calc(var(--ae-header-height) + 36px) 0 80px;
    background: var(--hl-bg);
    color: var(--hl-ink);
    overflow: hidden;
}

/* ——— Layout ——— */
.ae-hero--light .ae-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    width: min(100% - 2 * var(--hl-pad-x), 1680px);
    margin-inline: auto;
}
@media (min-width: 1024px) {
    .ae-hero--light .ae-hero__inner {
        grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
        gap: 0;
    }
    .ae-hero--light .ae-hero__content {
        padding-right: 32px;
    }
}

/* ——— Eyebrow ——— */
.ae-hero--light .ae-hero-eyebrow {
    display: block;
    margin: 0 0 24px;
    font-size: 15px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--hl-orange);
}

/* ——— Headline ——— */
.ae-hero--light .ae-hero-title {
    margin: 0;
    font-size: clamp(34px, 9.5vw, 40px);
    font-weight: 800;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-transform: none;
    color: var(--hl-ink);
}
.ae-hero--light .ae-hero-title > span {
    display: inline;
}
.ae-hero--light .ae-hero-title-accent {
    color: var(--hl-orange);
    white-space: nowrap; /* không tách "khác / biệt." khi chữ tự xuống dòng */
}

/* ——— Description ——— */
.ae-hero--light .ae-hero-description {
    max-width: 580px;
    margin: 24px 0 0;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.65;
    letter-spacing: 0;
    color: var(--hl-muted);
}

/* ——— Actions ——— */
.ae-hero--light .ae-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 36px;
    margin-top: 32px;
}
.ae-hero--light .ae-hero-primary {
    min-height: 54px;
    padding: 0 28px;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: none;
}
.ae-hero--light .ae-hero-primary svg {
    width: 19px;
    height: 19px;
}
.ae-hero--light .ae-showreel {
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--hl-ink);
}
.ae-hero--light .ae-showreel.is-hidden {
    display: none !important;
}
.ae-hero--light .ae-showreel-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--hl-orange);
    background: transparent;
    color: var(--hl-orange);
}
.ae-hero--light .ae-showreel-icon svg {
    width: 17px;
    height: 17px;
    margin-left: 2px;
}
.ae-hero--light .ae-showreel:hover .ae-showreel-icon,
.ae-hero--light .ae-showreel:focus-visible .ae-showreel-icon {
    background: var(--hl-orange);
    border-color: var(--hl-orange);
    color: #fff;
}

/* ——— Visual column ——— */
.ae-hero--light .ae-hero__visual {
    position: relative;
    min-width: 0;
}
.ae-hero--light .ae-hero__stage {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: var(--hl-ratio);
}

/* Hai khối cam trang trí phía sau ảnh (không tương tác, ẩn khỏi trợ năng) */
.ae-hero--light .ae-hero-shape {
    position: absolute;
    z-index: 0;
    width: 21.5%;
    height: 38%;
    border-radius: 12px;
    transform: skewX(-26deg);
    pointer-events: none;
}
.ae-hero--light .ae-hero-shape--a {
    top: 16%;
    left: 2%;
    background: linear-gradient(135deg, #ffd7b8 0%, var(--hl-orange) 100%);
}
.ae-hero--light .ae-hero-shape--b {
    right: 2%;
    bottom: 0;
    background: linear-gradient(135deg, var(--hl-orange) 0%, #ffe4cc 100%);
}

/* Mặt nạ hình bình hành bo góc; ảnh bên trong được nghiêng ngược lại để không bị méo */
.ae-hero--light .ae-hero-photo {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: calc(var(--hl-sp) / 2);
    width: var(--hl-wp);
    border-radius: 24px;
    overflow: hidden;
    background: #ece5dc;
    transform: skewX(calc(var(--hl-skew) * -1));
    box-shadow: 0 18px 40px -26px rgba(23, 25, 39, 0.28);
}
.ae-hero--light .ae-hero-media {
    position: absolute;
    z-index: auto;
    top: 0;
    bottom: 0;
    right: auto;
    left: calc((100% - var(--hl-iw)) / 2);
    width: var(--hl-iw);
    overflow: hidden;
    transform: skewX(var(--hl-skew));
}
.ae-hero--light .ae-hero-media__slide {
    position: absolute;
    inset: 0;
}
.ae-hero--light .ae-hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
}
.ae-hero--light .ae-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/* ——— Slider controls (nhỏ, nằm dưới ảnh) ——— */
.ae-hero--light .ae-hero-controls {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 16px;
    padding: 0;
}
.ae-hero--light .ae-hero-controls__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ae-hero--light .ae-slide-tabs {
    width: 156px;
}
.ae-hero--light .ae-slide-tab {
    min-height: 32px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(23, 25, 39, 0.4);
}
.ae-hero--light .ae-slide-tab[aria-current="true"] {
    color: var(--hl-ink);
}
.ae-hero--light .ae-slide-track {
    margin-top: 4px;
    background: rgba(23, 25, 39, 0.12);
}
.ae-hero--light .ae-slide-arrows {
    gap: 8px;
}
.ae-hero--light .ae-slide-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(23, 25, 39, 0.22);
    color: var(--hl-ink);
}
.ae-hero--light .ae-slide-arrow svg {
    width: 16px;
    height: 16px;
}
.ae-hero--light .ae-slide-arrow:hover {
    background: var(--hl-orange);
    border-color: var(--hl-orange);
    color: #fff;
}

/* ——— Header: chữ tối trên nền sáng khi chưa cuộn (giữ nguyên trạng thái đã cuộn) ——— */
.ae-hero-light .ae-header:not(.is-scrolled) .ae-header__logo-img {
    filter: none;
}
.ae-hero-light .ae-header:not(.is-scrolled) .ae-navigation-link,
.ae-hero-light .ae-header:not(.is-scrolled) .ae-navigation-link--new {
    color: var(--hl-ink, #171927);
}
.ae-hero-light .ae-header:not(.is-scrolled) .ae-navigation-link:hover,
.ae-hero-light .ae-header:not(.is-scrolled) .ae-navigation-link.is-active {
    color: var(--ae-orange);
}
.ae-hero-light .ae-header:not(.is-scrolled) .ae-header__icon-btn,
.ae-hero-light .ae-header:not(.is-scrolled) .ae-header__menu-btn {
    color: var(--hl-ink, #171927);
}

/* ——— Breakpoints ——— */

/* Tablet 768–1023: một cột, chữ trước ảnh sau */
@media (min-width: 768px) {
    .ae-hero--light {
        --hl-pad-x: 36px;
        --hl-skew: 18deg;
        --hl-sp: 14.77%;
        --hl-wp: 85.23%;
        --hl-iw: 117.33%;
        --hl-ratio: 2.2;
        padding: calc(var(--ae-header-height) + 44px) 0 48px;
    }
    .ae-hero--light .ae-hero__inner {
        gap: 40px;
    }
    .ae-hero--light .ae-hero-title {
        font-size: 48px;
    }
    .ae-hero--light .ae-hero-description {
        font-size: 17px;
    }
    .ae-hero--light .ae-hero-controls {
        position: static;
        margin-top: 16px;
    }
}

/* Laptop 1024–1279 */
@media (min-width: 1024px) {
    .ae-hero--light {
        --hl-pad-x: 44px;
        --hl-skew: 23deg;
        --hl-sp: 19.29%;
        --hl-wp: 80.71%;
        --hl-iw: 123.9%;
        --hl-ratio: 2.2;
        padding: calc(var(--ae-header-height) + 28px) 0 76px;
    }
    .ae-hero--light .ae-hero-eyebrow {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .ae-hero--light .ae-hero-title {
        font-size: clamp(40px, 3.6vw, 46px);
    }
    .ae-hero--light .ae-hero-description {
        font-size: 17px;
        margin-top: 20px;
    }
    .ae-hero--light .ae-hero-actions {
        margin-top: 28px;
        gap: 16px 28px;
    }
    .ae-hero--light .ae-hero-controls {
        position: absolute;
        margin-top: 14px;
    }
}

/* Desktop 1280–1599 */
@media (min-width: 1280px) {
    .ae-hero--light {
        --hl-pad-x: 72px;
        --hl-sp: 18.46%;
        --hl-wp: 81.54%;
        --hl-iw: 122.64%;
        --hl-ratio: 2.3;
        padding: calc(var(--ae-header-height) + 32px) 0 64px;
    }
    .ae-hero--light .ae-hero-eyebrow {
        font-size: 15px;
        margin-bottom: 22px;
    }
    /* Cột chữ là container: cỡ chữ theo bề rộng cột để dòng 2 "Kiến tạo trải nghiệm" luôn nằm gọn, không đè lên ảnh. */
    .ae-hero--light .ae-hero__content {
        container-type: inline-size;
        padding-right: 16px;
    }
    .ae-hero--light .ae-hero-title {
        font-size: clamp(44px, 3.5vw, 54px);
        font-size: clamp(44px, 9.8cqw, 64px);
    }
    .ae-hero--light .ae-hero-title > span {
        display: block;
    }
    .ae-hero--light .ae-hero-description {
        font-size: 18px;
        margin-top: 24px;
    }
    .ae-hero--light .ae-hero-actions {
        margin-top: 32px;
        gap: 14px 28px;
    }
    .ae-hero--light .ae-hero-primary {
        padding: 0 24px;
    }
}

/* Desktop ≥1600 (baseline 1920) */
@media (min-width: 1600px) {
    .ae-hero--light {
        --hl-pad-x: 120px;
        padding: calc(var(--ae-header-height) + 36px) 0 68px;
    }
    .ae-hero--light .ae-hero-eyebrow {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .ae-hero--light .ae-hero-description {
        font-size: 19px;
    }
    .ae-hero--light .ae-hero-actions {
        margin-top: 34px;
        gap: 20px 40px;
    }
    .ae-hero--light .ae-hero-primary {
        padding: 0 28px;
    }
    .ae-hero--light .ae-hero__content {
        padding-right: 28px;
    }
}

/* Mobile < 768 */
@media (max-width: 767px) {
    .ae-hero--light {
        --hl-pad-x: 22px;
        --hl-skew: 11deg;
        --hl-sp: 12.15%;
        --hl-wp: 87.85%;
        --hl-iw: 113.83%;
        --hl-ratio: 1.6;
        min-height: 0;
        padding: calc(var(--ae-header-height) + 28px) 0 40px;
    }
    .ae-hero--light .ae-hero__inner {
        gap: 32px;
    }
    .ae-hero--light .ae-hero-eyebrow {
        font-size: 13px;
        margin-bottom: 18px;
    }
    .ae-hero--light .ae-hero-description {
        font-size: 16px;
        margin-top: 18px;
    }
    .ae-hero--light .ae-hero-actions {
        margin-top: 26px;
        gap: 16px 24px;
    }
    .ae-hero--light .ae-hero-primary {
        min-height: 52px;
        padding: 0 22px;
        font-size: 15px;
    }
    .ae-hero--light .ae-showreel {
        font-size: 15px;
    }
    .ae-hero--light .ae-hero-shape {
        width: 18%;
        height: 32%;
    }
    .ae-hero--light .ae-hero-photo {
        border-radius: 16px;
    }
    .ae-hero--light .ae-hero-controls {
        position: static;
        margin-top: 14px;
    }
    .ae-hero--light .ae-slide-tabs {
        width: min(140px, 42vw);
    }
}

/* ——— Chuyển động tối giản ——— */
.ae-hero--light .ae-hero-primary,
.ae-hero--light .ae-showreel-icon,
.ae-hero--light .ae-slide-arrow {
    transition-duration: 200ms;
}
@media (prefers-reduced-motion: reduce) {
    .ae-hero--light *,
    .ae-hero--light *::before,
    .ae-hero--light *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    .ae-hero--light .ae-hero-primary:hover svg {
        transform: none;
    }
}
