/* ==========================================================
   Home page — modern layout + scroll animations
   Loaded only on index.php (see layouts/head.php)
   ========================================================== */

:root {
    --hv-purple: #652a82;
    --hv-purple-dark: #1b0238;
    --hv-orange: #ff6b35;
    --hv-yellow: #ffc727;
    --hv-cream: #fdf6ed;
    --hv-text: #4a4458;
    --hv-radius: 18px;
    --hv-shadow: 0 10px 30px rgba(27, 2, 56, 0.08);
    --hv-shadow-hover: 0 18px 40px rgba(101, 42, 130, 0.18);
}

/* ---------- Shared section heading ---------- */
.home-v2 .section-title {
    margin-bottom: 50px;
}

.home-v2 .section-title .hv-eyebrow,
.home-v2 .quote-item .content .hv-eyebrow {
    display: inline-block;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
}

.home-v2 .section-title h2 {
    font-size: 42px;
    position: relative;
    padding-bottom: 18px;
}

.home-v2 .section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 4px;
    border-radius: 4px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--hv-purple), var(--hv-orange));
}

.home-v2 .section-title p {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--hv-text);
}

.hv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(101, 42, 130, 0.08);
    color: var(--hv-purple);
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.hv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hv-btn i {
    font-size: 20px;
}

.hv-btn-primary {
    background: var(--hv-purple);
    color: #fff;
    box-shadow: 0 10px 24px rgba(101, 42, 130, 0.3);
}

.hv-btn-primary:hover {
    color: #fff;
    background: #4f1f66;
    transform: translateY(-3px);
}

.hv-btn-outline {
    border: 2px solid var(--hv-purple);
    color: var(--hv-purple);
    background: transparent;
}

.hv-btn-outline:hover {
    background: var(--hv-purple);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- Welcome ---------- */
.hv-welcome {
    position: relative;
    padding: 110px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 15%, rgba(255, 199, 39, 0.16), transparent 32%),
        radial-gradient(circle at 92% 85%, rgba(101, 42, 130, 0.10), transparent 35%),
        #ffffff;
}

.hv-welcome-logo {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 18px 0 6px;
}

.hv-welcome-sub {
    font-size: 22px;
    color: var(--hv-purple);
    margin-bottom: 22px;
}

.hv-welcome h1 {
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 18px;
}

.hv-welcome p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--hv-text);
}

.hv-checks {
    list-style: none;
    padding: 0;
    margin: 24px 0 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.hv-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--hv-purple-dark);
}

.hv-checks li i {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(101, 42, 130, 0.1);
    color: var(--hv-purple);
    font-size: 16px;
}

.hv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Image collage */
.hv-collage {
    position: relative;
    isolation: isolate;
    padding: 20px 10px 40px 40px;
}

.hv-collage .main {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: 30px 120px 30px 30px;
    box-shadow: var(--hv-shadow);
}

.hv-collage .small {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 24px;
    border: 8px solid #fff;
    box-shadow: var(--hv-shadow);
}

.hv-collage .hv-badge {
    position: absolute;
    right: 0;
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--hv-shadow);
    animation: hv-float 4s ease-in-out infinite;
}

.hv-collage .hv-badge i {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hv-yellow);
    color: var(--hv-purple-dark);
    font-size: 24px;
}

.hv-collage .hv-badge strong {
    display: block;
    color: var(--hv-purple-dark);
    font-size: 16px;
    line-height: 1.2;
}

.hv-collage .hv-badge span {
    font-size: 13px;
    color: var(--hv-text);
}

.hv-collage .hv-dots {
    position: absolute;
    top: 0;
    right: 30px;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(var(--hv-orange) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.35;
    z-index: -1;
}

@keyframes hv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Feature cards under the welcome */
.hv-features {
    padding: 0 0 90px;
}

.hv-feature {
    height: 100%;
    padding: 34px 30px;
    background: #fff;
    border-radius: var(--hv-radius);
    box-shadow: var(--hv-shadow);
    border-bottom: 4px solid transparent;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hv-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--hv-shadow-hover);
    border-color: var(--hv-purple);
}

.hv-feature .icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    color: #fff;
}

