/* ======================================
   RESPONSIVE DESIGN - MOBILE FIRST
   Bootstrap 5 Responsive Utilities
   ====================================== */

/* Mobile First Approach */
/* Base styles are for mobile, then scale up */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.59rem;
  }
  
  h3 {
    font-size: 1.40rem;
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: 1.34rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.82rem;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Cards */
  .service-card,
  .team-member,
  .testimonial-card,
  .faq-card,
  .price-card {
    padding: 1.5rem;
    margin-bottom: 1.81rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Team Photos */
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Service Icons */
  .service-icon,
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  /* Process Numbers */
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.29rem;
  }
  
  /* Price Value */
  .price-value {
    font-size: 2rem;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 200px;
  }
  
  /* Blog Images */
  .blog-image {
    height: 150px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Page Sections */
  .page-section {
    padding: 2rem 0;
  }
  
  .page-element {
    padding: 1rem;
  }
  
  /* Core Info Items */
  .core-info-item {
    padding: 1.5rem;
  }
  
  .core-info-icon {
    width: 60px;
    height: 60px;
  }
  
  /* Timeline */
  .timeline-item {
    padding: 1.5rem;
  }
  
  /* Process Steps */
  .process-step {
    padding: 1.5rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  .hero-title {
    font-size: 2.34rem;
  }
  
  .hero-subtitle {
    font-size: 1.14rem;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 4rem 0;
  }
  
  /* Cards */
  .service-card,
  .team-member,
  .price-card {
    padding: 2rem;
  }
  
  /* Team Photos */
  .team-photo {
    width: 110px;
    height: 110px;
  }
  
  /* Service Icons */
  .service-icon {
    width: 70px;
    height: 70px;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 220px;
  }
  
  /* Blog Images */
  .blog-image {
    height: 180px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero Section */
  .hero-decorative {
    width: 250px;
    height: 250px;
  }
  
  /* Cards in rows */
  .service-card,
  .team-member,
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 240px;
  }
  
  /* Feature Icons */
  .feature-icon {
    width: 55px;
    height: 55px;
  }
  
  /* Process Numbers */
  .process-number {
    width: 55px;
    height: 55px;
    font-size: 1.47rem;
  }
  
  /* Timeline Items */
  .timeline-item {
    margin-bottom: 1.69rem;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero Section */
  .hero-title {
    font-size: 2.51rem;
  }
  
  /* Cards spacing */
  .service-card,
  .team-member,
  .price-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 250px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2.5rem;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.37rem;
  }
  
  /* Section Padding */
  .section-padding {
    padding: 100px 0;
  }
  
  /* Cards */
  .service-card,
  .team-member,
  .price-card {
    padding: 2.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 3.5rem;
  }
  
  /* Gallery Items */
  .gallery-item img {
    height: 280px;
  }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-title {
    font-size: 1.83rem;
    margin-bottom: 0.70rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-desc {
    margin-bottom: 1rem;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp rendering on high DPI screens */
  .service-icon,
  .feature-icon,
  .process-number,
  .core-info-icon {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print Styles */
@media print {
  /* Hide unnecessary elements when printing */
  .navbar,
  .hero-decorative,
  .btn,
  .contact-form,
  .footer {
    display: none !important;
  }
  
  /* Optimize text for printing */
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
  
  /* Remove backgrounds and shadows */
  * {
    background: transparent !important;
    box-shadow: none !important;
  }
  
  /* Ensure content fits on page */
  .container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .row {
    margin: 0 !important;
  }
  
  .col-12,
  .col-md-6,
  .col-lg-4,
  .col-xl-3 {
    width: 100% !important;
    margin-bottom: 1rem !important;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  /* Reduce motion for users who prefer it */
  .service-card,
  .team-member,
  .gallery-item,
  .blog-card,
  .btn {
    transition: none !important;
    transform: none !important;
  }
  
  .hero-decorative {
    animation: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  /* Improve contrast for accessibility */
  .hero-section {
    background: #000;
    color: #fff;
  }
  
  .service-card,
  .team-member,
  .testimonial-card,
  .faq-card,
  .price-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    background: #000;
    border: 2px solid #000;
  }
  
  .btn-outline-primary {
    border: 2px solid #000;
    color: #000;
  }
}

/* Dark Mode Support */

/* Focus States for Keyboard Navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-electric);
  outline-offset: 2px;
}

/* Responsive Grid Adjustments */
@media (max-width: 767.98px) {
  .row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
}

@media (max-width: 575.98px) {
  .row.g-4 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 1rem;
  }
}

/* Responsive Typography Scale */
@media (max-width: 991.98px) {
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.61rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.82rem; }
  .display-5 { font-size: 1.63rem; }
  .display-6 { font-size: 1.31rem; }
}

@media (max-width: 575.98px) {
  .display-1 { font-size: 2.58rem; }
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.83rem; }
  .display-4 { font-size: 1.63rem; }
  .display-5 { font-size: 1.38rem; }
  .display-6 { font-size: 1.17rem; }
}

/* Responsive Spacing Utilities */
@media (max-width: 767.98px) {
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
  .py-4 { padding-top: 1.90rem !important; padding-bottom: 1.77rem !important; }
  .my-4 { margin-top: 1.80rem !important; margin-bottom: 1.88rem !important; }
}

/* Responsive Image Handling */
@media (max-width: 575.98px) {
  .img-fluid {
    height: auto;
    max-width: 100%;
  }
}

/* Responsive Container Adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
} 

.hero-content {
    padding-top: 275px;
}