/*
* RilavSpazi - Responsive Stylesheet
* Version: 1.0.0
* Author: RilavSpazi Design Team
*/

/* ===== Medium Desktop (1200px and below) ===== */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 970px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 3fr 2fr;
    }
}

/* ===== Tablets (992px and below) ===== */
@media screen and (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 750px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        max-width: 400px;
    }
    
    .blog-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-item {
        grid-template-columns: 1fr;
    }
    
    .blog-item .blog-image {
        height: 250px;
    }
}

/* ===== Mobile (768px and below) ===== */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Navigation */
    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }
    
    .main-menu.active {
        left: 0;
    }
    
    .hamburger-menu {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Mobile menu overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Hero section */
    .hero-banner {
        padding: 8rem 0 4rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-s);
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    /* Services section */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* About section */
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-m);
    }
    
    /* Blog preview */
    .blog-cards {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter form */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* Contact form */
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-l);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-m);
        text-align: center;
    }
    
    /* Cookie banner */
    .cookie-options {
        flex-direction: column;
    }
    
    .cookie-options .btn {
        width: 100%;
    }
    
    /* Article page */
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: var(--spacing-m);
        text-align: center;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Blog listing */
    .blog-item {
        grid-template-columns: 1fr;
    }
    
    .blog-item .blog-image {
        height: 200px;
    }
}

/* ===== Small Mobile (480px and below) ===== */
@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 var(--spacing-m);
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .logo img {
        height: 30px;
    }
    
    .logo span {
        font-size: 1rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-s);
    }
    
    .testimonial-text {
        font-size: 1.125rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    header, footer, .newsletter, .related-articles, .article-navigation, .article-share {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .article {
        padding: 0;
    }
    
    .article-header h1 {
        font-size: 24pt;
    }
    
    .article-content img {
        max-width: 500px;
    }
    
    .article-footer {
        border-top: 1pt solid #ddd;
    }
}
