/* ===== GLOBAL ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

/* ===== HEADER ===== */

header {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
}

/* Logo + business name */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;

    color: white;
    text-decoration: none;
    font-size: 26px;
    font-weight: bold;
    white-space: nowrap;
}

nav .brand-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    display: block;
}

.brand span {
    color: white;
}

/* Nav links */

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #facc15;
}

/* ===== HERO IMAGE ===== */

.hero {
    height: 75vh;
    min-height: 600px;

    background-image:
        linear-gradient(
            rgba(15, 23, 42, 0.65),
            rgba(15, 23, 42, 0.65)
        ),
        url("images/student-study.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    max-width: 900px;
    padding: 20px;
    color: white;
}

.hero-overlay h2 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-overlay p {
    font-size: 22px;
    margin-bottom: 35px;
    color: #e2e8f0;
}

/* ===== BUTTONS ===== */

.button {
    display: inline-block;
    background: #facc15;
    color: #0f172a;
    text-decoration: none;
    font-weight: bold;
    padding: 14px 28px;
    border-radius: 999px;
    transition: 0.3s;
}

.button:hover {
    transform: translateY(-3px);
}

/* ===== TRUST BAR ===== */

.trust-bar {
    background: white;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 25px;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* ===== SECTIONS ===== */

.section {
    padding: 80px 8%;
    text-align: center;
}

.section h2 {
    font-size: 38px;
    margin-bottom: 20px;
    color: #0f172a;
}

.section > p {
    max-width: 800px;
    margin: auto;
    color: #475569;
    font-size: 18px;
}

/* ===== CARDS ===== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition: 0.3s;
}

.card-link:hover .card {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0f172a;
}

.card p {
    color: #475569;
}

/* ===== CONTACT SECTION ===== */

.contact {
    background: linear-gradient(
        135deg,
        #e0f2fe,
        #f8fafc
    );
}

.contact-options {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== CONTACT FORM ===== */

.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    border: none;
    cursor: pointer;
}

/* ===== FOOTER ===== */

footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 25px;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        gap: 15px;
    }

    .brand {
        font-size: 22px;
    }

    nav .brand-logo {
        width: 34px;
        height: 34px;
        max-width: 34px;
        max-height: 34px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-overlay h2 {
        font-size: 38px;
    }

    .hero-overlay p {
        font-size: 18px;
    }

    .section {
        padding: 60px 8%;
    }

    .trust-bar {
        gap: 15px;
    }
}

/* ===== FORCE HEADER LOGO SIZE ===== */

nav a.brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;

    color: white !important;
    text-decoration: none !important;
    font-size: 26px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

nav a.brand img.brand-logo {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    display: block !important;
}

nav a.brand span {
    color: white !important;
}


/* ===== TABLET & MOBILE IMPROVEMENTS ===== */

@media (max-width: 1024px) {
    nav {
        padding: 18px 5%;
    }

    nav ul {
        gap: 20px;
    }

    .brand {
        font-size: 22px;
    }

    .hero-overlay h2 {
        font-size: 48px;
    }

    .hero-overlay p {
        font-size: 20px;
    }

    .section {
        padding: 70px 6%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .brand {
        font-size: 22px;
        justify-content: center;
    }

    nav a.brand img.brand-logo {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    nav ul li a {
        font-size: 15px;
    }

    .hero {
        height: auto;
        min-height: 520px;
        padding: 70px 6%;
        background-position: center;
    }

    .hero-overlay h2 {
        font-size: 38px;
    }

    .hero-overlay p {
        font-size: 18px;
    }

    .button {
        padding: 13px 24px;
        font-size: 15px;
    }

    .trust-bar {
        gap: 15px;
        padding: 20px 6%;
        font-size: 15px;
    }

    .section {
        padding: 55px 6%;
    }

    .section h2 {
        font-size: 32px;
    }

    .section > p {
        font-size: 17px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .card {
        padding: 28px;
        text-align: center;
    }

    .contact-form {
        width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 16px 5%;
    }

    .brand {
        font-size: 19px;
        gap: 8px;
    }

    nav a.brand img.brand-logo {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }

    nav ul {
        gap: 10px 14px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .hero {
        min-height: 480px;
        padding: 60px 5%;
    }

    .hero-overlay h2 {
        font-size: 32px;
    }

    .hero-overlay p {
        font-size: 16px;
    }

    .section {
        padding: 45px 5%;
    }

    .section h2 {
        font-size: 28px;
    }

    .card {
        padding: 24px;
    }

    .card h3 {
        font-size: 21px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 14px;
    }

    footer {
        font-size: 14px;
        padding: 22px 5%;
    }
}