/* ============================================================
   GALAXY MULTI GYM — RESPONSIVE.CSS
   Full mobile-first responsive stylesheet
   Breakpoints: 1200px | 992px | 768px | 480px | 360px
   ============================================================ */


/* ========================
   BASE RESET & BOX MODEL
   ======================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

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


/* ========================
   LARGE DESKTOP (max 1200px)
   ======================== */
@media (max-width: 1200px) {

    .container {
        max-width: 100%;
        padding: 0 32px;
    }

    .hero h1 {
        font-size: 72px;
    }

    .about-grid {
        gap: 50px;
    }

    .pricing-grid {
        gap: 20px;
    }
}


/* ========================
   TABLET LANDSCAPE (max 992px)
   ======================== */
@media (max-width: 992px) {

    /* --- Container --- */
    .container {
        padding: 0 24px;
    }

    /* --- Navbar --- */
    .navbar .container {
        flex-wrap: wrap;
    }

    #nav {
        display: none;
        width: 100%;
        background: rgba(0, 0, 0, 0.96);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 998;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: opacity 0.3s ease;
    }

    #nav.open {
        display: flex;
    }

    #nav ul {
        flex-direction: column;
        gap: 28px;
        text-align: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #nav ul li a {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .hamburger {
        display: flex;
    }

    .join-btn {
        display: none;
    }

    /* --- Hero --- */
    .hero h1 {
        font-size: 56px;
        letter-spacing: 2px;
    }

    .hero p {
        font-size: 15px;
    }

    /* --- Stats Bar --- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* --- About --- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-img-wrap {
        max-width: 520px;
        margin: 0 auto;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Pricing --- */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }

    /* --- Trainer --- */
    .trainer-card {
        flex-direction: column;
    }

    .trainer-img-wrap {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* --- Blog --- */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Calculators --- */
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Contact --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* --- Footer --- */
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }

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


/* ========================
   TABLET PORTRAIT (max 768px)
   ======================== */
