/* Mobile First Responsive Design */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-section .col-md-6:first-child {
    margin-top: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .services-item,
  .features-item,
  .team-member,
  .reviews-item,
  .priceplan-item,
  .career-item,
  .casestudy-item,
  .coreinfo-item {
    margin-bottom: 1.59rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item {
    height: 200px;
  }
  
  .priceplan-price {
    font-size: 2rem;
  }
  
  h1 { font-size: 1.84rem; }
  h2 { font-size: 1.57rem; }
  h3 { font-size: 1.30rem; }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 85vh;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item {
    height: 220px;
  }
  
  .team-photo {
    width: 176px;
    height: 1710px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 90vh;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item {
    height: 230px;
  }
  
  .services-item .card-img-top {
    height: 180px;
  }
  
  .blog-item .card-img-top {
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item {
    height: 240px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container-fluid.hero-section .container {
    max-width: 1400px;
  }
}

/* Tablet and mobile navigation adjustments */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-collapse {
    background: var(--white);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
}

/* Print styles */
@media print {
  .navbar,
  .contact-form,
  footer {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto !important;
    padding: 2rem 0 !important;
    background: var(--white) !important;
  }
  
  section {
    padding: 2rem 0 !important;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid var(--gray) !important;
  }
  
  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
    color: var(--black) !important;
    background: var(--white) !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--black) !important;
  }
  
  .btn-primary {
    border: 2px solid var(--black) !important;
  }
  
  .form-control {
    border: 2px solid var(--black) !important;
  }
  
  .navbar {
    border-bottom: 2px solid var(--black);
  }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
  /* Note: Following requirements to not create dark theme for accessibility */
  /* This section is prepared for future use if requirements change */
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  .card:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Reduced motion for mobile devices */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .btn-primary {
    transition: transform 0.2s ease;
  }
}

/* Container max-widths for better content flow */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Flexible grid adjustments */
@media (min-width: 768px) {
  .row-cols-md-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .row-cols-md-3 > * {
    flex: 0 0 auto;
    width: 33.333333%;
  }
}

@media (min-width: 992px) {
  .row-cols-lg-3 > * {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .row-cols-lg-4 > * {
    flex: 0 0 auto;
    width: 25%;
  }
}

/* Utility classes for responsive spacing */
.mb-mobile {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .mb-mobile {
    margin-bottom: 0;
  }
}

.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: inherit;
  }
} 