/* Responsive CSS for Remote Language Exchange Groups Template */
/* Mobile-First Approach with Bootstrap 5 Compatibility */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }
  
  .hero-shape-2 {
    width: 180px;
    height: 180px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    --section-padding: 6rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-shape-1 {
    width: 300px;
    height: 300px;
  }
  
  .hero-shape-2 {
    width: 220px;
    height: 220px;
  }
  
  .service-card {
    height: 100%;
  }
  
  .price-card {
    height: 100%;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  :root {
    --font-size-xl: 1.75rem;
    --font-size-xxl: 2.5rem;
    --section-padding: 8rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .hero-shape-1 {
    width: 350px;
    height: 350px;
  }
  
  .hero-shape-2 {
    width: 250px;
    height: 250px;
  }
  
  .feature-item {
    height: 100%;
  }
  
  .service-image {
    width: 100px;
    height: 100px;
  }
  
  .team-photo {
    width: 200px;
    height: 200px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  :root {
    --font-size-xl: 2rem;
    --font-size-xxl: 3rem;
  }
  
  .hero-shape-1 {
    width: 400px;
    height: 400px;
  }
  
  .hero-shape-2 {
    width: 280px;
    height: 280px;
  }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1320px;
  }
}

/* Mobile-specific styles (max-width: 767px) */
@media (max-width: 767px) {
  body {
    font-size: 0.9rem;
    overflow-x: hidden;
}
  
  #header {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1rem;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
  
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-shape-1,
  .hero-shape-2 {
    display: none;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .feature-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .service-image {
    width: 60px;
    height: 60px;
  }
  
  .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .price-value {
    font-size: 2.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .review-card::before {
    font-size: 3rem;
  }
  
  .case-study-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .timeline-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .career-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .info-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .faq-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .gallery-placeholder {
    height: 200px;
  }
  
  #footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1.5rem;
  }
  
  .breadcrumb-container {
    margin-top: 60px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .container,
  .container-sm {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #hero {
    min-height: 70vh;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  .section-title h2 {
    font-size: 1.25rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.125rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  .feature-icon {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 1rem;
  }
  
  .service-image {
    width: 50px;
    height: 50px;
  }
  
  .price-card {
    padding: 1.5rem 1rem;
  }
  
  .price-value {
    font-size: 2rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .review-card {
    padding: 1rem;
  }
  
  .review-card::before {
    font-size: 2.5rem;
    top: -5px;
    left: 15px;
  }
  
  .case-study-card,
  .timeline-item,
  .career-card,
  .info-card {
    padding: 1rem;
  }
  
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .faq-card {
    padding: 1rem;
  }
  
  .gallery-placeholder {
    height: 150px;
    font-size: 0.8rem;
  }
  
  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-decorative-shape {
    background-size: contain;
  }
}

/* Landscape phone orientation */
@media (max-width: 767px) and (orientation: landscape) {
  #hero {
    min-height: 60vh;
  }
  
  .section-padding {
    padding: 2.5rem 0;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  #header,
  #footer,
  .breadcrumb-container {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .section-padding {
    padding: 1rem 0;
  }
  
  .service-card,
  .price-card,
  .review-card,
  .blog-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Accessibility - Focus states for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 3px solid var(--primary-teal);
    outline-offset: 2px;
  }
}

/* Dark mode preferences */

/* Reduced motion preferences - disable animations on mobile */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .service-card:hover,
  .price-card:hover,
  .feature-item:hover,
  .career-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}

/* Container max-widths for different breakpoints */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
} 