/* Responsive CSS for Stress Management Consulting Template */

/* Mobile First Approach */
@media (max-width: 575.98px) {
  /* Extra small devices (portrait phones, less than 576px) */
  .container {
    padding: 0 15px;
  }
  
  .hero-title {
    font-size: 1.91rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-desc {
    font-size: 1.02rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 1.64rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin: 0 15px;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.56rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .navbar-brand {
    font-size: 1.29rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.30rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* Small devices (landscape phones, 576px and up) */
  .hero-title {
    font-size: 2.21rem;
  }
  
  .hero-subtitle {
    font-size: 1.12rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Medium devices (tablets, 768px and up) */
  .hero-title {
    font-size: 2.64rem;
  }
  
  .hero-subtitle {
    font-size: 1.35rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
  
  .gallery-item img {
    height: 220px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Large devices (desktops, 992px and up) */
  .hero-title {
    font-size: 3rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .gallery-item img {
    height: 250px;
  }
}

@media (min-width: 1200px) {
  /* Extra large devices (large desktops, 1200px and up) */
  .hero-title {
    font-size: 3.53rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .gallery-item img {
    height: 280px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 568px) {
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 3rem 0;
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-section::before {
    background-image: url('../FIY_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .contact-form,
  .btn {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #d5d1d1;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0080ca;
    --secondary-color: #009861;
    --accent-color: #ff7000;
    --text-primary: #000000;
    --text-secondary: #1f1f1f;
    --background-white: #FFFFFF;
    --background-light: #F8F8F8;
  }
  
  .card {
    border: 2px solid var(--text-primary);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-color);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card,
  .service-card,
  .blog-post,
  .btn-primary {
    transition: none;
  }
  
  .gallery-item img {
    transition: none;
  }
  
  .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
    animation: none;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Note: Keeping light theme as per requirements */
}

/* Container max-widths */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
  .navbar-nav {
    background: var(--background-white);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--neutral-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Grid responsive behavior */
@media (max-width: 767.98px) {
  .row > [class*="col-"] {
    margin-bottom: 1.56rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Form responsive behavior */
@media (max-width: 575.98px) {
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.20rem;
  }
}

/* Image responsive behavior */
@media (max-width: 991.98px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-section .col-lg-6:first-child {
    text-align: center;
    padding-top: 2rem;
  }
}

/* Typography responsive scaling */
@media (max-width: 991.98px) {
  h1 { font-size: 1.84rem; }
  h2 { font-size: 1.63rem; }
  h3 { font-size: 1.48rem; }
  h4 { font-size: 1.32rem; }
}

@media (max-width: 767.98px) {
  h1 { font-size: 1.67rem; }
  h2 { font-size: 1.50rem; }
  h3 { font-size: 1.23rem; }
  h4 { font-size: 1.21rem; }
}

@media (max-width: 575.98px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.33rem; }
  h3 { font-size: 1.22rem; }
  h4 { font-size: 1rem; }
} 