/* ===== RESPONSIVE STYLES ===== */

/* Mobile First Approach */
/* Base styles are for mobile devices */

/* ===== SMALL DEVICES (576px and up) ===== */
@media (min-width: 576px) {
  .section-title {
    font-size: 2.25rem;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
}

/* ===== MEDIUM DEVICES (768px and up) ===== */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* ===== LARGE DEVICES (992px and up) ===== */
@media (min-width: 992px) {
  .section-title {
    font-size: 2.75rem;
  }
  
  .hero-content h1 {
    font-size: 3.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {
  .section-title {
    font-size: 3rem;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .hero-decorative.blob-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-decorative.blob-2 {
    width: 180px;
    height: 180px;
  }
}

/* ===== MOBILE SPECIFIC STYLES (767px and below) ===== */
@media (max-width: 767px) {
  /* DISABLE ANIMATIONS ON MOBILE */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  
  /* Header adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 80vh;
    padding-top: 60px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Section adjustments */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  /* Cards mobile spacing */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .career-card,
  .blog-card,
  .faq-card {
    margin-bottom: 1.5rem;
  }
  
  /* Service cards mobile */
  .service-card {
    padding: 1.5rem;
  }
  
  .service-image {
    height: 150px;
    margin-bottom: 1rem;
  }
  
  .service-card h4 {
    font-size: 1.1rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  /* Price plan mobile */
  .price-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  /* Team section mobile */
  .team-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }
  
  /* Process section mobile */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .process-step {
    padding: 1.5rem 0.5rem;
  }
  
  /* Contact form mobile */
  .contact-form,
  .contact-info {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
  }
  
  /* Footer mobile */
  #footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  /* Button mobile */
  .btn-primary,
  .btn-outline-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Timeline mobile */
  .timeline-item {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* FAQ mobile */
  .faq-card {
    padding: 1.5rem;
  }
  
  .faq-question {
    font-size: 1rem;
  }
  
  /* Core info mobile */
  .coreinfo-grid .info-item {
    padding: 1.5rem 1rem;
  }
}

/* ===== TABLET SPECIFIC STYLES (768px to 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .service-card,
  .team-card {
    margin-bottom: 2rem;
  }
  
  .price-card {
    margin-bottom: 2rem;
  }
  
  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* ===== CONTAINER MAX WIDTHS ===== */
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #footer,
  .btn,
  .hero-decorative {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (max-width: 767px) {
  /* Improve touch targets on mobile */
  .nav-link,
  .btn,
  .form-control {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve text readability */
  body {
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}
  
  /* Improve form usability */
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
}

/* ===== HOVER EFFECTS DISABLED ON TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .price-card:hover,
  .blog-card:hover,
  .gallery-item:hover img,
  .btn-primary:hover,
  .btn-outline-primary:hover {
    transform: none;
    box-shadow: initial;
  }
  
  .navbar-nav .nav-link:hover {
    color: initial;
  }
}

/* ===== LANDSCAPE ORIENTATION ON MOBILE ===== */
@media (max-width: 767px) and (orientation: landscape) {
  #hero {
    min-height: 70vh;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .hero-decorative {
    background-size: contain;
  }
}

/* ===== DARK MODE SUPPORT ===== */

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative,
  .feature-card,
  .service-card,
  .team-card,
  .price-card,
  .blog-card,
  .gallery-item img,
  .btn-primary,
  .btn-outline-primary {
    transition: none;
    animation: none;
  }
}

/* ===== CONTRAST IMPROVEMENTS ===== */
@media (prefers-contrast: high) {
  .feature-card,
  .service-card,
  .review-card,
  .case-card,
  .career-card,
  .blog-card,
  .faq-card {
    border: 2px solid var(--dark-earth);
  }
  
  .btn-primary,
  .btn-outline-primary {
    border-width: 2px;
  }
} 