/* ============================
   GRATITUDE NOTES TEMPLATE
   Responsive CSS - 2025
   Mobile-First Approach
   ============================ */

/* Mobile First - Base Styles (320px+) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.3rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero section mobile */
    .hero-section {
        padding-top: 60px;
        min-height: 90vh;
    }

    .hero-section h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.2rem !important;
    }

    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--color-accent);
    }

    /* Service cards stack vertically */
    .service-card {
        margin-bottom: 1.5rem;
    }

    .service-card .card-body {
  overflow-x: hidden !important;
        padding: 1.5rem;
    }

    /* Team members - 2 per row */
    .team-member {
        margin-bottom: 2rem;
    }

    .team-member img {
        width: 100px;
        height: 100px;
    }

    /* Price cards mobile */
    .price-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    /* Contact form mobile */
    .form-control {
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Gallery mobile - 2 columns */
    .gallery .col-md-3 {
        width: 50%;
        padding: 0.25rem;
    }

    /* Footer mobile */
    footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }

    /* Hide complex animations on mobile */
    .feature-item:hover,
    .service-card:hover,
    .price-card:hover {
        transform: none;
    }

    /* Swiper mobile adjustments */
    .reviews-swiper {
        padding: 1rem 0;
    }

    .review-item {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    /* Additional pages mobile */
    .process-step {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .service-card .card-body {
  overflow-x: hidden !important;
        padding: 2rem;
    }

    .team-member img {
        width: 110px;
        height: 110px;
    }

    /* Gallery - 3 columns */
    .gallery .col-md-3 {
        width: 33.333%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navbar improvements */
    .navbar-nav {
        padding-top: 0;
    }

    /* Hero section tablet */
    .hero-section {
        padding-top: 80px;
    }

    /* Services - 2 per row */
    .service-card {
        height: 100%;
    }

    /* Team members - 3 per row */
    .team-member img {
        width: 120px;
        height: 120px;
    }

    /* Price cards - responsive height */
    .price-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Reviews swiper - 2 slides */
    .reviews-swiper .swiper-slide {
        width: 50%;
    }

    /* Disable autoplay and effects on tablet if preferred */
    @media (max-width: 768px) {
        .swiper-slide {
            transition: none !important;
        }
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Services - 3 per row */
    .service-card {
        margin-bottom: 2rem;
    }

    /* Team members - 5 per row */
    .team-member {
        flex: 0 0 20%;
        max-width: 20%;
    }

    /* Features - 4 per row */
    .feature-item {
        height: auto;
        min-height: 200px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    /* Full desktop experience */
    .hero-section {
        min-height: 100vh;
    }

    .service-card:hover {
        transform: translateY(-8px);
    }

    .feature-item:hover {
        transform: translateY(-5px);
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    :root {
        --spacing-xl: 4rem;
    }

    section {
        padding: 4rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .navbar-brand {
        text-rendering: optimizeLegibility;
    }

    .service-card, .price-card, .feature-item {
        border: 0.5px solid rgba(139, 90, 43, 0.1);
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is required
    :root {
        --color-background: #1a1a1a;
        --color-text: #ffffff;
        --color-text-light: #cccccc;
    }
    */
}

/* Reduced motion preferences */
@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;
    }

    .swiper-slide {
        transition: none !important;
    }

    /* Disable parallax and complex animations */
    .hero-section::before {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .navbar, .swiper-pagination, .btn {
        display: none !important;
    }

    .container {
        width: auto;
        margin: 0;
        padding: 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--color-primary);
        outline-offset: 2px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 60px;
    }

    .navbar {
        padding: 0.5rem 0;
    }
}

/* iPhone specific adjustments */
@media only screen 
and (device-width: 375px) 
and (device-height: 812px) 
and (-webkit-device-pixel-ratio: 3) {
    /* iPhone X/11/12 specific styles */
    .hero-section {
        padding-top: 88px; /* Account for notch */
    }
}

/* iPad specific adjustments */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) {
    .reviews-swiper .swiper-slide {
        width: 50%;
    }
    
    .team-member {
        flex: 0 0 20%;
        max-width: 20%;
    }
}