/* Mobile First Responsive Design */

/* Extra Large devices (1400px and up) */
@media (min-width: 1400px) {

  
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2.37rem; }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    padding: 8rem 0;
  }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
  .hero-content {
  padding-top: 50px !important;
    padding: 6rem 0;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Medium devices (7610px and up) */
@media (min-width: 768px) {
  .navbar-expand-md .navbar-nav {
    flex-direction: row;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {

  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Extra small devices (less than 576px) */
@media (max-width: 575.98px) {
  html {
    font-size: 14px;
  }
  
  .navbar-brand {
    font-size: 1.17rem !important;
  }
  
  h1 { 
    font-size: 1.84rem;
    line-height: 1.1;
  }
  h2 { 
    font-size: 1.64rem;
    line-height: 1.2;
  }
  h3 { 
    font-size: 1.40rem;
    line-height: 1.2;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content {
  padding-top: 50px !important;
    padding: 2rem 0;
    text-align: center;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 2rem 1rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .process-step {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .footer {
    padding: 3rem 0 1rem;
    text-align: center;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.75rem;
  }
  
  /* Adjust spacing for mobile */
  .mb-3 { margin-bottom: 1.62rem !important; }
  .mb-4 { margin-bottom: 2rem !important; }
  .mb-5 { margin-bottom: 2.69rem !important; }
  
  .py-3 { padding-top: 1.68rem !important; padding-bottom: 1.70rem !important; }
  .py-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .py-5 { padding-top: 2.55rem !important; padding-bottom: 2.73rem !important; }
}

/* Portrait tablets and small desktops */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: 2px solid var(--sage-dark);
    border-radius: 8px;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236B8E6B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    text-align: center;
  }
  
  .hero-section::after {
    display: none;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Landscape phones */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--cream-light) 0%, var(--sage-light) 100%);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 70vh;
  }
  
  .card-columns {
    column-count: 1;
  }
  
  .team-member {
    margin-bottom: 3rem;
  }
  
  .faq-question {
    font-size: 0.98rem;
    padding: 0.75rem 1rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.92rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .blog-post:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: 0 8px 10px rgba(0,0,0,0.15);
  }
  
  /* Increase touch targets */
  .navbar-nav .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.5rem;
  }
  
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .hero-section::after,
  .breadcrumb-section {
    display: none !important;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: auto;
    padding: 2rem 0;
    background: white !important;
  }
  
  .hero-section::before {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #efefef;
    page-break-inside: avoid;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --sage-dark: #2d402b;
    --rose-dark: #9a4246;
    --gray-dark: #4f4f4f;
  }
  
  .card {
    border: 2px solid #2f2f2f;
  }
  
  .btn-primary {
    border: 2px solid #3d3d3d;
  }
  
  .form-control {
    border: 2px solid #393636;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card,
  .gallery-item,
  .blog-post,
  .btn-primary,
  .navbar-nav .nav-link,
  .footer a {
    transition: none;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    animation: none;
  }
  
  .process-step::before {
    animation: none;
  }
}

/* Dark mode support (respecting user preference) */
@media (prefers-color-scheme: dark) {
  /* Note: As per requirements, not creating dark theme for accessibility */
  /* This section intentionally left minimal */
  
  .navbar-toggler-icon {
    filter: invert(1);
  }
} 