/* ================================
   WoodCraft Upcycle - Responsive CSS
   ================================ */

/* Large Desktop and up (1400px+) */
@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 100px 0;
    }
}

/* Desktop (992px - 1399px) */
@media (min-width: 992px) and (max-width: 1399px) {
    .hero-content h1 {
        font-size: 2.6rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

/* Tablet Landscape (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Team members - 3 per row on tablet */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Service cards - 2 per row */
    .service-card img {
        height: 180px;
    }
    
    /* Adjust card heights for better tablet display */
    .feature-card,
    .price-card,
    .info-card {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps - adjust for tablet */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Contact form adjustments */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    /* Footer adjustments */
    .footer-section {
        text-align: center;
    }
    
    .footer-links,
    .footer-contact,
    .footer-hours {
        margin-bottom: 2rem;
    }
}

/* Mobile Landscape and Portrait (up to 767px) */
@media (max-width: 767px) {
    /* CRITICAL: Disable all scroll animations on mobile */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* General mobile styles */
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-section {
        min-height: 70vh;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    padding-top: 125px;
}
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem;
        margin: 0.3rem 0;
        text-align: center;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    h4 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Card adjustments */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .info-card,
    .career-card,
    .faq-card,
    .material-card,
    .process-card,
    .prep-card,
    .quality-card,
    .impact-card,
    .project-card,
    .design-step,
    .portfolio-item,
    .testimonial-card,
    .planning-card {
        margin-bottom: 1.5rem;
    }
    
    /* Service card images */
    .service-card img {
        height: 160px;
    }
    
    /* Team members - stack vertically */
    .team-member {
        max-width: 200px;
        margin: 0 auto 1.5rem auto;
    }
    
    .team-member img {
        height: 150px;
    }
    
    /* Process steps */
    .process-step {
        padding: 1rem;
        text-align: center;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .timeline-year {
        font-size: 1.2rem;
    }
    
    /* Price cards - remove featured scaling */
    .price-card.featured {
        transform: none;
        border: 2px solid var(--primary);
    }
    
    .price-card .price {
        font-size: 1.5rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        margin-bottom: 0.8rem;
    }
    
    .services-list {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    /* Gallery adjustments */
    .gallery-img {
        margin-bottom: 0.5rem;
    }
    
    /* Hero shapes - smaller on mobile */
    .shape-1 {
        width: 60px;
        height: 60px;
        top: 5%;
        right: 5%;
    }
    
    .shape-2 {
        width: 50px;
        height: 50px;
        bottom: 15%;
        left: 3%;
    }
    
    /* Footer adjustments */
    .footer-section {
        padding: 2rem 0 1rem 0;
        text-align: center;
    }
    
    .footer-brand,
    .footer-links,
    .footer-contact,
    .footer-hours {
        margin-bottom: 2rem;
    }
    
    .footer-contact p {
        justify-content: center;
        margin-bottom: 0.8rem;
    }
    
    .footer-brand h3 {
        font-size: 1.3rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
    }
    
    /* Breadcrumb adjustments */
    .breadcrumb-section {
        padding: 100px 0 15px 0;
        text-align: center;
    }
    
    /* Button adjustments */
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* Icon size adjustments */
    .feature-icon,
    .career-icon,
    .process-icon,
    .prep-icon,
    .quality-icon,
    .planning-icon {
        font-size: 2rem;
    }
    
    .info-card i {
        font-size: 2rem;
    }
    
    /* Impact numbers */
    .impact-number {
        font-size: 2rem;
    }
    
    /* Step icons for design process */
    .step-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
    
    /* Portfolio overlay adjustments */
    .portfolio-overlay {
        position: static;
        transform: none;
        background: rgba(139, 90, 60, 0.1);
        color: var(--text-primary);
        padding: 0.8rem;
    }
    
    .portfolio-overlay h4 {
        color: var(--wood-brown);
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .portfolio-overlay p {
        color: var(--text-primary);
        font-size: 0.8rem;
    }
    
    /* Client photos smaller on mobile */
    .client-photo {
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }
    
    /* Additional page specific mobile adjustments */
    .material-card img,
    .project-card img {
        height: 120px;
    }
    
    .material-card h4,
    .project-card h4 {
        font-size: 0.95rem;
        padding: 0.8rem 0.8rem 0.4rem 0.8rem;
    }
    
    .material-card p,
    .project-card p {
        font-size: 0.85rem;
        padding: 0 0.8rem 0.8rem 0.8rem;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    /* Adjust grid spacing */
    .row {
        margin: 0 -10px;
    }
    
    .row > * {
        padding: 0 10px;
    }
    
    /* Even smaller cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .info-card,
    .career-card,
    .faq-card,
    .material-card,
    .process-card,
    .prep-card,
    .quality-card,
    .impact-card,
    .project-card,
    .design-step,
    .portfolio-item,
    .testimonial-card,
    .planning-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .services-list {
        padding: 1rem;
    }
    
    /* Smaller typography */
    h2 {
        font-size: 1.2rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 0.95rem;
    }
    
    p {
        font-size: 0.85rem;
    }
    
    /* Smaller icons */
    .feature-icon,
    .career-icon,
    .process-icon,
    .prep-icon,
    .quality-icon,
    .planning-icon {
        font-size: 1.8rem;
    }
    
    .info-card i {
        font-size: 1.8rem;
    }
    
    /* Footer brand smaller */
    .footer-brand h3 {
        font-size: 1.1rem;
    }
    
    .footer-brand p,
    .footer-contact p,
    .footer-hours p {
        font-size: 0.85rem;
    }
    
    /* Form elements */
    .form-control {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .btn-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .section-padding {
        padding: 30px 0;
    }
    
    .hero-section {
        min-height: 60vh;
        padding-top: 90px;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
    }
    
    .hero-content h2 {
        font-size: 0.95rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Ultra-compact cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .info-card,
    .career-card,
    .faq-card,
    .material-card,
    .process-card,
    .prep-card,
    .quality-card,
    .impact-card,
    .project-card,
    .design-step,
    .portfolio-item,
    .testimonial-card,
    .planning-card {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    /* Hide hero shapes on very small screens */
    .hero-shapes {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .footer-section {
        padding: 1.5rem 0 1rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-shapes,
    .btn-primary,
    .contact-form,
    .footer-section {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .info-card,
    .career-card,
    .faq-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .blog-card,
    .info-card,
    .career-card,
    .faq-card,
    .material-card,
    .process-card,
    .prep-card,
    .quality-card,
    .impact-card,
    .project-card,
    .design-step,
    .portfolio-item,
    .testimonial-card,
    .planning-card {
        border: 2px solid var(--slate-gray-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--wood-brown-dark);
    }
}

/* Dark mode support (for future implementation) */

/* Landscape orientation specific adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh;
        padding-top: 80px;
    }
    
    .hero-content {
        margin-bottom: 1rem;
    padding-top: 125px;
}
    
    .hero-image {
        margin-top: 1rem;
    }
    
    .section-padding {
        padding: 30px 0;
    }
}


body {
    overflow-x: hidden;
}