/* DanBroz.com, LLC - Responsive Stylesheet */
/* Mobile-First Responsive Design */

/* ========== Mobile Menu Styles ========== */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        width: 200px;
        padding: var(--spacing-sm);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 4px;
        margin-top: var(--spacing-xs);
        gap: var(--spacing-xs);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: var(--spacing-xs) var(--spacing-sm);
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    /* Mobile menu toggle animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ========== Tablet Styles (768px - 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ========== Mobile Styles (up to 767px) ========== */
@media (max-width: 767px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    /* Header adjustments */
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo h1 {
        font-size: 1.25rem;
    }
    
    .logo .tagline {
        font-size: 0.75rem;
    }
    
    /* Hero section */
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    /* Service detail pages */
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .service-header-text {
        text-align: center;
    }
    
    .service-header-text h2 {
        font-size: 1.75rem;
    }
    
    .service-icon-large {
        margin: 0 auto;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    /* Certifications */
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    /* About page */
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 1.75rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Intro section */
    .intro-content h2 {
        font-size: 1.75rem;
    }
    
    /* CTA section */
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Section padding */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Button adjustments */
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

/* ========== Small Mobile Styles (up to 480px) ========== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .cert-card h3 {
        font-size: 1.125rem;
    }
    
    .logo h1 {
        font-size: 1.125rem;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    .service-card,
    .feature-card,
    .cert-card {
        padding: var(--spacing-sm);
    }
}

/* ========== Large Desktop Styles (1440px and above) ========== */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== Touch Device Optimizations ========== */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: var(--spacing-sm);
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ========== Landscape Mobile Styles ========== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
}

/* ========== Accessibility: Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ========== High Contrast Mode Support ========== */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .service-card,
    .cert-card,
    .feature-card {
        border: 2px solid var(--text-dark);
    }
    
    .nav-menu a {
        border-bottom: 2px solid var(--border-color);
    }
}

