/* ===================================================================
   Prime Auto Detailing — Responsive Stylesheet (revised)
   Carefully tuned for desktop, laptop, iPad landscape/portrait,
   iPhone (all sizes), and small Android phones.

   Desktop (≥1024px) stays the same as the laptop/desktop reference.
   Below 1024px is where layouts adapt.

   Breakpoints used:
   ≤1199px   laptop tightening
   ≤1023px   iPad landscape & smaller
   ≤899px    iPad portrait & smaller — mobile nav engages here
   ≤767px    Tablet portrait / large phones
   ≤520px    Mid phones
   ≤420px    Small phones
   =================================================================== */


/* ───────────────────────────────────────────────────────────────────
   Universal safety: prevent horizontal page overflow on every device
   ─────────────────────────────────────────────────────────────────── */
html, body { overflow-x: hidden; }
img, video { max-width: 100%; }


/* ═══════════════════════════════════════════════════════════════════
   ≤1199px — laptop / tablet landscape, minor tightening
   Desktop layout structure is preserved.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .container { padding: 0 22px; }
  .nav { padding: 14px 22px; gap: 14px; }
  .nav-link { padding: 8px 11px; font-size: 0.88rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 520px; }
}


/* ═══════════════════════════════════════════════════════════════════
   ≤1023px — iPad landscape and below
   Mobile nav engages here so longer link names don't wrap at 1024 tight
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .section, .section-alt { padding: 76px 0; }
  .section-heading { margin-bottom: 44px; }

  /* ───── Header & navigation ───── */
  .nav {
    padding: 14px 20px;
    gap: 12px;
    justify-content: space-between;
  }
  .nav-logo img { height: 40px; }

  /* Hamburger always pushed to the far right; logo stays at far left */
  .nav-toggle {
    display: flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-color: var(--border-blue);
    background: rgba(0, 108, 255, 0.08);
    color: var(--blue-light);
    box-shadow: 0 0 16px -6px var(--blue-glow);
    transition: all var(--t-base) var(--ease);
  }
  .nav-toggle:hover { border-color: var(--blue); background: rgba(0, 108, 255, 0.15); }
  .nav-toggle.open {
    background: var(--grad-blue);
    color: #fff;
    border-color: transparent;
  }

  /* Hide desktop CTA — Book Now goes inside the mobile menu */
  .nav > .nav-cta.desktop-only { display: none; }

  /* Mobile menu — slide-down panel under the header */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: rgba(3, 7, 15, 0.99);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border-blue-soft);
    box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 22px;
    gap: 2px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base);
    z-index: 99;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links li { list-style: none; }
  .nav-link {
    padding: 13px 16px;
    font-size: 0.98rem;
    width: 100%;
    border-radius: var(--radius-sm);
    display: block;
  }
  .nav-link::after { display: none; }
  .nav-link.active {
    background: rgba(0, 108, 255, 0.10);
    color: var(--blue-light);
  }
  .nav-links .nav-cta.mobile-only { display: block; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border-blue-soft); }
  .nav-links .nav-cta.mobile-only .btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 0.98rem; }

  /* Prevent body scroll when menu is open */
  body.nav-open { overflow: hidden; }

  /* Tablet keeps 3-up packages and pricing — the user explicitly asked for this */
  .pricing-grid { gap: 18px; }
  .pricing-card { padding: 24px 18px; gap: 14px; }
  .pricing-card.featured { transform: translateY(-4px); }
  .pricing-card.featured:hover { transform: translateY(-8px); }
  .pricing-price .price-big { font-size: 2.5rem; }

  /* Service cards stay 3-up */
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .service-card-body { padding: 22px; }
  .service-card-body h3 { font-size: 1.18rem; flex-direction: column; align-items: flex-start; gap: 8px; }
  .service-card-body .service-price { text-align: left; }

  /* 4-up grids become 4-up at smaller, neat sizing */
  .grid-4 { gap: 18px; }
  .value-card { padding: 26px 18px; }
  .value-card h4 { font-size: 1.02rem; }
  .value-card p { font-size: 0.88rem; }

  /* Area grid — 4 on tablet landscape */
  .area-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .area-card { padding: 22px 14px; }

  /* Add-ons — keep 5 across but tighten */
  .addon-grid { gap: 14px; }
  .addon-card { padding: 22px 14px; }
  .addon-card h4 { font-size: 0.94rem; min-height: 2.4em; }

  /* Hero adjustments */
  .hero { min-height: 540px; }
  .hero .container > .hero-content { padding-left: clamp(22px, 4vw, 60px); padding-right: 22px; }
  .hero-content { max-width: 560px; padding-top: 60px; padding-bottom: 60px; }

  /* Footer: condense to 4 columns */
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; max-width: 520px; }
}


