/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.25rem;
    --font-size-brand: 1.25rem;
  }

  /* Disable animations on mobile for prefers-reduced-motion */
  * {
    animation: none !important;
    transition: none !important;
  }

  .hero-decorative {
    display: none;
  }

  section {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .service-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .team-photo {
    width: 150px;
    height: 150px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .review-card,
  .career-card,
  .core-info-item,
  .contact-form {
    padding: 1.5rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .blog-card img {
    height: 200px;
  }

  /* Mobile navbar adjustments */
  .navbar-toggler {
    border: none;
    padding: 0.25rem;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cream-dark);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  section {
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .service-card {
    padding: 1.75rem;
  }

  .team-photo {
    width: 175px;
    height: 175px;
  }

  .gallery-item img {
    height: 250px;
  }

  .blog-card img {
    height: 220px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  section {
    padding: 4.5rem 0;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .service-card {
    padding: 2rem;
  }

  .team-photo {
    width: 180px;
    height: 180px;
  }

  .gallery-item img {
    height: 280px;
  }

  .blog-card img {
    height: 240px;
  }

  /* Tablet-specific adjustments */
  .hero-decorative {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 5%;
  }

  .hero-decorative::before {
    width: 80px;
    height: 80px;
    top: -40px;
    left: -40px;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  section {
    padding: 5rem 0;
  }

  .service-card {
    padding: 2rem;
  }

  .team-photo {
    width: 190px;
    height: 190px;
  }

  .gallery-item img {
    height: 300px;
  }

  .blog-card img {
    height: 250px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  section {
    padding: 6rem 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .service-card {
    padding: 2.5rem;
  }

  .team-photo {
    width: 200px;
    height: 200px;
  }

  .gallery-item img {
    height: 350px;
  }

  .blog-card img {
    height: 280px;
  }

  /* Large screen hero decorations */
  .hero-decorative {
    width: 250px;
    height: 250px;
  }

  .hero-decorative::before {
    width: 120px;
    height: 120px;
    top: -60px;
    left: -60px;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  #hero {
    min-height: 80vh;
  }

  section {
    padding: 3rem 0;
  }

  .hero-decorative {
    display: none;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high-DPI displays */
  .gallery-item img,
  .blog-card img,
  .team-photo {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .navbar,
  #footer,
  .btn,
  .hero-decorative {
    display: none !important;
  }

  section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Accessibility - Focus States */
@media (min-width: 768px) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--primary-sage);
    outline-offset: 2px;
  }
}

/* Container Responsive Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Grid System Responsive Adjustments */
@media (max-width: 767.98px) {
  .col-md-6,
  .col-md-4,
  .col-md-3 {
    margin-bottom: 2rem;
  }

  .col-lg-4,
  .col-lg-3 {
    margin-bottom: 2rem;
  }
}

/* Typography Responsive Adjustments */
@media (max-width: 575.98px) {
  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .section-title h2 {
    font-size: 1.75rem;
  }
}

/* Card Responsive Adjustments */
@media (max-width: 767.98px) {
  .card {
    margin-bottom: 1.5rem;
  }

  .price-card,
  .service-card,
  .review-card {
    margin-bottom: 2rem;
  }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-nav {
    margin-top: 1rem;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0.75rem 0;
    text-align: center;
  }
}

/* Form Responsive Adjustments */
@media (max-width: 575.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1rem;
  }

  .form-control {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Button Responsive Adjustments */
@media (max-width: 575.98px) {
  .btn {
    width: 100%;
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .btn + .btn {
    margin-left: 0;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .btn {
    padding: 0.875rem 1.5rem;
  }
} 

body {
    overflow-x: hidden;
}