/* AVGrid Marketing Site – avgrid.tech (app palette + logo styles from avgrid-theme) */
:root {
    /* Primary & secondary (match app) */
    --avgrid-primary: #2c5282;
    --avgrid-primary-dark: #1e3a5f;
    --avgrid-primary-light: #3b82c4;
    --avgrid-secondary: #16a34a;
    --avgrid-secondary-light: #22c55e;
    --avgrid-accent-orange: #ea580c;
    --avgrid-accent-red: #dc2626;
    --avgrid-accent-yellow: #f59e0b;
    --avgrid-accent-light: #fbbf24;
    /* Text & background */
    --avgrid-text: #1e293b;
    --avgrid-text-secondary: #475569;
    --avgrid-bg: #ffffff;
    --avgrid-bg-alt: #f8fafc;
    --avgrid-bg-tint: #eff6fa;
    --avgrid-border: #e2e8f0;
    --avgrid-success: #16a34a;
    /* App theme tokens (typography, radius, shadow) */
    --avgrid-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --avgrid-font-size-sm: 0.875rem;
    --avgrid-font-size-base: 1rem;
    --avgrid-font-size-lg: 1.125rem;
    --avgrid-radius-sm: 0.25rem;
    --avgrid-radius-md: 0.375rem;
    --avgrid-radius-lg: 0.5rem;
    --avgrid-radius-xl: 0.75rem;
    --avgrid-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --avgrid-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--avgrid-font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--avgrid-text);
    background: var(--avgrid-bg);
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

/* Header */
.site-header {
    background: var(--avgrid-bg);
    border-bottom: 2px solid var(--avgrid-primary);
    padding: 12px 0;
    padding-top: max(12px, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--avgrid-shadow-md);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--avgrid-primary);
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 8px;
}