/* ═══════════════════════════════════════════════════════════════════
   ≤899px — iPad portrait and below; tighter grids
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {

  /* ───── Sections ───── */
  .section, .section-alt { padding: 64px 0; }
  .section-tight { padding: 50px 0; }
  .section-heading { margin-bottom: 36px; }

  /* ───── Hero ───── */
  .hero { min-height: 500px; text-align: left; }
  .hero-content { padding: 56px 22px; max-width: 100%; }
  .hero .container > .hero-content { padding-left: 22px; padding-right: 22px; }
  .hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
  .hero-sub { font-size: 1rem; max-width: 100%; }
  .hero-bg { object-position: 70% center; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(3,7,15,0.55) 0%, rgba(3,7,15,0.85) 60%, rgba(3,7,15,0.95) 100%);
  }
  .hero-actions { gap: 10px; }
  .hero-badges { gap: 14px; }

  /* ───── Cards: 3 main packages stay 3-up on iPad portrait ───── */
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .pricing-card { padding: 22px 16px; gap: 12px; }
  .pricing-card.featured { transform: translateY(-2px); }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .pricing-card h3 { font-size: 1.08rem; }
  .pricing-price .price-big { font-size: 2.2rem; }
  .pricing-card-media { aspect-ratio: 4 / 3; }
  .featured-badge { font-size: 0.65rem; padding: 5px 12px; top: -12px; }
  .vehicle-pricing { padding: 10px 0; }
  .vehicle-pricing-row { font-size: 0.84rem; padding: 5px 0; }
  .vp-type img { width: 14px; height: 14px; }
  .includes-list li { font-size: 0.84rem; line-height: 1.4; gap: 7px; }
  .includes-list li img { width: 13px; height: 13px; margin-top: 3px; }
  .pricing-card .btn { padding: 11px 16px; font-size: 0.85rem; }

  /* Service cards: stay 3-up, compact */
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .service-card-media { aspect-ratio: 4 / 3; }
  .service-card-body { padding: 18px; gap: 10px; }
  .service-card-body h3 { font-size: 1.08rem; }
  .service-card-body .service-price strong { font-size: 1.2rem; }
  .service-card-body p { font-size: 0.86rem; line-height: 1.5; }
  .service-card-body .btn { padding: 10px 16px; font-size: 0.85rem; }
  .service-card-body .includes-list li { font-size: 0.82rem; }

  /* Value cards: stay 4-up where they exist (Why Choose Us, Our Values) */
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .value-card { padding: 22px 14px; }
  .value-card .icon-circle { width: 48px; height: 48px; margin-bottom: 14px; }
  .value-card .icon-circle img { width: 24px; height: 24px; }
  .value-card h4 { font-size: 0.96rem; }
  .value-card p { font-size: 0.84rem; line-height: 1.5; }

  /* 2-col preview grids stack */
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }

  /* Add-ons: 3-up on tablet portrait */
  .addon-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .addon-card { padding: 22px 14px; }
  .addon-card h4 { font-size: 0.9rem; min-height: 2.4em; }
  .addon-card .addon-price { font-size: 1.05rem; }
  .addon-card p { font-size: 0.8rem; }

  /* Service area: 4-up on tablet */
  .area-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .area-card { padding: 20px 12px; }
  .area-card h4 { font-size: 0.96rem; }
  .area-card p { font-size: 0.8rem; }

  /* Policy cards: 2-up */
  .policy-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .policy-card { padding: 24px 18px; }

  /* Process steps: 2-up */
  .process-grid, .process-grid.four { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .process-step { padding: 22px 16px; }
  .process-step h4 { font-size: 0.98rem; }
  .process-step p { font-size: 0.85rem; }

  /* Promise box stacks neatly */
  .promise-box { grid-template-columns: 1fr; gap: 24px; padding: 36px 28px; text-align: center; }
  .promise-shield { margin: 0 auto; }
  .promise-body { text-align: left; }
  .promise-body p { text-align: center; }
  .promise-points { grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: left; }

  /* Story (about page) stacks */
  .story-block { grid-template-columns: 1fr; gap: 32px; }
  .story-image { aspect-ratio: 16 / 10; max-height: 380px; order: -1; }

  /* CTA banners: text overlays full width */
  .cta-banner { min-height: auto; }
  .cta-banner-content { padding: 36px 28px; max-width: 100%; }
  .cta-banner::before {
    background: linear-gradient(180deg, rgba(3,7,15,0.45) 0%, rgba(3,7,15,0.92) 80%);
  }
  .cta-banner-bg { object-position: center; }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-banner p { font-size: 0.93rem; }

  /* Difference banner */
  .difference-banner { min-height: auto; }
  .difference-banner-content { padding: 36px 28px; max-width: 100%; }
  .difference-banner::before {
    background: linear-gradient(180deg, rgba(3,7,15,0.45) 0%, rgba(3,7,15,0.95) 80%);
  }
  .difference-banner > img.banner-bg { object-position: center; }

  /* Two-column → stacked */
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .contact-info-card { position: static; }

  /* Gallery: 3 on tablet */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Footer: 2 columns + brand row */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }

  /* Forms keep 2-col on iPad portrait */
  .form-row.two { gap: 14px; }
}


