/* ===================================================
   BUILD MASTERS CONSTRUCTIONS — responsiveness.css
   Breakpoints:
     Small desktop : 992px – 1199px
     Tablet        : 768px – 991px
     Mobile        : 576px – 767px
     Small mobile  : < 576px
   =================================================== */


/* ── SMALL DESKTOP (992px – 1199px) ──────────────── */
@media (max-width: 1199px) {

  /* Hero — reduce padding on smaller desktops */
  .hero-home { padding: 36px 50px; }

  .footer-grid {
    grid-template-columns: 220px 1fr 1fr;
    gap: 2rem;
  }
  .footer-grid > :last-child {
    grid-column: 1 / -1;
    max-width: 260px;
  }

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

  .service-tiles { gap: 1rem; grid-template-columns: repeat(2, 1fr); }
  .service-cards { grid-template-columns: repeat(2, 1fr); }

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

  .contact-layout { grid-template-columns: 1fr 320px; gap: 2.5rem; }

  .case-study-hero { grid-template-columns: 1fr; }
  .case-study-image { min-height: 280px; }

  .footer-layout { gap: 40px; }

  .service-cards-nav-prev { left: -12px; }
  .service-cards-nav-next { right: -12px; }
}


/* ── TABLET (768px – 991px) ───────────────────────── */
@media (max-width: 991px) {

  /* Nav — switch to hamburger */
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex !important; flex-shrink: 0; }
  .nav-menu-wrapper { display: none; }

  /* ── Mobile header CTAs: icon + short label ── */
  .header-cta {
    gap: 8px;
    align-items: center;
  }

  .hdr-cta-icon        { display: block; flex-shrink: 0; }
  .hdr-cta-label-full  { display: none; }
  .hdr-cta-label-short { display: block; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }

  .hdr-cta-btn {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    height: auto;
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  /* Keep the hamburger always last and never shrink */
  .header-cta .hamburger {
    order: 99;
    flex-shrink: 0;
  }

  /* Reduce header padding when at the top on mobile/tablet */
  .header-sticky.at-top .site-navbar {
    padding: 16px 0 12px;
  }

  /* Lock navbar to never overflow viewport */
  .site-navbar {
    overflow: hidden;
    gap: 8px;
  }

  /* Logo: allow shrink but keep readable */
  .site-navbar .navbar-brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .site-navbar .navbar-brand img {
    height: 34px;
    width: auto;
  }

  /* Body no longer needs extra padding for nav overlay */

  /* Hero home — stack vertically, reset hero padding so image fills top edge cleanly */
  .hero-outer { padding: 12px 12px 0; }
  .hero-home { padding: 0; border-radius: 16px; }
  .hero-home .container { grid-template-columns: 1fr; }
  /* Stacked layout: image on top, full-width square, rounded top corners only */
  .hero-image-col { order: -1; border-radius: 16px 16px 0 0; width: 100%; }
  .hero-image-col img { border-radius: 0; box-shadow: none; object-position: center center; }
  /* Suppress gradient overlay on stacked layout */
  .hero-image-col::after { background: none; }
  .hero-content-col { padding: 36px 28px 48px; }

  /* BA slider — tablet */
  .ba-slider { border-radius: 0; height: 100%; }
  .ba-knob { width: 46px; height: 46px; }
  .ba-label { font-size: 9px; padding: 5px 12px; bottom: 16px; }
  .hero-inner { margin: 12px 12px 0; padding: 110px 0 65px; border-radius: 16px; }

  /* Service tiles — 2 columns */
  .service-tiles { grid-template-columns: repeat(2, 1fr); }

  /* Projects — 2 columns */
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid-2 { grid-template-columns: 1fr; }

  /* Testimonials — 2 columns */
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats — 2×2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0;
  }
  .stat-item:nth-child(2)::before { display: none; }
  .stat-item:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .stat-item:nth-child(3)::before { display: none; }

  /* Footer stats — 2×2 */
  .footer-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-stat:nth-child(3) { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }
  .footer-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.12); }

  /* Promise grid — 2 columns */
  .promise-grid { grid-template-columns: repeat(2, 1fr); }

  /* Team — 2 columns */
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-leadership-strip { grid-template-columns: repeat(2, 1fr); }

  /* Pricing — 1 column with featured not elevated */
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }

  /* Gallery — 3 columns */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  /* Contact — stack */
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }

  /* Case study — stack */
  .case-study-hero { grid-template-columns: 1fr; }
  .case-study-image { min-height: 240px; }
  .case-study-meta { padding: 1.75rem 2rem; }
  .case-study-body { padding: 1.5rem 2rem; }

  /* Thank you next steps — 1 column */
  .next-steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 2rem auto 0; }

  /* Footer grid — 2 columns */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  /* Why points — 2 columns */
  .why-points-grid { grid-template-columns: 1fr 1fr; }

  /* Service intro grid */
  .service-intro-grid { grid-template-columns: 1fr; }

  /* Process timeline grid col */
  .process-step { grid-template-columns: 60px 1fr; gap: 1.25rem; }

  /* Sticky mobile CTA */
  /* Show sticky Cost Calculator bar */
  .sticky-bottom-cta { display: none; }
  .sticky-bottom-bar  { display: flex; }
  /* padding-bottom = bar height + safe area so content isn't hidden */
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }

  /* Hide Cost Calculator in mobile header, make Free Quote prominent */
  .hdr-cta-btn:first-child { display: none; }
  .hdr-cta-btn.hdr-cta-btn:nth-child(2) {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: transparent;
    min-width: 68px;
    height: 48px;
  }

  /* Section padding reduce */
  .section { padding: var(--space-2xl) 0; }
  .section-sm { padding: var(--space-xl) 0; }

  /* Additional styles from style.css */
  .stat-item:nth-child(3)::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .services-list-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }

  /* Vertical timeline responsive */
  .process-timeline { gap: 24px; }
  .process-step { gap: 16px; }
  .step-marker { width: 48px; }
  .step-number { width: 48px; height: 48px; font-size: 18px; border-width: 3px; }
  .step-content { padding: 20px 24px; }
  .step-content h3 { font-size: 18px; }
  .step-content > p { font-size: 14px; }
  .step-deliverable { font-size: 12px; padding: 6px 12px; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }

  main { padding-bottom: 64px; }
  .section-padding { padding: 70px 0; }

  .footer-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-outer { padding: 0 12px 12px; }
  .footer-right-cols { grid-template-columns: 1fr 1fr; }
  .footer-contact-pills { flex-direction: column; align-items: flex-start; }
  .footer-tagline { max-width: 100%; }
}


