/* ===================================
   CEAVEO Inc. - Responsive Stylesheet
   Mobile-First Responsive Design
   =================================== */

/* === Tablet (768px and below) === */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

/* === Mobile (767px and below) === */
@media (max-width: 767px) {

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .hero-title {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    /* Spacing */
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    /* Header / Navigation */
    .header {
        padding: 0.75rem 0;
    }

    .logo-link {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-graphite);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .language-switcher {
        width: 100%;
        padding: 1rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Mobile menu toggle animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero */
    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

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

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

    /* Why Choose */
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: var(--spacing-md);
    }

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

    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
}

/* === Small Mobile (480px and below) === */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

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

    .service-icon {
        width: 50px;
        height: 50px;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.938rem;
    }

    .logo-link {
        font-size: 1.125rem;
    }

    /* Adjust brand name for very small screens */
    .brand-name {
        font-size: 0.95em;
        letter-spacing: 0.03em;
    }
}

/* === Print Styles === */
@media print {
    .header,
    .mobile-menu-toggle,
    .hero-cta,
    .contact-form,
    .footer {
        display: none;
    }

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

    a {
        text-decoration: underline;
        color: #000;
    }

    .service-card,
    .why-item {
        page-break-inside: avoid;
    }
}

/* === Accessibility Enhancements === */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #1a1a1a;
        --color-accent: #5E2A2F;
    }

    .btn-primary {
        border: 2px solid var(--color-primary);
    }

    .service-card {
        border: 2px solid var(--color-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* === Focus Visible (for keyboard navigation) === */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}
