/* ==================================================
   AVON KITE FLYERS — Main Stylesheet
   Last updated: 2026

   STRUCTURE:
   1.  Reset & Base
   2.  Typography (uses Inter — a modern Google Font)
   3.  Global Container
   4.  Header & Navigation
   5.  Hero Section
   6.  Intro Section
   7.  What We Do
   8.  Feature Image
   9.  Mission
   10. Kite Calendar
   11. When & Where We Meet
   12. Call to Action
   13. Gallery Page
   14. Footer
   15. Lightbox
   16. Responsive (mobile/tablet)
================================================== */


/* --------------------------------------------------
   1. RESET & BASE
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: #222;
    background: #fff;
}

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

a {
    color: #0077cc;
}

a:hover {
    color: #005fa3;
}


/* --------------------------------------------------
   3. GLOBAL CONTAINER
-------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}


/* --------------------------------------------------
   4. HEADER & NAVIGATION
-------------------------------------------------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.5rem;
    background: #fff;
    border-bottom: 2px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-left,
.header-center,
.header-right {
    flex: 1;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.akf-header-logo {
    height: 80px;
    width: auto;
    cursor: pointer;
}

/* Navigation links */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #0077cc;
}

/* Facebook button in nav */
.fb-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #1877f2;
    color: #fff !important;
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.fb-nav-btn:hover {
    background: #1558b0 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.fb-f {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1877f2;
    font-weight: 900;
    font-size: 1rem;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
}


/* --------------------------------------------------
   5. HERO SECTION
   Background image path is relative to this CSS file:
   ../../ goes up to site root, then into assets/images/
-------------------------------------------------- */
.hero {
    background: url('../../assets/images/hero.jpg') center/cover no-repeat;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 40px 20px 60px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
    margin-top: 10px;
    letter-spacing: -0.5px;
}

.hero-spacer {
    margin-top: auto;
    text-align: center;
    background: rgba(0, 0, 0, 0.38);
    padding: 14px 28px;
    border-radius: 10px;
}

.hero-spacer p {
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Shared button style */
.button {
    display: inline-block;
    padding: 10px 24px;
    background: #1877f2;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
    background: #1558b0;
    color: #fff;
    transform: translateY(-2px);
}

.button.inverted {
    background: #fff;
    color: #1877f2;
}

.button.inverted:hover {
    background: #e8f0fe;
    color: #1877f2;
}


/* --------------------------------------------------
   6. INTRO SECTION
-------------------------------------------------- */
.intro-enhanced {
    background-color: #e6f5e6;
    padding: 50px 30px;
    border-radius: 12px;
    margin: 50px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='30,5 40,20 30,35 20,20' fill='%2300800022'/%3E%3Cline x1='30' y1='35' x2='30' y2='55' stroke='%2300800022' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-repeat: repeat;
}

.intro-enhanced h2 {
    color: #006600;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.intro-enhanced p {
    max-width: 800px;
    margin: 0 auto 15px;
    font-size: 1.1rem;
    text-align: center;
    color: #333;
}


/* --------------------------------------------------
   7. WHAT WE DO
-------------------------------------------------- */
.what-we-do {
    background: #fffdf3;
    padding: 50px 30px;
    border-radius: 12px;
    margin: 50px auto;
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

.akf-arrows {
    height: 32px;
    width: auto;
}

.whatwedo-icons {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.what-we-do-intro {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.05rem;
    color: #555;
}

.what-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.what-grid .item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e0f0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.what-grid .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.11);
    border-color: #008000;
}

.what-grid .item img {
    border-radius: 8px;
    margin-bottom: 14px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.what-grid .item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #006600;
    margin-bottom: 8px;
}

.what-grid .item p {
    font-size: 0.98rem;
    color: #444;
    line-height: 1.6;
}


/* --------------------------------------------------
   8. FEATURE IMAGE
-------------------------------------------------- */
.feature-image {
    margin: 40px auto;
    text-align: center;
    padding: 0 20px;
}

.feature-image img {
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.feature-image figcaption {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}


/* --------------------------------------------------
   9. MISSION
-------------------------------------------------- */
.mission {
    padding: 60px 0;
    margin: 40px 0;
    background-color: #1a1a2e;
    background-image:
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='40,8 52,28 40,48 28,28' fill='none' stroke='%23FFD70018' stroke-width='2'/%3E%3Cline x1='40' y1='48' x2='40' y2='72' stroke='%23FFD70018' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-repeat: repeat;
}

.mission-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
}

.mission h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFD700;
    letter-spacing: -0.5px;
}

.mission p {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
}

.mission strong {
    color: #fff;
}


/* --------------------------------------------------
   10. KITE CALENDAR
-------------------------------------------------- */
.kite-calendar {
    padding: 50px 0;
    text-align: center;
}

.kite-calendar p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #333;
}


