/*
  Jaken Aviation - Stylesheet
*/

/* --- DESIGN TOKENS & ROOT VARIABLES --- */
:root {
    --gold: #D4AF37;
    --gold-dark: #B89B32;
    --gold-text-link: #94760A; /* WCAG AA compliant on white */
    --white: #FFFFFF;
    --black: #0B0B0B;
    --off-black: #1a1a1a;
    --text-dark: #1a1a1a;
    --text-secondary: #555; /* High-contrast gray */

    --grey-light: #f5f5f7;
    --grey-medium: #d1d1d1; /* For use on dark backgrounds */
    
    --background-light: var(--white);
    --background-dark: var(--black);
    --text-light: var(--white);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
}

/* --- GLOBAL STYLES & RESETS --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- UTILITIES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    margin: 0.75rem auto 0;
}

.section-intro {
    max-width: 650px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--gold-text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-dark);
}

/* --- BUTTONS --- */
.cta-button {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after { /* Contrail underline effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transform: translateX(-101%);
    transition: transform var(--transition-medium);
}

.cta-button:hover::after,
.cta-button:focus-visible::after {
    transform: translateX(0);
}

.primary-cta {
    background-color: var(--gold);
    color: var(--black);
    border: 2px solid var(--gold);
}

.primary-cta:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--black);
}

.secondary-cta {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--white);
}

.secondary-cta:hover {
    background-color: var(--white);
    color: var(--black);
}

/* --- HEADER --- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: transparent;
    transition: background-color var(--transition-medium), box-shadow var(--transition-medium);
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.main-header.scrolled .nav-link {
    color: var(--text-dark);
}

.main-header.scrolled .logo-lockup .division-name {
    color: var(--text-secondary);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-lockup {
    display: flex;
    flex-direction: column;
}

.logo-lockup .brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.logo-lockup .division-name {
    font-size: 0.7rem;
    color: var(--grey-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-header.scrolled .logo-lockup .brand-name {
    color: var(--gold);
}

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

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-nav-toggle { display: none; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-color: var(--background-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(15deg, var(--black) 40%, var(--off-black) 100%);
    z-index: 1;
}

.runway-stripe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 30%;
    height: 150%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.05), transparent);
    transform: translateX(-50%) rotate(35deg);
    transform-origin: center;
}

.jet-silhouette {
    position: absolute;
    bottom: 20%;
    right: 5%;
    width: 400px;
    color: rgba(212, 175, 55, 0.2);
    opacity: 0.5;
    transform: translateX(20%);
    animation: fly-in 1.5s 0.5s ease-out forwards;
}

@keyframes fly-in {
    to { transform: translateX(0); opacity: 1; }
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
}
.cloud1 { width: 400px; height: 400px; top: 10%; left: -100px; }
.cloud2 { width: 600px; height: 600px; bottom: -200px; right: -150px; }

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    max-width: 800px;
    margin-bottom: 1rem;
}

.hero-subhead {
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: 2rem;
    color: var(--grey-medium);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-signals p {
    font-size: 0.9rem;
    max-width: 600px;
    color: var(--grey-medium);
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 6rem 0;
}

section:nth-of-type(odd) {
    background-color: var(--grey-light);
}

/* --- FORM SECTION --- */
.form-section {
    background-color: var(--off-black);
    color: var(--text-light);
}
.form-section .section-title { color: var(--text-light); }
.form-section .section-intro { color: var(--grey-medium); }

.jotform-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.jotform-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    border: 2px dashed var(--grey-medium);
    border-radius: 5px;
    color: var(--text-dark);
}
.noscript-warning {
    text-align: center;
    margin-top: 2rem;
    color: var(--grey-medium);
}

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

.program-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid #e0e0e0;
    border-bottom: 3px solid transparent;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--gold);
}

.card-icon {
    color: var(--gold);
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--text-secondary);
}

/* --- RATES & TERMS SECTION --- */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e0e0e0;
}

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

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

thead th {
    font-family: var(--font-heading);
    font-size: 1rem;
    background-color: var(--grey-light);
    color: var(--text-dark);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background-color: #fcfaf4;
}

td[data-label="Product"] {
    font-weight: 500;
}

.compliance-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- PROCESS SECTION --- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-steps::before { /* Connecting line */
    content: '';
    position: absolute;
    top: 25px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #d1d1d1, #d1d1d1 5px, transparent 5px, transparent 10px);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gold);
    color: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: 3px solid var(--white);
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* --- WHY US SECTION --- */
.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.value-prop {
    padding: 2rem;
    background: linear-gradient(135deg, var(--off-black), var(--black));
    color: var(--text-light);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}
.value-prop h3 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.value-prop p {
    color: var(--grey-medium);
}

/* --- SOCIAL PROOF SECTION --- */
.social-proof-section {
    color: var(--text-dark);
}
.testimonials {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-wrapper {
    position: relative;
    min-height: 150px;
}
.testimonial {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity var(--transition-medium);
}
.testimonial.active {
    opacity: 1;
}
.testimonial blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial blockquote footer {
    font-weight: 600;
    color: var(--gold-text-link);
}

/* --- FAQ SECTION --- */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.faq-question {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1.5rem 0;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { /* Custom marker */
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--gold);
    transition: transform var(--transition-fast);
}
.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 1rem 1.5rem 1rem;
    color: var(--text-secondary);
}
.faq-answer p {
    max-width: 80ch;
}

/* --- ABOUT SECTION --- */
.about-section {
    background-color: var(--off-black);
    color: var(--text-light);
}
.about-section .section-title { color: var(--text-light); }
.about-bio {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--grey-medium);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--black);
    color: var(--grey-medium);
    padding: 4rem 0 2rem 0;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-heading {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--grey-medium);
}
.footer-links a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}
.disclaimer {
    font-size: 0.8rem;
    color: var(--grey-medium);
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- ACCESSIBILITY & ANIMATIONS --- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .jet-silhouette { display: none; }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .hero-headline { font-size: 2.8rem; }
    .jet-silhouette { width: 300px; opacity: 0.7; }
    .process-steps::before { display: none; }
    .step { margin-bottom: 2rem; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    section { padding: 4rem 0; }
    .section-title { font-size: 2rem; }
    
    .main-header .container {
        flex-wrap: wrap;
    }
    .main-header .primary-cta { display: none; }
    
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        width: 30px;
        height: 22px;
        position: relative;
    }
    .hamburger-line {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--white);
        position: absolute;
        left: 0;
        transition: all var(--transition-fast);
    }
    .hamburger-line:nth-child(1) { top: 0; }
    .hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger-line:nth-child(3) { bottom: 0; }

    .nav-open .hamburger-line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
    .nav-open .hamburger-line:nth-child(2) { opacity: 0; }
    .nav-open .hamburger-line:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition-medium);
    }
    .nav-open .nav-list {
        transform: translateX(0);
    }
    .nav-link { font-size: 1.5rem; }

    .hero { height: auto; min-height: 90vh; padding: 8rem 0 4rem 0; }
    .hero-headline { font-size: 2.2rem; }
    .hero-subhead { font-size: 1.1rem; }
    .hero-cta-group { flex-direction: column; align-items: flex-start; }
    .jet-silhouette { display: none; }

    table { display: block; }
    thead { display: none; }
    tr { display: block; margin-bottom: 2rem; border: 1px solid #e0e0e0; border-radius: 5px; }
    td { display: block; text-align: right; border-bottom: 1px dotted #e0e0e0; }
    td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.85em;
    }
    tbody tr:last-child { margin-bottom: 0; }
    td:last-child { border-bottom: none; }
}
