/* ============================================================
   HARTON GRANGE ACADEMY — SHARED STYLESHEET
   styles.css  |  All pages import this file
   ============================================================ */

/* ── 1. CSS Variables ─────────────────────────────────────── */
:root {
    --primary-gold:  #9a8843;
    --gold-dark:     #7d6e35;
    --dark-blue:     #1a4d8c;
    --light-blue:    #2a6ebb;
    --light-gray:    #f8f9fa;
    --dark-gray:     #343a40;
    --white:         #ffffff;
    --text-dark:     #333333;
}

/* ── 2. Base / Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 0;
    margin: 0;
}

/* ── 3. Container ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    padding-right: 30px;
    padding-left: 30px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1400px) { .container { max-width: 1140px; } }
@media (max-width: 768px)  { .container { padding-right: 20px; padding-left: 20px; } }

/* ── 4. Top Bar ───────────────────────────────────────────── */
.body-bg-top {
    background: var(--primary-gold);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.88rem;
    width: 100%;
}

.topbar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-right: 1px solid rgba(255,255,255,0.35);
    line-height: 1;
}

.contact-info span:first-child { padding-left: 0; }
.contact-info span:last-child  { border-right: none; }

.contact-info i { margin-right: 6px; font-size: 0.82rem; }

.social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-icons a {
    color: var(--white);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    font-size: 0.75rem;
    transition: background 0.2s, opacity 0.2s;
    text-decoration: none;
}
.social-icons a:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 768px) { .contact-info { display: none; } }

/* ── 5. Header / Navbar ───────────────────────────────────── */
.bp-page-header {
    background-color: transparent !important;
    position: absolute;
    top: 0;                  /* sits right below top bar (handled by top-bar height) */
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: none !important;
    width: 100%;
    overflow: visible !important;
    /* Offset by top-bar height so nav sits just below it */
    margin-top: 37px;        /* matches top-bar ~37px actual height */
}

.bp-page-header .container {
    width: 100%;
    max-width: 1200px;
    padding-right: 30px;
    padding-left: 30px;
    margin-right: auto;
    margin-left: auto;
}

.navbar {
    padding: 8px 0;
    background: transparent !important;
    width: 100%;
}

.navbar-collapse { width: 100%; }
.navbar-brand {
    padding: 9px 18px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.20);
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.navbar-brand:hover {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.navbar-brand img {
    height: 72px;
    width: auto;
    display: block;
}

/* Hamburger toggler — always visible on dark/transparent BG */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6) !important;
    padding: 6px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Nav links */
.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar-nav .nav-item { flex-shrink: 0; position: relative; }

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    padding: 10px 13px !important;
    text-transform: uppercase;
    font-size: 0.78rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.55);
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active > .nav-link {
    color: var(--primary-gold) !important;
    text-shadow: none;
}



/* ── 6. Dropdown Menus ────────────────────────────────────── */
.dropdown:hover .dropdown-menu { display: block; margin-top: 0; }

.dropdown-menu {
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-top: 3px solid var(--primary-gold);
    border-radius: 0 0 6px 6px;
    background: rgba(255,255,255,0.97);
    min-width: 210px;
}

.dropdown-item {
    color: #555;
    padding: 9px 16px !important;
    font-weight: 500;
    border-left: 3px solid transparent;
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.4;
    transition: border-color 0.2s, color 0.2s;
}
.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
}

/* ── 7. Page Hero (inner pages) ───────────────────────────── */
.page-hero {
    --hero-img: url('Images/hero_0.jpeg');  /* fallback — each page overrides via inline style */
    background: linear-gradient(rgba(15, 38, 90, 0.80), rgba(15, 38, 90, 0.80)),
                var(--hero-img);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 155px 0 80px;   /* top pad clears top-bar + navbar */
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.45);
}

.page-hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    opacity: 0.95;
}

/* ── 8. Shared CTA Buttons ────────────────────────────────── */
.cta-section {
    background: linear-gradient(rgba(26,77,140,0.92), rgba(26,77,140,0.92)),
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.cta-buttons { margin-top: 30px; }

.cta-buttons .btn {
    margin: 8px;
    padding: 13px 32px;
    font-weight: 600;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.btn-cta-primary {
    background: var(--primary-gold);
    color: var(--white);
    border: 2px solid var(--primary-gold);
}
.btn-cta-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-cta-secondary:hover {
    background: var(--white);
    color: var(--dark-blue);
}

.btn-cta-tertiary {
    background: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--white);
}
.btn-cta-tertiary:hover {
    background: transparent;
    color: var(--white);
}

/* ── 9. Float / Apply Button ──────────────────────────────── */
.floatbutton {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--primary-gold);
    color: var(--white) !important;
    border: none;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(154,136,67,0.45);
    z-index: 1100;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: background 0.25s, transform 0.2s;
}
.floatbutton:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    color: var(--white) !important;
}

/* ── 10. Footer ───────────────────────────────────────────── */
footer.bp-page-footer {
    background: #1e2535;          /* deep navy — richer than plain dark-gray */
    color: var(--white);
    padding: 0;
    width: 100%;
    border-top: 4px solid var(--primary-gold);
}

/* Top tagline bar */
.footer-tagline-bar {
    background: rgba(154,136,67,0.12);
    border-bottom: 1px solid rgba(154,136,67,0.2);
    padding: 18px 0;
    text-align: center;
}
.footer-tagline-bar p {
    margin: 0;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}
