/* ===== RESPONSIVE.CSS - Mobile & Tablet Optimizations ===== */

/* ===== MOBILE FIRST APPROACH ===== */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  /* Section Spacing */
  .section {
    padding: 2rem 0;
  }
  
  /* Header Adjustments */
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative shapes on mobile */
  }
  
  /* Cards */
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card,
  .pricing-card,
  .testimonial-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  /* Pricing Cards */
  .pricing-card.featured {
    transform: none; /* Remove scale transform on mobile */
    border-width: 3px;
  }
  
  .pricing-price {
    font-size: 2.5rem;
  }
  
  /* Team Cards */
  .team-photo {
    height: 200px;
  }
  
  .team-info {
    padding: 1rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  /* Gallery Grid */
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Remove animations on mobile for performance */
  .card:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Button adjustments */
  .btn-primary {
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin-top: 1rem;
  }
  
  /* Margin adjustments */
  .section-desc {
    margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  .hero-title {
    font-size: 2.75rem;
  }
  
  /* Section Spacing */
  .section {
    padding: 3rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 85vh;
  }
  
  /* Cards */
  .service-card,
  .pricing-card,
  .testimonial-card {
    padding: 2rem;
  }
  
  /* Team Photos */
  .team-photo {
    height: 220px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 220px;
  }
  
  /* Limited animations on small screens */
  .card:hover {
    transform: translateY(-3px);
  }
  
  .team-card:hover {
    transform: translateY(-5px);
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  .hero-title {
    font-size: 3rem;
  }
  
  /* Section Spacing */
  .section {
    padding: 3.5rem 0;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 90vh;
  }
  
  /* Cards maintain padding */
  .service-card,
  .pricing-card,
  .testimonial-card {
    padding: 2rem;
  }
  
  /* Team Photos */
  .team-photo {
    height: 240px;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 240px;
  }
  
  /* Reduced animations for tablet */
  .card:hover {
    transform: translateY(-4px);
  }
  
  .team-card:hover {
    transform: translateY(-7px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  /* Full animations enabled */
  .card:hover {
    transform: translateY(-5px);
  }
  
  .team-card:hover {
    transform: translateY(-10px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
  
  /* Full hero height */
  .hero-section {
    min-height: 100vh;
  }
  
  /* Full section padding */
  .section {
    padding: var(--section-padding);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Typography scaling */
  .hero-title {
    font-size: 3.5rem;
  }
  
  /* Container max width */
  .container {
    max-width: var(--container-max-width);
  }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    margin-bottom: 1.5rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #eee3e1;
    page-break-inside: avoid;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .team-photo,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  /* Disable all transitions and animations */
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-section::before {
    display: none;
  }
}

@media (prefers-contrast: high) {
  /* High contrast mode adjustments */
  .card {
    border: 2px solid var(--dark-gray);
  }
  
  .btn-primary {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 2px;
  }
}

/* ===== FOCUS STYLES FOR KEYBOARD NAVIGATION ===== */
@media (any-hover: none) {
  /* Touch device specific styles */
  .card:hover,
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* ===== GRID ADJUSTMENTS FOR DIFFERENT SCREEN SIZES ===== */
@media (max-width: 767.98px) {
  /* Stack all columns on mobile */
  .row > [class*="col-"] {
    margin-bottom: 1.5rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Tablet adjustments - 2 columns for most sections */
  .services-grid .col-lg-4,
  .features-grid .col-lg-3,
  .team-grid .col-lg-2,
  .reviews-grid .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2rem;
  }
}

/* ===== CUSTOM MOBILE MENU BEHAVIOR ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--white);
    border-top: 1px solid var(--primary-lavender);
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 

.hero-content {
    padding-top: 225px;
}