/* ============================================
   RESPONSIVE STYLES - FRESH AIR NORDIC
   ============================================ */

/* === TABLET LARGE (max 1024px) === */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }

  .hero { padding: 4rem 0 5rem; }
  .hero-home { padding: 5rem 0 7rem; }
  .hero h1 { font-size: clamp(2rem, 4vw, 3rem); }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === TABLET (max 992px) === */
@media (max-width: 992px) {
  /* Testimonials - 2 columns on tablet */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Services - 2 columns on tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Benefits - 2 columns on tablet */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Comparison Grid - 2 columns on tablet */
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Education Grid - stays 2 columns on tablet */
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* === MOBILE LARGE (max 768px) === */
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }

  /* Ensure container padding is applied even when combined with content-section */
  .container.content-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Hide floating CTA when mobile menu is open */
  body.mobile-menu-open .floating-cta {
    display: none !important;
  }

  /* Header - mobile menu styles are in components.css */
  .header-inner { padding: 0.875rem 1.25rem; }
  .header-cta {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .header-cta .phone-icon { display: none; }

  /* Hero */
  .hero { padding: 3rem 0 4rem; }
  .hero-home { padding: 4rem 0 6rem; }
  .hero-location,
  .hero-service { padding: 3rem 0 3.5rem; }

  /* Pillar Hero */
  .pillar-hero {
    padding: 4rem 0 3rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  /* Pillar hero CTA - vertical stack on mobile */
  .pillar-hero .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .pillar-hero .hero-buttons {
    width: 100%;
    flex-direction: column;
  }

  .pillar-hero .hero-buttons .btn {
    width: 100%;
  }

  .pillar-hero .hero-trust {
    justify-content: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2rem;
    max-width: 100%;
  }
  .hero-location h1,
  .hero-service h1 {
    font-size: 1.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  .hero-subtitle {
    font-size: 1.05rem;
    max-width: 100%;
  }
  .hero-location .hero-subtitle,
  .hero-service .hero-subtitle {
    font-weight: 500;
  }
  .hero-prices {
    flex-direction: column;
    gap: 0.75rem;
  }
  .price-badge {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* text-align removed: flexbox uses justify-content instead */
  }
  .price-badge .price-amount {
    font-size: 1.75rem;
  }
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Pillar Navigation */
  .pillar-nav {
    top: 60px;
  }

  .pillar-nav-list {
    justify-content: flex-start;
    padding-left: 1rem;
  }

  .pillar-nav-list li a {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  /* Pillar Sections */
  .pillar-section {
    padding: 3.5rem 0;
  }

  .pillar-section .comparison-grid {
    grid-template-columns: 1fr;
  }

  /* Sections - Consistent mobile spacing */
  section { padding: 3rem 0; }
  section h2::after { margin-top: 0.75rem; }
  .content-section { padding: 3rem 0; }

  /* USPs */
  .usps-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card-home, .service-card {
    padding: 1.5rem;
  }

  /* Stats - 2 columns on mobile (stats can stay 2-wide) */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }
  .stat-item {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .stat-number { font-size: 2.25rem; }

  /* Benefits - 1 column on mobile */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .benefit-item { padding: 1.25rem; }

  /* Testimonials - 1 column on mobile */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Comparison Grid - 1 column on mobile */
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Education Grid - 1 column on mobile */
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Cities */
  .cities-grid {
    gap: 0.5rem;
  }
  .city-link {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  /* CTA Section */
  .cta-section { padding: 4rem 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .cta-buttons .btn { width: 100%; }
  .cta-price {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  /* FAQ */
  .faq-item summary {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }
  .faq-item summary::after {
    width: 28px;
    height: 28px;
  }
  .faq-answer { padding: 0 1.25rem 1.25rem; }

  /* Breadcrumbs */
  .breadcrumbs ol { padding: 0 1.25rem; }

  /* Footer - left-aligned for professional look */
  .site-footer { padding: 3rem 0 0; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  .footer-about { text-align: left; }
  .site-footer ul { text-align: left; }
  .site-footer h4 { text-align: left; }
  .footer-phone a { justify-content: flex-start; }
  .footer-bottom {
    margin-top: 2rem;
    text-align: center;
  }
}

/* === MOBILE PORTRAIT (max 576px) === */
@media (max-width: 576px) {
  /* Stats - still 2 columns on mobile portrait */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* All other grids stay 1 column (inherited from 768px) */
}

/* === MOBILE SMALL (max 480px) === */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }

  /* Ensure container padding is applied even when combined with content-section */
  .container.content-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Header */
  .header-inner { padding: 0.75rem 1rem; }
  .logo { font-size: 1.25rem; }
  .logo::before {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .header-cta {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  /* Hero */
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-home { padding: 3rem 0 5rem; }
  .hero-location,
  .hero-service { padding: 2.5rem 0 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-location h1,
  .hero-service h1 { font-size: 1.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .price-badge {
    padding: 0.875rem 1.25rem;
    border-radius: 14px;
  }
  .price-badge .price-amount { font-size: 1.5rem; }

  /* Buttons */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Sections - Small mobile spacing */
  section { padding: 2.5rem 0; }
  .content-section { padding: 2.5rem 0; }
  section h2 { font-size: 1.4rem; }
  section h2::after {
    width: 50px;
    height: 3px;
  }

  /* Services */
  .service-card-home, .service-card {
    padding: 1.25rem;
    border-radius: 16px;
  }
  .service-price { font-size: 1.2rem; }

  /* Stats */
  .stat-item { padding: 1.5rem 1.25rem; border-radius: 16px; }
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 0.875rem; }

  /* Benefits */
  .benefit-item {
    padding: 1rem;
    border-radius: 14px;
    gap: 0.75rem;
  }
  .benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  /* Includes */
  .includes-list li {
    padding: 0.875rem 0;
    padding-left: 2.5rem;
    font-size: 1rem;
  }
  .includes-list li::before {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .includes-list li::after { left: 6px; font-size: 0.75rem; }

  /* FAQ */
  .faq-item { border-radius: 14px; }
  .faq-item summary {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
  }

  /* Cities */
  .city-link {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  /* CTA */
  .cta-section { padding: 3rem 0; }
  .cta-section h2 { font-size: 1.35rem; }

  /* Related/Nearby */
  .related-list li a, .cities-list li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Footer */
  .site-footer h4 { font-size: 0.95rem; }
  .footer-phone a { font-size: 1.2rem; }
}

/* === HOVER STATES: Remove on touch devices === */
@media (hover: none) and (pointer: coarse) {
  .service-card-home:hover,
  .service-card:hover,
  .stat-item:hover,
  .benefit-item:hover,
  .faq-item:hover,
  .city-link:hover,
  .price-badge:hover,
  .card:hover,
  .testimonial-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }

  .btn:hover,
  .header-cta:hover {
    transform: none;
  }

  /* Keep active states for touch feedback */
  .btn:active {
    transform: scale(0.98);
  }

  .service-card-home:active,
  .service-card:active,
  .card:active {
    transform: scale(0.99);
    transition-duration: 0.1s;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .hero::before {
    animation: none;
  }
}

/* === PRINT STYLES === */
@media print {
  .site-header,
  .site-footer,
  .cta-section,
  .hero-cta,
  .header-cta,
  .mobile-menu-toggle,
  .floating-cta,
  .back-to-top,
  .reading-progress,
  .cookie-banner,
  .exit-popup,
  .lead-form-modal,
  .modal-overlay,
  .top-bar,
  .review-bar,
  .trust-badges {
    display: none !important;
  }

  .hero {
    background: none !important;
    color: black !important;
    padding: 1rem 0 !important;
  }

  .hero h1 { color: black !important; }
  h1, h2, h3, h4 { color: black !important; }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: black !important;
  }

  a { color: black; text-decoration: underline; }
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  a[href^="#"]::after { content: none; }

  section { padding: 1rem 0; }
  .container { max-width: 100%; padding: 0; }

  img { max-width: 300px; }
  video, .hero-video { display: none !important; }
}
