/* © 2025 ViraUp (viraup.com) - All rights reserved. */
/* static/public/css/home.css */

/* --- Root Tokens (theme variables) --- */
:root {
    --primary: #8B5CF6;
    --primary-strong: #6D28D9;
    --bg: #070A14;
    --surface: #11172A;
    --surface-strong: rgba(17, 23, 42, 0.92);
    --text: #EDEDF3;
    --muted: #9BA0AE;
    --accent: #0A5CFF;
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --danger: #E74C3C;
    --warning: #F1C40F;
    --success: #2ECC71;
    --info: #3498DB;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    --max-content-width: 1280px;
    --section-gap: clamp(3rem, 6vw, 7rem);
    --gutter: clamp(1.25rem, 4vw, 3.75rem);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
}

@media (min-width: 993px) {
    :root { --max-content-width: 1440px; }
}

@media (min-width: 1201px) {
    :root { --max-content-width: 1560px; }
}

@media (min-width: 1601px) {
    :root {
        --max-content-width: 1680px;
        --gutter: clamp(2rem, 3vw, 4rem);
    }
}

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: clamp(0.95rem, 0.9rem + 0.22vw, 1.05rem);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.3rem, 1.8rem + 1.6vw, 3.6rem);
}

h2 {
    font-size: clamp(1.8rem, 1.5rem + 0.9vw, 2.6rem);
}

p {
    color: var(--muted);
    max-width: min(70ch, 100%);
    margin-inline: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* --- Layout Shell --- */
.page-shell {
    width: min(calc(100% - clamp(2rem, 6vw, 8rem)), var(--max-content-width));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

section {
    width: 100%;
    padding-block: var(--section-gap);
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    justify-items: center;
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.75rem, 0.65rem + 0.3vw, 0.95rem) clamp(1.5rem, 1.2rem + 0.6vw, 2.4rem);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    font-weight: 700;
    font-size: clamp(0.95rem, 0.9rem + 0.1vw, 1.05rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 18px 32px rgba(139, 92, 246, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-strong);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(139, 92, 246, 0.32);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    color: var(--bg);
    background: rgba(255, 255, 255, 0.14);
}

/* --- Hero --- */
#hero {
    position: relative;
    width: 100%;
    min-height: clamp(60vh, 70vh, 85vh);
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
}

#hero .hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    max-width: min(100%, 48rem);
}

#hero h1 {
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

#hero .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
}

#hero .server-ip {
    color: var(--muted);
    font-size: clamp(0.85rem, 0.8rem + 0.12vw, 0.95rem);
}

#hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#hero .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(0.75);
}

/* --- About --- */
#about {
    text-align: center;
}

#about .stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(1.25rem, 3vw, 2.75rem);
    margin-block: clamp(2rem, 5vw, 4rem);
}

#about .stat-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: clamp(1.25rem, 2vw, 1.75rem);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

#about .stat-item .value {
    font-size: clamp(1.8rem, 1.6rem + 0.9vw, 2.6rem);
    color: var(--primary);
    display: block;
}

#about .stat-item .label {
    color: var(--muted);
    font-size: clamp(0.85rem, 0.8rem + 0.15vw, 0.95rem);
}

#about .badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

#about .badges span {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

/* --- Features --- */
#features {
    text-align: right;
}

#features .features-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.feature-item {
    background: var(--surface);
    padding: clamp(1.5rem, 2vw, 2rem);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover,
.feature-item:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

/* --- Team --- */
#team .team-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.team-member {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.team-member img {
    width: clamp(7.5rem, 6rem + 2vw, 9.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35);
}

.team-member p {
    margin: 0;
    color: var(--muted);
}

/* --- How to Join --- */
#how-to-join {
    text-align: right;
}

#how-to-join .inline-cta {
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

#how-to-join .steps {
    list-style: none;
    counter-reset: join-counter;
    display: grid;
    gap: 1.25rem;
    margin-top: clamp(1.5rem, 3vw, 2rem);
}

#how-to-join .steps li {
    position: relative;
    padding-right: 3rem;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
}