/* LearnGrid / AVGrid 3×3 logo */
.avgrid-logo {
    display: grid;
    grid-template-columns: repeat(3, 10px);
    grid-template-rows: repeat(3, 10px);
    gap: 2px;
    padding: 6px;
    background: rgba(44, 82, 130, 0.1);
    border-radius: var(--avgrid-radius-lg);
    flex-shrink: 0;
}
.avgrid-logo span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: var(--avgrid-radius-sm);
}
/* Two-tone brand grid (matches YouTube channel avatar) */
.avgrid-logo span:nth-child(1) { background: #2c5282; }
.avgrid-logo span:nth-child(2) { background: #f59e0b; }
.avgrid-logo span:nth-child(3) { background: #2c5282; }
.avgrid-logo span:nth-child(4) { background: #f59e0b; }
.avgrid-logo span:nth-child(5) { background: #2c5282; }
.avgrid-logo span:nth-child(6) { background: #f59e0b; }
.avgrid-logo span:nth-child(7) { background: #2c5282; }
.avgrid-logo span:nth-child(8) { background: #f59e0b; }
.avgrid-logo span:nth-child(9) { background: #2c5282; }
/* Two-tone wordmark: AV navy, Grid amber */
.site-logo .brand-amber { color: var(--avgrid-accent-yellow); }
.site-logo:hover .avgrid-logo { background: rgba(44, 82, 130, 0.18); }
.site-logo:hover { color: var(--avgrid-primary-dark); }

.site-nav {
    display: flex;
    gap: 8px 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.site-nav a {
    color: var(--avgrid-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 8px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.site-nav a:hover {
    color: var(--avgrid-primary);
}

.site-nav .btn {
    min-height: 40px;
    padding: 8px 16px;
}

.site-nav .btn-primary {
    color: #fff !important;
    background: var(--avgrid-primary);
}
.site-nav .btn-primary:hover {
    color: #fff !important;
    background: var(--avgrid-primary-dark);
}

.site-nav .btn-secondary {
    color: var(--avgrid-text) !important;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
    border: 1px solid var(--avgrid-border);
    border-radius: var(--avgrid-radius-lg);
    background: var(--avgrid-bg);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--avgrid-primary-dark);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: var(--avgrid-font-size-sm);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--avgrid-radius-lg);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--avgrid-accent-yellow);
    color: var(--avgrid-primary-dark);
}

.btn-primary:hover {
    background: #d97706;
    color: #fff;
}

.btn-secondary {
    background: var(--avgrid-bg-alt);
    color: var(--avgrid-text);
    border: 1px solid var(--avgrid-border);
}

.btn-secondary:hover {
    background: var(--avgrid-border);
}

/* Hero — brand navy gradient (matches YouTube channel art) */
.hero {
    padding: 64px 0 80px;
    text-align: center;
    background: linear-gradient(150deg, var(--avgrid-primary-dark) 0%, var(--avgrid-primary) 70%, var(--avgrid-primary-light) 100%);
    position: relative;
    color: #fff;
}
.hero h1 { color: #fff; }
.hero .lead, .hero p { color: #dbeafe; }
.hero .hero-accent {
    width: 80px;
    height: 4px;
    margin: 0 auto 20px;
    background: var(--avgrid-accent-yellow);
    border-radius: 2px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* Image from "image fro web" folder (sibling of website/) */
    background: url("../image fro web/bee-balogun-KGyzk-EvTwQ-unsplash.jpg") center center / cover no-repeat;
    opacity: 0.24;
}

/* Washed hero backgrounds on inner pages */
.hero.hero-bg-wash { position: relative; overflow: hidden; }
.hero.hero-bg-wash > .container { position: relative; z-index: 1; }
.hero.hero-bg-wash::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.28;
    z-index: 0;
}
.hero.hero-bg-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(30,58,95,0.92) 0%, rgba(44,82,130,0.88) 70%, rgba(59,130,196,0.85) 100%);
    z-index: 0;
}
.hero-bg-wash-5::before { background-image: url("../image fro web/bee-balogun-KGyzk-EvTwQ-unsplash.jpg"); }
.hero-bg-wash-7::before { background-image: url("../image fro web/mario-serpas-tln7_t3jaIs-unsplash.jpg"); }
.hero-bg-wash-11::before { background-image: url("../image fro web/paul-einerhand-Dy6a8sLrVl4-unsplash.jpg"); }
.hero-bg-wash-13::before { background-image: url("../image fro web/ricardo-loaiza-bYLC_BxhHys-unsplash.jpg"); }
.hero-bg-wash-office::before { background-image: url("../image fro web/office.jpg"); }
.hero-bg-wash-team::before { background-image: url("../image fro web/Team.jpg"); }

/* Washed-out section backgrounds (image fro web) */
.section-bg-wash {
    position: relative;
    overflow: hidden;
}
.section-bg-wash > .container {
    position: relative;
    z-index: 1;
}
.section-bg-wash::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.32;
    z-index: 0;
}
.section-bg-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(249,250,251,0.82) 100%);
    z-index: 0;
}
.bg-wash-1::before { background-image: url("../image fro web/andreas-naslund-s_PPVjZ-JWs-unsplash.jpg"); }
.bg-wash-2::before { background-image: url("../image fro web/85mm-ca-XIjjnPEIsHo-unsplash.jpg"); }
.bg-wash-3::before { background-image: url("../image fro web/adrian-waldron-ccgw3OkngxU-unsplash.jpg"); }
.bg-wash-4::before { background-image: url("../image fro web/alexey-ruban-73o_FzZ5x-w-unsplash.jpg"); }
.bg-wash-5::before { background-image: url("../image fro web/bee-balogun-KGyzk-EvTwQ-unsplash.jpg"); }
.bg-wash-6::before { background-image: url("../image fro web/clement-felix-JFaw5Nge2e0-unsplash.jpg"); }
.bg-wash-7::before { background-image: url("../image fro web/mario-serpas-tln7_t3jaIs-unsplash.jpg"); }
.bg-wash-8::before { background-image: url("../image fro web/maxime-bhm-4Ixxu74o06E-unsplash.jpg"); }
.bg-wash-9::before { background-image: url("../image fro web/melyna-valle-dgeFqem7_zE-unsplash.jpg"); }
.bg-wash-10::before { background-image: url("../image fro web/michael-maasen-ZY7fuakuXJ0-unsplash.jpg"); }
.bg-wash-11::before { background-image: url("../image fro web/paul-einerhand-Dy6a8sLrVl4-unsplash.jpg"); }
.bg-wash-12::before { background-image: url("../image fro web/ricardo-loaiza-5iBl_IhurVQ-unsplash.jpg"); }
.bg-wash-13::before { background-image: url("../image fro web/ricardo-loaiza-bYLC_BxhHys-unsplash.jpg"); }
.bg-wash-14::before { background-image: url("../image fro web/ricardo-loaiza-IWUofMMX7QY-unsplash.jpg"); }
.bg-wash-15::before { background-image: url("../image fro web/ricardo-loaiza-tX6r__nCT7g-unsplash.jpg"); }
.bg-wash-16::before { background-image: url("../image fro web/saso-tusar-QtgGYlug6Cw-unsplash.jpg"); }

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

.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--avgrid-primary-dark);
    line-height: 1.15;
}

.hero .lead {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    color: var(--avgrid-text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero .cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero with normal blue background and white text (inner pages – same as About) */
.hero-blue {
    background: var(--avgrid-primary) !important;
}
.hero-blue h1,
.hero-blue .lead {
    color: #fff;
}
.hero-blue .eco-badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.hero-blue .page-screenshot-wrap figcaption,
.hero-blue .team-image-wrap figcaption {
    color: rgba(255,255,255,0.95);
}
.hero-blue .btn-primary {
    background: #fff;
    color: var(--avgrid-primary);
}
.hero-blue .btn-primary:hover {
    background: var(--avgrid-bg-alt);
    color: var(--avgrid-primary-dark);
}
.hero-blue .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.hero-blue .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Home page: lifestyle hero (image + blue overlay, white text) */
.hero-lifestyle {
    position: relative;
    overflow: hidden;
}
.hero-lifestyle > .container {
    position: relative;
    z-index: 1;
}
.hero-lifestyle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, var(--avgrid-primary-dark) 0%, var(--avgrid-primary) 70%, var(--avgrid-primary-light) 100%);
    z-index: 0;
}
/* Faint grid marks, echoing the channel banner */
.hero-lifestyle::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cg fill='%23ffffff'%3E%3Crect x='0' y='0' width='7' height='7' rx='1.4'/%3E%3Crect x='9' y='0' width='7' height='7' rx='1.4'/%3E%3Crect x='18' y='0' width='7' height='7' rx='1.4'/%3E%3Crect x='0' y='9' width='7' height='7' rx='1.4'/%3E%3Crect x='9' y='9' width='7' height='7' rx='1.4'/%3E%3Crect x='18' y='9' width='7' height='7' rx='1.4'/%3E%3Crect x='0' y='18' width='7' height='7' rx='1.4'/%3E%3Crect x='9' y='18' width='7' height='7' rx='1.4'/%3E%3Crect x='18' y='18' width='7' height='7' rx='1.4'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 25'%3E%3Cg fill='%23ffffff'%3E%3Crect x='0' y='0' width='7' height='7' rx='1.4'/%3E%3Crect x='9' y='0' width='7' height='7' rx='1.4'/%3E%3Crect x='18' y='0' width='7' height='7' rx='1.4'/%3E%3Crect x='0' y='9' width='7' height='7' rx='1.4'/%3E%3Crect x='9' y='9' width='7' height='7' rx='1.4'/%3E%3Crect x='18' y='9' width='7' height='7' rx='1.4'/%3E%3Crect x='0' y='18' width='7' height='7' rx='1.4'/%3E%3Crect x='9' y='18' width='7' height='7' rx='1.4'/%3E%3Crect x='18' y='18' width='7' height='7' rx='1.4'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: -60px -40px, calc(100% + 70px) calc(100% + 60px);
    background-size: 280px 280px, 340px 340px;
    opacity: 0.08;
    z-index: 0;
}
.hero-lifestyle h1,
.hero-lifestyle .lead {
    color: #fff;
}
.hero-lifestyle .eco-badge {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.hero-lifestyle .page-screenshot-wrap figcaption,
.hero-lifestyle .team-image-wrap figcaption {
    color: rgba(255,255,255,0.95);
}
.hero-lifestyle .btn-primary {
    background: var(--avgrid-accent-yellow);
    color: var(--avgrid-primary-dark);
}
.hero-lifestyle .btn-primary:hover {
    background: #d97706;
    color: #fff;
}
.hero-lifestyle .btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.hero-lifestyle .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Shared inner-page hero (same look as About) */
.page-hero {
    padding: clamp(40px, 8vw, 72px) 0 clamp(48px, 9vw, 80px);
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    margin: 0 0 16px;
    line-height: 1.15;
}
.page-hero .lead {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    max-width: 640px;
    margin: 0 auto 28px;
    padding: 0 4px;
}

/* Shared inner-page section */
.page-section { padding: clamp(40px, 7vw, 64px) 0; }
.page-section .container { max-width: 1120px; margin: 0 auto; }
.page-section--narrow .container { max-width: 720px; }
.page-section h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 16px; color: var(--avgrid-text); }
.page-section p { margin: 0 0 16px; color: var(--avgrid-text-secondary); line-height: 1.7; }
.page-section p:last-child { margin-bottom: 0; }

/* Sections */
.section {
    padding: 64px 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: center;
    color: var(--avgrid-primary-dark);
}

.section-subtitle {
    color: var(--avgrid-text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* 3 tiles across (e.g. index) */
.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .card-grid-3 { grid-template-columns: 1fr; }
}

.card {
    background: var(--avgrid-bg);
    border: 1px solid var(--avgrid-border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 82, 130, 0.14);
    border-color: var(--avgrid-primary);
}

.card h3 {
    font-size: 1.125rem;
    margin: 0 0 8px;
    color: var(--avgrid-primary-dark);
}

.card p {
    margin: 0;
    color: var(--avgrid-text-secondary);
    font-size: 0.9375rem;
}

/* Feature card icons */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1.5px solid rgba(44, 82, 130, 0.25);
    color: var(--avgrid-primary);
}
.card-icon svg {
    width: 24px;
    height: 24px;
}
.card:hover .card-icon {
    background: var(--avgrid-primary);
    color: #fff;
}

/* How it works steps */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
@media (max-width: 760px) {
    .steps-row { grid-template-columns: 1fr; }
}
.step {
    text-align: center;
    padding: 8px 12px;
}
.step-num {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--avgrid-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}
.step h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--avgrid-primary-dark);
}
.step p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--avgrid-text-secondary);
}