/* ── MOBILE (576px – 767px) ───────────────────────── */
@media (max-width: 767px) {

  /* Typography scale-down */
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  /* Hero */
  .hero-badge { font-size: 0.65rem; }
  .hero-ctas { flex-direction: column; gap: 0.75rem; }
  .hero-ctas .btn-default { text-align: center; }
  .hero-trust { gap: 0.75rem; font-size: 0.78rem; }
  .hero-home { padding: 0; }
  /* aspect-ratio keeps the 1:1 images fully visible at any screen width */
  .hero-image-col { height: auto; aspect-ratio: 1 / 1; padding: 0; }
  .hero-image-col img { border-radius: 0; }
  .hero-content-col { padding: 28px 20px 40px; }

  /* BA slider — mobile */
  .ba-knob { width: 42px; height: 42px; }
  .ba-label { font-size: 9px; padding: 5px 11px; bottom: 14px; }
  .ba-label-before { left: 12px; }
  .ba-label-after { right: 12px; }

  /* Service tiles — 1 column */
  .service-tiles { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }

  /* Projects — 1 column */
  .projects-grid { grid-template-columns: 1fr; }

  /* Testimonials — 1 column */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stat-number { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .stat-item { padding: 16px 0; }
  .stat-item:nth-child(2)::before, .stat-item:nth-child(4)::before { display: none; }

  /* Promise — 1 column */
  .promise-grid { grid-template-columns: 1fr; }

  /* Team — 1 column */
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .team-leadership-strip { grid-template-columns: 1fr; }

  /* Principles — 2 columns */
  .principles-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery — 2 columns */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }

  /* Comparison table — scroll */
  .comparison-table-wrap { overflow-x: auto; }

  /* Pricing */
  .pricing-grid { max-width: 100%; }

  /* Case study */
  .case-meta-grid { grid-template-columns: 1fr; gap: 0.625rem; }
  .case-study-meta { padding: 1.5rem; }
  .case-study-body { padding: 1.5rem; }
  .case-study-hero { grid-template-columns: 1fr; }
  .case-study-image { min-height: 220px; }
  .case-study-meta, .case-study-body { padding: 22px 20px; }

  /* Project case grid */
  .project-case-grid { grid-template-columns: 1fr; }

  /* Footer grid — 1 column */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-right-cols { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-outer { padding: 0 8px 8px; }

  /* Office photos — 1 column */
  .office-photos { grid-template-columns: 1fr; }
  .office-photos img:first-child { grid-column: auto; }

  /* CTA band */
  .cta-band { padding: 60px 0; margin: 28px 8px; border-radius: 16px; }
  .cta-band-btns { flex-direction: column; align-items: center; }
  .cta-band-btns .btn-default { min-width: 240px; text-align: center; }

  /* Enquiry inline */
  .enquiry-inline { padding: 1.75rem 1.25rem; }

  /* Lightbox nav hidden on small screens */
  .lightbox-prev, .lightbox-next { display: none; }
  #lbPrev { left: 8px; }
  #lbNext { right: 8px; }

  /* Hero inner */
  .hero-inner { padding: 2.5rem 0 2rem; }

  .service-cards-swiper-wrap { padding-bottom: 44px; }
  .service-cards-nav-prev,
  .service-cards-nav-next { display: none; }

  /* Additional styles from style.css */
  .hero-outer { padding: 8px 8px 0; }
  .hero-inner-outer { padding: 8px 8px 0; }
  .section-padding { padding: 55px 0; }
  .section-header h2, .section-title h2 { font-size: 1.8rem; }
  .bg-section { margin: 0 12px; border-radius: 20px; }
  .bg-section.dark-section::before { border-radius: 20px; }
  #lightbox-prev { left: 8px; }
  #lightbox-next { right: 8px; }
}


/* ── SMALL MOBILE (< 576px) ───────────────────────── */
@media (max-width: 575px) {

  h1 { font-size: 1.6875rem; }
  h2 { font-size: 1.3125rem; }

  /* Allow long button text to wrap on small phones */
  .btn-default { white-space: normal; }

  /* Nav logo smaller */
  .nav-logo img { height: 36px; }

  /* Gallery — 2 columns tight */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }

  /* Stats — 1 column */
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stat-item { padding: 22px 0; }
  .stat-item::before { display: none !important; }
  .stat-item + .stat-item { border-top: 1px solid rgba(255,255,255,0.12); }
  .stats-bar { padding: 36px 0; }

  /* Footer stats — 2 col stays fine */

  /* Principles — 1 column */
  .principles-grid { grid-template-columns: 1fr; }

  /* Why points — 1 column */
  .why-points-grid { grid-template-columns: 1fr; }

  /* Team */
  .team-grid { max-width: 280px; }

  /* Process timeline — tighter */
  .process-step {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }

  /* Next steps — 1 column */
  .next-steps-grid { max-width: 100%; }

  /* Section padding */
  .section { padding: var(--space-xl) 0; }

  /* Lightbox */
  .lightbox-close { top: 0.75rem; right: 0.75rem; }

  /* Additional styles from style.css */
  .container { padding-left: 16px; padding-right: 16px; }
  .mobile-nav { width: 85vw; max-width: 300px; }
  .hero-inner { margin: 8px 8px 0; padding: 100px 0 55px; border-radius: 12px; }
  .hero-home { border-radius: 12px; }

  /* Policy Pages - Tablet Styles */
  .page-header-outer { margin: 12px; border-radius: 16px; }
  .page-header { padding: 95px 0 60px; }
  .page-header h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
  .page-header .lead { font-size: 1.1rem; }
  .content-body { 
    padding: 40px 30px; 
    margin: -30px 12px 30px; 
    border-radius: 16px; 
  }
  .policy-section h2 { font-size: 1.5rem; }
  .policy-section h3 { font-size: 1.2rem; }
  .cookie-table th, .cookie-table td { padding: 12px 10px; font-size: 13px; }
  .contact-info-box { padding: 25px; }
  .policy-intro { padding: 25px; }
  .hero-home { padding: 75px 0px; }
  .hero-image-col { height: auto; aspect-ratio: 1 / 1; padding: 0; }
  .hero-image-col img { border-radius: 0; }

  /* BA slider — small mobile */
  .ba-knob { width: 38px; height: 38px; gap: 2px; }
  .ba-knob svg { width: 12px; height: 12px; }
  .ba-label { font-size: 8px; padding: 4px 10px; bottom: 12px; }
  .hero-content-col { padding: 24px 16px 36px; }
  /* Smaller logo on very small screens */
  .site-navbar .navbar-brand img { height: 34px; }
  /* Tighter header CTA gap */
  .header-cta { gap: 8px; }
  .btn-default.btn-sm { font-size: 13px; padding: 10px 16px; }
  .enquiry-modal .modal-body { padding: 20px; }
  .enquiry-modal .modal-header { padding: 20px 20px 16px; }
  .contact-form-card { padding: 24px 20px; }

  /* Vertical timeline mobile */
  .process-timeline { gap: 20px; }
  .process-step { gap: 12px; flex-direction: column; }
  .step-marker { width: 100%; flex-direction: row; align-items: flex-start; }

  /* Policy Pages - Mobile Styles */
  .page-header-outer { margin: 8px; border-radius: 12px; }
  .page-header { padding: 90px 0 55px; }
  .page-header h1 { font-size: clamp(1.6rem, 4vw, 2rem); }
  .page-header .lead { font-size: 1rem; margin-bottom: 24px; }
  .breadcrumb { font-size: 13px; flex-wrap: wrap; }
  .content-body { 
    padding: 30px 20px; 
    margin: -20px 8px 20px; 
    border-radius: 12px; 
  }
  .policy-section h2 { font-size: 1.3rem; }
  .policy-section h3 { font-size: 1.1rem; }
  .policy-section h4 { font-size: 1rem; }
  .policy-section ul, .policy-section ol { padding-left: 20px; }
  .cookie-table th, .cookie-table td { padding: 10px 8px; font-size: 12px; }
  .contact-info-box { padding: 20px; }
  .policy-intro { padding: 20px; }
  .step-number { width: 40px; height: 40px; font-size: 16px; margin-bottom: 0; margin-right: 12px; flex-shrink: 0; }
  .step-line { display: none; }
  .step-content { padding: 18px 20px; }
  .step-content::before, .step-content::after { display: none; }
  .step-content h3 { font-size: 16px; }
  .step-content > p { font-size: 13px; margin-bottom: 16px; }
  .step-deliverables { gap: 8px; }
  .step-deliverable { font-size: 11px; padding: 5px 10px; }
}