@media (max-width: 768px) {

    /* --- Section Spacing --- */
    section,
    .section {
        padding: 64px 16px;
    }

    /* --- Section Typography --- */
    .section-label {
        font-size: 11px;
        letter-spacing: 2.5px;
    }

    .section-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .section-sub {
        font-size: 14px;
    }

    /* --- Navbar --- */
    .navbar {
        padding: 14px 16px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 1px;
    }

    /* --- Hero --- */
    .hero {
        padding: 20px 16px;
        text-align: center;
    }

    .hero .tag {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: 1px;
        line-height: 1.1;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 220px;
        text-align: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    .hero-scroll-hint {
        display: none;
    }

    /* --- Stats Bar --- */
    .stats-bar {
        padding: 40px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .stat-item h3 {
        font-size: 34px;
    }

    .stat-item p {
        font-size: 12px;
        letter-spacing: 1px;
    }

    /* --- About --- */
    .about-img {
        height: 300px;
        object-fit: cover;
        border-radius: 16px;
    }

    .about-badge {
        bottom: -16px;
        right: 16px;
        padding: 14px 20px;
    }

    .about-badge strong {
        font-size: 28px;
    }

    .about-text-col {
        margin-top: 32px;
    }

    .about-features li {
        font-size: 14px;
    }

    /* --- Mission Strip --- */
    .mission-strip {
        padding: 24px 16px;
        text-align: center;
    }

    .mission-strip p {
        font-size: 14px;
        line-height: 1.8;
    }

    /* --- Services --- */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px 20px;
    }

    .service-icon {
        font-size: 32px;
    }

    .service-card h3 {
        font-size: 18px;
        margin-top: 12px;
    }

    .service-card p {
        font-size: 14px;
    }

    /* --- Pricing --- */
    .pricing-grid {
        max-width: 100%;
    }

    .pricing-card {
        padding: 28px 22px;
    }

    .pricing-card h3 {
        font-size: 20px;
    }

    .price {
        font-size: 38px;
    }

    .pricing-card ul li {
        font-size: 14px;
    }

    /* --- Trainer --- */
    .trainer-card {
        padding: 24px;
        gap: 28px;
        border-radius: 20px;
    }

    .trainer-img-wrap img {
        height: 280px;
        object-fit: cover;
        border-radius: 14px;
    }

    .trainer-tag {
        font-size: 11px;
    }

    .trainer-info h2 {
        font-size: 28px;
    }

    .trainer-info p {
        font-size: 14px;
    }

    .trainer-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .t-stat h4 {
        font-size: 22px;
    }

    .trainer-specializations {
        flex-wrap: wrap;
        gap: 8px;
    }

    .trainer-specializations span {
        font-size: 13px;
        padding: 6px 14px;
    }

    /* --- Blog --- */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-img {
        height: 200px;
        object-fit: cover;
    }

    .blog-card h3 {
        font-size: 17px;
    }

    .blog-content p {
        font-size: 14px;
    }

    /* --- Calculators --- */
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calculator-card {
        padding: 24px 20px;
    }

    .calculator-card h3 {
        font-size: 18px;
    }

    .calculator-card input,
    .calculator-card select {
        font-size: 14px;
        padding: 12px 14px;
        width: 100%;
    }

    .calculator-card .btn-primary {
        width: 100%;
        padding: 13px;
        font-size: 14px;
    }

    .result {
        font-size: 14px;
        padding: 12px;
    }

    /* --- Contact --- */
    .contact {
        padding: 64px 16px;
    }

    .contact-info {
        gap: 20px;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-item h4 {
        font-size: 15px;
    }

    .contact-item p {
        font-size: 14px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 16px;
        flex-shrink: 0;
    }

    /* --- Contact Form --- */
    .contact-form {
        padding: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        width: 100%;
        font-size: 14px;
        padding: 13px 16px;
    }

    .contact-form .btn {
        width: 100%;
        padding: 15px;
        font-size: 15px;
    }

    /* --- Footer --- */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

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

    .footer-brand p {
        font-size: 14px;
        margin: 0 auto;
        max-width: 320px;
    }

    .footer-links ul {
        padding: 0;
    }

    .footer-links ul li {
        margin-bottom: 8px;
    }

    .footer-contact p {
        font-size: 14px;
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 12px;
        text-align: center;
    }

    /* --- Back to Top Button --- */
    .back-top {
        width: 42px;
        height: 42px;
        font-size: 14px;
        bottom: 20px;
        right: 16px;
    }

    /* --- Blog Pages (beginner-mistakes, etc.) --- */
    .blog-page {
        padding: 100px 16px 60px;
    }

    .blog-container {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .blog-hero-img {
        height: 220px;
        border-radius: 14px;
    }

    .blog-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .blog-content h2 {
        font-size: 18px;
        margin-top: 28px;
    }

    .back-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        margin-top: 32px;
    }

    /* --- Workout Chart (blog page) --- */
    .workout-chart {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .day-card {
        padding: 18px;
    }

    .day-card h3 {
        font-size: 18px;
    }

    .day-card li {
        font-size: 14px;
    }
}


/* ========================
   SMALL MOBILE (max 480px)
   ======================== */
@media (max-width: 480px) {

    /* --- Hero --- */
    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 13px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 90%;
    }

    /* --- Stats Bar --- */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 28px;
    }

    /* --- Section Title --- */
    .section-title {
        font-size: 24px;
    }

    /* --- Trainer --- */
    .trainer-info h2 {
        font-size: 24px;
    }

    .trainer-stats {
        justify-content: space-between;
    }

    /* --- Pricing featured badge --- */
    .badge-plan {
        font-size: 10px;
        padding: 5px 12px;
    }

    /* --- Calculator card spacing --- */
    .calculator-card {
        padding: 20px 16px;
    }

    /* --- Blog hero img height --- */
    .blog-hero-img {
        height: 180px;
    }

    /* --- Contact icon smaller --- */
    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    /* --- Footer logo size --- */
    .footer-inner .logo {
        font-size: 16px;
    }
}


/* ========================
   VERY SMALL SCREENS (max 360px)
   ======================== */
@media (max-width: 360px) {

    .container {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: 0;
    }

    .logo {
        font-size: 15px;
    }

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

    .section-title {
        font-size: 22px;
    }

    .pricing-card {
        padding: 22px 16px;
    }

    .price {
        font-size: 32px;
    }

    .blog-hero-img {
        height: 160px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 13px;
    }
}


/* ========================
   REDUCED MOTION PREFERENCE
   ======================== */
@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;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
