/**
 * Gabriella Eleganza - Responsive Stylesheet
 * Mobile-first responsive design
 */

/* ==========================================================================
   Tablet Landscape and Below (1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content-wrapper {
        gap: 40px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Tablet Portrait and Below (768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.25rem; }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Header & Navigation */
    .header-container {
        padding: 15px 20px;
    }
    
    .custom-logo {
        max-height: 50px;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: 5px 0 20px var(--shadow);
        transition: left 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .main-navigation.toggled {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 80px 0 20px;
    }
    
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .main-navigation a {
        padding: 15px 30px;
    }
    
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background: var(--light-gray);
        display: none;
        padding: 0;
    }
    
    .main-navigation li.menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        float: right;
        transition: transform 0.3s ease;
    }
    
    .main-navigation li.menu-item-has-children.active > a::after {
        transform: rotate(180deg);
    }
    
    .main-navigation li.menu-item-has-children.active > ul {
        display: block;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-image {
        height: 250px;
    }
    
    /* About */
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-decoration {
        display: none;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info,
    .contact-form {
        padding: 40px 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Footer */
    .footer-widgets-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .blog-grid {
        gap: 30px;
    }
}

/* ==========================================================================
   Mobile and Below (480px)
   ========================================================================== */

@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Header */
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        font-size: 0.75rem;
    }
    
    .custom-logo {
        max-height: 40px;
    }
    
    .main-navigation {
        width: 90%;
    }
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Services */
    .service-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 30px 20px;
    }
    
    /* Contact */
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* CTA */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 80px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    /* Post Meta */
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .nav-overlay,
    .hero-buttons,
    .cta-section,
    .social-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 20px 0;
    }
    
    .page-header h1 {
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}