/* ── PREMIUM GALLERY RESPONSIVE ──────────────────── */

/* Small desktop */
@media (max-width: 1199px) {
  .pg-masonry { column-count: 3; }
  .pg-slide-far-prev,
  .pg-slide-far-next { opacity: 0; pointer-events: none; }
}

/* Tablet */
@media (max-width: 991px) {
  .pg-masonry { column-count: 3; column-gap: 6px; padding: 6px 6px 0; }
  .pg-item    { margin-bottom: 6px; }
  .pg-slide-prev { transform: translateX(-52%) scale(0.72) rotateY(14deg) translateZ(-60px); }
  .pg-slide-next { transform: translateX(52%)  scale(0.72) rotateY(-14deg) translateZ(-60px); }
  .pg-slide-far-prev, .pg-slide-far-next { opacity: 0; pointer-events: none; }
  .pg-nav-prev { left: 12px; }
  .pg-nav-next { right: 12px; }
  .pg-slide-img { max-height: 60vh; max-width: 80vw; }
}

/* Mobile */
@media (max-width: 767px) {
  .pg-masonry  { column-count: 2; column-gap: 5px; padding: 5px 5px 0; }
  .pg-item     { margin-bottom: 5px; border-radius: 3px; }
  .pg-bar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pg-filters  { gap: 6px; }
  .pg-filter   { font-size: 12px; padding: 6px 14px; }
  .pg-stat-num { font-size: 18px; }

  /* Lightbox — full width active slide only on mobile */
  .pg-stage { height: 60vh; perspective: 900px; }
  .pg-slide-img { max-height: 56vh; max-width: 92vw; }
  .pg-slide-prev,
  .pg-slide-next { opacity: 0.25; filter: brightness(0.4); transform: translateX(0) scale(0.85) rotateY(0deg); pointer-events: none; }
  .pg-slide-far-prev,
  .pg-slide-far-next { display: none; }
  .pg-nav { width: 40px; height: 40px; }
  .pg-nav svg { width: 18px; height: 18px; }
  .pg-nav-prev { left: 8px; }
  .pg-nav-next { right: 8px; }
  .pg-hint { display: none; }
}

