/**
 * WindFire Designs - Global Stylesheet
 * Modern, responsive design for all pages
 * Features hamburger navigation for all devices
 *
 * Copyright © 2000 - 2026 all the way to ∞ WindFire Designs
 */

/* Cart icon and badge styles — loaded globally so site-header.html SSI     */
/* renders correctly on all pages, not just buy pages                        */
@import url("wfd-cart.css");

/* ===========================
   CSS Reset and Base Styles
   =========================== */

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

/* ===========================
   CSS Variables
   =========================== */

:root {
    --primary-color: #000000;
    --secondary-color: #757575;
    --background-color: #ffffff;
    --nav-background: rgba(255, 255, 255, 0.95);
    --hover-background: rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 60px;
    --border-radius: 7px;
}

/* ===========================
   Body and Base Typography
   =========================== */

body {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size: 16px;
    color: var(--secondary-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* ===========================
   Accessibility
   =========================== */

.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    position: fixed;
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    overflow: visible;
    z-index: 10000;
}

.visually-hidden {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===========================
   Global Navigation - Hamburger Only
   =========================== */

.global-nav {
    position: sticky;
    top: 0;
    background: var(--nav-background);
    background-image: url("../images/index-images/white-silk-macro.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 75px;
    transition: min-height 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 0 8px 50px;
    background-image: url("../images/WindFire-Designs-logo-2015.png");
    background-size: 40px auto;
    background-position: left center;
    background-repeat: no-repeat;
}

.nav-logo:hover,
.nav-logo:focus {
    opacity: 0.7;
}

/* ===========================
   Hamburger Menu Button
   =========================== */

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: 2px solid var(--primary-color);
    padding: 0.6rem;
    z-index: 101;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Compact Navigation State (when scrolled down) */
.global-nav.nav-compact {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.global-nav.nav-compact .nav-wrapper {
    min-height: 50px;
}

.global-nav.nav-compact .nav-logo {
    font-size: 1.2rem;
    padding: 4px 0 4px 42px;
    background-size: 32px auto;
}

.global-nav.nav-compact .menu-toggle {
    padding: 0.4rem;
    border-width: 1.5px;
}

.global-nav.nav-compact .menu-toggle span {
    width: 24px;
    height: 2.5px;
    margin: 2.5px 0;
}

.global-nav.nav-compact .menu-label {
    font-size: 0.95rem;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background-color: var(--hover-background);
    transform: scale(1.05);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Menu Label Next to Hamburger */
.menu-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* ===========================
   Slide-out Menu Panel
   =========================== */

.nav-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 400px;
    max-width: 90vw;
    background: var(--nav-background);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    padding: 80px 0 40px;
}

.nav-menu-panel.active {
    right: 0;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 99;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close Button in Menu */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.menu-close:hover,
.menu-close:focus {
    background-color: var(--hover-background);
}

/* ===========================
   Menu Structure
   =========================== */

.menu-header {
    padding: 0 30px 20px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.menu-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: normal;
}

/* Menu Sections */
.menu-section {
    padding: 15px 30px;
}

.menu-section-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin: 5px 0;
}

.nav-menu a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: var(--hover-background);
    padding-left: 20px;
}

.nav-menu .current {
    background-color: var(--primary-color);
    color: white;
}

.nav-menu .current:hover,
.nav-menu .current:focus {
    background-color: #333;
}

/* Submenu Items */
.nav-submenu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.nav-submenu a {
    font-size: 0.95rem;
    padding: 8px 15px;
    color: var(--secondary-color);
}

.nav-submenu a:hover,
.nav-submenu a:focus {
    color: var(--primary-color);
}

/* Menu Contact Section */
.menu-contact {
    padding: 20px 30px;
    margin-top: 20px;
    border-top: 2px solid #e0e0e0;
    background-color: rgba(0, 0, 0, 0.02);
}

.menu-contact h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.menu-contact p {
    font-size: 0.9rem;
    margin: 5px 0;
    color: var(--secondary-color);
}

.menu-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.menu-contact a:hover {
    text-decoration: underline;
}

/* ===========================
   Shop Panel (mobile)
   Mirrors the hamburger menu pattern: overlay + slide-in aside.
   JS opens it on mobile (<=640px); desktop uses the CSS dropdown.
   =========================== */

.shop-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.shop-overlay.active {
    display: block;
}

.shop-panel {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    max-width: 85vw;
    background: #ffffff;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    padding: 56px 0 32px;
}

.shop-panel.active {
    right: 0;
}

.shop-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
    color: #000000;
}

.shop-panel-close:hover,
.shop-panel-close:focus {
    background: #f0f0f0;
    border-radius: 4px;
    outline: none;
}

.shop-panel-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #666;
    padding: 0 20px 12px;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 0 4px;
}

.shop-panel-links {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.shop-panel-links li {
    margin: 0;
}

.shop-panel-links a {
    display: block;
    padding: 14px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.shop-panel-links a:hover,
.shop-panel-links a:focus {
    background: #f5f5f5;
    outline: none;
}

/* ===========================
   Horizontal Contextual Navigation
   =========================== */

.horizontal-context-nav {
    background: #ffffff;
    border-bottom: 1px solid #000000;
    border-top: 1px solid #e5e5e5;
    padding: 0;
    margin-top: 4px;
    transition: all 0.3s ease;
}

/* Make contextual nav sticky when scrolling up */
.horizontal-context-nav.context-visible {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

/* Smooth slide-down animation for contextual nav appearing */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.horizontal-context-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: -6px;
    padding: 0 20px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 36px;
}

.context-section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    font-weight: 600;
    padding-right: 12px;
    border-right: 1px solid #d0d0d0;
    white-space: nowrap;
}

.horizontal-context-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    align-items: center;
}

/* Adjust alignment for styled links in contextual nav */
.horizontal-context-menu a[href*="Buy-"],
.horizontal-context-menu a[href*="buy-"],
/*.horizontal-context-menu a[href*="Contact-"],*/
.horizontal-context-menu a[href*="kite-repair-start-ticket"] {
    margin: 2px 0;
}

.horizontal-context-menu li {
    margin: 0;
}

.horizontal-context-menu a {
    display: block;
    padding: 8px 16px;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-right: 1px solid #d0d0d0;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.horizontal-context-menu
    li:last-child
    /*a:not([href*="Buy-"]):not([href*="buy-"]):not([href*="Contact-"]):not(
        [href*="kite-repair-start-ticket"]
    )*/ {
    border-right: none;
}

.horizontal-context-menu a:hover {
    background: #000000;
    color: #ffffff;
    border-radius: 4px;
}

.horizontal-context-menu a:focus {
    outline: 2px solid #000000;
    outline-offset: -2px;
}

.horizontal-context-menu a.current {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
}

/* --- Contextual nav dropdown --- */
.horizontal-context-menu .has-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: block;
    padding: 8px 16px;
    background: none;
    border: none;
    border-right: 1px solid #d0d0d0;
    color: #000000;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: inherit;
    line-height: inherit;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.15s ease;
}

.has-dropdown:hover .dropdown-toggle,
.has-dropdown:focus-within .dropdown-toggle,
.has-dropdown.is-open .dropdown-toggle {
    background: #000000;
    color: #ffffff;
    border-radius: 4px;
}

.dropdown-chevron {
    font-size: 0.75em;
    margin-left: 3px;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 2px 0 0 0;
    padding: 4px 0;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 200;
    min-width: 140px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    border-right: none;
    transition: background 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: #000000;
    color: #ffffff;
    border-radius: 0;
    outline: none;
}

/* Responsive: Compact on tablet */
@media (max-width: 768px) {
    .context-section-label {
        font-size: 0.7rem;
        padding-right: 8px;
    }

    .horizontal-context-menu {
        gap: 1px;
    }

    .horizontal-context-menu a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Responsive: Horizontal scroll on mobile (space-efficient) */
@media (max-width: 640px) {
    .horizontal-context-container {
        flex-direction: row;
        align-items: baseline;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin;
    }

    .context-section-label {
        border-right: 1px solid #d0d0d0;
        padding-right: 8px;
        padding-bottom: 0;
        flex-shrink: 0; /* Don't shrink the label */
        font-size: 0.7rem;
    }

    .horizontal-context-menu {
        flex-direction: row;
        width: auto;
        padding: 0;
        gap: 2px;
        flex-wrap: nowrap; /* Don't wrap - scroll instead */
    }

    .horizontal-context-menu li {
        flex-shrink: 0; /* Prevent items from shrinking */
    }

    .horizontal-context-menu a {
        border-right: 1px solid #d0d0d0;
        border-bottom: none;
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* On mobile, suppress CSS dropdown entirely — shop panel handles it */
    .has-dropdown:hover .dropdown-menu,
    .has-dropdown:focus-within .dropdown-menu,
    .has-dropdown.is-open .dropdown-menu {
        display: none !important;
    }

    /* Subtle scroll indicator hint */
    .horizontal-context-container::after {
        content: "→";
        position: sticky;
        right: 0;
        background: linear-gradient(to left, white 50%, transparent);
        padding-left: 20px;
        color: #333;
        font-size: 1.3rem;
        font-weight: bold;
        pointer-events: none;
    }
}

/* ===========================
   Main Container
   =========================== */

.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ===========================
   Site Header
   =========================== */

.site-header {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
    padding-left: 140px; /* Leave room for logo (120px + 20px margin) */
    background-image: url("../images/WindFire-Designs-logo-2015.png");
    background-repeat: no-repeat;
    background-position: 15px 15px;
    background-size: 120px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--border-radius);
}

.site-header h1 {
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.site-header h2 {
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--primary-color);
}

/* ===========================
   Section Headers
   =========================== */

.section-header {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
}

.section-header--framed {
    border: 5px solid black;
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-sizing: border-box;
    margin-top: var(--spacing-lg);
    margin-bottom: 0;
}

.section-header h3 {
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: normal;
    color: var(--primary-color);
}

/* ===========================
   Credential List
   =========================== */

.credential-list-section {
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.credential-list-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    padding: 0;
}

.credential-list {
    list-style: none;
    columns: 3;
    column-gap: var(--spacing-md);
    padding: 0;
    margin: 0 auto;
    text-align: left;
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.credential-list li {
    break-inside: avoid;
    padding: 3px 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* ===========================
   Image Grid
   =========================== */

.image-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    margin: var(--spacing-sm) 0;
}

.image-grid a {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.image-grid a:hover img,
.image-grid a:focus img {
    transform: scale(1.05);
}

/* ===========================
   Content Sections
   =========================== */

.content-section {
    margin: var(--spacing-lg) 0;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

/* Article Elements - Long-Form Content */
/* Articles and single-column layouts constrained for comfortable reading width */
article,
.article-single-col {
    max-width: 800px;
    margin: var(--spacing-md) auto;
}

article img {
    display: block;
    margin: 0 auto;
}

article p,
.article-single-col p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

/* Add breathing room after headings */
h1 + p,
h2 + p,
h3 + p {
    margin-top: var(--spacing-sm);
}

.col {
    display: flex;
    flex-direction: column;
}

/* Center images within columns */
.col img {
    margin-left: auto;
    margin-right: auto;
}

/* Ticket Grid Layout - For repair ticket selection */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: var(--spacing-md) 0;
}

.ticket-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ticket-item p {
    font-size: 1.56rem;
    margin: 0 0 1rem 0;
}

.ticket-item a {
    text-decoration: none;
}

.ticket-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ticket-item a:hover img,
.ticket-item a:focus img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Reusable Image Hover Zoom Effect
   =========================== */

.image-hover-zoom {
    text-decoration: none;
    display: inline-block;
}

.image-hover-zoom img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.image-hover-zoom:hover img,
.image-hover-zoom:focus img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Typography
   =========================== */

/* ===========================
   Heading Hierarchy
   ===========================

   3-Size Typography System:
   - LARGE (2.2rem): h1, h3, h4 - Main headings and section breaks
   - MEDIUM (1.75rem): h2, h5 - Subheadings and secondary text
   - BODY (1.56rem): p - Standard text

   Usage Pattern:
   - Page header: h1 (title) + h2 (subtitle)
   - Section headers: h3 (major sections)
   - Subsections: h2 (under h3 sections)
   - Left-aligned headers: h4 (large), h5 (medium)

   Note: h3 is intentionally the same size as h1. This allows
   section headers throughout the page to have the same visual
   weight as the main title, while maintaining semantic hierarchy.
   =========================== */

h1,
h2,
h3,
h4,
h5 {
    font-weight: normal;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
    margin: var(--spacing-sm) 0;
    padding: 0 var(--spacing-md);
    text-align: center;
}

h2 {
    font-size: 1.75rem;
    margin: var(--spacing-sm) 0;
    padding: 0 var(--spacing-md);
    text-align: center;
}

h3 {
    font-size: 2.2rem;
    margin: var(--spacing-sm) 0;
    padding: 0 var(--spacing-md);
    text-align: center;
}

h4 {
    font-size: 2.2rem;
    margin: var(--spacing-sm) 0;
    padding: 0 var(--spacing-md);
    text-align: left;
}

h5 {
    font-size: 1.75rem;
    margin: var(--spacing-sm) 0;
    padding: 0 var(--spacing-md);
    text-align: left;
}

p {
    font-size: 1.56rem;
    color: var(--primary-color);
    text-align: left;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-md);
    line-height: 1.6;
}

ul,
ol {
    margin-bottom: var(--spacing-md);
    padding-left: 2.5em;
    padding-right: var(--spacing-md);
}

li {
    font-size: 1.44rem;
    color: var(--primary-color);
    text-align: left;
    padding-bottom: 8px;
    line-height: 1.6;
}

/* ===========================
   Images and Videos
   =========================== */

img,
video {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
}

.full-width-image,
.full-width-video {
    margin: var(--spacing-sm) 0;
}

video {
    width: 100%;
}

/* Responsive iframe wrapper for YouTube embeds */
.full-width-media {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: var(--spacing-sm) 0;
}

.full-width-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===========================
   Links
   =========================== */

a {
    color: #333;
    transition: color 0.3s ease;
}

a:visited {
    color: #4a4a4a;
}

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

/* ===========================
   Testimonials
   =========================== */

.testimonials-section {
    margin: var(--spacing-lg) 0;
}

.testimonial {
    background-color: #f9f9f9;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.testimonial cite {
    display: block;
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.testimonial p {
    margin: var(--spacing-sm) 0;
}

/* ===========================
   Figures
   =========================== */

figure {
    margin: var(--spacing-md) 0;
    text-align: center;
}

figure img {
    display: block;
    margin: 0 auto var(--spacing-sm) auto;
}

figcaption {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-style: italic;
    text-align: center;
    margin-top: var(--spacing-sm);
}

/* ===========================
   Utilities
   =========================== */

/* ===========================
   Search Form
   =========================== */

.search-section {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.search-section form {
    display: inline-block;
}

.search-section input[type="text"] {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 300px;
    max-width: 90%;
    margin-right: 0.5rem;
}

.search-section input[type="submit"] {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-section input[type="submit"]:hover,
.search-section input[type="submit"]:focus {
    background-color: var(--secondary-color);
}

/* ===========================
   Buy Link & Start Repair Styling
   =========================== */

/* Button link class - for any link that should look like a button */
.button-link {
    padding: 4px 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.button-link:hover {
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
}

/* Conditional button styling for specific link types */
a[href*="Buy-"]:not(:has(img)),
a[href*="buy-"]:not(:has(img)),
/*a[href*="Contact-"]:not(:has(img)),*/
a[href*="kite-repair-start-ticket"]:not(:has(img)) {
    padding: 4px 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

a[href*="Buy-"]:not(:has(img)):hover,
a[href*="buy-"]:not(:has(img)):hover,
/*a[href*="Contact-"]:not(:has(img)):hover,*/
a[href*="kite-repair-start-ticket"]:not(:has(img)):hover {
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
}

/* ===========================
   Footer
   =========================== */

/* Enhanced Footer Styles */
.site-footer-enhanced {
    background-color: #f5f5f7;
    border-top: 1px solid #d2d2d7;
    margin-top: 60px;
    padding: 40px 0 20px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #d2d2d7;
}

.footer-column h3 {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

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

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #757575;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #000000;
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 30px;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: center;
}

.footer-logo {
    max-width: 200px;
}

.footer-logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
}

.footer-address p,
.footer-copyright p {
    font-size: 12px;
    color: #757575;
    line-height: 1.6;
    margin: 4px 0;
}

.footer-copyright {
    text-align: right;
}

.footer-tagline {
    font-style: italic;
    color: #999999 !important;
}

/* Responsive Design - Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-logo img {
        max-width: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-footer-enhanced {
        padding: 30px 0 15px;
        background-color: #f5f5f7 !important;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
}

/* ===========================
   Responsive Design - Tablet
   =========================== */

@media screen and (max-width: 1024px) {
    /* Scale all headings proportionally - maintain 3-size system */
    h1,
    h3,
    h4 {
        font-size: 1.8rem;
    }

    h2,
    h5 {
        font-size: 1.4rem;
    }

    .site-header h1 {
        font-size: 1.8rem;
    }

    .site-header h2 {
        font-size: 1.4rem;
    }

    .section-header h3 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 1.46rem;
        margin-bottom: var(--spacing-sm);
    }

    li {
        font-size: 1.2rem;
    }

    .image-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .ticket-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .ticket-item p {
        font-size: 1.1rem;
    }
}

/* ===========================
   Responsive Design - Mobile
   =========================== */

@media screen and (max-width: 768px) {
    .nav-menu-panel {
        width: 320px;
    }

    .menu-label {
        display: none;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ticket-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ticket-item p {
        font-size: 1rem;
    }

    .site-header {
        background-size: 80px;
        background-position: center 10px;
        padding-top: 100px;
        padding-bottom: var(--spacing-sm);
        padding-left: var(--spacing-sm); /* Reset to normal padding */
        min-height: auto;
    }

    .section-header {
        padding: var(--spacing-xs) var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
        min-height: auto;
    }

    .credential-list {
        columns: 2;
    }

    /* Scale all headings proportionally - maintain 3-size system */
    h1,
    h3,
    h4 {
        font-size: 1.4rem;
        margin: var(--spacing-xs) 0;
    }

    h2,
    h5 {
        font-size: 1rem;
        margin: var(--spacing-xs) 0;
    }

    .site-header h1 {
        font-size: 1.5rem;
    }

    .site-header h2 {
        font-size: 1.2rem;
        margin: 0;
    }

    .section-header h3 {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    p {
        font-size: 1rem;
        margin: var(--spacing-sm);
    }

    li {
        font-size: 0.95rem;
    }

    .search-section input[type="text"] {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .search-section input[type="submit"] {
        width: 100%;
    }

    /* Reduce container padding on mobile for more immersive images/videos */
    .main-container {
        padding: 0 7px;
    }

    /* Add padding to text elements for readability on mobile */
    p,
    ul,
    ol,
    h1,
    h2,
    h3,
    h4,
    h5,
    .site-header,
    .section-header,
    .search-section,
    .menu-contact,
    blockquote {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }

    /* Remove horizontal margin from image-grid for immersive display */
    .image-grid {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ===========================
   Responsive Design - Small Mobile (iPhone and smaller)
   =========================== */

@media screen and (max-width: 480px) {
    .site-header {
        background-size: 60px;
        background-position: center 10px;
        padding-top: 80px;
        padding-left: var(--spacing-sm);
    }

    .section-header {
        padding: var(--spacing-xs) var(--spacing-xs);
        margin-bottom: var(--spacing-xs);
    }

    .credential-list {
        columns: 1;
    }

    /* Scale all headings proportionally - maintain 3-size system */
    h1,
    h3,
    h4 {
        font-size: 1.1rem;
    }

    h2,
    h5 {
        font-size: 0.9rem;
    }

    .site-header h1 {
        font-size: 1.2rem;
    }

    .site-header h2 {
        font-size: 1.1rem;
    }

    .section-header h3 {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 0.9rem;
    }

    p {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    li {
        font-size: 0.9rem;
    }

    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ticket-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ticket-item p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .nav-logo {
        font-size: 1.2rem;
        padding: 6px 0 6px 40px;
        background-size: 32px auto;
    }

    .nav-menu-panel {
        width: 280px;
    }
}
