/* ==========================================================================
   Employer Pension Audit Service - Responsive Styles
   Mobile-First Approach with Bootstrap 5 Breakpoints
   ========================================================================== */

/* ==========================================================================
   Mobile First (Default - up to 576px)
   ========================================================================== */

/* Base mobile styles are already defined in main.css */

/* ==========================================================================
   Small devices (landscape phones, 576px and up)
   ========================================================================== */
@media (min-width: 576px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Medium devices (tablets, 768px and up)
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --section-padding: 5rem 0;
    --font-size-4xl: 3rem;
    --font-size-3xl: 2.25rem;
    --font-size-2xl: 1.875rem;
  }
  
  .navbar {
    padding: 1.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-4xl);
  }
  
  .hero-content p {
    font-size: 1.25rem;
  }
  
  .section-title h2 {
    font-size: var(--font-size-3xl);
  }
  
  .about-feature {
    margin-bottom: 2rem;
  }
  
  .service-card {
    margin-bottom: 0;
  }
  
  .team-member img {
    width: 180px;
    height: 180px;
  }
  
  .price-card {
    margin-bottom: 0;
  }
  
  .contact-form {
    padding: 3rem;
  }
  
  .contact-info {
    padding: 3rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-step::before {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }
  
  .process-step h4 {
    margin-top: 5rem;
  }
  
  .timeline-item {
    margin-left: 2rem;
  }
  
  .timeline-item::before {
    left: -50px;
    width: 30px;
    height: 30px;
  }
  
  /* Hero decorations */
  .hero-decoration {
    width: 300px;
    height: 300px;
  }
  
  /* Mobile-specific Swiper adjustments */
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  
  .reviews-swiper .swiper-slide {
    margin-right: 1rem;
  }
}

/* ==========================================================================
   Large devices (desktops, 992px and up)
   ========================================================================== */
@media (min-width: 992px) {
  :root {
    --section-padding: 6rem 0;
    --font-size-4xl: 3.5rem;
  }
  
  .navbar {
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-4xl);
  }
  
  .hero-decoration {
    width: 400px;
    height: 400px;
  }
  
  .about-feature {
    padding: 3rem 2rem;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .feature-item {
    padding: 3rem 2rem;
  }
  
  .price-card {
    padding: 3rem 2.5rem;
  }
  
  .team-member {
    padding: 2rem;
  }
  
  .team-member img {
    width: 200px;
    height: 200px;
  }
  
  .coreinfo-item {
    padding: 3rem 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .process-step::before {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
  
  .process-step h4 {
    margin-top: 6rem;
  }
  
  .timeline-item {
    margin-left: 3rem;
  }
  
  .timeline-item::before {
    left: -60px;
    width: 40px;
    height: 40px;
  }
  
  /* Re-enable Swiper navigation on desktop */
  .swiper-button-next,
  .swiper-button-prev {
    display: flex;
  }
}

/* ==========================================================================
   Extra large devices (large desktops, 1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
  :root {
    --container-max-width: 1320px;
    --font-size-4xl: 4rem;
  }
  
  .hero-content h1 {
    font-size: var(--font-size-4xl);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .service-card img {
    height: 250px;
  }
  
  .blog-item img {
    height: 250px;
  }
}

/* ==========================================================================
   Extra extra large devices (1400px and up)
   ========================================================================== */
@media (min-width: 1400px) {
  :root {
    --container-max-width: 1400px;
  }
  
  .hero-decoration {
    width: 500px;
    height: 500px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* ==========================================================================
   Mobile-specific styles (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .navbar-nav {
    text-align: center;
    padding-top: 1rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }
  
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .about-feature {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .service-card img {
    height: 180px;
  }
  
  .feature-item {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .feature-item i {
    font-size: 3rem;
  }
  
  .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  .team-member {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .review-card {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .casestudy-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .process-step {
    padding: 1.5rem 1rem;
    margin-bottom: 3rem;
  }
  
  .process-step::before {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .process-step h4 {
    margin-top: 3rem;
  }
  
  .timeline-item {
    margin-left: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .timeline-item::before {
    left: -25px;
    width: 15px;
    height: 15px;
    border: 3px solid white;
  }
  
  .career-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  
  .coreinfo-item {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
  }
  
  .coreinfo-item i {
    font-size: 2.5rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .contact-info i {
    display: block;
    margin: 0 0 0.5rem 0;
    text-align: center;
  }
  
  .blog-item {
    margin-bottom: 2rem;
  }
  
  .blog-item img {
    height: 180px;
  }
  
  .faq-item {
    margin-bottom: 1rem;
  }
  
  .faq-question {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .faq-answer {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer h5 {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  
  .footer h5:first-child {
    margin-top: 0;
  }
  
  /* Disable hover effects on mobile */
  .about-feature:hover,
  .service-card:hover,
  .team-member:hover,
  .price-card:hover,
  .casestudy-item:hover,
  .career-item:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Disable Swiper autoplay and effects on mobile */
  .swiper {
    padding-bottom: 2rem;
  }
  
  .swiper-slide {
    opacity: 1 !important;
  }
  
  /* Mobile-friendly buttons */
  .btn-primary {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   Landscape orientation adjustments
   ========================================================================== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 1rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .process-step::before {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto 1rem;
  }
  
  .process-step h4 {
    margin-top: 1rem;
  }
}

/* ==========================================================================
   High DPI / Retina displays
   ========================================================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high-resolution displays */
  .hero-section::before {
    background-image: url('../PEN_images/hero-bg@2x.webp');
  }
  
  .service-card img,
  .team-member img,
  .blog-item img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ==========================================================================
   Print optimizations
   ========================================================================== */
@media print {
  .hero-decoration,
  .swiper-pagination,
  .swiper-button-next,
  .swiper-button-prev,
  .navbar-toggler {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    page-break-after: always;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-member,
  .casestudy-item,
  .career-item {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   Accessibility improvements for smaller screens
   ========================================================================== */
@media (max-width: 767px) {
  /* Larger touch targets */
  .nav-link {
    padding: 1rem !important;
    min-height: 44px;
  }
  
  .faq-question {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Better focus indicators */
  .nav-link:focus,
  .btn:focus,
  .form-control:focus,
  .faq-question:focus {
    outline: 3px solid var(--primary-main);
    outline-offset: 2px;
  }
  
  /* Improved readability */
  body {
    overflow-x: hidden;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }
}

/* ==========================================================================
   Dark mode support (if system preference is set)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  .navbar {
    background: rgba(0, 0, 0, 0.9);
  }
  
  .navbar-brand,
  .navbar-nav .nav-link {
    color: white !important;
  }
  
  .contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
} 