/* ==========================================================================
   Responsive Styles - Mobile First Approach
   ========================================================================== */

/* ==========================================================================
   Large Tablets and Small Desktops (1024px and down)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Header */
    .header-container {
        padding: 1rem 2rem;
    }
    
    .main-navigation ul {
        gap: 2rem;
    }
    
    /* Hero */
    .hero-title {
        font-size: clamp(3rem, 8vw, 5rem);
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Tablets (768px and down)
   ========================================================================== */
@media (max-width: 768px) {
    /* Base */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Container */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Header container alignment */
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 60px;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Header Mobile Menu - Enhanced */
    .menu-toggle {
        display: flex;
        z-index: 10000;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
    
    /* Hide glassy-nav on mobile */
    .glassy-nav {
        display: none;
    }
    
    /* Show menu items on mobile */
    .main-navigation .glassy-nav {
        display: block;
        background: none !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Remove glassy background effect on mobile */
    .main-navigation .glassy-nav::before {
        display: none !important;
    }
    
    .main-navigation .glassy-nav > ul {
        flex-direction: column;
        gap: 0;
        background: none;
        border: none;
        padding: 15px !important;
        margin: 0;
    }
    
    .main-navigation .glassy-nav > ul > li {
        margin: 0;
        padding: 0;
    }
    
    .main-navigation .glassy-nav > ul > li:last-child {
        margin-left: 0;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: transparent;
        text-align: center;
        opacity: 0;
        z-index: -1;
        visibility: hidden;
        transition: all 0.375s;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        pointer-events: none;
    }
    
    .main-navigation.active {
        opacity: 1;
        z-index: 9998;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Teal band effect */
    .main-navigation::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: -15px;
        background: #52DDC4;
        transform-origin: 0 0;
        transform: skew(-14deg) translateX(-120%);
        transition: all 0.275s 0.1s;
        pointer-events: none;
    }

    .main-navigation.active::before {
        transform: skew(-14deg) translateX(0);
    }
    
    .main-navigation ul {
        display: flex;
        flex-direction: column;
        height: 100%;
        align-items: flex-start;
        justify-content: center;
        transform: translateX(0) skew(0deg);
        list-style: none;
        padding: 0 0 0 8rem;
        margin: 0;
        width: 100%;
        max-width: none;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .main-navigation.active ul {
        transform: translateX(0) skew(0deg);
    }
    
    .main-navigation li {
        display: block;
        margin: 0.5rem 0 0.5rem 2rem;
        text-align: left;
        transform: skew(0deg);
        position: relative;
        width: 100%;
    }
    

    
    .main-navigation.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Stagger animation for menu items */
    .main-navigation.active li:nth-child(1) { transition-delay: 0.2s; }
    .main-navigation.active li:nth-child(2) { transition-delay: 0.25s; }
    .main-navigation.active li:nth-child(3) { transition-delay: 0.3s; }
    .main-navigation.active li:nth-child(4) { transition-delay: 0.35s; }
    .main-navigation.active li:nth-child(5) { transition-delay: 0.4s; }
    .main-navigation.active li:nth-child(6) { transition-delay: 0.45s; }
    
    /* Mobile navigation link styling moved to header.css */
    
    /* Contact button styling moved to header.css */
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
    }
    
    /* Hero Mobile */
    .hero-section {
        min-height: 100vh;
        padding-top: calc(var(--header-height, 80px) + 2rem);
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        text-align: center;
        line-height: 1.1;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .hero-button {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
        min-height: 48px; /* Better touch target */
    }
    
    /* Services Mobile */
    .blaze-services-block {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 2rem;
        border-radius: 16px;
        transition: all 0.3s ease;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    /* CTA Mobile */
    .blaze-cta-block {
        padding: 3rem 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .cta-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Footer Mobile */
    .site-footer {
        padding: 3rem 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 0 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .social-links a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* ==========================================================================
   Small Mobile Devices (480px and down)
   ========================================================================== */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Header */
    .site-logo {
        font-size: 1.1rem;
    }
    
    .custom-logo-link img {
        height: 56px;
        width: auto;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 4px auto;
    }
    
    /* Mobile navigation sizing moved to header.css */
    
    /* Hero */
    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-button {
        width: 100%;
        max-width: none;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon img {
        width: 30px;
        height: 30px;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-button {
        width: 100%;
    }
}

/* ==========================================================================
   Extra Small Mobile Devices (360px and down)
   ========================================================================== */
@media (max-width: 360px) {
    .header-container {
        padding: 0 0.75rem;
    }
    
    .site-logo {
        font-size: 1rem;
    }
    
    .custom-logo-link img {
        height: 50px;
        width: auto;
    }
    
    /* Extra small mobile navigation sizing moved to header.css */
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .hero-video,
    .hero-buttons {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        background: none;
    }
    
    .hero-title {
        color: black;
        font-size: 24pt;
    }
}