/* =========================================================
   REGENESIS — RESPONSIVE DESIGN
   css/responsive.css
   ========================================================= */


/* =========================================================
   LARGE TABLETS / SMALL DESKTOPS
   ========================================================= */

@media (max-width: 1200px) {

    :root {
        --container: 1100px;
    }

    .header-container {
        padding: 0 24px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 0.88rem;
    }

    .hero-content {
        max-width: 900px;
    }

    .hero-title {
        font-size: clamp(3.2rem, 7vw, 5.5rem);
    }

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

    .community-grid,
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 992px) {

    :root {
        --header-height: 70px;
    }

    /* ---------- HEADER ---------- */

    .header-container {
        padding: 0 20px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions {
        gap: 10px;
    }

    .header-login {
        padding: 9px 16px;
        font-size: 0.85rem;
    }

    /* ---------- HERO ---------- */

    .hero {
        min-height: 720px;
        padding: 120px 24px 80px;
    }

    .hero-content {
        max-width: 750px;
    }

    .hero-title {
        font-size: clamp(3rem, 9vw, 5rem);
        line-height: 0.98;
    }

    .hero-description {
        max-width: 650px;
        font-size: 1rem;
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-stats {
        gap: 35px;
    }

    /* ---------- FEATURES ---------- */

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    /* ---------- COMMUNITY ---------- */

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

    /* ---------- EVENTS ---------- */

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

    /* ---------- FOOTER ---------- */

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 35px;
    }
}


/* =========================================================
   MOBILE — 768px
   ========================================================= */

@media (max-width: 768px) {

    :root {
        --header-height: 64px;
    }

    body {
        font-size: 15px;
    }

    /* ---------- GLOBAL ---------- */

    .section-container {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    section {
        overflow: hidden;
    }

    /* ---------- HEADER ---------- */

    .header {
        height: var(--header-height);
    }

    .header-container {
        padding: 0 16px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-search {
        display: none;
    }

    .header-notification {
        width: 38px;
        height: 38px;
    }

    .header-login {
        padding: 8px 13px;
        border-radius: 9px;
        font-size: 0.78rem;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }

    /* ---------- MOBILE NAV ---------- */

    .mobile-nav {
        width: min(310px, 85vw);
    }

    .mobile-nav-header {
        padding: 18px;
    }

    .mobile-nav-links a {
        padding: 13px 18px;
        font-size: 0.95rem;
    }

    /* ---------- HERO ---------- */

    .hero {
        min-height: auto;
        padding: 115px 18px 80px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 7px 12px;
    }

    .hero-title {
        font-size: clamp(2.7rem, 12vw, 4.5rem);
        letter-spacing: -0.04em;
        line-height: 0.98;
    }

    .hero-description {
        font-size: 0.94rem;
        line-height: 1.65;
        margin: 20px auto 28px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

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

    .hero-stats {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        margin-top: 42px;
    }

    .stat-number {
        font-size: 1.45rem;
    }

    .stat-label {
        font-size: 0.68rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* ---------- SECTION ---------- */

    .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .section-heading {
        font-size: 2rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    /* ---------- FEATURES ---------- */

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 22px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.85rem;
    }

    /* ---------- COMMUNITY ---------- */

    .community-grid {
        grid-template-columns: 1fr;
    }

    .community-card {
        min-width: 0;
    }

    /* ---------- EVENTS ---------- */

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        min-width: 0;
    }

    /* ---------- CTA ---------- */

    .cta {
        padding: 70px 18px;
    }

    .cta-title {
        font-size: 2.1rem;
    }

    .cta-description {
        font-size: 0.9rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* ---------- FOOTER ---------- */

    .footer {
        padding-top: 55px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-social {
        justify-content: center;
    }
}


/* =========================================================
   SMALL PHONES — 520px
   ========================================================= */

@media (max-width: 520px) {

    /* ---------- HEADER ---------- */

    .header-container {
        padding: 0 12px;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
    }

    .brand-name {
        font-size: 0.92rem;
    }

    .header-notification {
        display: none;
    }

    .header-login {
        padding: 7px 11px;
        font-size: 0.72rem;
    }

    .mobile-menu-btn {
        width: 37px;
        height: 37px;
    }

    /* ---------- HERO ---------- */

    .hero {
        padding: 105px 15px 65px;
    }

    .hero-title {
        font-size: clamp(2.35rem, 14vw, 3.5rem);
    }

    .hero-description {
        font-size: 0.87rem;
    }

    .hero-stats {
        gap: 5px;
    }

    .stat {
        min-width: 0;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.04em;
    }

    /* ---------- SECTIONS ---------- */

    .section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .section-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .section-heading {
        font-size: 1.7rem;
    }

    .section-label {
        font-size: 0.68rem;
    }

    /* ---------- FEATURE CARD ---------- */

    .feature-card {
        padding: 19px;
        border-radius: 14px;
    }

    .feature-number {
        font-size: 0.7rem;
    }

    /* ---------- SEARCH ---------- */

    .search-overlay {
        padding: 15px;
    }

    .search-container {
        width: 100%;
    }

    .search-input {
        font-size: 0.95rem;
    }

    /* ---------- CTA ---------- */

    .cta {
        padding: 60px 15px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 0.85rem;
    }

    /* ---------- FOOTER ---------- */

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}


/* =========================================================
   VERY SMALL PHONES — 380px
   ========================================================= */

@media (max-width: 380px) {

    .brand-name {
        font-size: 0.82rem;
    }

    .header-login {
        display: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-badge {
        font-size: 0.62rem;
    }

    .hero-description {
        font-size: 0.82rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .stat {
        min-width: 70px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 17px;
    }
}


/* =========================================================
   LANDSCAPE PHONES
   ========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        margin: 12px auto 20px;
    }

    .hero-stats {
        margin-top: 25px;
    }

    .scroll-indicator {
        display: none;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .feature-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }

    .feature-card::before {
        display: none;
    }

    /*
       Prevent hover animations from getting stuck
       on mobile browsers.
    */

    .feature-card:active {
        transform: scale(0.985);
    }

    .btn:active {
        transform: scale(0.97);
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}