/* ==========================================================================
   Brampton Flight Centre (BFC) - Tailwind Companion Stylesheet
   Only custom styles that Tailwind utility classes cannot handle.
   All layout/spacing/color utilities are now handled by Tailwind CDN.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE TYPOGRAPHY (supplements Tailwind's font-body / font-heading)
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   2. HERO CAROUSEL (JS-driven slide mechanics)
   -------------------------------------------------------------------------- */

.bfc-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #1a2a3a;
}

.bfc-hero-slides {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;
}

.bfc-hero-slide {
    min-width: 100%;
    position: relative;
}

.bfc-hero-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .bfc-hero-slide img {
        height: 280px;
    }
}

.bfc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 51, 102, 0.85) 0%, rgba(0, 51, 102, 0.3) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 2rem;
}

.bfc-hero-content {
    max-width: 550px;
    color: #fff;
    padding-left: 2rem;
}

.bfc-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bfc-hero-content p {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

@media (max-width: 767px) {
    .bfc-hero-content { padding-left: 0; }
    .bfc-hero-content h1 { font-size: 1.625rem; }
    .bfc-hero-content p { font-size: 0.9375rem; }
}

.bfc-hero-prev,
.bfc-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.bfc-hero-prev:hover,
.bfc-hero-next:hover {
    background: rgba(0, 51, 102, 0.8);
}

.bfc-hero-prev { left: 1rem; }
.bfc-hero-next { right: 1rem; }

@media (max-width: 575px) {
    .bfc-hero-prev,
    .bfc-hero-next {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.bfc-hero-indicators {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.bfc-hero-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
}

.bfc-hero-indicators button.is-active {
    background-color: #ff9900;
    border-color: #ff9900;
}

/* --------------------------------------------------------------------------
   3. PARTNER LOGO STRIP (grayscale hover effect)
   -------------------------------------------------------------------------- */

.partner-logo {
    height: 48px;
    width: auto;
    opacity: 0.55;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --------------------------------------------------------------------------
   4. INFO BOXES (colored alert/callout boxes used in content pages)
   -------------------------------------------------------------------------- */

.info-box {
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-size: 0.9375rem;
}

.info-box h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.info-box p:last-child { margin-bottom: 0; }

.info-box-blue {
    background-color: #e8f0fe;
    border-color: #0066cc;
    color: #1a3a5c;
}
.info-box-blue h4 { color: #003366; }

.info-box-green {
    background-color: #e6f4ea;
    border-color: #1e7e34;
    color: #1e4d2b;
}
.info-box-green h4 { color: #1e7e34; }

.info-box-amber {
    background-color: #fff8e1;
    border-color: #ff9900;
    color: #664400;
}
.info-box-amber h4 { color: #996600; }

.info-box-red {
    background-color: #fdecea;
    border-color: #d32f2f;
    color: #6b1a1a;
}
.info-box-red h4 { color: #d32f2f; }

/* --------------------------------------------------------------------------
   5. CUSTOM TABLE STYLING (data tables in content pages)
   -------------------------------------------------------------------------- */

.bfc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    background-color: #fff;
}

.bfc-table thead th {
    background-color: #003366;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.bfc-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e8ecf0;
    color: #444;
    vertical-align: top;
}

.bfc-table tbody tr:hover { background-color: #f0f4f8; }
.bfc-table tbody tr:nth-child(even) { background-color: #fafbfc; }
.bfc-table tbody tr:nth-child(even):hover { background-color: #eef2f6; }

/* --------------------------------------------------------------------------
   6. PAGE HEADER (gradient banner on content pages)
   -------------------------------------------------------------------------- */

.page-header {
    background: linear-gradient(135deg, #003366 0%, #1a2a3a 100%);
    color: #fff;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 153, 0, 0.08);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   7. SIDEBAR ACTIVE STATE (JS-set .is-active class)
   -------------------------------------------------------------------------- */

.sidebar-link.is-active {
    background-color: #f0f4f8;
    color: #003366;
    font-weight: 600;
    border-left: 3px solid #ff9900;
}

/* --------------------------------------------------------------------------
   8. PRINT STYLES
   -------------------------------------------------------------------------- */

@media print {
    nav, footer, .bfc-hero, #backToTop {
        display: none !important;
    }
    body { font-size: 12pt; color: #000; }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
}
