/* ===== RESPONSIVE CSS - MOBILE PENSION ADVICE VAN TEMPLATE ===== */

/* Large Tablets (1024px and down) */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .container {
    padding: 0 1.5rem;
  }
}

/* Tablets (768px and down) */
@media (max-width: 768px) {
  
  /* Header Navigation */
  .main-nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-medium);
    padding: 1rem;
    gap: 1rem;
    display: none;
  }
  
  .main-nav.active ul {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-sage);
    cursor: pointer;
  }
  
  /* Hero Section */
  .hero {
    min-height: 90vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .hero-text h2 {
    font-size: 1.3rem;
  }
  
  /* Section Headers */
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header h3 {
    font-size: 1.2rem;
  }
  
  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  /* Services Section */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Team Section */
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Decorative Shapes - Reduce size */
  .shape-circle {
    width: 150px;
    height: 150px;
  }
  
  .shape-blob {
    width: 200px;
    height: 200px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 2rem;
  }
  
  /* Disable autoplay and reduce motion on mobile */
  .swiper-container {
    --swiper-navigation-size: 30px;
  }
  
  .swiper-container .swiper-wrapper {
    align-items: stretch;
  }
}

/* Mobile Phones (480px and down) */
@media (max-width: 480px) {
  
  /* Typography */
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero-text h2 {
    font-size: 1.1rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header h3 {
    font-size: 1.1rem;
  }
  
  /* Layout Adjustments */
  :root {
    --section-padding: 3rem 0;
    --container-padding: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Header */
  header .container {
    padding: 0.8rem 1rem;
  }
  
  #sitename {
    font-size: 1.5rem;
  }
  
  /* Hero Section */
  .hero {
    min-height: 80vh;
    padding: 1.5rem 0;
  }
  
  .hero-content {
    gap: 1.5rem;
  }
  
  /* Services Cards */
  .service-content {
    padding: 1.5rem;
  }
  
  .service-content h4 {
    font-size: 1.3rem;
  }
  
  /* Team Members */
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-member {
    padding: 1.5rem;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
  
  /* Feature Cards */
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-card i {
    font-size: 2.5rem;
  }
  
  .feature-card h4 {
    font-size: 1.2rem;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.8rem;
  }
  
  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .faq-answer {
    padding: 1rem;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  /* Decorative Shapes - Hide or minimize */
  .shape {
    display: none;
  }
  
  /* Reviews/Testimonials */
  .review-slide {
    padding: 1.5rem;
  }
  
  .review-slide p {
    font-size: 1rem;
  }
  
  /* Footer */
  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  /* Breadcrumb */
  .breadcrumb {
    margin-top: 70px;
  }
}

/* Small Mobile Phones (360px and down) */
@media (max-width: 360px) {
  
  /* Even smaller typography */
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  /* Tighter spacing */
  :root {
    --section-padding: 2.5rem 0;
  }
  
  .container {
    padding: 0 0.8rem;
  }
  
  /* Services Grid */
  .services-grid {
    gap: 1.5rem;
  }
  
  /* Gallery - Single column */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Team grid - Single column */
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: 1rem;
  }
  
  /* Feature cards - Single column */
  .about-features {
    grid-template-columns: 1fr;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  
  /* Ensure crisp text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Sharper borders and shadows */
  .service-card,
  .feature-card,
  .team-member,
  .contact-form {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Landscape Mobile Phones */
@media (max-width: 896px) and (orientation: landscape) and (max-height: 500px) {
  
  .hero {
    min-height: 90vh;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  :root {
    --section-padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  
  /* Hide navigation and decorative elements */
  header,
  .main-nav,
  .shape,
  .swiper-pagination,
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
  
  /* Ensure good contrast for printing */
  body {
    color: #000;
    background: #fff;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
  }
  
  /* Simplify layouts for print */
  .hero-content,
  .about-content,
  .services-grid,
  .team-grid,
  .gallery-grid {
    display: block;
  }
  
  .service-card,
  .feature-card,
  .team-member {
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  
  /* Disable smooth scrolling */
  html {
    scroll-behavior: auto;
  }
  
  /* Disable hover animations */
  .service-card:hover,
  .feature-card:hover,
  .team-member:hover,
  .blog-card:hover {
    transform: none;
  }
  
  /* Disable gallery image scaling */
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Disable button animations */
  .btn-submit:hover {
    transform: none;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  
  /* Enhanced focus indicators */
  a:focus,
  button:focus,
  input:focus,
  textarea:focus,
  select:focus {
    outline: 3px solid var(--primary-sage);
    outline-offset: 2px;
  }
  
  /* Skip to content link */
  .skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-sage);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
  }
  
  .skip-to-content:focus {
    top: 6px;
  }
}

/* Swiper Responsive Overrides */
@media (max-width: 768px) {
  
  .swiper-container {
    /* Disable autoplay on mobile */
    --swiper-autoplay-delay: 0;
  }
  
  .swiper-slide {
    padding: 0 1rem;
  }
  
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
  
  .swiper-pagination {
    position: relative;
    margin-top: 2rem;
  }
}

/* IE11 Support (if needed) */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  
  /* Flexbox fallbacks */
  .hero-content {
    display: -ms-flexbox;
    -ms-flex-direction: column;
  }
  
  .main-nav ul {
    display: -ms-flexbox;
  }
  
  /* Grid fallbacks */
  .services-grid,
  .team-grid,
  .gallery-grid {
    display: block;
  }
  
  .service-card,
  .team-member,
  .gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
  }
} 