/* Pension Clinic Template - Responsive CSS */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container-xl {
    max-width: 1320px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .hero-content {
    padding-right: 2rem;
  }
  
  .service-card {
    min-height: 350px;
  }
  
  .team-card {
    min-height: 320px;
  }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) {
  .navbar-nav {
    margin-left: auto;
  }
  
  .hero-section {
    text-align: left;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) {
  .navbar-expand-md .navbar-nav {
    flex-direction: row;
  }
  
  .hero-section .col-md-6:first-child {
    padding-right: 2rem;
  }
  
  .service-card {
    height: 100%;
  }
  
  .team-card {
    height: 100%;
  }
  
  .testimonial-card {
    margin: 0 0.5rem;
  }
  
  .contact-form .row .col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Mobile Devices (767px and below) */
@media (max-width: 767px) {
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    padding: 0 1rem;
  }
  
  /* Navigation */
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .navbar-brand {
    font-size: 12px !important;
    font-size: 1.1rem !important;
  }
  
  .navbar-toggler {
    border: none;
    font-size: 1rem;
  }
  
  .navbar-collapse {
    background: var(--deep-navy);
    margin: 1rem -1rem 0;
    padding: 1rem;
    border-radius: 10px;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
    text-align: center;
  }
  
  .hero-section .container {
    padding: 0 1rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .hero-section p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Sections */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Cards */
  .service-card,
  .team-card,
  .testimonial-card,
  .faq-item {
    margin-bottom: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .team-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem 1rem;
    margin: 0 1rem;
  }
  
  .contact-form h2 {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  /* FAQ */
  .faq-question {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer .container {
    padding: 0 1rem;
  }
  
  .footer h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer p,
  .footer a {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
  
  .footer-bottom small {
    font-size: 0.8rem;
  }
  
  /* Blog */
  .blog-card-body {
    padding: 1rem;
  }
  
  .blog-card-title {
    font-size: 1.1rem;
  }
  
  .blog-card-excerpt {
    font-size: 0.85rem;
  }
  
  /* Additional Pages */
  .add-page-section {
    padding: 2.5rem 0;
  }
  
  .add-page-element {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Breadcrumbs */
  .breadcrumb {
    padding: 0.5rem 0;
  }
  
  .breadcrumb-item img {
    height: 16px;
  }
  
  /* Space Page */
  #space {
    min-height: 60vh;
    padding: 2rem 1rem;
  }
}

/* Extra Small Devices (575px and below) */
@media (max-width: 575px) {
  .container,
  .container-sm {
    padding: 0 0.75rem;
  }
  
  /* Hero */
  .hero-section {
    min-height: 60vh;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .hero-section p {
    font-size: 0.9rem;
  }
  
  /* Cards */
  .service-card,
  .team-card {
    padding: 1rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item img {
    height: 250px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem 0.75rem;
    margin: 0 0.5rem;
  }
  
  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  /* Section Titles */
  .section-title h2 {
    font-size: 1.3rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
}

/* Landscape Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 80vh;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .navbar {
    padding: 0.25rem 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
  
  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
  
  .service-card,
  .team-card,
  .testimonial-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    color: black !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #1a4d2e;
    --accent-gold: #b8941f;
    --neutral-slate: #2d3748;
    --warm-cream: #ffffff;
    --deep-navy: #000000;
  }
  
  .service-card,
  .team-card,
  .testimonial-card {
    border: 2px solid var(--deep-navy);
  }
  
  .btn-primary {
    border: 2px solid var(--deep-navy);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative {
    animation: none;
  }
  
  .service-card:hover,
  .team-card:hover,
  .gallery-item:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .swiper {
    scroll-behavior: auto;
  }
}

/* Focus Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn:focus,
  .form-control:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --warm-cream: #1a1a1a;
    --warm-cream-light: #2d2d2d;
    --warm-cream-dark: #404040;
    --deep-navy: #ffffff;
    --neutral-slate: #e2e8f0;
    --neutral-slate-light: #cbd5e1;
  }
  
  .service-card,
  .team-card,
  .testimonial-card,
  .contact-form,
  .faq-item,
  .blog-card,
  .add-page-element {
    background: var(--warm-cream-dark);
    color: var(--deep-navy);
  }
} 