@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@400;700&family=Parisienne&display=swap');

/* --- Global Variables --- */
:root {
    --primary-color: #004D40; /* Deep Teal */
    --secondary-color: #ff8f00; /* Amber */
    --background-color: #f5f5f5; /* Light Grey */
    --text-color: #263238; /* Dark Blue Grey */
    --heading-font: 'Merriweather', serif;
    --body-font: 'Lato', sans-serif;
    --cursive-font: 'Parisienne', cursive; /* New cursive font */
    --letterpress-color: rgba(0, 0, 0, 0.05); /* Subtle letterpress effect */
    --paper-texture-color: rgba(0, 0, 0, 0.03); /* Subtle paper texture */
}

/* --- Special CSS Effect: Vintage Paper Texture & Letterpress --- */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    position: relative;
    z-index: 0; /* Base z-index for pseudo-elements */
}

/* Vintage paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3; /* Adjust opacity for desired subtlety */
}

/* Subtle bleed-through effect */
.section::after,
.site-header::after,
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--paper-texture-color);
    pointer-events: none;
    z-index: 1; /* Behind content but above background */
    mix-blend-mode: multiply; /* Can experiment with other blend modes */
    opacity: 0.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-top: 0;
    line-height: 1.2;
}

/* Letterpress effect on headings */
h1, h2, h3, h4, h5, h6 {
    position: relative;
    text-shadow: 1px 1px 0 var(--letterpress-color),
                 -1px -1px 0 var(--letterpress-color),
                 1px -1px 0 var(--letterpress-color),
                 -1px 1px 0 var(--letterpress-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* Crucial for parallax and bleed-through */
    background-color: #fff; /* Default section background, will be overridden */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 40px; /* Spacing between sections */
    opacity: 1; /* Ensure sections are visible by default */
    transform: translateY(0); /* Ensure sections are visible by default */
    transition: none; /* Remove transition to ensure initial visibility */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--primary-color); /* Newspaper-style border */
}

.section-header h2 {
    font-size: 2.5em;
    margin-bottom: 0;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Newspaper Columns Layout */
.newspaper-columns {
    column-count: 1;
    column-gap: 40px;
}

@media (min-width: 768px) {
    .newspaper-columns {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .newspaper-columns {
        column-count: 3;
    }
}

.article-column {
    break-inside: avoid; /* Prevent columns from breaking awkwardly */
    margin-bottom: 20px;
}

.sidebar-column {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* --- Site Wrapper & Layout --- */
.site-wrapper {
    position: relative;
    isolation: isolate; /* For stacking context of pseudo-elements */
}

/* --- Header --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--paper-texture-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo a {
    font-family: var(--cursive-font); /* Use cursive font for logo */
    font-size: 2.2em; /* Slightly larger for better readability */
    font-weight: normal; /* Cursive fonts often don't rely on weight */
    color: var(--primary-color);
    text-shadow: none; /* Remove letterpress from logo */
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: bold;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color); /* Fallback */
    z-index: 5;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 10;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2); /* Subtle overlay for readability */
    border-radius: 8px;
}

.hero-content {
    position: relative;
    z-index: 10; /* Ensure content is above overlay background */
    padding: 20px;
}

.hero-content h1 {
    font-family: var(--cursive-font); /* Use cursive font for brand name */
    font-size: 4.5em; /* Larger for impact */
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content .tagline {
    font-family: var(--body-font); /* Keep tagline readable with body font */
    font-size: 1.6em; /* Slightly larger */
    margin-bottom: 30px;
    color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: white;
}

/* --- Dynamic Wind Visualizer --- */
.wind-visualizer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Covers the viewport height */
    pointer-events: none;
    z-index: 2; /* Above hero background, below hero content */
    overflow: hidden;
    opacity: 0.2; /* Subtly visible */
}

.wind-visualizer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(255, 255, 255, 0.1) 80%); /* Subtle radial gradient */
    animation: windFlow 60s linear infinite;
    opacity: 0.5; /* Adjust visibility */
}

@keyframes windFlow {
    0% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(20px, 10px); opacity: 0.7; }
    100% { transform: translate(0, 0); opacity: 0.5; }
}

/* --- Parallax Scrolling Effect --- */
/* Removed parallax and page turn transition from sections as per JS fix */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section.hidden-for-transition {
    transform: rotateY(90deg) translateZ(-200px); /* Simulate turning */
    opacity: 0;
}

/* --- Intro Flights Section --- */
.intro-flights-section { background-color: #ffffff; }

.intro-flights-section .section-header h2 { color: var(--primary-color); }

.intro-flights-section .image-captioned {
    margin-top: 20px;
    background-color: var(--background-color);
    padding: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 2px 2px 0 var(--secondary-color);
}

.intro-flights-section .image-captioned img {
    margin-bottom: 10px;
}

.intro-flights-section .image-captioned figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: var(--text-color);
    text-align: center;
}

.callout-box {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.callout-box h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.callout-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.callout-box li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.callout-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Interactive Wind Meter */
.wind-meter {
    background-color: var(--background-color);
    padding: 20px;
    border: 1px solid var(--primary-color);
    margin-top: 30px;
    text-align: center;
    box-shadow: 2px 2px 0 var(--secondary-color);
}

.wind-meter h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.meter-dial {
    width: 150px;
    height: 150px;
    border: 5px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    position: relative;
    background: conic-gradient(from 0deg at 50% 50%, var(--secondary-color) 0deg, var(--primary-color) 360deg);
}

.meter-dial::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--text-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.meter-needle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 2px;
    height: calc(50% - 5px); /* Align to the edge of the dial */
    background-color: var(--secondary-color);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg); /* Initial rotation */
    transition: transform 0.5s ease-out;
    z-index: 3;
}