.footer-tagline-bar strong {
    color: var(--primary-gold);
    font-style: italic;
}

/* Main footer columns */
.footer-main {
    padding: 55px 0 40px;
}

/* Logo + about col */
.footer-brand .f-logos img {
    height: 68px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}
.footer-brand p {
    color: #b0b8c8;
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 240px;
    margin-bottom: 0;
}

/* Column headings */
footer .footer-col-title {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(154,136,67,0.35);
    display: block;
}

/* Quick links */
footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer .footer-links li {
    margin-bottom: 10px;
}
footer .footer-links a {
    color: #b0b8c8;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s, gap 0.2s;
}
footer .footer-links a::before {
    content: '›';
    color: var(--primary-gold);
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}
footer .footer-links a:hover {
    color: var(--white);
    gap: 10px;
}

/* Contact info */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #b0b8c8;
    font-size: 0.88rem;
    line-height: 1.5;
}
.footer-contact-item .fci-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(154,136,67,0.18);
    border: 1px solid rgba(154,136,67,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.footer-contact-item a {
    color: #b0b8c8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--primary-gold); }

/* Social icons */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b8c8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.footer-social a:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
    transform: translateY(-3px);
}

/* Accreditation strip (optional logos/badges row) */
.footer-accred {
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.footer-accred span {
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Bottom bar */
.footer-bottom {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    margin: 0;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-main { padding: 40px 0 30px; }
    .footer-brand p { max-width: 100%; }
    .footer-col-title { margin-top: 28px; }
}
@media (max-width: 576px) {
    .footer-tagline-bar p { font-size: 0.85rem; }
}

/* ── 11. Getting Here (shared — home + contact pages) ──────── */
.getting-here-section { background: white; }

.travel-card {
    background: #f4f7fb;
    border-radius: 12px;
    padding: 26px 20px;
    text-align: center;
    height: 100%;
    border-top: 3px solid var(--dark-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.travel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26,77,140,0.10);
}

.travel-icon {
    width: 54px;
    height: 54px;
    background: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.25rem;
    color: white;
}

.travel-card h6 {
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.travel-card p {
    font-size: 0.86rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.visit-card {
    background: var(--dark-blue);
    border-radius: 12px;
    padding: 32px;
    color: white;
    height: 100%;
}

.visit-card h5 {
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary-gold);
    font-size: 1.05rem;
}

.visit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.visit-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 0.87rem;
    line-height: 1.6;
}

.visit-list li i {
    color: var(--primary-gold);
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.visit-list li span { color: rgba(255,255,255,0.88); }

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

/* ── 12. Responsive ───────────────────────────────────────── */

/* Large desktop */
@media (min-width: 1200px) {
    .navbar .container { max-width: 1140px; }
}

/* Tablet-ish */
@media (max-width: 1200px) {
    .navbar-nav .nav-link { padding: 10px 10px !important; font-size: 0.75rem; }
    .navbar-brand img     { height: 62px; }
}

@media (max-width: 1100px) {
    .navbar-nav .nav-link { font-size: 0.72rem; padding: 10px 8px !important; }
}

/* Mobile nav collapse */
@media (max-width: 992px) {
    .navbar-brand img { height: 52px; }

    .bp-page-header {
        margin-top: 33px;
        background: rgba(26, 77, 140, 0.96) !important;
        padding: 8px 0;
    }

    /* Expanded mobile menu */
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: rgba(26, 77, 140, 0.97);
        padding: 10px 15px;
        border-radius: 0 0 8px 8px;
        margin-top: 6px;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .navbar-nav .nav-item { width: 100%; }

    .navbar-nav .nav-link {
        font-size: 0.9rem !important;
        padding: 10px 5px !important;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        text-shadow: none !important;
        white-space: normal;
    }

    .navbar-nav .nav-item:last-child .nav-link { border-bottom: none; }

    /* Dropdown on mobile */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        background: rgba(255,255,255,0.1) !important;
        border: none;
        box-shadow: none;
        border-top: none;
        padding-left: 12px;
    }

    .dropdown-item {
        color: rgba(255,255,255,0.85) !important;
        padding-left: 20px !important;
    }
    .dropdown-item:hover { background: rgba(255,255,255,0.12) !important; }

    /* Page hero padding on mobile */
    .page-hero { padding: 130px 0 60px; }
    .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .navbar-brand img { height: 46px; }
    .navbar-brand { padding: 6px 12px; border-radius: 10px; }
    .bp-page-header { margin-top: 0; }

    .body-bg-top { padding: 6px 0; }

    .page-hero { padding: 110px 0 50px; }
    .page-hero h1 { font-size: 1.8rem; }
    .page-hero p  { font-size: 1rem; }

    .cta-section h2 { font-size: 1.8rem; }
    .cta-buttons .btn { display: block; width: 90%; max-width: 280px; margin: 8px auto; }

    footer.bp-page-footer { padding-top: 40px; }
    .f-logos img { height: 60px; }

    .floatbutton { bottom: 18px; right: 18px; padding: 10px 20px; font-size: 0.85rem; }
}

@media (max-width: 576px) {
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero p  { font-size: 0.95rem; }
}
