/* Responsive CSS for Stress Management Template */

/* Mobile First Approach - Base styles for mobile */

/* Extra Large Devices (xl) */
@media (max-width: 1400px) {
  .hero-title {
    font-size: 2.26rem;
  }
  
  .section-title h2 {
    font-size: 1.93rem;
  }
}

/* Large Devices (lg) */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .price-plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 27px;
  }
  
  .timeline-item::after {
    left: 15px;
    right: auto;
  }
}

/* Medium Devices (md) */
@media (max-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.87rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.23rem;
    margin-bottom: 1.56rem;
  }
  
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .price-plan-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .price-plan-card.featured {
    transform: none;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .about-feature {
    padding: 1.5rem;
  }
  
  .about-feature i {
    font-size: 2.60rem;
  }
  
  .features-item {
    padding: 2rem;
  }
  
  .casestudy-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .career-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .coreinfo-item i {
    font-size: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .process-item {
    flex-direction: column;
    text-align: center;
  }
  
  .process-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Small Devices (sm) */
@media (max-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.55rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.67rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.27rem !important;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card img {
    width: 60px;
    height: 60px;
  }
  
  .service-price {
    font-size: 1.61rem;
  }
  
  .price-plan-card {
    padding: 2rem 1.5rem;
  }
  
  .price-plan-price {
    font-size: 2.57rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  .about-feature {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .about-feature i {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .features-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .casestudy-card {
    padding: 2rem;
  }
  
  .career-grid {
    grid-template-columns: 1fr;
  }
  
  .career-card {
    padding: 2rem;
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .coreinfo-item {
    padding: 1.5rem;
  }
  
  .coreinfo-item i {
    font-size: 1.93rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card-body {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    padding: 0.75rem;
  }
  
  .btn-primary {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
  }
  
  .review-card {
    padding: 2rem;
    margin: 0 0.5rem;
  }
  
  .review-text {
    font-size: 1rem;
    margin-bottom: 1.73rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 0.93rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.96rem;
  }
  
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer p, .footer a {
    font-size: 1.02rem;
  }
  
  .timeline {
    margin: 2rem auto 0;
  }
  
  .timeline-item {
    padding: 1.5rem 2rem 1.5rem 50px;
  }
  
  .timeline-item::after {
    width: 15px;
    height: 15px;
    left: 8px;
  }
  
  .timeline::after {
    left: 24px;
    width: 3px;
  }
}

/* Extra Small Devices (xs) */
@media (max-width: 576px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .section-title {
    margin-bottom: 1.65rem;
  }
  
  .section-title h2 {
    font-size: 1.37rem;
  }
  
  .hero-section {
    min-height: 60vh;
    padding: 1.5rem 0;
  }
  
  .hero-title {
    font-size: 1.52rem;
    margin-bottom: 0.89rem;
  }
  
  .hero-subtitle {
    font-size: 0.91rem;
    margin-bottom: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.13rem !important;
  }
  
  .service-card {
    padding: 1.2rem;
  }
  
  .service-price {
    font-size: 1.40rem;
  }
  
  .price-plan-card {
    padding: 1.5rem;
  }
  
  .price-plan-price {
    font-size: 2rem;
  }
  
  .team-member {
    padding: 1rem;
  }
  
  .team-member img {
    width: 80px;
    height: 80px;
  }
  
  .about-feature {
    padding: 1rem;
  }
  
  .about-feature i {
    font-size: 1.91rem;
  }
  
  .features-item {
    padding: 1.2rem;
  }
  
  .casestudy-card {
    padding: 1.5rem;
  }
  
  .career-card {
    padding: 1.5rem;
  }
  
  .coreinfo-item {
    padding: 1rem;
  }
  
  .coreinfo-item i {
    font-size: 1.65rem;
  }
  
  .blog-card-body {
    padding: 1.2rem;
  }
  
  .contact-form {
    padding: 1.2rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.94rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .review-text {
    font-size: 1.03rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1.30rem;
  }
  
  .process-content {
    padding: 1.5rem;
  }
  
  .timeline-item {
    padding: 1rem 1.5rem 1rem 40px;
  }
  
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item::after {
    left: 6px;
    width: 12px;
    height: 12px;
  }
  
  .gallery-item img {
    height: 150px;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer-copyright {
    font-size: 0.90rem;
  }
  
  h1 { font-size: 1.54rem; }
  h2 { font-size: 1.34rem; }
  h3 { font-size: 1.29rem; }
  h4 { font-size: 1.18rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.96rem; }
  
  p {
    font-size: 1.01rem;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section {
    padding: 40px 0;
  }
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .navbar,
  .footer,
  .btn,
  .form-control {
    display: none !important;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .hero-section {
    min-height: auto;
  }
  
  .page-break {
    page-break-before: always;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-card img,
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-section::before {
    animation: none;
  }
  
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    transition: none;
  }
  
  .service-card:hover,
  .team-member:hover,
  .about-feature:hover,
  .career-card:hover {
    transform: none;
  }
}


/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .team-member:hover,
  .about-feature:hover,
  .features-item:hover,
  .career-card:hover,
  .coreinfo-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link:hover {
    transform: none;
  }
}

/* Very small screens (older phones) */
@media (max-width: 375px) {
  .container {
    padding: 0 10px;
  }
  
  .hero-title {
    font-size: 1.35rem;
  }
  
  .section-title h2 {
    font-size: 1.16rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.81rem;
  }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
  .service-card,
  .price-plan-card,
  .team-member,
  .contact-form,
  .blog-card,
  .faq-item {
    border: 2px solid var(--text-primary);
  }
  
  .btn-primary {
    border: 2px solid var(--text-primary);
  }
} 