/* =====================================================
   ASTERIA JUNIOR COLLEGE
   PREMIUM WEBSITE CSS
===================================================== */

:root {
    --dark: #101512;
    --dark2: #151c18;
    --cream: #f4f1e9;
    --white: #ffffff;
    --gold: #c9a96e;
    --gray: #a5aaa5;
    --border: rgba(255,255,255,.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--dark);
    color: var(--cream);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

.section {
    padding: 140px 7vw;
}

.label {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 25px;
}


/* ================= LOADER ================= */

.loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: .8s ease;
}

.loader-logo {
    font-family: "Playfair Display", serif;
    font-size: 45px;
    letter-spacing: 8px;
}

.loader-line {
    width: 180px;
    height: 1px;
    background: #444;
    margin-top: 30px;
}

.loader-line span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gold);
    animation: loading 2s forwards;
}

@keyframes loading {
    to {
        width: 100%;
    }
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}


/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    padding: 25px 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 1000;

    transition: .4s;
}

.header.scrolled {
    background: rgba(16,21,18,.9);
    backdrop-filter: blur(20px);
    padding-top: 17px;
    padding-bottom: 17px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 42px;
    height: 42px;

    border: 1px solid var(--gold);

    display: grid;
    place-items: center;

    font-family: "Playfair Display";
    font-size: 23px;
    color: var(--gold);
}

.logo strong,
.footer-logo strong {
    display: block;
    font-size: 15px;
    letter-spacing: 3px;
}

.logo small,
.footer-logo small {
    display: block;
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--gray);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 12px;
    color: #ddd;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: .3s;
}

.nav a:hover::after {
    width: 100%;
}

.nav-btn,
.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 25px;

    padding: 14px 22px;

    border: 1px solid var(--gold);

    color: var(--cream);

    font-size: 12px;

    transition: .4s;
}

.nav-btn:hover,
.primary-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 1px;
    background: white;
    margin: 6px;
}


/* ================= HERO ================= */

.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;

    background:
        url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=2200&q=90")
        center/cover;

    transform: scale(1.08);

    animation: heroZoom 12s ease forwards;
}

@keyframes heroZoom {
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8,12,10,.95),
            rgba(8,12,10,.48),
            rgba(8,12,10,.25)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 800px;
    margin-left: 9vw;

    animation: heroIn 1.2s ease forwards;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);

    margin-bottom: 30px;
}

.eyebrow span {
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(70px, 9vw, 145px);
    line-height: .85;
    font-weight: 500;
}

.hero h1 em {
    display: block;
    color: var(--gold);
    font-weight: 500;
}

.hero-content > p {
    max-width: 520px;
    margin-top: 35px;

    color: #c4c8c4;
    line-height: 1.8;
}

.hero-buttons {
    margin-top: 40px;

    display: flex;
    align-items: center;
    gap: 30px;
}

.text-btn {
    font-size: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-bottom {
    position: absolute;
    z-index: 3;

    bottom: 45px;
    right: 7vw;

    display: flex;
    gap: 45px;
}

.hero-bottom div {
    display: flex;
    flex-direction: column;
}

.hero-bottom strong {
    font-family: "Playfair Display";
    font-size: 30px;
    color: var(--gold);
}

.hero-bottom span {
    font-size: 10px;
    color: #aaa;
    margin-top: 5px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 5vw;

    display: flex;
    gap: 15px;
    align-items: center;

    transform: rotate(-90deg);
    transform-origin: left;
}

.scroll-indicator span {
    font-size: 8px;
    letter-spacing: 2px;
}

.scroll-indicator div {
    width: 50px;
    height: 1px;
    background: var(--gold);
}


/* ================= INTRO ================= */

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    position: relative;
}

.section-number {
    position: absolute;
    left: 3vw;
    top: 70px;

    font-size: 10px;
    color: #666;
}

.intro-text {
    padding-left: 5vw;
}

.intro h2,
.section-heading h2,
.campus-title h2,
.admission h2,
.contact h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 80px);
    line-height: 1;
    font-weight: 500;
}

h2 span {
    display: block;
    color: var(--gold);
}

.description {
    color: #aaa;
    line-height: 1.9;
    max-width: 520px;
    margin: 35px 0;
}

.line-link {
    color: var(--gold);
    font-size: 13px;
}

.intro-image {
    overflow: hidden;
}

.intro-image img {
    height: 600px;
    object-fit: cover;

    transition: transform 1s ease;
}

.intro-image:hover img {
    transform: scale(1.06);
}


/* ================= STATS ================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    padding: 70px 5vw;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: none;
}

.stat strong {
    display: block;

    font-family: "Playfair Display";
    font-size: 60px;
    font-weight: 500;
    color: var(--gold);
}

.stat span {
    font-size: 11px;
    color: #999;
}


/* ================= PROGRAMS ================= */

.programs {
    background: var(--cream);
    color: var(--dark);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 70px;
}

.section-heading > p {
    max-width: 350px;
    color: #666;
    line-height: 1.7;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
}

.program-card {
    background: white;
    overflow: hidden;

    transition: .5s;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0,0,0,.12);
}

.program-image {
    height: 350px;
    overflow: hidden;
}

.program-image img {
    height: 100%;
    object-fit: cover;
    transition: 1s;
}

.program-card:hover img {
    transform: scale(1.08);
}

.program-info {
    padding: 30px;
}

.program-info > span {
    font-size: 10px;
    color: var(--gold);
}

.program-info h3 {
    font-family: "Playfair Display";
    font-size: 35px;
    font-weight: 500;
    margin: 20px 0 15px;
}

