/* ========================================
   RESPONSIVE STYLES
   Mobile-First Approach
   ======================================== */

/* Mobile Devices (up to 767px) */
@media (max-width: 767.98px) {
  
  /* Typography Adjustments */
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  /* Section Padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none; /* Hide decorative elements on mobile */
  }
  
  /* Service Cards */
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  /* Team Cards */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery Grid */
  .gallery-row img {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1.5rem;
    text-align: center;
  }
  
  /* No animations on mobile to respect performance */
  .service-card:hover,
  .team-card:hover,
  .gallery-row img:hover {
    transform: none;
  }
  
  /* Form elements full width */
  .btn-primary {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Tablet Devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Typography */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Section Spacing */
  .section {
    padding: 3rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-decorative {
    width: 150px;
    height: 150px;
  }
  
  .hero-decorative:nth-child(2) {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery Grid */
  .gallery-row img {
    height: 220px;
  }
  
  /* Team Cards */
  .team-photo {
    width: 110px;
    height: 110px;
  }
}

/* Desktop Devices (992px and up) */
@media (min-width: 992px) {
  
  /* Full desktop styles from main.css apply */
  
  /* Enhanced hover effects for desktop */
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(139, 111, 71, 0.2);
  }
  
  .team-card:hover {
    transform: translateY(-8px);
  }
  
  /* Gallery hover effects */
  .gallery-row img:hover {
    transform: scale(1.08);
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  
  /* Container max-width adjustments */
  .hero-section .container {
    max-width: 1140px;
  }
  
  /* Hero decorative elements */
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  .hero-decorative:nth-child(2) {
    width: 180px;
    height: 180px;
  }
  
  /* Enhanced spacing */
  .section {
    padding: 5rem 0;
  }
}

/* Extra Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  
  /* Larger containers */
  .container {
    max-width: 1320px;
  }
  
  /* Typography scaling */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  /* Enhanced hero */
  .hero-decorative {
    width: 300px;
    height: 300px;
  }
  
  .hero-decorative:nth-child(2) {
    width: 200px;
    height: 200px;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  /* Sharper borders */
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .contact-form {
    border-width: 0.5px;
  }
  
  /* Optimized shadows */
  .shadow-custom {
    box-shadow: 0 2px 8px rgba(139, 111, 71, 0.08);
  }
}

/* Print Styles */
@media print {
  
  /* Hide non-essential elements */
  .navbar,
  .hero-decorative,
  .btn,
  .footer {
    display: none !important;
  }
  
  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000 !important;
    background: #fff !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    break-after: avoid;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card {
    border: 1px solid #ccc !important;
    break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
  
  /* High contrast mode */
  :root {
    --color-primary: #4a3728;
    --color-primary-dark: #2d1f17;
    --color-secondary: #f0f0f0;
    --color-accent: #2d4a2d;
  }
  
  .service-card,
  .team-card,
  .review-card,
  .faq-card,
  .contact-form {
    border-width: 2px;
    border-color: var(--color-primary-dark);
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  
  .hero-section {
    min-height: 70vh;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  
  .btn:focus,
  .form-control:focus,
  .navbar-nav .nav-link:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
  }
} 

.hero-section h1 {
    padding-top: 275px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
