/* 
   Responsive Stylesheet for RemontyPro Website
   Version: 1.0
   Date: 2023-10-01
*/

/* ===== Responsive Breakpoints ===== */
/* 
   - Mobile: Up to 767px
   - Tablet: 768px - 991px
   - Desktop Small: 992px - 1199px
   - Desktop Large: 1200px and above
*/

/* ===== Tablet (768px - 991px) ===== */
@media (max-width: 991px) {
    /* Typography */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Header */
    .logo-container {
        width: 160px;
    }
    
    .main-nav .nav-links li {
        margin-left: 20px;
    }
    
    /* Banner */
    .banner {
        padding: 40px 0;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About */
    .about-stats {
        flex-wrap: wrap;
    }
    
    .stat {
        width: 50%;
        margin-bottom: 30px;
    }
    
    /* Blog Preview */
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-social {
        grid-column: span 2;
        margin-top: 30px;
    }
    
    /* Contact Page */
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
        margin-top: 30px;
    }
    
    /* Blog Page */
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        margin-top: 40px;
    }
    
    /* Services Page */
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .service-content.reverse {
        grid-template-columns: 1fr;
    }
    
    .service-content.reverse .service-image {
        order: -1;
    }
    
    /* About Page */
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .values-grid, 
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Mobile (Up to 767px) ===== */
@media (max-width: 767px) {
    /* Global Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Header */
    .main-header {
        padding: 10px 0;
    }
    
    .logo-container {
        width: 140px;
    }
    
    .main-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        z-index: 100;
    }
    
    .main-nav .nav-links.active {
        display: flex;
    }
    
    .main-nav .nav-links li {
        margin: 0 0 15px 0;
    }
    
    .main-nav .nav-links li:last-child {
        margin-bottom: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Banner */
    .banner .container {
        flex-direction: column;
    }
    
    .banner-content {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .banner-buttons {
        justify-content: center;
    }
    
    .banner-image {
        width: 100%;
        text-align: center;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* About */
    .about-text {
        text-align: left;
    }
    
    .about-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }
    
    /* Newsletter */
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-form input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    #newsletter-form button {
        border-radius: 4px;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-links-column {
        margin-bottom: 30px;
    }
    
    .footer-social {
        grid-column: auto;
    }
    
    /* Cookie Consent */
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Contact Page */
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .article-cta {
        flex-direction: column;
    }
    
    .article-cta .btn {
        width: 100%;
    }
    
    /* Blog Article */
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    #article-newsletter-form {
        flex-direction: column;
    }
    
    #article-newsletter-form input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    #article-newsletter-form button {
        border-radius: 4px;
    }
    
    /* About Page */
    .values-grid, 
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* Services Page */
    .service-cta {
        flex-direction: column;
    }
    
    .service-cta .btn {
        width: 100%;
    }
    
    /* Thanks Page */
    .thanks-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Small Mobile (Up to 480px) ===== */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Services */
    .service-card {
        padding: 20px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 15px;
    }
    
    /* Contact Form */
    .contact-form-container {
        padding: 20px;
    }
    
    /* Blog Article */
    .article-content {
        padding: 0 15px;
    }
    
    /* Modal Content */
    .modal-content {
        width: 95%;
    }
}

/* ===== Desktop Small (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Services Grid */
    .services-grid {
        gap: 20px;
    }
    
    /* Blog Posts */
    .blog-posts {
        gap: 20px;
    }
    
    /* Team Grid */
    .team-grid {
        gap: 20px;
    }
    
    /* Values Grid */
    .values-grid, 
    .benefits-grid {
        gap: 20px;
    }
}

/* ===== Print Styles ===== */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .main-header,
    .main-footer,
    .cookie-consent,
    .newsletter,
    .contact-cta,
    .article-newsletter,
    .article-cta,
    .article-share {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
    }
    
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }
    
    .page-header {
        padding: 20pt 0;
        text-align: center;
    }
}