/* =========================================================
   style.css
   Shared site-wide styles: Colors, Typography, Navbar, Footer
   Used across every page (homepage, academics, contact, etc.)
   ========================================================= */

/* --- Colors & Fonts (CSS variables) --- */
:root {
    --primary-dark: #0a1f3f;
    --primary-light: #16325c;
    --dark-green: #02362b;
    --accent-gold: #9f7340;
    --accent-yellow: #f5b921;
    --bg-page: #F9F9FF;
    --text-dark: #111;
    --text-muted: #555;
    --white: #ffffff;
    --green-text: #22c55e;

    --nav-bg: #ffffff;
    --nav-border: rgba(0,0,0,0.06);

    /* Footer — matches page bg */
    --footer-bg: #F0F0F8;
    --footer-surface: #E4E4F0;
    --footer-text: #444;
    --footer-heading: #0a1f3f;
    --footer-link: #555;
    --footer-link-hover: #9f7340;
    --footer-divider: rgba(0,0,0,0.08);
    --footer-icon-bg: rgba(10,31,63,0.07);

    --font-heading: 'Newsreader', serif;
    --font-body: 'Inter', sans-serif;
}

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

/* --- Base --- */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100%; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-page); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-dark); }
p { font-family: var(--font-body); }
.section-title { font-size: 42px; margin-bottom: 15px; font-weight: 700; line-height: 1.2; color: var(--text-dark); }
.section-subtitle { color: var(--text-muted); font-size: 15px; margin-bottom: 25px; line-height: 1.6; max-width: 600px; }
.tagline { color: var(--accent-gold); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 10px; display: inline-block; font-family: var(--font-body); }

/* --- Buttons --- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 500; font-size: 15px; cursor: pointer; transition: all 0.3s ease; text-align: center; }
.btn-primary { background-color: var(--primary-dark); color: var(--white); border: 2px solid var(--primary-dark); }
.btn-primary:hover { background-color: var(--primary-light); }
.btn-outline { background-color: var(--white); color: var(--primary-dark); border: 2px solid var(--primary-dark); }
.btn-outline:hover { background-color: var(--primary-dark); color: var(--white); }

/* =========================================================
   Navbar
   ========================================================= */
.header {
    background: var(--bg-page);
    border-bottom: none;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
    transition: transform 0.35s ease;
}
.header.scrolled { box-shadow: 0 4px 15px rgba(0,0,0,0.07); }
.header.header-hidden { transform: translateY(-100%); }
.header .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; position: relative; }

.logo-area { display: flex; align-items: center; flex-shrink: 0; z-index: 10; }
.logo-img { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-img img { height: 55px; width: auto; object-fit: contain; }
.logo-image-fixed { height: 60px !important; width: auto !important; object-fit: contain; }

.nav-links {
    display: flex; align-items: center; gap: 32px;
    font-size: 14.5px; font-weight: 600; font-family: var(--font-body);
}
@media (min-width: 993px) {
    .nav-links {
        position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    }
}
.nav-links a { color: var(--text-dark); transition: 0.2s; position: relative; padding-bottom: 4px; white-space: nowrap; }
.nav-links a:hover { color: var(--accent-gold); }
.nav-links a.active { color: var(--accent-gold); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent-gold); border-radius: 2px; }

.nav-cta {
    background: var(--primary-dark); color: var(--white) !important;
    padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
    transition: background 0.2s; white-space: nowrap; flex-shrink: 0; border: 2px solid var(--primary-dark);
}
.nav-cta:hover { background: transparent; color: var(--primary-dark) !important; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--primary-dark); cursor: pointer; flex-shrink: 0; }

/* =========================================================
   Footer — Light, matches page bg
   ========================================================= */
.footer {
    background: var(--footer-bg);
    padding: 72px 0 32px;
    border-top: 1px solid rgba(0,0,0,0.07);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 52px;
}

.footer-logo { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--footer-heading); margin-bottom: 16px; line-height: 1.25; }
.footer-desc { color: var(--footer-text); font-size: 14px; margin-bottom: 24px; line-height: 1.75; max-width: 90%; }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--footer-icon-bg);
    border: 1px solid rgba(10,31,63,0.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--footer-text); font-size: 15px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.social-icons a:hover { background: var(--accent-gold); color: var(--white); border-color: var(--accent-gold); }

.footer h4 { font-family: var(--font-heading); font-size: 16px; margin-bottom: 20px; font-weight: 700; color: var(--footer-heading); letter-spacing: 0.2px; }

.footer-links li { margin-bottom: 13px; }
.footer-links a { font-size: 14px; color: var(--footer-link); transition: color 0.2s; font-family: var(--font-body); }
.footer-links a:hover { color: var(--footer-link-hover); }

.visit-card { background: var(--footer-surface); border: 1px solid rgba(0,0,0,0.07); padding: 20px; border-radius: 14px; }
.visit-item { display: flex; gap: 12px; font-size: 13.5px; color: var(--footer-text); margin-bottom: 16px; line-height: 1.5; font-family: var(--font-body); align-items: flex-start; }

/* ✅ UPDATED — icons now dark navy */
.visit-item i { color: var(--primary-dark); margin-top: 3px; width: 14px; text-align: center; flex-shrink: 0; }

/* ✅ UPDATED — button now dark navy */
.btn-directions {
    display: block; width: fit-content; margin: 12px 0 0 0;
    background: var(--primary-dark); color: var(--white);
    padding: 11px 28px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
    font-family: var(--font-body); transition: background 0.2s, opacity 0.2s;
    border: 2px solid var(--primary-dark);
}
.btn-directions:hover { background: transparent; color: var(--primary-dark); }

.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--footer-divider);
    font-size: 13px; color: var(--footer-link);
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-body);
}
.footer-bottom-links { display: flex; gap: 28px; }
.footer-bottom-links a { color: var(--footer-link); font-size: 12.5px; letter-spacing: 0.3px; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--footer-link-hover); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
    .nav-links {
        position: fixed; top: 0; right: 0; left: auto; bottom: 0;
        width: 280px; height: 100vh; background: var(--bg-page);
        flex-direction: column; align-items: flex-start; gap: 0;
        padding: 80px 24px 20px;
        box-shadow: -6px 0 30px rgba(10,31,63,0.12);
        transform: translateX(100%); visibility: hidden; pointer-events: none;
        transition: none;
        overflow-y: auto; z-index: 999;
    }
    body.nav-ready .nav-links {
        transition: transform 0.35s ease-in-out, visibility 0.35s;
    }
    .nav-links.nav-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
    .nav-links a { width: 100%; padding: 15px 0; border-bottom: 1px solid rgba(10,31,63,0.07); }
    .nav-links a.active::after { display: none; }
    .nav-toggle { display: block; position: relative; z-index: 1000; }
    .nav-cta-desktop { display: none; }
    .nav-cta-mobile {
        display: block;
        text-align: center;
        margin-top: 20px;
        padding: 14px 22px !important;
        border-radius: 8px;
        border-bottom: none !important;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .footer { padding: 50px 0 24px; }
    .visit-card { padding: 16px; width: 80%; max-width: 100%; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 35px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .section-title { font-size: 30px; }
    .container { padding: 0 16px; }
}

@media (max-width: 420px) {
    .logo-image-fixed { height: 45px !important; }
    .nav-cta { padding: 10px 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .header, .nav-links { transition: none !important; }
}