/* ======================
   Arkenleigh University
   #1E1E24 (charcoal)
   #B23A48 (maroon)
   #FFF8F0 (cream)
   #FFFFFF (white)
   #111D4A (navy)
   ====================== */

/* GLOBAL */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: #1E1E24;
    /* primary text */
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

section {
    min-height: fit-content;
    padding: 30px;
}

/* REUSABLE COLORS */
:root {
    --charcoal: #1E1E24;
    --maroon: #B23A48;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --navy: #111D4A;
    --muted: #6b6b6b;
    --max-width: 1200px;
}

/* LINKS & BUTTON */
a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    opacity: 0.9;
}

/* Basic Button */
.btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn.secondary {
    background: var(--maroon);
}

/* HEADER */
header {
    background: var(--cream);
    position: fixed;
    width: 99vw;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(30, 30, 36, 0.06);
}

#header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
#logo img {
    width: 90px;
    height: auto;
    margin-top: 4px;
}

#menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--maroon);
    margin-left: auto;
}

/* Nav */
nav ul {
    display: flex;
    gap: 38px;
    align-items: center;
    list-style: none;
}

nav a {
    color: var(--maroon);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 6px 0;
}

nav a:hover {
    color: var(--navy);
}

nav li:last-child a.btn {
    padding: 8px 26px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(14, 25, 64, 0.12);
}

/* MAIN / HERO */
#hero {
    background-image: url('../../images/hero.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
    height: 100vh;
    padding: 5px;
    box-shadow: inset 0 -40px 40px rgba(0, 0, 0, 0.7);
}

/* Overlay for contrast */
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(70, 72, 78, 0.54) 100%, rgba(178, 58, 72, 0.08) 35%, rgba(255, 248, 240, 0.06) 100%);
    z-index: 1;
}

#hero>* {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Hero Text */
#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 14px;
    max-width: 100%;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-align: left;
    padding-left: 46px;
    margin-top: 285px;
}

#hero h2 {
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 1080px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 24px;
    text-align: left;
    margin-left: 0;
    margin-top: 20px;
    padding-left: 46px;
}

#hero a {
    margin-top: 30px;
    margin-left: 46px;
    width: 120px;
}

/* CONTENT WRAPPER */
#contents {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 20px;
}


/* SECTION HEADINGS */
h2 {
    text-align: center;
    color: var(--navy);
    font-size: 1.6rem;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* ABOUT US */
#about-us {
    text-align: center;
    margin-bottom: 56px;
}

#about-us p {
    color: var(--muted);
    max-width: 920px;
    margin: 0 auto;
    font-size: 0.98rem;
}

/* STANDARDS CARDS */
.standards .card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 22px;
    margin-bottom: 56px;
}

.card {
    background: var(--cream);
    border-radius: 12px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 12px 20px rgba(30, 30, 36, 0.04);
    border: 1px solid rgba(17, 29, 74, 0.04);
}

.card .icon {
    height: 56px;
    margin-bottom: 16px;
    filter: grayscale(20%) contrast(90%);
}

.card h3 {
    color: var(--maroon);
    font-size: 1.05rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.card p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* PROGRAMS GRID */

.programs-bg {
    background:
        linear-gradient(to bottom, white 0%, transparent 20%, transparent 80%, white 100%),
        radial-gradient(circle at center, rgba(245, 231, 211, 0.6) 0%, rgba(253, 250, 246, 0.95) 70%, white 100%);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 60px 0;
}

.programs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.programs .program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 18px;
    margin-bottom: 56px;
}

.program-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 28px rgba(17, 29, 74, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 36px rgba(17, 29, 74, 0.12);
    z-index: 2;
}

.program-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.program-card h3 {
    padding: 16px;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 700;
}

/* NEWS GRID */

.news-bg {
    background:
        linear-gradient(to bottom, white 0%, transparent 20%, transparent 80%, white 100%),
        radial-gradient(circle at center, rgba(245, 231, 211, 0.6) 0%, rgba(253, 250, 246, 0.95) 70%, white 100%);
    padding: 60px 20px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.news {
    max-width: 1200px;
    margin: 0 auto;
}

.news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(17, 29, 74, 0.04);
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 14px 16px;
    flex: 1;
}

