/* ==========================================================================
   Responsive Styles - Home-Visit Pension Planning Service
   ========================================================================== */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .service-card,
  .price-card,
  .team-card,
  .review-card {
    margin-bottom: 2rem;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  /* Disable animations on mobile for better performance */
  .swiper-container .swiper-slide {
    transition: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .section-title h2 {
    font-size: 2.3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-nav {
    text-align: center;
    margin-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    display: block;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: none;
  }
}

/* Touch-friendly buttons on mobile */
@media (max-width: 767.98px) {
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: 44px;
    min-width: 44px;
  }
  
  .faq-question {
    padding: 1rem;
    min-height: 44px;
  }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .row {
    margin-left: -15px;
    margin-right: -15px;
  }
  
  .col-12,
  .col-sm-6,
  .col-md-4,
  .col-lg-3 {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Hero section mobile optimization */
@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    text-align: center;
  }
}

/* Section padding mobile optimization */
@media (max-width: 767.98px) {
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
}

/* Team photos mobile optimization */
@media (max-width: 575.98px) {
  .team-photo {
    width: 120px;
    height: 120px;
  }
}

/* Contact section mobile optimization */
@media (max-width: 767.98px) {
  .contact-section .row {
    flex-direction: column;
  }
  
  .contact-form {
    margin-bottom: 2rem;
  }
}

/* Footer mobile optimization */
@media (max-width: 767.98px) {
  .footer {
    text-align: center;
    padding: 2rem 0 1rem;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
}

/* Process/Timeline mobile optimization */
@media (max-width: 767.98px) {
  .process-step::before,
  .timeline-item::before {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 0 auto 1rem;
  }
}

/* Gallery mobile optimization */
@media (max-width: 575.98px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
  .service-card:hover,
  .price-card:hover,
  .team-card:hover,
  .review-card:hover,
  .feature-card:hover,
  .blog-card:hover,
  .career-card:hover,
  .casestudy-card:hover,
  .coreinfo-card:hover,
  .process-step:hover,
  .timeline-item:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
  /* Larger touch targets */
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Better form field sizing */
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better spacing for FAQ items */
  .faq-item {
    margin-bottom: 0.5rem;
  }
  
  /* Improved readability */
  .review-text {
    font-size: 1rem;
  }
}

/* Landscape mobile optimization */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Use higher quality images for retina displays */
  .hero-section::before {
    background-image: url('../ENE_images/hero-bg@2x.webp');
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .swiper-container {
    display: none !important;
  }
  
  section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
    color: black !important;
  }
  
  .hero-section::before {
    display: none;
  }
  
  * {
    color: black !important;
    background: white !important;
  }
} 