/* Poster Dark Theme — JPO 2026 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --navy-deep:  #1B2F55;
    --navy-alt:   #162848;
    --navy-card:  #243660;
    --navy-dark:  #0d1a30;
    --orange:     #F5821F;
    --orange-dk:  #D4691A;
    --white:      #FFFFFF;
    --slate:      #A8B4C8;
    --border:     rgba(255,255,255,0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--navy-deep);
    min-height: 100vh;
}

/* ── Navigation ─────────────────────────────── */
.navbar {
    position: fixed;
    top: -120px;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(13, 26, 48, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.5);
    transition: top 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.navbar.navbar-visible {
    top: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
}

/* Text logo badge in navbar */
.nav-logo-text {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 5px 11px;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.nav-logo-text:hover {
    opacity: 0.85;
}

.nav-logo-aero {
    color: #1A4F9C;
}

.nav-logo-bex {
    color: #CC1F2E;
}

/* Logo circle in contact section */
.contact-logo-circle {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.contact-logo-circle img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--slate);
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background: var(--orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── External links ──────────────────────────── */
.external-link {
    text-decoration: none;
    color: var(--orange);
    font-weight: 600;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ── Container ───────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
    background: url('resources/poster/background_blue.png') center / cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    height: 50vw;
    max-height: 1080px;
    min-height: 420px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Orange top stripe */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--orange);
    z-index: 3;
}

/* Fade bottom into page background */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(transparent, var(--navy-deep));
    z-index: 1;
    pointer-events: none;
}

.hero-spitfire {
    position: absolute;
    rotate: 25deg;
    right: -28%;
    bottom: 8%;
    width: 120%;
    max-width: 1920px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.6));
    animation: spitfire-float 7s ease-in-out infinite;
}