.hv-feature .icon.c1 { background: linear-gradient(135deg, #8a3fb0, var(--hv-purple)); }
.hv-feature .icon.c2 { background: linear-gradient(135deg, #ff9a5c, var(--hv-orange)); }
.hv-feature .icon.c3 { background: linear-gradient(135deg, #3fc1a5, #1f9d84); }

.hv-feature h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.hv-feature p {
    margin-bottom: 0;
    color: var(--hv-text);
    line-height: 1.75;
}

/* ---------- Engagements ---------- */
.home-v2 .single-class {
    border-radius: var(--hv-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--hv-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-v2 .single-class:hover {
    transform: translateY(-10px);
    box-shadow: var(--hv-shadow-hover);
}

.home-v2 .single-class .class-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
}

.home-v2 .single-class:hover .class-image img {
    transform: scale(1.08);
}

.home-v2 .single-class .class-content {
    box-shadow: none;
    border-radius: 0;
    padding: 26px 20px 24px;
    text-align: center;
}

.home-v2 .single-class .class-content > img {
    max-height: 44px;
    width: auto;
    margin: 0 auto 10px;
    display: block;
}

.home-v2 .single-class .class-content h3 {
    margin-bottom: 8px;
}

.home-v2 .single-class .hv-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hv-orange);
}

.home-v2 .single-class .hv-more i {
    transition: transform 0.3s ease;
}

.home-v2 .single-class:hover .hv-more i {
    transform: translateX(5px);
}

/* ---------- Why choose us ---------- */
.home-v2 .single-facilities {
    padding: 18px 20px 18px 96px;
    margin-bottom: 26px;
    min-height: 100px;
    border-radius: var(--hv-radius);
    background: #fff;
    box-shadow: var(--hv-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-v2 .single-facilities:hover {
    transform: translateY(-5px);
    box-shadow: var(--hv-shadow-hover);
}

.home-v2 .single-facilities .number span {
    left: 20px;
    top: 50%;
    margin-top: -30px;
    font-size: 22px;
}

.home-v2 .single-facilities:hover .number span {
    transform: rotate(360deg);
}

.home-v2 .single-facilities .facilities-content {
    padding-left: 0 !important;
}

.home-v2 .single-facilities h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.home-v2 .single-facilities h3 a {
    pointer-events: none;
}

.home-v2 .single-facilities p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--hv-text);
}

.home-v2 .facilities-image img {
    animation: hv-float 5s ease-in-out infinite;
}

/* ---------- Gallery ---------- */
.home-v2 .single-gallery-box {
    border-radius: var(--hv-radius);
    overflow: hidden;
    box-shadow: var(--hv-shadow);
}

.home-v2 .single-gallery-box img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s ease;
}

.home-v2 .single-gallery-box:hover img {
    transform: scale(1.1);
}

.home-v2 .single-gallery-box::before {
    border-radius: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(27, 2, 56, 0.85));
}

.home-v2 .single-gallery-box:hover::before {
    opacity: 1;
}

.home-v2 .single-gallery-box .gallery-btn {
    z-index: 2;
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: #fff;
    color: var(--hv-purple);
    font-size: 24px;
}

.hv-center-btn {
    text-align: center;
    margin-top: 10px;
}

/* ---------- Parent video reviews ---------- */
.hv-reviews {
    padding: 90px 0 30px;
    background: var(--hv-cream);
}

.hv-reviews .section-title {
    margin-bottom: 10px;
}

@media (min-width: 601px) {
    .home-v2 .custom-carousel-wrapper .carousel-container {
        height: min(88vh, 760px);
    }

    .home-v2 .custom-carousel-wrapper .carousel {
        margin-top: 0 !important;
    }

    .home-v2 .custom-carousel-wrapper .carousel-item {
        height: 80%;
        width: 30%;
        border-radius: 20px;
    }

    .home-v2 .custom-carousel-wrapper .carousel-item.active {
        height: 100%;
        width: 34%;
        box-shadow: 0 25px 60px rgba(27, 2, 56, 0.35);
    }
}

.home-v2 .custom-carousel-wrapper .arrow {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--hv-purple);
    box-shadow: var(--hv-shadow);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.home-v2 .custom-carousel-wrapper .arrow:hover {
    background: var(--hv-purple);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

/* ---------- Enquiry ---------- */
.home-v2 .quote-area {
    padding-top: 100px;
}

.home-v2 .quote-area .row {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(27, 2, 56, 0.12);
    margin: 0;
}

.home-v2 .quote-area .col-lg-6 {
    padding: 0;
}

.home-v2 .quote-image-index {
    min-height: 420px;
}

.home-v2 .quote-item {
    box-shadow: none;
    height: 100%;
    padding: 50px 50px 45px;
}

.home-v2 .quote-item .content h3 {
    font-size: 16px !important;
    line-height: 1.7;
    color: var(--hv-text);
    font-weight: 400;
    margin-top: 14px;
}

.home-v2 .quote-item form .form-control {
    height: 58px;
    border-radius: 12px;
    border: 1px solid #e6e1ee;
    background: #faf8fc;
}

.home-v2 .quote-item form .form-control:focus {
    border-color: var(--hv-purple);
    background: #fff;
}

.home-v2 .quote-item form .default-btn {
    width: 100%;
    border-radius: 12px;
    margin-top: 5px;
}

/* Scroll animation styles live in site.css */
@media (prefers-reduced-motion: reduce) {
    .hv-collage .hv-badge { animation: none; }
}

/* ---------- Dark theme ---------- */
.theme-dark .hv-welcome { background: #0e0e0e; }
.theme-dark .hv-feature,
.theme-dark .home-v2 .single-class,
.theme-dark .home-v2 .single-facilities,
.theme-dark .hv-collage .hv-badge { background: #1a1a1a; }
.theme-dark .hv-reviews { background: #141414; }
.theme-dark .hv-welcome p,
.theme-dark .hv-feature p,
.theme-dark .home-v2 .single-facilities p,
.theme-dark .hv-collage .hv-badge span { color: #cfc8da; }
.theme-dark .hv-checks li,
.theme-dark .hv-collage .hv-badge strong { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hv-welcome { padding: 70px 0 50px; }
    .hv-welcome h1 { font-size: 27px; }
    .hv-collage { margin-top: 40px; }
    .home-v2 .section-title h2 { font-size: 32px; }
    .home-v2 .facilities-image { margin: 10px 0 36px; text-align: center; }
    .home-v2 .quote-image-index { min-height: 280px; }
    .hv-features .col-lg-4 + .col-lg-4 { margin-top: 24px; }
}

/* ---------- Phones & small tablets ---------- */
@media (max-width: 767px) {
    /* Tighter vertical rhythm */
    .home-v2 .pt-100 { padding-top: 60px !important; }
    .home-v2 .pb-70 { padding-bottom: 40px !important; }
    .home-v2 .pb-100 { padding-bottom: 60px !important; }
    .hv-welcome { padding: 50px 0 40px; }
    .hv-features { padding-bottom: 50px; }
    .hv-reviews { padding: 60px 0 10px; }
    .home-v2 .quote-area { padding-top: 60px; }

    .home-v2 .section-title { margin-bottom: 30px; }
    .home-v2 .section-title h2 { padding-bottom: 14px; }
    .home-v2 .section-title p { font-size: 15px; margin-top: 14px; }

    /* Decorative clip-art crowds small screens */
    .home-v2 .class-shape,
    .home-v2 .value-shape { display: none; }

    /* Feature cards: icon beside the title */
    .hv-feature { padding: 24px 20px; }
    .hv-feature .icon { width: 50px; height: 50px; font-size: 22px; border-radius: 14px; margin-bottom: 14px; }
    .hv-feature h3 { font-size: 19px; }
    .hv-feature p { font-size: 15px; }

    /* Engagements: 2 per row */
    .home-v2 .class-area .row { --bs-gutter-x: 14px; }
    .home-v2 .single-class { margin-bottom: 14px; border-radius: 14px; }
    .home-v2 .single-class .class-content { padding: 14px 8px 16px; }
    .home-v2 .single-class .class-content > img { max-height: 26px; margin-bottom: 6px; }
    .home-v2 .single-class .class-content h3 { font-size: 15px; margin-bottom: 4px; }
    .home-v2 .single-class .hv-more { font-size: 13px; }

    /* Why choose us */
    .home-v2 .single-facilities { padding: 14px 14px 14px 78px; margin-bottom: 14px; min-height: 0; border-radius: 14px; }
    .home-v2 .single-facilities .number span { left: 14px; width: 48px; height: 48px; line-height: 48px; margin-top: -24px; font-size: 17px; }
    .home-v2 .single-facilities .number span::before { width: 56px; height: 56px; top: -4px; left: -4px; }
    .home-v2 .single-facilities h3 { font-size: 16px; }
    .home-v2 .single-facilities p { font-size: 13.5px; }
    .home-v2 .facilities-image img { max-width: 240px; }

    /* Gallery: 2 per row, square tiles, whole tile opens the lightbox */
    .home-v2 .gallery-area .row { --bs-gutter-x: 12px; }
    .home-v2 .single-gallery-box { margin-bottom: 12px; border-radius: 12px; }
    .home-v2 .single-gallery-box img { aspect-ratio: 1 / 1; }
    .home-v2 .single-gallery-box .gallery-btn {
        inset: 0;
        width: auto;
        height: auto;
        transform: none;
        margin: 0;
        border-radius: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
        font-size: 0;
    }
    .home-v2 .single-gallery-box .gallery-btn i { display: none; }
    .home-v2 .single-gallery-box::before { display: none; }

    /* Video reviews: cap height so tall phones don't get a giant player */
    .home-v2 .custom-carousel-wrapper .carousel-container { height: min(68vh, 560px) !important; margin-bottom: 20px; }
    .home-v2 .custom-carousel-wrapper .carousel { margin-top: 0 !important; }
    .home-v2 .custom-carousel-wrapper .carousel-item { top: 50% !important; height: 85% !important; }
    .home-v2 .custom-carousel-wrapper .carousel-item.active { height: 100% !important; }
    .home-v2 .custom-carousel-wrapper .arrow { width: 42px; height: 42px; font-size: 22px; }

    /* Enquiry */
    .home-v2 .quote-area .row { border-radius: 20px; }
    .home-v2 .quote-image-index { min-height: 200px; }
}

@media (max-width: 575px) {
    .hv-checks { grid-template-columns: 1fr; }
    .hv-welcome-logo { max-width: 300px; }
    .hv-welcome h1 { font-size: 23px; }
    .hv-actions .hv-btn { width: 100%; justify-content: center; }
    .hv-collage { padding: 10px 0 30px 20px; }
    .hv-collage .hv-badge { right: 0; bottom: 20px; padding: 10px 14px; }
    .home-v2 .quote-item { padding: 34px 22px; }
    .home-v2 .section-title h2 { font-size: 28px; }
}