/* ═══════════════════════════════════════════════════════════════════
   ≤767px — Tablet portrait / large phones (iPhone landscape too)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  h1 { font-size: clamp(1.95rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 1.95rem); }

  .container, .container-narrow { padding: 0 18px; }

  /* Hero gets tighter */
  .hero { min-height: 480px; }
  .hero-content { padding: 50px 18px; }
  .hero .container > .hero-content { padding-left: 18px; padding-right: 18px; }
  .hero-sub { font-size: 0.96rem; line-height: 1.6; }
  .hero-actions .btn { flex: 1; min-width: 0; }
  .hero-actions { gap: 10px; flex-wrap: wrap; }
  .hero-badges { gap: 10px; }
  .hero-badge { min-width: 70px; gap: 6px; }
  .hero-badge-icon { width: 46px; height: 46px; }
  .hero-badge-icon img { width: 24px; height: 24px; }
  .hero-badge-label { font-size: 0.7rem; max-width: 84px; }

  /* ─── Packages & pricing — keep 3-up but make them compact ─── */
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pricing-card {
    padding: 14px 10px;
    gap: 8px;
    border-radius: 14px;
  }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-3px); }
  .pricing-card h3 {
    font-size: 0.84rem;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .pricing-price { margin: 0; }
  .pricing-price .from-label { font-size: 0.62rem; margin-bottom: 2px; }
  .pricing-price .price-big { font-size: 1.55rem; }
  .pricing-card-media {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }
  .featured-badge {
    font-size: 0.54rem;
    padding: 4px 8px;
    top: -10px;
    letter-spacing: 0.06em;
  }
  .featured-badge::before { font-size: 0.6rem; }
  .vehicle-pricing { padding: 8px 0; }
  .vp-label, .includes-list .il-label {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
  }
  .vehicle-pricing-row {
    font-size: 0.72rem;
    padding: 3px 0;
    gap: 4px;
  }
  .vp-type {
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .vp-type img { width: 12px; height: 12px; }
  .vp-price { font-size: 0.74rem; white-space: nowrap; }
  .includes-list { gap: 5px; }
  .includes-list li {
    font-size: 0.72rem;
    line-height: 1.3;
    gap: 5px;
  }
  .includes-list li img {
    width: 11px;
    height: 11px;
    margin-top: 2px;
  }
  .pricing-card .btn {
    padding: 9px 8px;
    font-size: 0.72rem;
    gap: 4px;
  }
  .pricing-card .btn svg { width: 12px; height: 12px; }

  /* ─── Service preview cards — keep 3-up compact ─── */
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .service-card { border-radius: 14px; }
  .service-card-media { aspect-ratio: 4 / 3; }
  .service-card-body {
    padding: 12px 10px;
    gap: 6px;
  }
  .service-card-body h3 {
    font-size: 0.88rem;
    line-height: 1.2;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .service-card-body .icon-circle { width: 38px; height: 38px; }
  .service-card-body .icon-circle img { width: 20px; height: 20px; }
  .service-card-body .service-price { font-size: 0.7rem; }
  .service-card-body .service-price strong { font-size: 1.08rem; }
  .service-card-body p { font-size: 0.74rem; line-height: 1.4; }
  .service-card-body .btn {
    padding: 8px 10px;
    font-size: 0.74rem;
  }
  .service-card-body .includes-list li {
    font-size: 0.72rem;
  }

  /* ─── Why-choose / values: 2-up ─── */
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .value-card { padding: 22px 16px; }
  .value-card h4 { font-size: 1rem; }
  .value-card p { font-size: 0.86rem; }

  /* ─── 2-col previews stack ─── */
  .grid-2 { grid-template-columns: 1fr; }

  /* ─── Add-ons: 2-up ─── */
  .addon-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .addon-card { padding: 20px 14px; }
  .addon-card h4 { font-size: 0.9rem; min-height: 2.4em; }

  /* ─── Service area cards: 2-up ─── */
  .area-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .area-card { padding: 18px 12px; }
  .area-card h4 { font-size: 0.95rem; }
  .area-card p { font-size: 0.78rem; }
  .area-pills { gap: 8px; }
  .area-pill { padding: 8px 14px; font-size: 0.85rem; }

  /* ─── Policy cards: 2-up ─── */
  .policy-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .policy-card { padding: 22px 16px; }
  .policy-card h4 { font-size: 0.98rem; }
  .policy-card p { font-size: 0.86rem; }

  /* ─── Process: 2-up, compact ─── */
  .process-grid, .process-grid.four { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .process-step { padding: 20px 14px; }
  .process-step h4 { font-size: 0.95rem; }
  .process-step p { font-size: 0.82rem; }
  .process-num { width: 32px; height: 32px; font-size: 0.86rem; top: -16px; }
  .process-step .icon-circle { width: 48px; height: 48px; margin: 14px auto 12px; }
  .process-step .icon-circle img { width: 24px; height: 24px; }

  /* ─── Promise points: 2-up ─── */
  .promise-points { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ─── Gallery: 2-up ─── */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-item { aspect-ratio: 4 / 3; border-radius: 12px; }
  .gallery-label { font-size: 0.62rem; padding: 4px 10px; top: 10px; left: 10px; }
  .gallery-label.label-after { right: 10px; left: auto; }
  .gallery-filters { gap: 8px; margin-bottom: 28px; }
  .filter-btn { padding: 8px 14px; font-size: 0.82rem; gap: 6px; }
  .filter-btn img { width: 14px; height: 14px; }

  /* ─── Featured before/after & banners ─── */
  .feature-ba { aspect-ratio: 4 / 3; max-height: none; }
  .feature-ba-caption { padding: 18px; }
  .feature-ba-caption h3 { font-size: 1.15rem; }
  .feature-ba-caption p { font-size: 0.86rem; }

  /* ─── CTAs ─── */
  .cta-banner-content { padding: 30px 22px; }
  .cta-banner h2 { font-size: 1.3rem; }
  .difference-banner-content { padding: 30px 22px; }

  /* ─── Promise / Info / Pricing notes ─── */
  .promise-box { padding: 32px 22px; }
  .pricing-note, .env-note { padding: 22px 20px; gap: 14px; flex-direction: column; }
  .pricing-note .icon-circle, .env-note .icon-circle { margin: 0 0 8px; }
  .info-box { padding: 20px; gap: 14px; }

  /* ─── Comparison table: horizontal scroll without breaking ─── */
  .compare-wrap {
    border-radius: 14px;
    margin: 0 -2px;
  }
  .compare-table { min-width: 560px; }
  .compare-table th, .compare-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
  .compare-table thead th { padding: 16px 14px; font-size: 0.92rem; }
  .compare-table thead th small { font-size: 0.7rem; }
  .compare-table td.yes img { width: 16px; height: 16px; }

  /* ─── Forms ─── */
  .form-card { padding: 24px 18px; }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .form-row { margin-bottom: 14px; }
  .field { margin-bottom: 14px; }
  .checkbox-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .check { padding: 12px 12px; font-size: 0.86rem; gap: 8px; }
  .check img { width: 16px; height: 16px; }
  .upload-box { padding: 26px 16px; }
  .upload-box img { width: 32px; height: 32px; }
  .upload-text { font-size: 0.9rem; }

  /* ─── Contact info card ─── */
  .contact-info-card { padding: 24px 18px; }
  .contact-info-card > p.info-sub-title { font-size: 1.1rem; }
  .contact-map { aspect-ratio: 16 / 10; }
  .contact-perk { padding: 11px 12px; }
  .contact-perk-body strong { font-size: 0.88rem; }
  .contact-perk-body span { font-size: 0.78rem; }
  .contact-detail { padding: 12px 0; gap: 12px; }
  .cd-value { font-size: 0.9rem; }
  .booking-note { padding: 16px 18px; }

  /* ─── Info panel (travel fee) ─── */
  .info-panel { padding: 22px 18px; }
  .info-panel h3 { font-size: 1.1rem; }
  .info-panel-row { gap: 10px; flex-wrap: wrap; }
  .info-panel-row .ipr-body strong { font-size: 0.92rem; }
  .info-panel-row .ipr-body span { font-size: 0.8rem; }
  .info-panel-row .ipr-value { font-size: 0.86rem; }

  /* FAQ remains full width (readability) */
  .faq-q { padding: 16px 18px; font-size: 0.95rem; gap: 12px; }
  .faq-q-content { gap: 10px; }
  .faq-item.open .faq-a { padding: 0 18px 18px 48px; }
  .faq-a p { font-size: 0.92rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}


/* ═══════════════════════════════════════════════════════════════════
   ≤520px — Mid-sized phones (iPhone 12/13/14/15 standard portrait)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  .container, .container-narrow { padding: 0 16px; }
  .section, .section-alt { padding: 56px 0; }
  .section-tight { padding: 44px 0; }
  .section-heading { margin-bottom: 30px; }

  /* Hero badges: 2-col layout for legibility */
  .hero-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 12px;
    max-width: 320px;
  }
  .hero-badge { min-width: 0; flex-direction: row; text-align: left; gap: 10px; }
  .hero-badge-icon { width: 40px; height: 40px; }
  .hero-badge-icon img { width: 22px; height: 22px; }
  .hero-badge-label { font-size: 0.7rem; max-width: 100%; }

  /* Pricing & packages still 3-up, slightly tighter */
  .pricing-grid, .grid-3 { gap: 6px; }
  .pricing-card { padding: 12px 8px; }
  .pricing-card h3 { font-size: 0.76rem; }
  .pricing-price .price-big { font-size: 1.4rem; }
  .featured-badge {
    font-size: 0.5rem;
    padding: 3px 7px;
  }
  .featured-badge::before { font-size: 0.55rem; }
  .vehicle-pricing-row { font-size: 0.66rem; }
  .vp-price { font-size: 0.68rem; }
  .includes-list li { font-size: 0.66rem; }
  .pricing-card .btn { padding: 8px 6px; font-size: 0.66rem; }

  .service-card-body { padding: 10px 8px; }
  .service-card-body h3 { font-size: 0.78rem; }
  .service-card-body .service-price strong { font-size: 1rem; }
  .service-card-body p { font-size: 0.68rem; }
  .service-card-body .btn { padding: 7px 8px; font-size: 0.66rem; }

  /* CTA banner stacks vertically */
  .cta-banner { min-height: 200px; }

  /* Gallery filters wrap nicely */
  .gallery-filters { gap: 6px; }
  .filter-btn { padding: 7px 12px; font-size: 0.78rem; }

  /* Promise points: 1-col on small phones for readability */
  .promise-points { grid-template-columns: 1fr; gap: 14px; }

  /* Footer: stack everything */
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { max-width: 100%; }

  /* Page logo a little smaller */
  .nav-logo img { height: 36px; }
}


/* ═══════════════════════════════════════════════════════════════════
   ≤420px — Small phones (small Android, iPhone SE, mini)
   Packages remain 3-up; layout stays compact and tap-friendly.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .container, .container-narrow { padding: 0 14px; }
  .section, .section-alt { padding: 50px 0; }

  h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  h2 { font-size: clamp(1.35rem, 5.5vw, 1.7rem); }

  /* Slightly smaller heading for 3-up cards on very narrow screens */
  .pricing-card { padding: 10px 6px; gap: 6px; }
  .pricing-card h3 { font-size: 0.7rem; min-height: 2.2em; }
  .pricing-price .price-big { font-size: 1.25rem; }
  .pricing-price .from-label { font-size: 0.55rem; }
  .vehicle-pricing { padding: 6px 0; }
  .vp-label, .includes-list .il-label { font-size: 0.5rem; margin-bottom: 4px; }
  .vehicle-pricing-row { font-size: 0.6rem; padding: 2px 0; }
  .vp-type img { width: 10px; height: 10px; }
  .vp-price { font-size: 0.62rem; }
  .includes-list li { font-size: 0.62rem; gap: 4px; }
  .includes-list li img { width: 10px; height: 10px; }
  .pricing-card .btn { padding: 7px 4px; font-size: 0.6rem; gap: 3px; }
  .pricing-card .btn svg { width: 10px; height: 10px; }
  .featured-badge {
    font-size: 0.45rem;
    padding: 3px 6px;
    top: -9px;
    letter-spacing: 0.04em;
  }
  .featured-badge::before { font-size: 0.5rem; }

  .service-card-body { padding: 9px 6px; gap: 4px; }
  .service-card-body h3 { font-size: 0.7rem; }
  .service-card-body .service-price strong { font-size: 0.92rem; }
  .service-card-body p { font-size: 0.62rem; line-height: 1.35; }
  .service-card-body .icon-circle { width: 32px; height: 32px; }
  .service-card-body .icon-circle img { width: 16px; height: 16px; }
  .service-card-body .btn { padding: 6px 6px; font-size: 0.6rem; }

  /* Add-ons stay 2-up but smaller */
  .addon-card { padding: 16px 10px; }
  .addon-card h4 { font-size: 0.82rem; min-height: 2.4em; }
  .addon-card .addon-price { font-size: 0.95rem; }
  .addon-card p { font-size: 0.74rem; }
  .addon-card .icon-circle { width: 48px; height: 48px; }

  /* Area / policy / value cards stay 2-up */
  .area-card { padding: 16px 10px; }
  .area-card .icon-circle { width: 38px; height: 38px; }
  .area-card .icon-circle img { width: 20px; height: 20px; }
  .policy-card { padding: 20px 14px; }
  .value-card { padding: 20px 14px; }

  /* Process steps still 2-up */
  .process-step { padding: 18px 12px; }
  .process-step h4 { font-size: 0.9rem; }
  .process-step p { font-size: 0.78rem; }

  /* FAQ */
  .faq-q { padding: 14px 14px; font-size: 0.88rem; gap: 10px; }
  .faq-q-num { font-size: 0.85rem; }
  .faq-toggle { width: 30px; height: 30px; }
  .faq-plus { width: 12px; height: 12px; }
  .faq-plus::before { top: 5px; width: 12px; }
  .faq-plus::after { left: 5px; height: 12px; }
  .faq-item.open .faq-a { padding: 0 14px 16px 14px; }
  .faq-a p { font-size: 0.87rem; }

  /* Form refinements */
  .form-card { padding: 20px 14px; }
  .contact-info-card { padding: 20px 14px; }
  .checkbox-row { grid-template-columns: 1fr; }
  .upload-box { padding: 22px 14px; }

  /* Gallery filters: smaller pill */
  .filter-btn { padding: 6px 11px; font-size: 0.72rem; gap: 4px; }
  .filter-btn img { width: 12px; height: 12px; }

  /* Buttons in general — keep tappable */
  .btn { padding: 12px 18px; font-size: 0.86rem; }
  .btn-lg { padding: 13px 20px; font-size: 0.92rem; }

  /* Logo slightly tighter */
  .nav-logo img { height: 34px; }
  .nav { padding: 12px 16px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle svg { width: 18px; height: 18px; }
}


/* ═══════════════════════════════════════════════════════════════════
   ≤360px — Very small Android phones (Galaxy Fold cover, etc.)
   Hard fallback: still 3-up packages, ultra-compact
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .container, .container-narrow { padding: 0 12px; }
  .pricing-grid, .grid-3 { gap: 5px; }
  .pricing-card { padding: 8px 5px; }
  .pricing-card h3 { font-size: 0.66rem; }
  .pricing-price .price-big { font-size: 1.15rem; }
  .pricing-card-media { aspect-ratio: 1 / 1; }
  .vehicle-pricing-row { font-size: 0.56rem; }
  .vp-price { font-size: 0.58rem; }
  .includes-list li { font-size: 0.58rem; }
  .pricing-card .btn { padding: 6px 3px; font-size: 0.56rem; }
  .featured-badge { font-size: 0.42rem; padding: 3px 5px; }
  /* Hide vp-type icon at this size to save space */
  .vp-type img { display: none; }
}

/* ───────── Fixed header spacing ───────── */
@media (max-width: 899px) {
  body {
    padding-top: 69px;
  }
}

@media (max-width: 575px) {
  body {
    padding-top: 65px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   Footer lock: keep the same 5-group layout on every screen size
   ═══════════════════════════════════════════════════════════════════ */
.footer-grid {
  grid-template-columns: 1.35fr 0.95fr 0.95fr 0.95fr 1.15fr;
  align-items: start;
}

.footer-brand {
  grid-column: auto;
  max-width: none;
}

@media (max-width: 1199px) {
  .site-footer { padding-top: 44px; }
  .footer-grid {
    grid-template-columns: 1.28fr 0.9fr 0.9fr 0.9fr 1.08fr;
    gap: 24px;
  }
}

@media (max-width: 1023px) {
  .site-footer {
    padding-top: 38px;
    padding-bottom: 22px;
  }
  .footer-grid {
    grid-template-columns: 1.22fr 0.88fr 0.88fr 0.88fr 1.04fr;
    gap: 18px;
  }
  .footer-brand {
    grid-column: auto;
    max-width: none;
  }
  .footer-brand img {
    height: 40px;
    margin-bottom: 12px;
  }
  .footer-brand p {
    font-size: 0.74rem;
    line-height: 1.45;
  }
  .footer-col h5 {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .footer-col li {
    margin-bottom: 7px;
  }
  .footer-col a,
  .footer-col span,
  .footer-contact-row {
    font-size: 0.72rem;
    line-height: 1.38;
  }
  .footer-contact-row {
    gap: 7px;
    margin-bottom: 7px;
  }
  .footer-contact-row img {
    width: 13px;
    height: 13px;
  }
  .footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
    font-size: 0.7rem;
  }
}

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: 1.15fr 0.82fr 0.82fr 0.82fr 1fr;
    gap: 14px;
  }
  .footer-brand {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding-top: 32px;
    padding-bottom: 18px;
    margin-top: 56px;
  }
  .site-footer .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .footer-grid {
    grid-template-columns: 1.08fr 0.78fr 0.78fr 0.78fr 0.98fr;
    gap: 10px;
  }
  .footer-brand img {
    height: 34px;
    margin-bottom: 9px;
  }
  .footer-brand p {
    font-size: 0.6rem;
    line-height: 1.35;
  }
  .footer-col h5 {
    font-size: 0.62rem;
    margin-bottom: 7px;
  }
  .footer-col li {
    margin-bottom: 4px;
  }
  .footer-col a,
  .footer-col span,
  .footer-contact-row {
    font-size: 0.58rem;
    line-height: 1.28;
  }
  .footer-contact-row {
    gap: 4px;
    margin-bottom: 5px;
  }
  .footer-contact-row img {
    width: 10px;
    height: 10px;
  }
  .footer-bottom {
    margin-top: 20px;
    padding-top: 12px;
    font-size: 0.58rem;
  }
}

@media (max-width: 520px) {
  .site-footer .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 0.72fr 0.72fr 0.72fr 0.95fr;
    gap: 7px;
  }
  .footer-brand {
    grid-column: auto;
    max-width: none;
  }
  .footer-brand img {
    height: 28px;
    margin-bottom: 7px;
  }
  .footer-brand p {
    font-size: 0.5rem;
    line-height: 1.25;
  }
  .footer-col h5 {
    font-size: 0.52rem;
    margin-bottom: 5px;
    letter-spacing: 0;
  }
  .footer-col li {
    margin-bottom: 3px;
  }
  .footer-col a,
  .footer-col span,
  .footer-contact-row {
    font-size: 0.49rem;
    line-height: 1.18;
  }
  .footer-contact-row {
    gap: 3px;
    margin-bottom: 4px;
  }
  .footer-contact-row img {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 420px) {
  .site-footer {
    padding-top: 26px;
  }
  .site-footer .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer-grid {
    grid-template-columns: 0.95fr 0.68fr 0.68fr 0.68fr 0.9fr;
    gap: 5px;
  }
  .footer-brand img {
    height: 24px;
    margin-bottom: 6px;
  }
  .footer-brand p {
    font-size: 0.44rem;
    line-height: 1.18;
  }
  .footer-col h5 {
    font-size: 0.46rem;
    margin-bottom: 4px;
  }
  .footer-col a,
  .footer-col span,
  .footer-contact-row {
    font-size: 0.42rem;
    line-height: 1.12;
  }
  .footer-contact-row img {
    width: 7px;
    height: 7px;
  }
  .footer-bottom {
    margin-top: 16px;
    padding-top: 10px;
    font-size: 0.48rem;
  }
}

@media (max-width: 360px) {
  .site-footer .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .footer-grid {
    gap: 4px;
  }
  .footer-brand img {
    height: 22px;
  }
  .footer-brand p {
    font-size: 0.4rem;
  }
  .footer-col h5 {
    font-size: 0.42rem;
  }
  .footer-col a,
  .footer-col span,
  .footer-contact-row {
    font-size: 0.39rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   Hover-only effects disabled on touch devices
   ═══════════════════════════════════════════════════════════════════ */
@media (hover: none) {
  .pricing-card:hover,
  .service-card:hover,
  .value-card:hover,
  .area-card:hover,
  .policy-card:hover,
  .addon-card:hover,
  .gallery-item:hover { transform: none; }
  .pricing-card.featured:hover { transform: none; }
  .gallery-item:hover > img { transform: none; }
  .gallery-item:hover .gallery-caption { transform: translateY(100%); }
}


/* ═══════════════════════════════════════════════════════════════════
   Reduced-motion respect
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