@keyframes spitfire-float {
    0%, 100% { transform: translateY(0px)   rotate(-5deg); }
    50%       { transform: translateY(-22px) rotate(-3deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 620px;
    padding: 0 40px 60px;
}

.hero-content h2 {
    font-size: 2.4rem;
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    line-height: 1.1;
}

.hero-content h1 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 0.6rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    line-height: 1.3;
}

.hero-content p {
    font-size: 0.95rem;
    color: var(--slate);
    margin-bottom: 1.8rem;
    letter-spacing: 0.5px;
}

.date-badge {
    background: var(--orange);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Sections ─────────────────────────────────── */
.section {
    padding: 60px 40px;
    background: var(--navy-deep);
}

.section:nth-child(even) {
    background: var(--navy-alt);
}

.section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.section h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--orange);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--slate);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section body text (history paragraphs etc.) */
.section > p,
.section .expandable p {
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Sub-headings inside expandable history */
.section .expandable h2 {
    font-size: 1.35rem;
    text-align: left;
    text-transform: none;
    font-weight: 700;
    color: var(--white);
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}
.section .expandable h2::after {
    display: none;
}

/* ── Expandable / Toggle ──────────────────────── */
.expandable {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.expandable.collapsed {
    max-height: 420px;
}

.expandable.collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(transparent, var(--navy-deep));
    pointer-events: none;
}

.section:nth-child(even) .expandable.collapsed::after {
    background: linear-gradient(transparent, var(--navy-alt));
}

.expandable.expanded {
    max-height: none;
}

.toggle-button {
    display: block;
    margin: 20px auto 0;
    padding: 8px 22px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.toggle-button:hover {
    background: var(--orange-dk);
}

/* ── Performers ───────────────────────────────── */
.performers-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.performer-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    border-radius: 10px;
    background: var(--navy-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.performer-card:hover {
    box-shadow: 0 6px 28px rgba(245,130,31,0.18);
    transform: translateY(-2px);
}

.performer-image {
    flex: 0 0 250px;
    height: 250px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Placeholder for missing photos */
.performer-placeholder {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--slate);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.performer-placeholder::before {
    content: '✈';
    font-size: 2.5rem;
    opacity: 0.4;
}

.performer-info {
    flex: 1 1 240px;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.performer-card .performer-info h3 {
    font-size: 1.2rem;
    color: var(--orange);
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.performer-description p {
    color: var(--slate);
    font-size: 0.9rem;
    line-height: 1.75;
}

@media (min-width: 769px) {
    .performer-image {
        flex: 0 0 480px;
        height: 320px;
    }
    .performer-info {
        flex: 1 1 200px;
    }
    .performer-card .performer-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .performer-image {
        flex: 0 0 100%;
        height: 220px;
    }
    .performer-info {
        flex: 0 0 100%;
    }
}

/* ── Info Grid ────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--navy-card);
    padding: 28px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--orange);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 18px rgba(245,130,31,0.14);
}

.info-card h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card p {
    color: var(--slate);
    line-height: 1.8;
    font-size: 0.9rem;
}

.info-card-wide {
    background: var(--navy-card);
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.info-card-wide h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.info-card-wide p {
    color: var(--slate);
    line-height: 1.8;
}

/* ── Activities Grid ──────────────────────────── */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.activity-card {
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 4px 16px rgba(245,130,31,0.12);
}

.activity-content {
    padding: 22px;
}

.activity-content h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.activity-content p {
    color: var(--slate);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ── Groups Grid ──────────────────────────────── */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.group-card {
    background: var(--navy-card);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
}

.group-card:hover {
    box-shadow: 0 4px 16px rgba(245,130,31,0.12);
}

.group-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
    border-bottom: 2px solid var(--orange);
}

.group-content {
    padding: 16px;
}

.group-content h3 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.group-content p {
    color: var(--slate);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ── Sponsors / Pilots ────────────────────────── */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.sponsors-card {
    background: var(--navy-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.sponsors-card:hover {
    box-shadow: 0 4px 16px rgba(245,130,31,0.12);
}

.sponsors-image {
    height: 120px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a2a45;
}

.sponsors-content {
    margin-bottom: 40px;
    text-align: center;
}

.sponsors-content p {
    color: var(--slate);
}

.sponsors-content h3 {
    color: var(--slate);
    font-size: 0.85rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Schedule Table ───────────────────────────── */
.schedule-table {
    background: var(--navy-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.schedule-table th {
    background: var(--orange);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.schedule-table td {
    color: var(--slate);
    font-size: 0.9rem;
}

.schedule-table tr:nth-child(odd) {
    background: rgba(255,255,255,0.03);
}

.schedule-table .demonstration-row {
    font-weight: 600;
    background: rgba(245,130,31,0.1);
    color: var(--orange);
}

.schedule-table p {
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate);
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Contact ──────────────────────────────────── */
.contact-info {
    text-align: center;
    background: var(--navy-dark);
    color: white;
    padding: 60px 40px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--orange);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.contact-item span {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--slate);
}

.icon {
    width: 24px;
    height: 24px;
    fill: var(--orange);
    flex-shrink: 0;
}

/* ── CTA Button ───────────────────────────────── */
.cta-button {
    display: inline-block;
    background: var(--orange);
    color: white;
    padding: 14px 36px;
    text-decoration: none;
    border: 2px solid var(--orange);
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.cta-button:hover {
    background: transparent;
    color: var(--orange);
}

/* ── Figure / Figcaption ──────────────────────── */
figure {
    margin: 0;
}

figcaption {
    font-size: 0.8rem;
    color: var(--slate);
    font-style: italic;
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.2px;
}

/* ── Footer ───────────────────────────────────── */
.footer {
    background: var(--navy-dark);
    color: var(--slate);
    text-align: center;
    padding: 28px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-top: 1px solid var(--border);
}

/* ── Hamburger (mobile only) ──────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--slate);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1280px) {
    .hero {
        height: 75vw;
    }
    .hero-content     { margin-left: 60px; margin-right: 60px; }
    .hero-content h1  { font-size: 1.15rem; letter-spacing: 3px; }
    .hero-content h2  { font-size: 1.85rem; }
    .hero-spitfire    { width: 120%; }

    .section          { padding: 50px 25px; margin-left: 100px; margin-right: 100px; }
    .section h2       { font-size: 1.7rem; margin-bottom: 2rem; }
    .nav-container    { padding: 0 20px; }
    .nav-menu         { gap: 20px; }
    .nav-link         { font-size: 0.75rem; }
    .info-grid        { gap: 20px; }
    .contact-details  { flex-direction: column; gap: 25px; }
    .contact-info     { padding: 40px 25px; }
    .date-badge       { padding: 10px 22px; font-size: 0.82rem; }

    .schedule-table th,
    .schedule-table td { padding: 10px; font-size: 0.75rem; }
}

@media (max-width: 768px) {
    .hero {
        height: 150vw;
        max-height: 1920px;
    }
    .hero-content       { padding: 0 20px 40px; margin-left: 0px; margin-right: 0px; }
    .hero-content h1    { font-size: 1rem; letter-spacing: 2px; }
    .hero-content h2    { font-size: 1.5rem; }
    .hero-spitfire      { width: 120%; right: -32%; bottom: 28%; opacity: 0.80; }
    .date-badge         { font-size: 0.72rem; padding: 9px 18px; }

    .section            { padding: 40px 16px; margin-left: 0px; margin-right: 0px; }
    .section h2         { font-size: 1.3rem; }

    .nav-container      { height: 55px; padding: 0 16px; }
    .nav-hamburger      { display: flex; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 8px 0 14px;
        background: rgba(13, 26, 48, 0.98);
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 28px rgba(0,0,0,0.5);
    }
    .nav-menu.open      { display: flex; }
    .nav-link           { padding: 11px 0; font-size: 0.9rem; width: 100%; text-align: center; letter-spacing: 0.5px; }

    .groups-grid,
    .sponsors-grid      { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .group-content h3   { font-size: 0.78rem; }

    .contact-info       { padding: 30px 15px; }
    .contact-info h3    { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero               { height: 165vw; align-items: bottom; text-align: center; }
    .hero-content     { margin-left: 0px; margin-right: 0px; }
    .hero-content h1    { font-size: 0.85rem; letter-spacing: 2px; }
    .hero-content h2    { font-size: 1.0rem; }
    .hero-content p     { font-size: 0.85rem; }
    .hero-spitfire      { width: 140%; right: -40%; bottom: 24%; opacity: 0.80; }
    .date-badge         { width: 75%; font-size: 0.65rem; text-align: center; }

    .section            { padding: 30px 14px; margin-left: 0px; margin-right: 0px; }
    .section h2         { font-size: 1.15rem; margin-top: 10px; }

    .groups-grid,
    .sponsors-grid      { grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; }
}