.program-info p {
    color: #777;
    font-size: 13px;
    line-height: 1.7;
    min-height: 70px;
}

.program-info a {
    display: block;
    margin-top: 25px;

    color: #555;
    font-size: 12px;
}


/* ================= CAMPUS ================= */

.campus-title {
    margin-bottom: 70px;
}

.campus-gallery {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.gallery-item {
    height: 420px;
    position: relative;
    overflow: hidden;
}

.gallery-item.large {
    grid-row: span 2;
    height: 860px;
}

.gallery-item img {
    height: 100%;
    object-fit: cover;

    transition: 1s;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        transparent 45%,
        rgba(0,0,0,.8)
    );
}

.gallery-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;

    z-index: 2;
}

.gallery-caption span {
    font-size: 10px;
    color: var(--gold);
}

.gallery-caption h3 {
    font-family: "Playfair Display";
    font-size: 30px;
    font-weight: 500;
    margin-top: 8px;
}


/* ================= ACHIEVEMENTS ================= */

.achievements {
    background: #141a17;
}

.achievement-list {
    border-top: 1px solid var(--border);
}

.achievement {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;

    padding: 35px 10px;

    border-bottom: 1px solid var(--border);

    transition: .4s;
}

.achievement:hover {
    padding-left: 30px;
    background: rgba(255,255,255,.02);
}

.achievement > span {
    font-size: 11px;
    color: var(--gold);
}

.achievement h3 {
    font-family: "Playfair Display";
    font-size: 30px;
    font-weight: 500;
}

.achievement strong {
    text-align: right;
    font-family: "Playfair Display";
    font-size: 25px;
    color: var(--gold);
}


/* ================= ADMISSION ================= */

.admission {
    min-height: 650px;
    position: relative;

    display: grid;
    place-items: center;

    text-align: center;

    overflow: hidden;
}

.admission-bg {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(rgba(10,15,12,.65),rgba(10,15,12,.9)),
        url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=2200&q=85")
        center/cover;

    background-attachment: fixed;
}

.admission-content {
    position: relative;
    z-index: 2;
}

.admission-content > p:not(.label) {
    margin: 30px auto;
    color: #bbb;
}

.admission-content .primary-btn {
    margin-top: 15px;
}


/* ================= TESTIMONIAL ================= */

.testimonial {
    text-align: center;
}

.quote {
    max-width: 900px;
    margin: auto;
}

.quote-mark {
    display: block;

    font-family: "Playfair Display";
    font-size: 100px;
    color: var(--gold);
    height: 80px;
}

.quote h2 {
    font-family: "Playfair Display";
    font-weight: 500;
    font-size: clamp(35px, 4vw, 60px);
    line-height: 1.2;
}

.quote p {
    margin-top: 30px;
    color: #888;
    font-size: 12px;
}


/* ================= CONTACT ================= */

.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;

    background: var(--cream);
    color: var(--dark);
}

.contact-info > p:not(.label) {
    max-width: 450px;
    color: #666;
    line-height: 1.8;
    margin: 30px 0;
}

.contact-details {
    margin-top: 50px;
}

.contact-details div {
    margin-bottom: 25px;
}

.contact-details span {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--gold);
}

.contact-details p {
    font-size: 13px;
    margin-top: 7px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;

    padding: 18px 0;

    background: transparent;
    border: none;
    border-bottom: 1px solid #bbb;

    outline: none;

    font: inherit;
    color: var(--dark);
}

.input-group textarea {
    height: 100px;
    resize: none;
}

.submit-btn {
    align-self: flex-start;

    border: 1px solid var(--dark);
    background: var(--dark);
    color: white;

    padding: 17px 30px;

    cursor: pointer;

    transition: .3s;
}

.submit-btn:hover {
    background: transparent;
    color: var(--dark);
}

#formMessage {
    font-size: 12px;
    color: #567;
}


/* ================= FOOTER ================= */

footer {
    padding: 60px 7vw 30px;
    background: #0b0f0d;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-top > p {
    color: #777;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    padding-top: 25px;

    color: #666;
    font-size: 10px;
}

.footer-bottom div {
    display: flex;
    gap: 25px;
}


/* ================= SCROLL ANIMATION ================= */

.reveal {
    opacity: 0;
    transform: translateY(60px);

    transition:
        opacity .9s ease,
        transform .9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ================= RESPONSIVE ================= */

@media(max-width: 900px) {

    .nav,
    .nav-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .header.menu-open .nav {
        position: absolute;
        top: 80px;
        left: 0;

        width: 100%;

        padding: 30px;

        display: flex;
        flex-direction: column;

        background: rgba(16,21,18,.98);
    }

    .hero-content {
        margin: 0 7vw;
    }

    .hero-bottom {
        display: none;
    }

    .intro,
    .contact {
        grid-template-columns: 1fr;
    }

    .intro {
        gap: 50px;
    }

    .intro-image img {
        height: 450px;
    }

    .stats {
        grid-template-columns: repeat(2,1fr);
    }

    .stat {
        border-bottom: 1px solid var(--border);
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 30px;
    }

    .campus-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item.large {
        height: 500px;
        grid-row: auto;
    }

    .achievement {
        grid-template-columns: 60px 1fr 70px;
    }

    .achievement h3 {
        font-size: 20px;
    }

}

@media(max-width: 600px) {

    .section {
        padding: 90px 6vw;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: 65px;
    }

    .hero-content > p {
        font-size: 13px;
    }

    .hero-buttons {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 40px 20px;
    }

    .stat strong {
        font-size: 42px;
    }

    .achievement {
        grid-template-columns: 50px 1fr;
        gap: 10px;
    }

    .achievement strong {
        display: none;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

}