/* 
* Responsive CSS for Happy Day Weddings
* Author: Hazel Jay
* Website: happydayweddings.co.uk
*/

/* ===== Media Queries ===== */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .hero h2 {
        font-size: 2.25rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 3.75rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 720px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 3.25rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    html {
        font-size: 14px;
    }
    
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: var(--spacing-lg);
    }
    
    .intro h2 {
        font-size: 2.5rem;
    }
    
    .cta-text {
        font-size: 1.75rem;
    }
    
    .testimonial-slide blockquote {
        font-size: 1.25rem;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--light-color);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 100px 30px 30px;
        transition: right var(--transition-medium);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu ul li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 5px 0;
    }
    
    /* Hamburger Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Overlay when mobile menu is active */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Footer adjustments */
    .footer-content {
        gap: var(--spacing-md);
    }
    
    .footer-logo, .footer-contact, .footer-nav {
        text-align: center;
    }
    
    .footer-contact h4::after,
    .footer-nav h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .intro h2 {
        font-size: 2.25rem;
    }
    
    .cta-text {
        font-size: 1.5rem;
    }
    
    .btn-primary, 
    .btn-secondary, 
    .btn-contact {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .testimonial-slide blockquote {
        font-size: 1.15rem;
        padding: 0;
    }
    
    .testimonial-slide blockquote::before,
    .testimonial-slide blockquote::after {
        display: none;
    }
    
    /* Navigation adjustments */
    .nav-menu {
        width: 100%;
        max-width: 100%;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}
