/* Enhanced Mobile Responsiveness */

/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
  /* Header Mobile */
  .site-header {
    padding: 10px 0;
  }
  
  .header-inner {
    padding: 0 15px;
  }
  
  .brand-logo {
    max-height: 40px;
  }
  
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Mobile Menu */
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #001a33 0%, #003d7a 100%);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }
  
  .site-nav.active {
    right: 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }
  
  .site-nav ul {
    flex-direction: column;
    gap: 20px;
  }
  
  .site-nav a {
    font-size: 18px;
    padding: 10px;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Hero Mobile */
  .hero-redesign {
    min-height: 100vh;
    padding: 80px 0 40px;
  }
  
  .hero-content-grid {
    padding: 20px;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    font-size: 14px;
  }
  
  /* Feature Cards Mobile */
  .hero-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-feature-card {
    padding: 24px;
  }
  
  .feature-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon {
    font-size: 28px;
  }
  
  .feature-title {
    font-size: 20px;
  }
  
  .feature-description {
    font-size: 14px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  /* Trust Indicators Mobile */
  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-top: 30px;
  }
  
  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .trust-value {
    font-size: 14px;
  }
  
  .trust-label {
    font-size: 11px;
  }
  
  /* Floating Boxes Mobile */
  .floating-boxes {
    display: none;
  }
  
  /* Services Section Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  /* Gallery Mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .gallery-item {
    aspect-ratio: 1;
  }
  
  /* Branches Mobile */
  .branches-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .branch-card {
    padding: 20px;
  }
  
  /* Contact Section Mobile */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
  
  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-logo {
    max-width: 150px;
    margin: 0 auto;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  /* Hero Adjustments */
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-badge-text {
    font-size: 12px;
  }
  
  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Trust Indicators */
  .hero-trust {
    grid-template-columns: 1fr;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  /* Contact Info Items */
  .contact-info-item {
    padding: 15px;
  }
  
  /* Wave Transitions */
  .wave-transition svg {
    height: 50px;
  }
}

/* Touch-Friendly Enhancements */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn,
  .nav-toggle,
  .filter-btn,
  .gallery-item,
  .social-icon {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .service-card:hover,
  .branch-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Simplify animations */
  .floating-box {
    animation: none;
  }
  
  .particle {
    display: none;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-redesign {
    min-height: auto;
    padding: 60px 0 30px;
  }
  
  .hero-content-grid {
    gap: 30px;
  }
  
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
  
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Accessibility Improvements */
@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;
  }
  
  .parallax-element {
    transform: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .glass-effect {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
  }
  
  .btn-primary {
    background: #ffd700;
    color: #000000;
    border: 2px solid #000000;
  }
  
  .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
  }
  
  body {
    background: var(--bg-primary);
    color: var(--text-primary);
  }
}

/* Print Styles */
@media print {
  .site-header,
  .hero-mesh,
  .hero-pattern,
  .floating-box,
  .particle-container,
  .back-to-top,
  .scroll-progress,
  .page-loader,
  .lightbox,
  .nav-toggle {
    display: none !important;
  }
  
  .hero-redesign {
    min-height: auto;
    background: white;
    color: black;
  }
  
  .hero-features {
    page-break-inside: avoid;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}