/* ===== RESPONSIVE CSS ===== */

/* Mobile First Approach */
@media (max-width: 575.912px) {
  /* Extra small devices (phones) */
  
  .hero-section h1 {
    font-size: 2.13rem;
  }
  
  .hero-section h3 {
    font-size: 1.39rem;
  }
  
  .hero-section p {
    font-size: 1.15rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .feature-card, .service-card, .price-card {
    padding: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.39rem !important;
  }
  
  .team-img {
    width: 100px;
    height: 100px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.28rem;
  }
  
  .timeline-item {
    margin: 1rem 0;
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    margin-top: 1.10rem;
    padding: 1.5rem;
  }
  
  .metric-number {
    font-size: 2.13rem;
  }
  
  .instructor-img {
    width: 80px;
    height: 80px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .blog-post img {
    height: 150px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* Small devices (landscape phones) */
  
  .hero-section h1 {
    font-size: 2.62rem;
  }
  
  .hero-section h3 {
    font-size: 1.62rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .timeline-item {
    width: 70%;
  }
  
  .col-sm-6 .team-member,
  .col-sm-6 .process-step {
    margin-bottom: 2.20rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  /* Medium devices (tablets) */
  
  .hero-section h1 {
    font-size: 3.12rem;
  }
  
  .section-padding {
    padding: 70px 0;
  }
  
  .timeline-item {
    width: 60%;
  }
  
  .timeline-item:nth-child(odd) {
    left: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 40%;
  }
  
  .col-md-4 .process-step {
    margin-bottom: 2.20rem;
  }
  
  /* Swiper adjustments for tablets */
  .reviews-slider .swiper-slide {
    width: 80%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Large devices (desktops) */
  
  .timeline-item {
    width: 45%;
  }
  
  .hero-section h1 {
    font-size: 3.23rem;
  }
  
  /* Five column layout for team */
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

@media (min-width: 1200px) {
  /* Extra large devices (large desktops) */
  
  .hero-section h1 {
    font-size: 3.55rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .timeline-item {
    width: 40%;
  }
  
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ===== MOBILE SPECIFIC STYLES ===== */
@media (max-width: 767.98px) {
  /* Mobile navigation */
  .navbar-collapse {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1.10rem;
    box-shadow: var(--box-shadow);
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }
  
  /* Mobile hero section */
  .hero-section {
  padding-top: 50px;
    text-align: center;
    padding: 100px 0 60px;
  }
  
  .hero-section .row {
    flex-direction: column-reverse;
  }
  
  .hero-section .col-lg-6:last-child {
    margin-bottom: 2.20rem;
  }
  
  /* Mobile timeline */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: auto !important;
    left: 40px !important;
    margin-left: 0;
  }
  
  .timeline-item::before {
    left: -27px !important;
  }
  
  /* Mobile cards */
  .price-card.featured {
    transform: none;
    margin-top: 1.10rem;
  }
  
  /* Mobile contact form */
  .contact-form .row .col-md-6,
  .contact-form .row .col-12 {
    margin-bottom: 1.05rem;
  }
  
  /* Mobile gallery */
  .gallery-item {
    margin-bottom: 1.05rem;
  }
  
  /* Mobile process steps */
  .process-step {
    margin-bottom: 2.20rem;
  }
  
  /* Mobile team grid */
  .team-member {
    margin-bottom: 3.15rem;
  }
}

/* ===== SWIPER RESPONSIVE SETTINGS ===== */
@media (max-width: 767.98px) {
  /* Disable autoplay and effects on mobile for reduced motion */
  .reviews-slider {
    --swiper-navigation-size: 24px;
  }
  
  .swiper-slide {
    margin-right: 10px;
  }
}

/* ===== REDUCED MOTION SUPPORT ===== */
@media (prefers-reduced-motion: reduce) {
  /* Disable animations and transitions for users who prefer reduced motion */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .feature-card:hover, .service-card:hover, .price-card:hover,
  .gallery-item:hover, .blog-post:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
  
  .hero-section::before {
    animation: none;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --box-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
  
  .navbar {
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  }
  
  .feature-card, .service-card, .price-card {
    border: 2px solid rgba(0, 0, 0, 0.1);
  }
  
  .contact-form .form-control {
    border: 3px solid var(--slate-light);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar, .footer, .breadcrumb-nav {
    display: none !important;
  }
  
  .hero-section {
  padding-top: 50px;
    page-break-after: always;
  }
  
  .section-padding {
    padding: 20px 0;
  }
  
  .feature-card, .service-card, .price-card {
    border: 1px solid #000;
    break-inside: avoid;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-section {
  padding-top: 50px;
    min-height: auto;
    padding: 80px 0 40px;
  }
  
  .hero-section h1 {
    font-size: 2.13rem;
  }
  
  .hero-section h3 {
    font-size: 1.28rem;
  }
  
  .section-padding {
    padding: 40px 0;
  }
}



/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus,
.gallery-item:focus {
  outline: 3px solid var(--primary-emerald);
  outline-offset: 2px;
}

/* ===== SKIP LINKS FOR ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-violet);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* ===== UTILITY CLASSES FOR RESPONSIVE DESIGN ===== */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 767.98px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-center {
    text-align: center;
  }
  
  .mobile-full-width {
    width: 100%;
  }
}

/* ===== CONTAINER SPACING ADJUSTMENTS ===== */
@media (max-width: 575.98px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ===== FORM RESPONSIVE BEHAVIOR ===== */
@media (max-width: 767.98px) {
  .contact-form .row .col-md-6 {
    margin-bottom: 1.05rem;
  }
  
  .contact-form .btn {
    width: 100%;
    padding: 1rem;
  }
  
  .form-control {
    font-size: 18.00px; /* Prevents zoom on iOS */
  }
}

/* ===== IMAGE RESPONSIVE BEHAVIOR ===== */
img {
  max-width: 100%;
  height: auto;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* ===== TABLE RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .table-responsive {
    border: none;
  }
  
  .table-responsive table {
    font-size: 0.90rem;
  }
}

/* ===== ADDITIONAL BREAKPOINTS FOR LARGER SCREENS ===== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section h1 {
    font-size: 4.02rem;
  }
  
  .section-padding {
    padding: 100px 0;
  }
} 