/* Sleep Optimization Consulting - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.25rem;
    --section-padding: 50px 0;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: var(--fs-3xl);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: var(--fs-lg);
  }
  
  .hero-desc {
    font-size: var(--fs-base);
    margin: 0 auto 2rem;
  }
  
  .navbar-brand {
    font-size: var(--fs-lg);
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.73rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.53rem;
    margin-bottom: 1rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .price-card {
    padding: 1.5rem;
    margin-bottom: 1.62rem;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  .price-card.featured:hover {
    transform: translateY(-5px);
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--fs-lg);
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .blob-1, .blob-2 {
    display: none;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  :root {
    --fs-4xl: 2rem;
    --fs-3xl: 1.625rem;
    --section-padding: 60px 0;
  }
  
  .hero {
    min-height: 85vh;
  }
  
  .hero-title {
    font-size: var(--fs-4xl);
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  .blob-1 {
    width: 250px;
    height: 250px;
  }
  
  .blob-2 {
    width: 200px;
    height: 200px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  :root {
    --section-padding: 70px 0;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
  
  .price-card.featured {
    transform: scale(1.02);
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  .blog-image {
    height: 220px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    min-height: 95vh;
  }
  
  .hero-content {
  padding-top: 50px !important;
    padding-right: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  .blog-image {
    height: 240px;
  }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero {
    min-height: 100vh;
  }
  
  .hero-content {
  padding-top: 50px !important;
    padding-right: 3rem;
  }
  
  .section-title h2 {
    font-size: var(--fs-4xl);
  }
  
  .service-card:hover {
    transform: translateY(-15px);
  }
  
  .price-card:hover {
    transform: translateY(-15px);
  }
  
  .price-card.featured:hover {
    transform: translateY(-15px) scale(1.05);
  }
  
  .gallery-item img {
    height: 320px;
  }
  
  .blog-image {
    height: 280px;
  }
}

/* Navigation Responsive Behavior */
@media (max-width: 991.98px) {
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }
}

/* Hero Image Responsive */
@media (max-width: 767.98px) {
  .hero .row {
    flex-direction: column-reverse;
  }
  
  .hero-image {
    margin-bottom: 2rem;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
  }
}

/* Service Grid Responsive */
@media (max-width: 767.98px) {
  .services-grid .col-md-4 {
    margin-bottom: 1.68rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .services-grid .col-md-4:nth-child(even) {
    margin-top: 1rem;
  }
}

/* Team Grid Responsive */
@media (max-width: 575.98px) {
  .team-grid .col-lg-2 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .team-grid .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2rem;
  }
}

/* Price Plans Responsive */
@media (max-width: 767.98px) {
  .price-plans .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* FAQ Responsive */
@media (max-width: 575.98px) {
  .faq-question {
    padding: 1rem;
    font-size: var(--fs-sm);
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: var(--fs-sm);
  }
}

/* Contact Section Responsive */
@media (max-width: 767.98px) {
  .contact-section .row {
    flex-direction: column;
  }
  
  .contact-info {
    margin-top: 2rem;
  }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  .footer h5 {
    margin-top: 2rem;
  }
  
  .footer h5:first-child {
    margin-top: 0;
  }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
  .gallery-grid .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
  .blog-grid .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
  .process-grid .col-lg-2 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .process-grid .col-lg-2 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 2rem;
  }
}

/* Timeline Responsive */
@media (max-width: 575.98px) {
  .timeline-item {
    padding-left: 1.5rem;
  }
  
  .timeline-item::before {
    left: -6px;
    width: 10px;
    height: 10px;
  }
}

/* Testimonials Responsive */
@media (max-width: 767.98px) {
  .testimonials-grid .col-md-6 {
    margin-bottom: 1.65rem;
  }
}

/* Features Grid Responsive */
@media (max-width: 767.98px) {
  .features-grid .col-md-6 {
    margin-bottom: 2rem;
  }
}

/* Case Studies Responsive */
@media (max-width: 767.98px) {
  .casestudy-grid .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Career Responsive */
@media (max-width: 767.98px) {
  .career-grid .col-md-6 {
    margin-bottom: 2rem;
  }
}

/* Core Info Responsive */
@media (max-width: 767.98px) {
  .coreinfo-grid .col-md-4 {
    margin-bottom: 2rem;
  }
}

/* Animation Adjustments for Mobile */
@media (max-width: 767.98px) {
  .card:hover,
  .service-card:hover,
  .price-card:hover,
  .blog-card:hover {
    transform: translateY(-3px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.02);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card,
  .service-card,
  .price-card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
  
  * {
    color: black !important;
    background: white !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-lavender: #5c1da2;
    --primary-sage: #0f6a39;
    --primary-peach: #c70e13;
    --primary-mint: #007f5a;
    --primary-rose: #b70f39;
  }
  
  .card,
  .service-card,
  .price-card {
    border: 2px solid var(--gray-400);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  *:focus {
    outline: 2px solid var(--primary-lavender);
    outline-offset: 2px;
  }
  
  .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(142, 144, 210, 0.50);
  }
  
  .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(150, 149, 224, 0.25);
  }
} 