/**
 * Aicher Consulting - Responsive Styles
 *
 * Mobile-first responsive adjustments
 */

/* ===================================
   TABLET (768px and below)
   =================================== */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
    
    /* Spacing adjustments */
    .section {
        padding: 3rem 0 !important;
    }
    
    .section__header {
        margin-bottom: 2rem !important;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 400px !important;
    }
    
    .hero-section__content {
        padding: 2rem 1rem !important;
    }
    
    .hero-section__title {
        font-size: 2rem !important;
    }
    
    .hero-section__subtitle {
        font-size: 1.25rem !important;
    }
    
    .hero-section__cta {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Grid adjustments */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr !important;
    }
    
    /* Feature section */
    .feature-section {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .feature-section__image {
        order: -1;
    }
    
    /* Contact section */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Step process */
    .step-process {
        grid-template-columns: 1fr !important;
    }
    
    .step-process__step:not(:last-child)::after {
        display: none !important;
    }
    
    /* Footer */
    .site-footer__widgets {
        grid-template-columns: 1fr !important;
    }
    
    .site-footer__bottom {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    #footer-menu {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    /* Navigation */
    .menu-toggle {
        display: block !important;
    }
    
    .main-navigation {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-white);
        z-index: var(--z-dropdown);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    #primary-menu {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 1rem 0 !important;
    }
    
    #primary-menu li {
        border-bottom: 1px solid var(--color-gray-200);
    }
    
    #primary-menu a {
        padding: 1rem !important;
        font-size: 1.125rem !important;
    }
    
    #primary-menu ul.sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: var(--color-gray-50) !important;
        padding-left: 1rem !important;
    }
    
    .language-switcher {
        margin-left: 0 !important;
        margin-top: 1rem !important;
    }
}

/* ===================================
   MOBILE (576px and below)
   =================================== */
@media (max-width: 576px) {
    /* Typography */
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    h4 {
        font-size: 1.125rem !important;
    }
    
    /* Container */
    .container {
        padding: 0 0.75rem !important;
    }
    
    /* Spacing */
    .section {
        padding: 2rem 0 !important;
    }
    
    .section__title {
        font-size: 1.5rem !important;
    }
    
    .section__subtitle {
        font-size: 1rem !important;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 350px !important;
    }
    
    .hero-section__content {
        padding: 1.5rem 0.75rem !important;
    }
    
    .hero-section__title {
        font-size: 1.75rem !important;
    }
    
    .hero-section__subtitle {
        font-size: 1rem !important;
    }
    
    /* Service cards */
    .service-card {
        padding: 1.5rem !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.875rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Forms */
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .contact-form__input,
    .contact-form__textarea {
        padding: 0.75rem !important;
    }
    
    /* Footer */
    .site-footer {
        padding: 2rem 0 1rem !important;
    }
    
    .site-footer__widgets {
        gap: 2rem !important;
    }
    
    .footer-widget {
        margin-bottom: 2rem !important;
    }
    
    .site-footer__bottom {
        gap: 1rem !important;
    }
    
    /* Pagination */
    .pagination li a,
    .pagination li span {
        min-width: 35px !important;
        height: 35px !important;
        padding: 0 0.75rem !important;
        font-size: 0.875rem !important;
    }
}

/* ===================================
   SMALL MOBILE (400px and below)
   =================================== */
@media (max-width: 400px) {
    /* Typography */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.125rem !important;
    }
    
    /* Spacing */
    .section {
        padding: 1.5rem 0 !important;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 300px !important;
    }
    
    .hero-section__title {
        font-size: 1.5rem !important;
    }
    
    /* Service cards */
    .service-card {
        padding: 1.25rem !important;
    }
    
    .service-card__icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* ===================================
   LARGE SCREENS (1400px and above)
   =================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.75rem;
    }
    
    h3 {
        font-size: 2rem;
    }
}

/* ===================================
   LANDSCAPE ORIENTATION (Mobile)
   =================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .site-header {
        position: relative;
    }
    
    .main-navigation {
        position: relative;
        transform: none;
        display: flex !important;
        max-height: none;
    }
    
    #primary-menu {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: none !important;
    }
}

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

/* ===================================
   HIGH CONTRAST
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --color-gray-600: #555;
        --color-gray-700: #333;
        --color-gray-800: #222;
    }
    
    .btn {
        border-width: 3px;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ===================================
   DARK MODE (if supported)
   =================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --color-white: #1a1a1a;
        --color-gray-50: #2a2a2a;
        --color-gray-100: #333;
        --color-gray-200: #444;
        --color-gray-300: #555;
        --color-gray-400: #888;
        --color-gray-500: #999;
        --color-gray-600: #aaa;
        --color-gray-700: #ccc;
        --color-gray-800: #ddd;
        --color-gray-900: #eee;
    }
    
    body {
        background-color: var(--color-white);
        color: var(--color-gray-900);
    }
    
    .site-header {
        background-color: var(--color-gray-100);
    }
    
    .service-card,
    .testimonial-card,
    .contact-form {
        background-color: var(--color-gray-100);
    }
    
    .site-footer {
        background-color: #0a0a0a;
    }
}