#how-to-join .steps li::before {
    counter-increment: join-counter;
    content: counter(join-counter);
    position: absolute;
    right: 0;
    top: 0.1rem;
    width: clamp(2.1rem, 1.8rem + 0.4vw, 2.5rem);
    aspect-ratio: 1;
    border-radius: 999px;
    background: var(--primary);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-weight: 700;
}

/* --- Gallery --- */
#gallery {
    text-align: center;
}

#gallery .gallery-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

#gallery .gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform 0.35s ease;
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.3);
}

#gallery .gallery-grid img:hover {
    transform: scale(1.03);
}

/* --- Playtime Leaderboard --- */
#playtime-leaderboard {
    text-align: right;
}

.leaderboard-shell {
    width: 100%;
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.leaderboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: right;
}

.leaderboard-eyebrow {
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
}

.leaderboard-header p {
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.leaderboard-meta {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.leaderboard-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.podium-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 2.2vw, 2.25rem);
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.18), rgba(0, 224, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 0.65rem;
    justify-items: start;
    min-height: 160px;
}

.podium-card--1 {
    background: linear-gradient(160deg, rgba(255, 215, 0, 0.22), rgba(139, 92, 246, 0.08));
}

.podium-card--2 {
    background: linear-gradient(160deg, rgba(192, 192, 192, 0.2), rgba(0, 224, 255, 0.08));
}

.podium-card--3 {
    background: linear-gradient(160deg, rgba(205, 127, 50, 0.22), rgba(139, 92, 246, 0.08));
}

.podium-rank {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.podium-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.podium-time {
    color: var(--muted);
}

.podium-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 70%;
    background: radial-gradient(circle at 20% 70%, rgba(139, 92, 246, 0.18), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.leaderboard-list {
    display: grid;
    gap: 0.65rem;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.04);
}

.leaderboard-row .leaderboard-rank {
    font-weight: 700;
    color: var(--accent);
}

.leaderboard-row .leaderboard-name {
    font-weight: 600;
    color: var(--text);
}

.leaderboard-row .leaderboard-time {
    color: var(--muted);
    font-size: 0.95rem;
}

/* --- FAQ --- */
#faq {
    text-align: right;
}

#faq .accordion {
    width: min(100%, 720px);
    display: grid;
    gap: 0.75rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item.active {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: clamp(1.1rem, 1rem + 0.3vw, 1.4rem);
    font-family: inherit;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header::after {
    content: '+';
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--muted);
}

/* --- Rules Page --- */
.rules-section {
    padding-block: var(--section-gap);
    display: flex;
    justify-content: center;
}

.rules-section .card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    width: 100%;
    max-width: min(960px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.rules-section .card-header,
.rules-section .card-body {
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    text-align: right;
}

.rules-section .card-title {
    margin: 0;
    font-size: clamp(2rem, 1.8rem + 0.6vw, 2.6rem);
}

.rules-section .card-body {
    line-height: 2.05;
    color: var(--text);
}

.rules-section .card-body p,
.rules-section .card-body li {
    color: var(--muted);
    margin-bottom: 1rem;
}

.rules-section .card-body ul,
.rules-section .card-body ol {
    padding-right: 1.5rem;
}

.rules-section .card-body a {
    color: var(--accent);
    word-break: break-word;
}

.rules-section .card-body a:hover,
.rules-section .card-body a:focus-visible {
    color: var(--primary);
}

/* --- Live Now --- */
.live-now {
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(0, 224, 255, 0.08));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.live-now__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.live-now__header h2 {
    margin: 0.25rem 0 0;
}

.live-now__header .muted {
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.live-card {
    background: var(--surface-strong);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.live-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.live-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12), rgba(0, 0, 0, 0.5));
}

.live-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-card__thumb--fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(0, 224, 255, 0.12));
}

.live-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-badge--twitch {
    color: #a970ff;
}

.live-badge--kick {
    color: #53fc18;
}

.live-pill {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(120deg, #ff4d67, #8B5CF6);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    box-shadow: 0 8px 20px rgba(255, 77, 103, 0.35);
}

.live-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.live-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.live-card__name {
    font-weight: 700;
    color: var(--text);
}

.live-card__viewers {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 224, 255, 0.08);
    border: 1px solid rgba(0, 224, 255, 0.2);
    color: var(--text);
    font-size: 0.85rem;
}