/* Trust band */
.trust-band {
    background: var(--avgrid-primary);
    padding: 36px 0;
}
.trust-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
@media (max-width: 700px) {
    .trust-items { grid-template-columns: 1fr; gap: 20px; }
}
.trust-figure {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.trust-label {
    margin-top: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Simple FAQ (pricing) */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}
.faq-item {
    background: var(--avgrid-bg);
    border: 1px solid var(--avgrid-border);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
}
.faq-item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--avgrid-primary-dark);
}
.faq-item p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--avgrid-text-secondary);
}

/* Sprinkled screenshots (shared across pages) */
.page-screenshot {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--avgrid-border);
    box-shadow: 0 4px 16px rgba(44, 82, 130, 0.1);
}
.page-screenshot-wrap { text-align: center; margin: 24px 0; }
.page-screenshot-wrap figcaption { margin-top: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--avgrid-primary-dark); }

/* Promo video */
.promo-video-section { background: var(--avgrid-bg); }
.promo-video-wrap {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--avgrid-radius-xl);
    overflow: hidden;
    box-shadow: var(--avgrid-shadow-md);
    border: 1px solid var(--avgrid-border);
    background: var(--avgrid-bg-alt);
    aspect-ratio: 16 / 9;
}
.promo-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f172a;
    vertical-align: middle;
}

