/* ===== RESPONSIVE DESIGN ===== */

/* ===== EXTRA LARGE DEVICES (1200px and up) ===== */
@media (min-width: 1200px) {

  
  h1 {
    font-size: 3rem;
  }
  
  .hero-decorative-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-decorative-2 {
    width: 300px;
    height: 300px;
  }
}

/* ===== LARGE DEVICES (992px and up) ===== */
@media (min-width: 992px) {

  
  .navbar-nav .nav-link {
    padding: 0.5rem 1.5rem;
  }
  
  .section-title {
    margin-bottom: 4rem;
  }
  
  .feature-card {
    margin-bottom: 0;
  }
  
  .service-card {
    margin-bottom: 0;
  }
  
  .team-card {
    margin-bottom: 0;
  }
  
  .review-card {
    margin-bottom: 0;
  }
  
  .case-card {
    margin-bottom: 0;
  }
  
  .process-step {
    margin-bottom: 0;
  }
  
  .career-card {
    margin-bottom: 0;
  }
  
  .info-card {
    margin-bottom: 0;
  }
  
  .blog-card {
    margin-bottom: 0;
  }
}

/* ===== MEDIUM DEVICES (768px and up) ===== */
@media (min-width: 768px) {

  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .lead {
    font-size: 1.25rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-content {
    padding: 2rem 0;
    padding-top: 250px;
}
  
  .contact-form {
    padding: 3rem;
  }
  
  .price-card {
    padding: 3rem 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== SMALL DEVICES (576px and up) ===== */
@media (min-width: 576px) {

  
  .btn-primary {
    padding: 1rem 2.5rem;
  }
  
  .btn-outline-primary {
    padding: 1rem 2.5rem;
  }
}

/* ===== EXTRA SMALL DEVICES (less than 576px) ===== */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.35rem;
  }
  
  h4 {
    font-size: 1.15rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  /* Section spacing adjustments */
  section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Hero section mobile */
  #hero {
    min-height: 100vh;
    padding: 100px 0 60px;
  }
  
  .hero-content {
    text-align: center;
    padding-top: 250px;
}
  
  .hero-decorative {
    display: none;
  }
  
  /* Navigation mobile */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    font-size: 1.1rem;
  }
  
  /* Cards mobile adjustments */
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .process-step,
  .career-card,
  .info-card,
  .blog-card {
    margin-bottom: 2rem;
  }
  
  .service-card,
  .price-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer mobile */
  #footer {
    padding: 40px 0 20px;
    text-align: center;
  }
  
  .footer-content {
    margin-bottom: 1.5rem;
  }
  
  /* Price values mobile */
  .price-value {
    font-size: 2.5rem;
  }
  
  .service-price {
    font-size: 1.75rem;
  }
  
  /* Process number mobile */
  .process-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.25rem;
  }
  
  /* Feature icon mobile */
  .feature-icon {
    font-size: 2.5rem;
  }
  
  /* NO ANIMATIONS ON MOBILE (as per requirements) */
  .feature-card:hover,
  .service-card:hover,
  .team-card:hover,
  .review-card:hover,
  .blog-card:hover,
  .gallery-item:hover,
  .price-card:hover,
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
  
  .gallery-item img {
    transition: none;
  }
}

/* ===== LANDSCAPE MOBILE DEVICES ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
  #hero {
    min-height: 80vh;
    padding: 80px 0 40px;
  }
  
  section {
    padding: 50px 0;
  }
}

/* ===== TABLET PORTRAIT ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    padding: 1.5rem 0;
    padding-top: 250px;
}
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  #header,
  #footer {
    display: none;
  }
  
  section {
    page-break-inside: avoid;
    padding: 20px 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
    overflow-x: hidden;
}
  
  h1, h2, h3, h4, h5 {
    color: black;
  }
  
  .btn,
  .form-control,
  .navbar {
    display: none;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-image,
  .team-photo,
  .blog-image,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== REDUCED MOTION SPECIFIC MOBILE ===== */
@media (max-width: 575.98px) and (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-contrast: high) {
  :root {
    --light-gray: #ffffff;
    --gray: #000000;
    --primary-blue: #0000ff;
    --primary-green: #008000;
    --primary-purple: #800080;
    --primary-coral: #ff8c00;
    --primary-pink: #ff1493;
  }
  
  .feature-card,
  .service-card,
  .team-card,
  .review-card,
  .case-card,
  .process-step,
  .career-card,
  .info-card,
  .blog-card,
  .faq-card {
    border: 2px solid #000000;
  }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
  }
}

/* ===== CONTAINER ADJUSTMENTS ===== */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 25px;
    padding-right: 25px;
  }
}

/* ===== MOBILE MENU CUSTOMIZATION NOT ALLOWED ===== */
/* Following the requirements: "It is strictly forbidden to customize the mobile menu (hamburger and its functionality) from Bootstrap 5 - we use only the standard solution" */ 