/**
 * LKBR Public Web Stylesheet (web.css)
 * Modern aviation UI design for Letiště Broumov (LKBR)
 * 100% locally bundled assets, zero external tracking
 */

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --dark-border: rgba(255, 255, 255, 0.1);
    --body-bg: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px rgba(15,23,42,0.07);
    --shadow-lg: 0 12px 30px rgba(15,23,42,0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--body-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────────────────────
   PUBLIC NAVIGATION (web-nav)
───────────────────────────────────────────────────────────── */
.web-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dark-border);
    transition: background 0.3s, box-shadow 0.3s;
}

.web-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.web-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.web-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.web-brand-text {
    display: flex;
    flex-direction: column;
}

.web-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.web-brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.web-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.web-nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.web-nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.web-nav-links a.active {
    color: #ffffff;
    background: rgba(2, 132, 199, 0.25);
    border: 1px solid rgba(2, 132, 199, 0.4);
    font-weight: 600;
}

.web-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0284c7;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
    transition: all 0.2s;
}

.web-nav-cta:hover {
    background: #0369a1 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.web-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

.web-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.web-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.web-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.web-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────────────────
   SUBPAGE HERO BANNER
───────────────────────────────────────────────────────────── */
.subpage-hero {
    position: relative;
    background-color: #0f172a;
    background-image: url('uploads/web/hero_bg.webp');
    background-size: cover;
    background-position: center;
    padding: 70px 24px 60px;
    color: #ffffff;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(3, 105, 161, 0.75) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.subpage-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.subpage-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.subpage-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.subpage-breadcrumbs a:hover {
    color: #38bdf8;
}

.subpage-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 14px;
}

.subpage-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.subpage-hero p {
    font-size: 1.12rem;
    font-weight: 400;
    color: #e2e8f0;
    max-width: 650px;
    margin: 0;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────
   FLEET & CONTENT SECTIONS
───────────────────────────────────────────────────────────── */
.web-section {
    padding: 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.fleet-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
    justify-content: center;
}

.fleet-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.fleet-filter-btn:hover {
    border-color: #cbd5e1;
    color: var(--text-main);
    background: #f1f5f9;
}

.fleet-filter-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.fleet-filter-count {
    background: rgba(0,0,0,0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.fleet-filter-btn.active .fleet-filter-count {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   FLEET CARDS
───────────────────────────────────────────────────────────── */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
}

.fleet-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.fleet-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.fleet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0284c7;
}

.fleet-card.kat-kluzak::before {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.fleet-card.kat-ull::before {
    background: linear-gradient(90deg, #059669, #10b981);
}

.fleet-card.kat-motorovy::before {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.fleet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.fleet-badge-kat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--primary-light);
    color: var(--primary-hover);
}

.fleet-card.kat-ull .fleet-badge-kat {
    background: #d1fae5;
    color: #065f46;
}

.fleet-card.kat-motorovy .fleet-badge-kat {
    background: #fef3c7;
    color: #92400e;
}

.fleet-badge-owner {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
}

.fleet-badge-owner.club {
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
}

.fleet-card-main {
    margin-bottom: 20px;
}

.fleet-immat {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fleet-typ {
    font-size: 1.05rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 10px;
}

.fleet-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.fleet-spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.fleet-spec-item i, .fleet-spec-item svg {
    color: var(--primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.fleet-spec-item strong {
    color: var(--text-main);
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   INSTAGRAM REELS SHOWCASE (Option A)
───────────────────────────────────────────────────────────── */
.ig-showcase-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    padding: 85px 24px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ig-section-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.ig-header {
    text-align: center;
    margin-bottom: 45px;
}

.ig-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(221, 42, 123, 0.3);
}

.ig-header h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--dark);
    margin: 0 0 12px;
}

.ig-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 45px;
    justify-content: center;
    align-items: start;
}

.ig-embed-card {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.ig-embed-card blockquote, .ig-embed-card iframe {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 280px !important;
    border-radius: var(--radius-md) !important;
    margin: 0 auto !important;
}

.reel-card {
    position: relative;
    border-radius: var(--radius-md);
    aspect-ratio: 9 / 14;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.reel-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}

.reel-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reel-card:hover .reel-thumb {
    transform: scale(1.08);
}

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(15,23,42,0.95) 100%
    );
    z-index: 1;
}

.reel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
    transition: transform 0.25s, background 0.25s;
}

.reel-card:hover .reel-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(221, 42, 123, 0.9);
    border-color: #ffffff;
}

.reel-play-btn svg {
    margin-left: 3px;
    width: 22px;
    height: 22px;
}

.reel-badge-top {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.reel-info {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.reel-author {
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reel-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    color: #ffffff;
}

.reel-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ig-cta-wrap {
    text-align: center;
}

.ig-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(221, 42, 123, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.ig-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(221, 42, 123, 0.5);
}

/* ─────────────────────────────────────────────────────────────
   PUBLIC FOOTER (web-footer)
───────────────────────────────────────────────────────────── */
.web-footer {
    background-color: var(--dark);
    color: #ffffff;
    padding: 70px 24px 30px;
    border-top: 1px solid var(--dark-border);
}

.web-footer-grid {
    max-width: 1240px;
    margin: 0 auto 50px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.web-footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #38bdf8;
    margin: 0 0 20px;
}

.web-footer-col p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

.web-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.web-footer-col ul li {
    margin-bottom: 10px;
}

.web-footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.web-footer-col ul li a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.web-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.web-footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: #38bdf8;
    margin-top: 3px;
    flex-shrink: 0;
}

.web-footer-contact-item a {
    color: #cbd5e1;
    text-decoration: none;
}

.web-footer-contact-item a:hover {
    color: #38bdf8;
}

.web-social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.web-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--dark-border);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}

.web-social-btn:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #0284c7;
}

.web-social-btn.ig:hover {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    border-color: transparent;
}

.web-footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 14px;
}

.web-footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
}

.web-footer-bottom a:hover {
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN (Mobile & Tablets)
───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .web-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .web-hamburger {
        display: flex;
    }

    .web-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        flex-direction: column;
        padding: 16px 20px 24px;
        border-bottom: 1px solid var(--dark-border);
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        align-items: stretch;
        gap: 4px;
    }

    .web-nav-links.open {
        display: flex;
    }

    .web-nav-links a {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .web-nav-cta {
        margin-top: 10px;
        text-align: center;
        justify-content: center;
    }

    .web-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .web-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .subpage-hero {
        padding: 50px 20px 45px;
    }
}