/* Small mobile */
@media (max-width: 575px) {
  .pg-masonry  { column-count: 2; column-gap: 4px; padding: 4px 4px 0; }
  .pg-item     { margin-bottom: 4px; }
  .pg-stage    { height: 55vh; }
  .pg-slide-img { max-height: 50vh; max-width: 96vw; }
  .pg-viewer-header { padding: 14px 16px; }
  .pg-viewer-footer { padding: 16px; }
  .pg-caption  { font-size: 12px; }
}


/* ── PRINT ────────────────────────────────────────── */
@media print {
  .site-header, .mobile-nav, .sticky-bottom-cta,
  .cta-band, .site-footer, .enquiry-modal { display: none !important; }
  body { padding-top: 0; }
  .hero-inner { background: none; color: #000; }
  .hero-inner h1, .hero-inner .lead { color: #000; }
}


/* ── GLOBAL HORIZONTAL OVERFLOW PREVENTION ────────── */

/* All swiper wrappers must clip horizontal overflow */
.swiper,
.swiper-wrapper,
.service-cards-swiper-wrap,
.promise-swiper-wrap,
.pg-swiper-wrap {
  max-width: 100%;
}

/* Section-level overflow protection */
section,
.bg-section,
.hero-outer,
.hero-inner-outer,
.footer-outer,
.stats-bar,
.cta-band {
  overflow-x: hidden;
  max-width: 100%;
}

/* Prevent images and embeds from breaking layout */
img, svg, video, iframe, embed, object {
  max-width: 100%;
}

/* Container never wider than viewport */
.container {
  max-width: min(1300px, 100%);
}

@media (max-width: 991px) {
  /* Service cards swiper: clip to prevent overflow */
  .service-cards-swiper-wrap {
    overflow: hidden;
  }

  /* Promise swiper: clip */
  .promise-swiper-wrap {
    overflow: hidden;
  }

  /* bg-section floating cards */
  .bg-section {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  /* All grid sections clamp to viewport */
  .int-services-grid,
  .int-packages-grid,
  .int-process-grid,
  .int-why-grid,
  .int-related-grid,
  .pg-teaser-ctas,
  .pg-teaser-ctas--4 {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Testimonials swiper wrap */
  [data-plugin="testimonials"],
  [data-plugin="testimonials-static"] {
    overflow: hidden;
  }

  /* CTA band: ensure it never breaks layout */
  .cta-band {
    max-width: calc(100% - 16px);
  }
}

@media (max-width: 575px) {
  /* Reset to single column for any lingering grids on tiny screens */
  .int-services-grid {
    grid-template-columns: 1fr;
  }

  .int-process-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure hero slider fills correctly */
  .ba-slider {
    max-width: 100%;
    overflow: hidden;
  }

  /* Section padding tighter on tiny screens */
  .section-padding {
    padding: 48px 0;
  }
}

/* ==========================================================================
   VIDEO CARDS — RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Featured card collapses to vertical stacked on tablet */
  .video-card--featured {
    flex-direction: column;
    height: auto;
  }

  .video-card--featured .video-card__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-card--featured .video-card__thumb img {
    height: 100%;
  }

  .video-card--featured .video-card__body {
    padding: 1.4rem 1.6rem 1.6rem;
  }
}

@media (max-width: 575px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .video-card__play::before {
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   VIDEO MODAL — RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
  .video-modal {
    padding: 1rem;
    align-items: center;
  }

  .video-modal__dialog {
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }

  .video-modal__content {
    grid-template-columns: 1fr;
  }

  .video-modal__media {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    aspect-ratio: 16 / 9;
    align-self: auto;
  }

  .video-modal__info {
    padding: 1rem;
  }

  .video-modal__actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .video-modal__info h3 {
    font-size: .95rem;
  }

  .video-modal__actions .btn-primary,
  .video-modal__actions .btn-whatsapp,
  .video-modal__actions .btn-secondary {
    padding: .65rem .9rem;
    font-size: .84rem;
  }
}


/* ==========================================================================
   COST CALCULATOR — RESPONSIVE
   ========================================================================== */

/* ── Small desktop (992–1199px) ──────────────────────────────────────────── */
@media (max-width: 1199px) {
  .calc-notes-grid     { grid-template-columns: repeat(2, 1fr); }
  .calc-materials-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Tablet (768–991px) ──────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .calc-stepper        { gap: 0; }
  .stepper-label       { display: none; }
  .stepper-line        { min-width: 12px; }

  .calc-fields-grid                { grid-template-columns: 1fr; }
  .calc-fields-grid--3col          { grid-template-columns: 1fr 1fr; }
  .calc-field-full                 { grid-column: 1 / -1; }

  .calc-package-cards  { grid-template-columns: 1fr; gap: 0.75rem; }
  .calc-pkg-inner      { padding: 1rem; }

  .calc-result-grid    { grid-template-columns: 1fr; }
  .calc-result-full    { grid-column: 1; }

  .calc-area-grid      { grid-template-columns: repeat(2, 1fr); }
  .calc-materials-grid { grid-template-columns: repeat(3, 1fr); }
  .calc-notes-grid     { grid-template-columns: repeat(2, 1fr); }

  .calc-budget-low,
  .calc-budget-high    { font-size: 2rem; }
}

/* ── Mobile (< 768px) ────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .calc-stepper {
    gap: 0;
    margin-bottom: 1.75rem;
  }

  .stepper-dot         { width: 32px; height: 32px; }
  .stepper-num         { font-size: 13px; }
  .stepper-line        { margin-top: 16px; min-width: 8px; }

  .calc-step-title     { font-size: 1.25rem; }

  .calc-fields-grid              { grid-template-columns: 1fr; gap: 1rem; }
  .calc-fields-grid--3col        { grid-template-columns: 1fr; gap: 1rem; }

  .calc-teaser                   { padding: 1.5rem 1.25rem; }
  .calc-teaser-preview           { flex-direction: column; gap: 10px; }
  .calc-teaser-blur              { font-size: 1.4rem; }
  .calc-teaser-reveal            { align-self: center; }

  .calc-nav            { flex-wrap: wrap; gap: 8px; }
  .calc-nav-spacer     { display: none; }
  .calc-nav .btn-default { flex: 1; min-width: 0; text-align: center; justify-content: center; }

  .calc-budget-banner  { padding: 1.75rem 1.25rem; border-radius: var(--radius-lg); }
  .calc-budget-low,
  .calc-budget-high    { font-size: 1.75rem; }
  .calc-budget-ctas    { flex-direction: column; }
  .calc-budget-ctas .btn-default { text-align: center; }

  .calc-area-grid      { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .calc-area-value     { font-size: 16px; }

  .calc-materials-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .calc-summary-bar    { flex-direction: column; align-items: flex-start; }
  .calc-summary-chips  { width: 100%; }

  .calc-result-grid    { gap: 1rem; }
  .calc-result-card    { padding: 1.25rem; }

  .calc-notes-grid     { grid-template-columns: 1fr; }

  .calc-bottom-ctas    { flex-direction: column; }
  .calc-bottom-ctas .btn-default { text-align: center; }
}

/* ── Small mobile (< 576px) ──────────────────────────────────────────────── */
@media (max-width: 575px) {
  #calculatorSection > .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .calc-result-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .calc-table-wrap {
    padding-right: 2px;
  }

  .calc-budget-low,
  .calc-budget-high    { font-size: 1.5rem; }
  .calc-budget-banner  { padding: 1.25rem 1rem; }

  .calc-package-cards  { gap: 0.5rem; }

  .calc-materials-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .calc-material-item  { padding: 0.75rem; }
  .calc-material-icon  { font-size: 1.25rem; }

  .calc-comparison-table th,
  .calc-comparison-table td { padding: 8px; font-size: 12px; }

  .calc-breakdown-table th,
  .calc-breakdown-table td { padding: 8px; font-size: 12px; }

  .calc-timeline-val   { font-size: 2rem; }

  .calc-area-grid      { grid-template-columns: 1fr 1fr; }
  .calc-area-value     { font-size: 15px; }

  .calc-split-bar      { height: 22px; }

  .calc-foundation-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0.95rem 1rem;
  }

  .calc-foundation-icon {
    width: 46px;
    height: 34px;
  }

  .calc-foundation-name {
    font-size: 18px;
    line-height: 1.2;
  }

  .calc-foundation-desc {
    font-size: 15px;
    line-height: 1.55;
  }

  .calc-foundation-meta {
    font-size: 14px;
    line-height: 1.45;
    margin-top: 2px;
  }
}