.yt-poster {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #1e3a5f center / cover no-repeat;
    position: relative;
}

.yt-poster::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    background: #1e3a5f;
}

.yt-poster::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}

.screenshot-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    margin: 0 auto 40px;
    max-width: 960px;
}

/* Footer */
.site-footer {
    background: linear-gradient(150deg, var(--avgrid-primary-dark) 0%, var(--avgrid-primary) 100%);
    border-top: 3px solid var(--avgrid-accent-yellow);
    padding: 40px 0;
    margin-top: 64px;
    color: rgba(255, 255, 255, 0.85);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--avgrid-accent-yellow);
}

.footer-links {
    display: flex;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.latest-clips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.latest-clips figure {
    margin: 0;
}

.latest-clips iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    background: #0f172a;
}

.latest-clips figcaption {
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* —— Responsive / iOS —— */
@media (max-width: 1100px) {
    .site-nav {
        gap: 4px 10px;
    }
    .site-nav a:not(.btn) {
        font-size: 0.8125rem;
        padding: 6px 2px;
    }
}

@media (max-width: 959px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
        background: var(--avgrid-bg);
        border-bottom: 2px solid var(--avgrid-primary);
        box-shadow: var(--avgrid-shadow-md);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        max-height: min(80vh, 640px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 1rem;
        border-radius: var(--avgrid-radius-md);
    }

    .site-nav a:hover {
        background: var(--avgrid-bg-alt);
    }

    .site-nav .btn {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }

    .site-header .container {
        position: relative;
        flex-wrap: nowrap;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 48px 0 56px;
    }
    .hero h1,
    .page-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }
    .hero .lead,
    .page-hero .lead {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }
    .hero .cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 4px;
    }
    .hero .cta .btn {
        width: 100%;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .section-subtitle {
        margin-bottom: 28px;
        font-size: 0.95rem;
    }
    .card {
        padding: 20px;
    }
    .promo-video-wrap {
        border-radius: 10px;
    }
    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@supports (-webkit-touch-callout: none) {
    /* iOS Safari: avoid 100vh / address-bar jump issues on sticky header overlays */
    .site-nav.is-open {
        max-height: 75dvh;
    }
}
