/* Handcrafted Leather Notebook Brand - Responsive Styles */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-decorative {
        display: none;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .service-card,
    .review-card,
    .price-card {
        margin-bottom: 1.5rem;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    /* Disable hover effects on mobile */
    .service-card:hover,
    .blog-card:hover,
    .btn-primary:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .team-photo {
        width: 180px;
        height: 180px;
    }
    
    .price-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 200px;
        height: 200px;
    }
    
    .price-card.featured {
        transform: scale(1.02);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .contact-form {
        padding: 3rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-decorative {
        width: 250px;
        height: 250px;
    }
    
    .hero-decorative:nth-child(2) {
        width: 200px;
        height: 200px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .team-photo,
    .gallery-item img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-decorative,
    .btn,
    .contact-form {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    .section-padding {
        padding: 1rem 0;
    }
    
    body {
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .service-card,
    .review-card,
    .price-card,
    .faq-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Dark mode support (if user prefers) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-decorative {
        display: none;
    }
    
    .service-card,
    .blog-card,
    .gallery-item img,
    .btn-primary {
        transition: none;
    }
    
    .service-card:hover,
    .blog-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}

/* Focus styles for better accessibility */
@media (min-width: 768px) {
    .navbar-nav .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-gold);
        outline-offset: 2px;
    }
}

/* Container adjustments for different screen sizes */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Special mobile menu handling */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
    }
    
    .navbar-collapse {
        background-color: var(--primary-cream);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
}

/* Grid system adjustments for edge cases */
@media (max-width: 575.98px) {
    .col-sm-6,
    .col-md-4,
    .col-lg-3,
    .col-xl-2 {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .col-md-4:nth-child(3n+1) {
        clear: left;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .col-lg-3:nth-child(4n+1) {
        clear: left;
    }
} 

.hero-section h1 {
    padding-top: 275px;
}