.news-content small {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.news-content h3 {
    color: var(--charcoal);
    font-size: 0.98rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.news span {
    color: var(--maroon);
}

.news-content p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* VIEW ALL BUTTON (center under news) */
.news>.btn {
    display: block;
    margin: 18px auto 44px;
}

/* FORM / CONTACT */
#form {
    margin-top: 24px;
    margin-bottom: 56px;
    padding: 38px;
    background: linear-gradient(180deg, rgba(255, 248, 240, 1) 0%, rgba(255, 248, 240, 1) 100%);
    border-radius: 10px;
    border: 1px solid rgba(17, 29, 74, 0.03);
}

#form p {
    color: var(--muted);
    max-width: 820px;
    margin: 0 auto 22px;
    text-align: center;
}

.contact-form {
    max-width: 720px;
    margin: 0 auto 18px;
}

.form-group {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.form-group label {
    width: 170px;
    font-weight: 700;
    color: var(--charcoal);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    flex: 1;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(30, 30, 36, 0.1);
    background: #fff;
    font-size: 0.95rem;
    color: var(--charcoal);
    resize: none;
}

/* Submit Button */
#form .btn {
    margin: 10px auto 0;
    display: block;
    align-items: center;
}

/* FOOTER */
footer {
    background: var(--cream);
    border-top: 1px solid rgba(30, 30, 36, 0.04);
    padding: 28px 20px;
    margin-top: 6px;
}

#footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

footer ul {
    display: flex;
    gap: 18px;
    list-style: none;
}

footer img {
    height: 22px;
    filter: grayscale(10%);
}

footer p {
    color: var(--maroon);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Header (show/hide) */
header {
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .28s;
    will-change: transform, opacity;
}

header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

header.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Reveal on scroll (per-section) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSIVE */

/* Large screens (desktops & laptops => 1280px) */
@media (max-width: 1280px) {
    .standards .card-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .programs .program-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium screens (tablets => 1024px) */
@media (max-width: 1024px) {
    .standards .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Nav (phones => 768px) */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: var(--cream);
        position: absolute;
        top: 60px;
        right: 10px;
        padding: 14px 20px;
        border-radius: 8px;
        box-shadow: 0 8px 16px rgba(17, 29, 74, 0.12);
        width: 200px;
    }

    nav ul.show {
        display: flex;
    }

    #menu-toggle {
        display: block;
    }

    #hero h1 {
        font-size: 1.8rem;
        margin-top: 160px;
        padding-left: 20px;
        text-align: left;
    }

    #hero h2 {
        font-size: 1rem;
        padding-left: 20px;
        max-width: 90%;
    }

    #hero a {
        margin-left: 20px;
    }
}

/* Small screens (phones => 680px) */
@media (max-width: 680px) {
    #header-inner {
        padding: 12px 16px;
    }

    #logo img {
        width: 80px;
        height: auto;
    }

    /* hide nav (use hamburger later) */
    nav ul {
        display: none;
    }

    /* sections */
    #contents {
        padding: 28px 16px;
    }

    h2 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .standards .card-container,
    .programs .program-grid,
    .news .news-grid {
        grid-template-columns: 1fr;
    }

    .card {
        text-align: left;
        display: flex;
        gap: 14px;
        align-items: flex-start;
        padding: 18px;
    }

    .card .icon {
        height: 48px;
        flex-shrink: 0;
        margin: 0;
    }

    .card h3 {
        margin-top: 2px;
        font-size: 1rem;
    }

    .card p {
        font-size: 0.92rem;
        color: var(--muted);
    }

    /* form stacked labels above inputs */
    .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .form-group label {
        width: auto;
        font-weight: 700;
    }

    .contact-form {
        width: 100%;
        padding: 0 2px;
    }

    footer p {
        font-size: 0.92rem;
    }
}

/* Ultra narrow (very small phones => 420px) */
@media (max-width: 420px) {
    .program-card img {
        height: 160px;
    }

    .news-card img {
        height: 120px;
    }
}

/* Extra tiny devices (=> 360px) */
@media (max-width: 360px) {
    h2 {
        font-size: 1.1rem;
    }

    .card {
        padding: 14px;
        gap: 10px;
    }

    .card h3 {
        font-size: 0.9rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    footer p {
        font-size: 0.85rem;
    }
}
