/* ------------------------------------------------------------
   Ollato Eduversity - Home Hero CSS
   File: assets/css/home/hero.css

   Purpose:
   - Style homepage hero section
   - Keep typography simple, professional and readable
   - Style hero content, buttons, highlights and image
   - Support responsive layouts for desktop, tablet and mobile

   Related PHP file:
   pages/home/hero.php
------------------------------------------------------------ */


/* ------------------------------------------------------------
   Home Hero Section Base
------------------------------------------------------------ */

.home-hero {
    position: relative;
    min-height: auto;
    padding: var(--space-16) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(243, 156, 18, 0.1), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(33, 166, 122, 0.1), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #ffffff 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background-color: rgba(31, 79, 143, 0.06);
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    left: -110px;
    bottom: -130px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(243, 156, 18, 0.08);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}


/* ------------------------------------------------------------
   Home Hero Layout
------------------------------------------------------------ */

.home-hero-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    align-items: center;
    gap: var(--space-10);
}

.home-hero-content {
    max-width: 640px;
}

.home-hero-image-area {
    position: relative;
}


/* ------------------------------------------------------------
   Hero Badge
------------------------------------------------------------ */

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-4);
    padding: 7px 14px;
    border: 1px solid rgba(31, 79, 143, 0.14);
    border-radius: var(--radius-full);
    background-color: var(--color-white);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: var(--shadow-xs);
}


/* ------------------------------------------------------------
   Hero Text
------------------------------------------------------------ */

.home-hero-title {
    max-width: 620px;
    margin-bottom: var(--space-4);
    color: var(--color-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.5px;
}

.home-hero-subtitle {
    max-width: 600px;
    margin-bottom: var(--space-7);
    color: var(--color-text-light);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
}


/* ------------------------------------------------------------
   Hero Buttons
------------------------------------------------------------ */

.home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.home-hero-btn {
    min-width: 150px;
    font-weight: 500;
}

.home-hero-buttons .btn-outline {
    background-color: var(--color-white);
    box-shadow: var(--shadow-xs);
}

.home-hero-buttons .btn-outline:hover,
.home-hero-buttons .btn-outline:focus {
    box-shadow: var(--shadow-sm);
}


/* ------------------------------------------------------------
   Hero Highlights
------------------------------------------------------------ */

.home-hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    max-width: 620px;
}

.home-hero-highlight-item {
    position: relative;
    min-height: 82px;
    padding: var(--space-4);
    border: 1px solid rgba(31, 79, 143, 0.1);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(10px);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}

.home-hero-highlight-item:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 79, 143, 0.18);
    box-shadow: var(--shadow-sm);
}

.home-hero-highlight-number {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.home-hero-highlight-text {
    display: block;
    color: var(--color-heading);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}


/* ------------------------------------------------------------
   Hero Image
------------------------------------------------------------ */

.home-hero-image-box {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
}

.home-hero-image-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(16, 35, 63, 0.02),
            rgba(16, 35, 63, 0.18)
        );
    pointer-events: none;
}

.home-hero-image {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.home-hero-image-box:hover .home-hero-image {
    transform: scale(1.025);
}


/* ------------------------------------------------------------
   Floating Card
------------------------------------------------------------ */

.home-hero-floating-card {
    position: absolute;
    left: var(--space-5);
    bottom: var(--space-5);
    z-index: 2;
    width: min(300px, calc(100% - 40px));
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.home-hero-floating-label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text-light);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.home-hero-floating-title {
    display: block;
    margin-bottom: var(--space-3);
    color: var(--color-heading);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.home-hero-floating-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 15px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.home-hero-floating-link:hover,
.home-hero-floating-link:focus {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}


/* ------------------------------------------------------------
   Decorative Shape
------------------------------------------------------------ */

.home-hero-image-area::before {
    content: "";
    position: absolute;
    top: -18px;
    right: -18px;
    width: 95px;
    height: 95px;
    border-radius: var(--radius-xl);
    background-color: var(--color-secondary);
    opacity: 0.14;
    transform: rotate(12deg);
}

.home-hero-image-area::after {
    content: "";
    position: absolute;
    left: -16px;
    bottom: 70px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--color-accent);
    opacity: 0.12;
}


/* ------------------------------------------------------------
   Language-Specific Adjustments
------------------------------------------------------------ */

html[lang="hi"] .home-hero-title,
html[lang="mr"] .home-hero-title {
    line-height: 1.35;
    letter-spacing: 0;
}

html[lang="hi"] .home-hero-subtitle,
html[lang="mr"] .home-hero-subtitle {
    line-height: 1.8;
}


/* ------------------------------------------------------------
   Responsive - Small Laptop
------------------------------------------------------------ */

@media (max-width: 1199px) {
    .home-hero {
        padding: var(--space-14) 0;
    }

    .home-hero-wrapper {
        grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
        gap: var(--space-8);
    }

    .home-hero-image-box,
    .home-hero-image {
        min-height: 420px;
    }

    .home-hero-title {
        font-size: clamp(30px, 4vw, 42px);
    }
}


/* ------------------------------------------------------------
   Responsive - Tablet
------------------------------------------------------------ */

@media (max-width: 991px) {
    .home-hero {
        padding: var(--space-14) 0 var(--space-12);
    }

    .home-hero-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-9);
    }

    .home-hero-content {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
    }

    .home-hero-title,
    .home-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-buttons {
        justify-content: center;
    }

    .home-hero-highlights {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-image-area {
        max-width: 640px;
        width: 100%;
        margin: 0 auto;
    }

    .home-hero-image-box,
    .home-hero-image {
        min-height: 390px;
    }
}


/* ------------------------------------------------------------
   Responsive - Mobile
------------------------------------------------------------ */

@media (max-width: 767px) {
    .home-hero {
        padding: var(--space-10) 0;
    }

    .home-hero-title {
        font-size: 30px;
        line-height: 1.25;
    }

    .home-hero-subtitle {
        font-size: 15px;
        line-height: 1.65;
    }

    .home-hero-buttons {
        align-items: stretch;
        margin-bottom: var(--space-6);
    }

    .home-hero-btn {
        width: 100%;
        min-width: 0;
    }

    .home-hero-highlights {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .home-hero-highlight-item {
        min-height: auto;
        text-align: left;
    }

    .home-hero-image-box,
    .home-hero-image {
        min-height: 330px;
    }

    .home-hero-floating-card {
        left: var(--space-4);
        bottom: var(--space-4);
        width: calc(100% - 32px);
        padding: var(--space-4);
    }

    .home-hero-image-area::before,
    .home-hero-image-area::after {
        display: none;
    }
}


/* ------------------------------------------------------------
   Responsive - Small Mobile
------------------------------------------------------------ */

@media (max-width: 575px) {
    .home-hero {
        padding: var(--space-9) 0;
    }

    .home-hero-badge {
        margin-bottom: var(--space-3);
        padding: 6px 11px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }

    .home-hero-title {
        margin-bottom: var(--space-3);
        font-size: 26px;
    }

    .home-hero-subtitle {
        margin-bottom: var(--space-5);
        font-size: 14px;
    }

    .home-hero-buttons {
        gap: var(--space-3);
    }

    .home-hero-highlight-number {
        font-size: 15px;
    }

    .home-hero-highlight-text {
        font-size: 13px;
    }

    .home-hero-image-box,
    .home-hero-image {
        min-height: 280px;
        border-radius: var(--radius-lg);
    }

    .home-hero-floating-title {
        font-size: 16px;
        font-weight: 600;
    }
}