.wind-meter .reading {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Advanced Courses Section --- */
.advanced-courses-section { background-color: var(--background-color); }

.advanced-courses-section .section-header h2 { color: var(--secondary-color); }

.advanced-courses-section .image-captioned {
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid var(--secondary-color);
    box-shadow: 2px 2px 0 var(--primary-color);
}

.advanced-courses-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

.advanced-courses-section li {
    margin-bottom: 10px;
}

/* --- Guided Tours Section --- */
.guided-tours-section { background-color: #ffffff; }

.guided-tours-section .section-header h2 { color: var(--primary-color); }

/* Flight Path Explorer */
.flight-path-explorer {
    margin-top: 30px;
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: inset 4px 4px 10px rgba(0,0,0,0.3);
    color: white;
}

.flight-path-explorer h4 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* Maintain aspect ratio */
    background-color: rgba(0,0,0,0.2); /* Darker map background */
    border-radius: 5px;
    overflow: hidden;
}

.map-container svg {
    display: block;
    width: 100%;
    height: 100%;
}

.route {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, stroke-width 0.3s ease;
}

.route:hover {
    opacity: 1;
    stroke-width: 5px;
}

.route-label {
    position: absolute;
    font-size: 0.8em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    transform: translate(-50%, -150%); /* Position above the route start */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.route-1 { top: 30%; left: 15%; }
.route-2 { top: 15%; left: 60%; }

.map-container:hover .route-label {
    opacity: 1;
}

.animated-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 5s linear forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

/* VR Preview */
.vr-preview {
    background-color: var(--background-color);
    padding: 20px;
    border: 1px solid var(--primary-color);
    margin-top: 30px;
    text-align: center;
    box-shadow: 2px 2px 0 var(--secondary-color);
}

.vr-preview h4 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.vr-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    position: relative;
}

.vr-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* --- Gallery Section --- */
.gallery-section { background-color: var(--background-color); }

.gallery-section .section-header h2 { color: var(--secondary-color); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    margin: 0; /* Reset margin for grid items */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari */
}

.caption-content h5 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.caption-content p {
    font-size: 0.9em;
    margin: 0;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .caption-overlay {
    transform: translateY(0);
}

/* --- Fleet & Facilities Section --- */
.fleet-facilities-section { background-color: var(--background-color); }

.fleet-facilities-section .section-header h2 { color: var(--primary-color); }

.fleet-facilities-section .image-captioned {
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 2px 2px 0 var(--secondary-color);
}

/* --- Bookings Section --- */
.bookings-section { background-color: #ffffff; }

.bookings-section .section-header h2 { color: var(--secondary-color); }

.inquiry-form {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 2px 2px 0 var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-family: var(--body-font);
    font-size: 1em;
    background-color: white;
}

.form-group textarea {
    resize: vertical;
}

.inquiry-form .cta-button {
    width: 100%;
    text-align: center;
    padding: 15px;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.testimonials-section .section-header h2 {
    color: white;
    border-bottom-color: var(--secondary-color);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling for testimonials if needed */
    scroll-snap-type: x mandatory; /* Snap scrolling */
    -webkit-overflow-scrolling: touch;
    margin-top: 40px;
}

.testimonial-item {
    flex: 0 0 100%; /* Each item takes full width */
    max-width: 700px;
    margin: 0 auto; /* Center the item */
    padding: 20px;
    scroll-snap-align: center; /* Align item to center on scroll */
    display: none; /* Hide all by default, JS will show one */
}

.testimonial-item.active {
    display: block; /* Show the active item */
}

.testimonial-item blockquote {
    font-size: 1.5em;
    font-style: italic;
    margin: 0 0 20px 0;
    line-height: 1.4;
    position: relative;
    padding: 0 40px; /* Space for quotation marks */
}

.testimonial-item blockquote::before,
.testimonial-item blockquote::after {
    content: '"';
    font-size: 3em;
    color: var(--secondary-color);
    position: absolute;
    top: -0.2em;
}

.testimonial-item blockquote::before {
    left: 0;
}

.testimonial-item blockquote::after {
    right: 0;
}

.testimonial-item cite {
    font-weight: bold;
    font-style: normal;
    font-size: 1.1em;
    color: var(--secondary-color);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 20px;
    position: relative;
    z-index: 10; /* Ensure footer is above the paper texture */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 30px auto;
}

.footer-logo {
    font-family: var(--cursive-font); /* Use cursive font for footer logo */
    font-size: 2.2em;
    font-weight: normal;
    margin-bottom: 20px;
    flex: 1 1 200px; /* Grow, shrink, basis */
    text-shadow: none; /* Remove letterpress from footer logo */
}

.footer-nav {
    flex: 1 1 300px;
    margin-left: 40px;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: white;
    font-weight: bold;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-contact {
    flex: 1 1 300px;
    margin-left: 40px;
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: white;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
    opacity: 0.8;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
    }
    .main-nav.active {
        display: flex; /* Show mobile nav when active */
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .main-nav li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block;
        width: 100%;
        padding: 10px;
    }
    .burger-menu {
        display: flex; /* Show burger menu */
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .section-header h2 {
        font-size: 2em;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .footer-nav, .footer-contact {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 15px 20px;
    }
    .logo a {
        font-size: 1.8em; /* Adjusted for smaller screens */
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content .tagline {
        font-size: 1.2em;
    }
    .cta-button {
        font-size: 1em;
        padding: 12px 25px;
    }
    .section {
        padding: 40px 15px;
    }
    .section-header h2 {
        font-size: 1.8em;
    }
    .newspaper-columns {
        column-count: 1;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-item blockquote {
        font-size: 1.2em;
    }
    .footer-logo {
        font-size: 1.8em; /* Adjusted for smaller screens */
    }
}