.live-card__title {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.live-empty {
    margin-top: 0.5rem;
    padding: 1.2rem 1.4rem;
    border: 1px dashed var(--border-soft);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.25);
    color: var(--muted);
    text-align: center;
}

/* --- Footer --- */
#main-footer {
    padding-block: clamp(2.5rem, 4vw, 3.5rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: clamp(3rem, 5vw, 4.5rem);
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    color: var(--muted);
}

.footer-links a {
    color: inherit;
}

.footer-contact,
.footer-copyright {
    color: var(--muted);
    font-size: clamp(0.85rem, 0.8rem + 0.12vw, 0.95rem);
}

.footer-copyright .credit {
    margin-top: 0.35rem;
}

/* --- Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1280px) {
    .user-menu__name {
        display: none;
    }
}

@media (max-width: 992px) {
    .header-inner {
        gap: clamp(0.65rem, 2vw, 1.4rem);
    }
    .header-actions {
        gap: 0.6rem;
    }
    .header-block--center {
        flex: 0 0 auto;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-mobile-controls {
        display: flex;
    }
    .site-nav {
        position: fixed;
        inset-block: 0;
        inset-inline-end: 0;
        width: min(100%, 22rem);
        padding: clamp(2rem, 6vw, 3rem);
        background: rgba(18, 18, 30, 0.95);
        backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -18px 0 40px rgba(0, 0, 0, 0.4);
        z-index: 1001;
    }
    .site-nav.is-open {
        transform: translateX(0);
    }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem;
        width: 100%;
    }
    .nav-list a {
        width: 100%;
        padding-block: 0.6rem;
        text-align: right;
    }
    .header-cta--inline {
        display: flex;
        margin-top: auto;
    }
    .header-cta--inline .btn {
        width: 100%;
    }
    .header-cta__btn {
        height: 44px;
        padding-inline: clamp(1rem, 3vw, 1.5rem);
        font-size: 0.95rem;
    }
    .header-search__form {
        width: min(90vw, 22rem);
    }
    .page-shell {
        width: min(calc(100% - 2rem), var(--max-content-width));
        padding-inline: clamp(1rem, 6vw, 2rem);
    }
    #hero {
        border-radius: var(--radius-md);
    }
    #about .stat-item,
    .feature-item,
    .team-member {
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding-block: clamp(2.5rem, 6vw, 3.5rem);
    }
    #how-to-join .steps li {
        padding-right: 2.5rem;
    }
    #how-to-join .steps li::before {
        top: 0.15rem;
    }
    .live-now {
        padding: clamp(1.25rem, 5vw, 1.75rem);
    }
    .live-now__header {
        flex-direction: column;
        align-items: flex-start;
    }
    .live-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .leaderboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .leaderboard-meta {
        width: 100%;
        text-align: center;
    }
    .leaderboard-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .leaderboard-row .leaderboard-time {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }
    .header-inner {
        gap: 0.5rem;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .header-cta__btn {
        padding-inline: clamp(0.85rem, 6vw, 1.1rem);
        font-size: 0.9rem;
    }
    .nav-toggle {
        width: 44px;
        height: 44px;
        gap: 5px;
    }
    .nav-toggle-bar {
        width: 20px;
    }
    .site-nav {
        width: min(100%, 18rem);
    }
    .header-search__form {
        width: min(92vw, 21rem);
    }
    .page-shell {
        width: 100%;
        padding-inline: clamp(1rem, 5vw, 1.5rem);
    }
    #hero {
        padding: clamp(1.75rem, 6vw, 2.5rem);
        min-height: 70vh;
    }
    #hero .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    #about .stats {
        grid-template-columns: 1fr 1fr;
    }
    #gallery .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    #faq .accordion {
        width: 100%;
    }
    .live-grid {
        grid-template-columns: 1fr;
    }
    .live-card__thumb {
        aspect-ratio: 16 / 10;
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    #hero {
        min-height: 72vh;
    }
}

@media (min-width: 1201px) and (max-width: 1600px) {
    #hero {
        min-height: 75vh;
    }
}

@media (min-width: 1601px) {
    section {
        padding-block: clamp(3.5rem, 4vw, 5rem);
    }
    #hero {
        min-height: 78vh;
    }
}
