/* ==========================================================================
   1. Google Fonts & Global Resets
   ================================================================---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

/* Apply Modern Font to Headings & Key Elements */
h1, h2, h3, h4, h5, h6, .logo, .price, .stage-tag, .badge {
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   2. Navbar & Header Layout
   ================================================================---------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 1rem 5%;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.logo span {
    color: #0284c7;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0284c7;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0;
    z-index: 100;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background: #f1f5f9;
    color: #0284c7;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Nav Action Button */
.btn-nav {
    background: #0284c7;
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.btn-nav:hover {
    background: #0369a1;
}

/* ==========================================================================
   3. Hero Section & Statistics
   ================================================================---------- */
.hero-section {
    min-height: 85vh;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 4rem 1rem;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(2, 132, 199, 0.2);
    border: 1px solid rgba(2, 132, 199, 0.4);
    color: #38bdf8;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
   4. Buttons & General Layout Elements
   ================================================================---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-content {
    padding: 4rem 1.5rem;
}

.btn-primary {
    background: #0284c7;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0369a1;
}

.btn-primary.block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.text-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.text-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. Grids, Cards, and Sections (Home, Academy, Services)
   ================================================================---------- */
.overview-section, .sites-section {
    padding: 5rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card, .site-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}

.card:hover, .site-card:hover {
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card h3, .site-card h4 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.card p, .site-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary.outline {
    background: transparent;
    border: 2px solid #0284c7;
    color: #0284c7;
}

.btn-primary.outline:hover {
    background: #0284c7;
    color: #ffffff;
}

/* ==========================================================================
   6. Content-Rich Pages & Layout Styles
   ================================================================---------- */
.page-header-banner {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 5rem 1rem;
    margin-bottom: 3rem;
}

.page-header-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-header-banner p {
    color: #cbd5e1;
    font-size: 1.15rem;
}

.content-section {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-section h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.content-section p {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.section-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    max-width: 850px;
    margin: 2rem auto;
}

/* Principles / Features Grid Layout */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.principle-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.principle-box h4 {
    color: #0284c7;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.principle-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Styled Bullet Lists */
.styled-list {
    list-style-type: none;
    margin-top: 1rem;
}

.styled-list li {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #475569;
}

.styled-list strong {
    color: #0f172a;
}

/* Action Callout Box */
.action-banner {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2.5rem;
}

.action-banner h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.action-banner p {
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   7. Academy, Pilots, Calendar, Downloads & Affiliates Grid Cards
   ================================================================---------- */
.academy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.academy-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.academy-card.highlight {
    border: 2px solid #0284c7;
    position: relative;
}

.stage-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.academy-card h2 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.academy-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0284c7;
    margin-bottom: 1rem;
}

.academy-card .price span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: normal;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.course-features li {
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Pilots Page Grid */
.pilots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pilot-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pilot-avatar {
    font-size: 3.5rem;
    background: #f1f5f9;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.pilot-info h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.pilot-role {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.pilot-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.pilot-credentials span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Calendar Cards */
.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.calendar-card {
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.date-badge {
    background: #0284c7;
    color: #ffffff;
    min-width: 80px;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.date-badge .month {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.date-badge .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.event-location {
    font-size: 0.9rem;
    color: #0284c7;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calendar-notice {
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    padding: 2rem;
    border-radius: 0 12px 12px 0;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    max-width: 900px;
    margin: 0 auto;
}

/* Affiliates Grid */
.affiliates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.affiliate-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.affiliate-logo {
    font-size: 3rem;
    background: #f1f5f9;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.affiliate-type {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ==========================================================================
   8. Booking Form & Feedback Alerts
   ================================================================---------- */
.booking-wrapper {
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.detailed-booking-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.detailed-booking-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detailed-booking-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.detailed-booking-form input,
.detailed-booking-form select,
.detailed-booking-form textarea {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #334155;
    background: #f8fafc;
}

.detailed-booking-form input:focus,
.detailed-booking-form select:focus,
.detailed-booking-form textarea:focus {
    outline: none;
    border-color: #0284c7;
    background: #ffffff;
}

.detailed-booking-form textarea {
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #ffeeec;
    color: #991b1b;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   9. Footer Styles
   ================================================================---------- */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 1.5rem;
    text-align: center;
    border-top: 1px solid #1e293b;
    margin-top: 4rem;
}

.footer-content p {
    font-size: 0.9rem;
}

/* ==========================================================================
   10. Responsive Breakpoints
   ================================================================---------- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .detailed-booking-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .calendar-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .nav-menu {
        display: none; /* Can be paired with a mobile hamburger toggle script */
    }
}


/* Modern Footer Styles */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 1.5rem 0 1.5rem;
    border-top: 1px solid #1e293b;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-family: 'Outfit', sans-serif;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: #94a3b8;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: #0284c7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #38bdf8;
}

.footer-bottom {
    background: #090d16;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #1e293b;
    font-size: 0.85rem;
    color: #64748b;
}