/* Responsive Design - Light Theme */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-item {
        margin-left: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Small screens (576px to 767px) */
@media (max-width: 767px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .navigation {
        width: 100%;
        order: 3;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border: 1px solid #e5e7eb;
        border-radius: 0 0 8px 8px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #f3f4f6;
        color: #374151;
    }
    
    .nav-link:hover {
        background-color: #f9fafb;
        color: #2563eb;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9fafb;
        border-radius: 0;
        margin-left: 2rem;
        border: none;
        border-top: 1px solid #e5e7eb;
    }
    
    .dropdown-menu a {
        color: #6b7280;
        padding: 0.5rem 1rem;
    }
    
    .dropdown-menu a:hover {
        color: #2563eb;
        background-color: #f3f4f6;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle span {
        background: #4b5563;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Extra small screens (575px and below) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .services-preview h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-card i {
        font-size: 2.5rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item i {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
    }
    
    .footer-section h4 {
        font-size: 1.125rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .btn {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .page-content {
        max-width: 100%;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    p, li {
        orphans: 3;
        widows: 3;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .service-card,
    .contact-item {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border-color: #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border-color: #000;
    }
    
    .service-card {
        border-color: #000;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        border-color: #000;
    }
}

/* 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;
    }
}

/* Light mode preference (override dark mode) */
@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
    body {
        background-color: #ffffff;
        color: #374151;
    }
    
    .hero-section {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    }
    
    .service-card {
        background: white;
        border-color: #e5e7eb;
        color: #374151;
    }
    
    .service-card h3 {
        color: #1f2937;
    }
    
    .contact-item {
        background: white;
        border-color: #e5e7eb;
    }
    
    .contact-item h3 {
        color: #1f2937;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        background: white;
        border-color: #d1d5db;
        color: #374151;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #1f2937;
    }
    
    p {
        color: #6b7280;
    }
}

/* Force light theme (disable dark mode completely) */
body {
    background-color: #ffffff !important;
    color: #374151 !important;
}

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
}

.service-card {
    background: white !important;
    border-color: #e5e7eb !important;
    color: #374151 !important;
}

.service-card h3 {
    color: #1f2937 !important;
}

.contact-item {
    background: white !important;
    border-color: #e5e7eb !important;
}

.contact-item h3 {
    color: #1f2937 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #1f2937 !important;
}

p {
    color: #6b7280 !important;
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.social-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2563eb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}