/* --------------------------------------------------
   11. WHEN & WHERE WE MEET
-------------------------------------------------- */
.when-where-section {
    background-color: #f0f8ff;
    padding: 4rem 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 10 L30 25 L20 40 L10 25 Z' fill='none' stroke='%235da9e9' stroke-width='2'/%3E%3Cpath d='M10 25 L30 25 M20 10 L20 40' stroke='%235da9e9' stroke-width='1' opacity='0.5'/%3E%3Cpath d='M20 40 Q 25 48, 15 55 T 20 65' fill='none' stroke='%235da9e9' stroke-width='1.5'/%3E%3Ccircle cx='18' cy='48' r='1.5' fill='%235da9e9'/%3E%3Ccircle cx='22' cy='58' r='1.5' fill='%235da9e9'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    background-repeat: repeat;
}

.when-where-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.when-where-left {
    flex: 1 1 400px;
}

.when-where-left h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

.when-where-left h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: #333;
}

.when-where-left p {
    color: #444;
    font-size: 1rem;
}

.next-fly-badge {
    display: block;
    background: #ff6b35;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255,107,53,0.35);
}

/* The 2nd and 3rd badges are slightly muted to show they are further away */
.fly-badge-future {
    background: #c0522a;
    font-size: 0.92rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.fly-dates {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Map embed */
.map-embed {
    margin-top: 1.2rem;
}

.map-embed iframe {
    display: block;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.map-directions-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0077cc;
    text-decoration: none;
    text-align: center;
}

.map-directions-link:hover {
    color: #005fa3;
    text-decoration: underline;
}

.w3w-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.3rem;
    background: #0077cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.2s;
}

.w3w-button:hover {
    background: #005fa3;
    color: #fff;
}

.when-where-right {
    flex: 1 1 400px;
}

.when-where-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}


/* --------------------------------------------------
   12. CALL TO ACTION
-------------------------------------------------- */
.cta {
    background: #111;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 14px;
    color: #FFD700;
    letter-spacing: -0.5px;
}

.cta p {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: #ccc;
}


/* --------------------------------------------------
   13. GALLERY PAGE
-------------------------------------------------- */
.gallery-page {
    margin-top: 40px;
    background: #f2fbf2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='30,5 40,20 30,35 20,20' fill='%2300800022'/%3E%3Cline x1='30' y1='35' x2='30' y2='55' stroke='%2300800022' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-repeat: repeat;
    padding-top: 40px;
    padding-bottom: 40px;
    border-radius: 12px;
}

.gallery-page h1 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.gallery-page h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #008000;
    margin: 12px auto 0;
    border-radius: 2px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 10px;
    color: #555;
    font-size: 1.05rem;
}

.gallery-wrapper {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin: 30px 0 60px;
}

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

.gallery-grid figure {
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}

.gallery-grid img {
    border-radius: 6px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gallery-grid img:hover {
    opacity: 0.92;
}

.gallery-grid figcaption {
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #555;
    text-align: center;
}

/* Video spans full grid width, centred */
.video-item {
    grid-column: 1 / -1;
    max-width: 600px;
    margin: 10px auto 0;
    width: 100%;
}

.video-item video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-item figcaption {
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #555;
    text-align: center;
}


/* --------------------------------------------------
   14. FOOTER
-------------------------------------------------- */
.site-footer {
    background: #111;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    font-size: 0.95rem;
}

.site-footer a {
    color: #ccc;
}

.site-footer a:hover {
    color: #fff;
}


/* --------------------------------------------------
   15. LIGHTBOX
   The lightbox overlay that appears when you click
   a gallery photo. Controlled by lightbox.js.
-------------------------------------------------- */
#lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#lb-overlay.lb-active {
    display: flex;
}

#lb-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 95vw;
    max-height: 95vh;
}

#lb-img {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 6px;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

#lb-caption {
    position: absolute;
    bottom: -2.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 0.95rem;
    white-space: nowrap;
    font-style: italic;
}

#lb-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

#lb-close:hover { color: #FFD700; }

#lb-prev,
#lb-next {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s;
}

#lb-prev:hover,
#lb-next:hover {
    background: rgba(255, 255, 255, 0.28);
}


/* --------------------------------------------------
   16. RESPONSIVE — tablets and phones
-------------------------------------------------- */
@media (max-width: 900px) {
    .when-where-container {
        flex-direction: column;
    }
}

@media (max-width: 700px) {

    .site-header {
        padding: 0.3rem 0.8rem;
    }

    .akf-header-logo {
        height: 65px;
    }

    .main-nav ul {
        gap: 0.7rem;
    }

    .fb-nav-btn {
        font-size: 0.82rem;
        padding: 6px 10px;
    }

    .hero {
        min-height: 320px;
        padding: 30px 16px 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-spacer p {
        font-size: 1rem;
    }

    /* Single column cards on phones */
    .what-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .what-grid .item img {
        height: 180px;
    }

    .intro-enhanced {
        padding: 36px 20px;
        margin: 30px auto;
    }

    .gallery-wrapper {
        padding: 20px 12px;
    }

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

    #lb-prev,
    #lb-next {
        font-size: 2rem;
        padding: 0.3rem 0.6rem;
    }

    #lb-img {
        max-width: 92vw;
    }
}
