/* ============================================
   PEAKWAY FITNESS - RESPONSIVE STYLESHEET
   Mobile-First Responsive Design
   ============================================ */

/* ============================================
   TABLET: 768px - 1199px
   ============================================ */

@media (max-width: 1199px) {
    .container {
        padding: 0 30px;
    }

    .section {
        padding: 80px 0;
    }

    /* Guide Section */
    .guide-content {
        gap: 40px;
    }

    /* Offer Section */
    .offer-grid {
        gap: 40px;
    }

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

@media (max-width: 1024px) {
    /* Offer Section - Stack vertically */
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        position: relative;
        top: 0;
    }
}

/* ============================================
   MOBILE & TABLET: 320px - 1023px
   ============================================ */

@media (max-width: 1023px) {
    /* Navigation */
    .nav-container {
        padding: 0 20px;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-phone {
        display: none;
    }

    .btn-nav {
        display: none;
    }

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

    /* Hero */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
        background-attachment: scroll;
    }

    .hero-cta-stack {
        width: 100%;
    }

    .btn-large {
        width: 100%;
        min-width: 0;
    }

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

    /* Problem Section */
    .pain-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Guide Section */
    .guide-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .guide-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Plan Section */
    .plan-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================
   TABLET SPECIFIC: 768px - 1023px
   ============================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    /* Pain Grid - 2 columns on tablet */
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Scorecard Stats */
    .scorecard-stats {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ============================================
   MOBILE: 320px - 767px
   ============================================ */

@media (max-width: 767px) {
    /* Container */
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    /* Typography */
    h1, .hero-headline {
        font-size: 36px;
        line-height: 1.1;
    }

    h2, .section-headline {
        font-size: 32px;
        margin-bottom: 32px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
    }

    /* Navigation */
    .nav-logo {
        font-size: 20px;
    }

    .spots-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    /* Hero */
    .hero-badge {
        font-size: 10px;
        padding: 6px 16px;
    }

    .hero-subheadline {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .hero-cta-stack {
        gap: 12px;
        margin-bottom: 48px;
    }

    .trust-bar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trust-item {
        flex-direction: row;
        justify-content: center;
    }

    .trust-text {
        font-size: 13px;
    }

    /* Problem Section */
    .pain-card {
        padding: 24px 20px;
    }

    .pain-card p {
        font-size: 16px;
    }

    .callout-box {
        padding: 24px 20px;
    }

    .callout-box h3 {
        font-size: 24px;
    }

    .callout-box p {
        font-size: 16px;
    }

    /* Guide Section */
    .guide-image {
        max-width: 100%;
    }

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

    /* Plan Section */
    .step-number {
        font-size: 60px;
    }

    .plan-step {
        padding: 32px 24px;
    }

    .plan-step h3 {
        font-size: 24px;
    }

    .plan-step p {
        font-size: 16px;
    }

    /* Offer Section */
    .stack-item {
        flex-direction: column;
        padding: 20px;
    }

    .stack-check {
        font-size: 20px;
    }

    .stack-content h4 {
        font-size: 18px;
    }

    .stack-content p {
        font-size: 15px;
    }

    .stack-total {
        font-size: 24px;
        padding: 20px;
    }

    /* Price Card */
    .price-card {
        padding: 32px 24px;
    }

    .price-amount {
        font-size: 72px;
    }

    .price-currency {
        font-size: 32px;
    }

    .price-subtext {
        font-size: 14px;
    }

    .price-benefits p {
        font-size: 13px;
    }

    .guarantee-box {
        padding: 20px;
    }

    .guarantee-box h4 {
        font-size: 14px;
    }

    .guarantee-box p {
        font-size: 13px;
    }

    /* Scorecard Section */
    .scorecard-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-box {
        padding: 24px 20px;
    }

    .stat-icon {
        font-size: 40px;
    }

    .stat-label {
        font-size: 16px;
    }

    .scorecard-subtitle {
        font-size: 18px;
    }

    .scorecard-cta-text {
        font-size: 16px;
    }

    .scorecard-fine-print {
        font-size: 13px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 15px;
    }

    .testimonial-quote::before {
        font-size: 36px;
    }

    .testimonial-author {
        font-size: 13px;
    }

    /* Stats Bar */
    .stats-bar {
        padding: 32px 20px;
    }

    .stats-bar h3 {
        font-size: 20px;
        margin-bottom: 32px;
    }

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

    .stat-icon-large {
        font-size: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* FAQ Section */
    .faq-question {
        font-size: 18px;
        padding: 20px 0;
    }

    .faq-toggle {
        font-size: 28px;
        margin-left: 12px;
    }

    .faq-answer p {
        font-size: 16px;
    }

    /* Urgency Section */
    .urgency-text {
        font-size: 18px;
    }

    .urgency-ctas {
        margin-top: 32px;
    }

    /* Callback Section */
    .callback-text {
        font-size: 18px;
    }

    .callback-form-notice {
        padding: 32px 20px;
    }

    .callback-form-notice p {
        font-size: 16px;
    }

    .callback-phone {
        font-size: 28px;
    }

    .callback-reassurance {
        font-size: 13px !important;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 32px;
        margin-bottom: 32px;
    }

    .footer-column h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-column p {
        font-size: 13px;
    }

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

    .footer-bottom p {
        font-size: 11px;
    }

    /* Buttons */
    .btn {
        padding: 16px 28px;
        font-size: 14px;
    }

    .btn-large {
        padding: 18px 32px;
        font-size: 16px;
    }

    .btn-text-link {
        font-size: 14px;
    }

    /* Mobile Sticky Bar - Show on mobile */
    .mobile-sticky-bar {
        display: block;
    }
}

/* ============================================
   SMALL MOBILE: 320px - 479px
   ============================================ */

@media (max-width: 479px) {
    /* Extra adjustments for very small screens */
    .hero-headline {
        font-size: 32px;
    }

    .section-headline {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 9px;
        padding: 6px 12px;
    }

    .trust-text {
        font-size: 12px;
    }

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

    .price-amount {
        font-size: 64px;
    }

    .btn-large {
        padding: 16px 24px;
        font-size: 15px;
    }

    .faq-question {
        font-size: 16px;
    }
}

/* ============================================
   DESKTOP LARGE: 1400px+
   ============================================ */

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 60px;
    }

    .section {
        padding: 120px 0;
    }

    .hero {
        padding: 140px 60px 100px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .mobile-sticky-bar,
    .mobile-menu,
    .hero-cta-stack,
    .price-ctas,
    .urgency-ctas,
    .callback-form-notice,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@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;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--color-white);
    }

    .btn-secondary {
        background-color: var(--color-white);
        color: var(--color-charcoal);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for animations */
.scroll-fade,
.btn,
.pain-card,
.testimonial-card,
.stack-item {
    will-change: transform;
}

/* Prevent layout shift */
img {
    aspect-ratio: attr(width) / attr(height);
}

/* Smooth scrolling on modern browsers */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */

@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 20px 40px;
    }

    .hero-headline {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-subheadline {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-cta-stack {
        margin-bottom: 32px;
    }

    .trust-bar {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   TABLET LANDSCAPE
   ============================================ */

@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 100px 30px 60px;
    }
}

/* ============================================
   HIDE ON DESKTOP
   ============================================ */

@media (min-width: 768px) {
    .mobile-sticky-bar {
        display: none;
    }
}