/* Shared polish layer: responsive fixes, accessibility, and lighter motion. */
:root {
    --focus-ring: 0 0 0 3px rgba(255, 193, 7, 0.35);
}

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

body {
    min-width: 0;
}

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

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 2px solid #ffc107 !important;
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

.glass-panel,
.team-card,
.gallery-item,
.card,
.panel {
    border-radius: 8px !important;
}

.hero-bg {
    will-change: transform;
}

.btn {
    min-height: 44px;
}

.drawer-backdrop {
    touch-action: none;
}

body.drawer-open {
    overflow: hidden !important;
}

@media (max-width: 900px) {
    nav {
        padding: 0.85rem 4% !important;
        min-height: 68px;
    }

    nav.scrolled {
        padding: 0.7rem 4% !important;
    }

    .nav-logo,
    .drawer-logo {
        letter-spacing: 0.5px !important;
    }

    .nav-logo {
        font-size: clamp(1.25rem, 6vw, 1.6rem) !important;
    }

    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }

    #auth-btn {
        display: none !important;
    }

    .hero,
    .page-hero,
    .news-hero {
        min-height: 86svh !important;
        padding-inline: 1.1rem !important;
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
    }

    .hero h1,
    .page-hero h1,
    .news-hero h1 {
        font-size: clamp(2.25rem, 11vw, 4rem) !important;
        line-height: 1.05 !important;
        overflow-wrap: anywhere;
    }

    .hero p,
    .page-hero p,
    .news-hero p {
        letter-spacing: 2px !important;
        max-width: 34rem;
    }

    section {
        padding: 4.5rem 1.1rem !important;
    }

    .section-header {
        margin-bottom: 2.6rem !important;
    }

    .section-title {
        font-size: clamp(2rem, 9vw, 3rem) !important;
    }

    .grid-3,
    .footer-content,
    .countdown-container,
    .overview-grid {
        grid-template-columns: 1fr !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .mobile-nav-drawer {
        width: min(88vw, 360px) !important;
        max-width: 100vw !important;
    }

    .drawer-nav a,
    .drawer-actions .btn {
        min-height: 46px;
    }

    .insta-float {
        width: 52px !important;
        height: 52px !important;
        right: 16px !important;
        bottom: max(16px, env(safe-area-inset-bottom)) !important;
    }
}

@media (max-width: 520px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-logo {
        width: 112px !important;
        height: 112px !important;
        margin-bottom: 1.4rem !important;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero div[style*="display: flex"],
    .hero .hero-actions {
        width: 100%;
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

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