/* ============================================
   Hausmann Legal - Responsive Stylesheet
   Mobile-First Responsive Design
   ============================================ */

/* Tablet - 641px to 1024px */
@media (max-width: 1024px) {
    :root {
        --spacing-xxl: 48px;
        --spacing-xl: 32px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        gap: var(--spacing-md);
    }

    .profile-content {
        gap: var(--spacing-lg);
    }

    .contact-grid {
        gap: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Mobile - Below 640px */
@media (max-width: 640px) {
    :root {
        --spacing-xxl: 32px;
        --spacing-xl: 24px;
        --spacing-lg: 16px;
    }

    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Navigation Mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-secondary);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-lang {
        margin-left: 0;
        margin-top: var(--spacing-md);
        justify-content: center;
    }

    .lang-toggle {
        width: 100%;
        max-width: 200px;
    }

    /* Hero Mobile */
    .hero {
        margin-top: 70px;
        padding: var(--spacing-xl) 0;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-subtitle-en {
        font-size: 0.9rem;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-md);
    }

    /* Profile Mobile */
    .profile-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }

    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-form {
        max-width: 100%;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul {
        padding: 0;
    }
}

/* Small Mobile - Below 400px */
@media (max-width: 400px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
}

/* Print Styles */
@media print {
    .nav,
    .nav-toggle,
    .hero-cta,
    .trust-signals,
    .contact-form-wrapper,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    .contact-info,
    .profile-content {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-border: #000000;
    }

    .service-card,
    .contact-map,
    .profile-image img {
        border: 2px solid var(--color-primary);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Keep default light theme for now */
    /* Can be implemented later if needed */
}
