/* ==========================================================================
   LIQUID RUBBER WORLDWIDE -- Responsive Stylesheet
   --------------------------------------------------------------------------
   Breakpoints (desktop-first, max-width):
     1440px  -- Large desktop / extra wide
     1199px  -- Standard desktop / small laptop
     991px   -- Tablet landscape
     767px   -- Tablet portrait
     479px   -- Mobile

   Vertical section spacing scale:
     Desktop      : 100px top / 100px bottom
     Tablet (<992): 70px top / 70px bottom
     Mobile (<768): 50px top / 50px bottom
     Small (<480) : 40px top / 40px bottom

   Strategy:
     - Order: 1440 -> 1199 -> 991 -> 767 -> 479 (max-width cascading)
     - Section-padding utilities applied at each tier
     - Layout: grids collapse to single column at 991 or 767
     - Typography: clamp() in style.css handles most fluid sizing
       -- these queries handle layout, padding, navigation, grid shape
   ========================================================================== */


/* ==========================================================================
   <= 1440px -- Large desktop / wide screens
   Only the homepage hero needs minor adjustment; container already has
   max-width: 1440px so most pages just shrink naturally.
   ========================================================================== */
@media (max-width: 1440px) {

  /* Hero / banner heights & paddings */
  .hero { height: 720px; }
  .page-hero { min-height: 400px; padding: 88px 0 72px; }

  /* Big section-head typography pull-back */
  .clients-head h3,
  .about-dark h2 { font-size: 40px; }
  .cta-left h2 { font-size: 46px; }

  /* Homepage projects grid -- give first card a touch more breathing */
  .projects-grid { grid-template-rows: 260px 260px; }

  /* Footer slightly tighter */
  .footer-grid { gap: 32px; }
}


/* ==========================================================================
   <= 1199px -- Standard desktop / small laptop
   ========================================================================== */
@media (max-width: 1199px) {

  /* ===== CONTAINER & GRID ===== */
  .container { padding: 0 40px; }

  /* ===== HEADER ===== */
  .top-nav { grid-template-columns: 220px 1fr 70px; height: 90px; }
  .brand-cell { padding: 10px 22px; }
  .logo-img { height: 60px; }
  .nav-links { gap: 26px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.14em; }

  /* ===== SIDE RAIL ===== */
  .side-rail { width: 50px; top: 90px; padding: 30px 0; }
  main { padding-left: 50px; padding-top: 90px; }

  /* ===== HERO (homepage) ===== */
  .hero { height: 640px; }
  .hero-content { padding: 0 40px; }

  /* ===== INNER PAGE HERO ===== */
  .page-hero { padding: 80px 0 64px; min-height: 360px; }
  .page-hero h1 { font-size: clamp(36px, 5vw, 64px); }
  .page-hero .lede { font-size: 16px; }
  .page-hero .ph-meta { gap: 36px; }

  /* ===== SECTION-LEVEL VERTICAL SPACING -- 100 -> 90 (still generous) ===== */
  .services,
  .projects,
  .why-choose,
  .clients,
  .cta-section,
  .stats-band,
  .story,
  .pillars,
  .leadership,
  .rnd,
  .values,
  .jobs,
  .perks,
  .case-list,
  .quality,
  .certs,
  .qc,
  section.lab,
  .channels,
  .csplit,
  .map-band,
  .dl-search,
  .dl-cats,
  .ev-list,
  .faq-body,
  .plant,
  .cap-band,
  .process,
  .plant-gal,
  section.location,
  .pitch,
  .programs,
  .benefits,
  .form-sect,
  .confid,
  .all-products,
  .compare,
  .prod-cta,
  .prod-intro,
  .prod-details,
  .prod-packaging,
  .prod-applications,
  .prod-others,
  .featured-quote,
  .quotes,
  .recognition,
  .logos-band,
  .legal,
  .areas,
  .page-cta,
  .blog-list,
  .article-body,
  .related,
  .job-body,
  .about-cta,
  .featured-case { padding: 90px 0; }

  /* Apps-intro paragraph + filter spacing override (tighter than global section padding) */
  .areas { padding: 45px 0 90px; }

  /* ===== HOMEPAGE GRIDS ===== */
  .services-grid { gap: 24px; }
  .features-grid,
  .features-bottom { gap: 12px; }
  .feature-card { padding: 30px 24px; }
  .feature-card .feature-num { font-size: 42px; }
  .logo-grid { grid-template-columns: repeat(6, 1fr); }

  /* ===== ABOUT DARK ===== */
  .about-dark { padding: 60px 50px; }
  .about-dark h2 { font-size: 38px; }

  /* ===== CTA ===== */
  .cta-grid { gap: 60px; }
  .cta-left h2 { font-size: 42px; }

  /* ===== STATS / SPECS STRIP ===== */
  .stat-cell { padding: 40px 30px; }
  .stat-cell .num { font-size: 56px; }

  /* ===== FOOTER ===== */
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 60px 0 44px;
  }

  /* ===== PRODUCT DETAIL ===== */
  .prod-intro-grid { gap: 60px; }
  .prod-specs-grid { gap: 16px; }
  .prod-details-grid { gap: 30px; }

  /* ===== PRODUCTS PAGE ===== */
  .prod-grid-2col { gap: 24px; }
  .prod-grid { gap: 20px; }

  /* ===== BLOG / CASE-STUDY GRIDS ===== */
  .post-grid,
  .case-grid,
  .ev-grid { gap: 24px; }

  /* ===== MANUFACTURING ===== */
  .plant-grid,
  .quality-grid { gap: 50px; }
  .process-grid { gap: 24px; }

  /* ===== CONTACT ===== */
  .csplit-grid { gap: 50px; }
  .ch-grid { gap: 0; }
  .ch { padding: 30px 22px; }
}


/* ==========================================================================
   <= 991px -- Tablet landscape
   - Main navigation hides; slide-panel takes over
   - Most multi-col grids collapse to 2 columns
   - Side rail hides
   ========================================================================== */
@media (max-width: 991px) {

  /* ===== HEADER -- simple flex bar on mobile (logo left, menu right) ===== */
  .top-nav {
    display: flex;
    align-items: stretch;
    grid-template-columns: none;
    height: 80px;
  }
  .brand-cell {
    flex: 1 1 auto;
    min-width: 0;
    border-right: none;
    padding: 0 18px;
    justify-content: flex-start;
  }
  .logo-img { height: 44px; }
  .nav-links { display: none; }
  .menu-cell {
    flex: 0 0 66px;
    width: 66px;
    border-left: 1px solid var(--line-soft);
  }

  /* ===== SIDE RAIL -- hide on tablet & smaller ===== */
  .side-rail { display: none; }
  main { padding-left: 0; padding-top: 80px; }

  /* ===== SLIDE PANEL -- show nav links inside, hide desktop-only contact block ===== */
  .slide-panel__nav { display: flex; }
  .slide-panel__contact { display: none; }

  /* ===== CONTAINER ===== */
  .container { padding: 0 32px; }

  /* ===== HERO (homepage) ===== */
  .hero { height: 580px; }
  .hero h1 { font-size: clamp(36px, 5vw, 52px); }
  .hero-desc { font-size: 15px; }
  .hero-content { padding: 0 32px; }

  /* ===== INNER PAGE HERO ===== */
  .page-hero { padding: 70px 0 56px; min-height: 320px; }
  .page-hero h1 { font-size: clamp(34px, 5vw, 54px); }
  .page-hero .breadcrumbs { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 22px; gap: 8px; }
  .page-hero .ph-meta { gap: 28px; margin-top: 30px; padding-top: 22px; }
  .page-hero .ph-meta .m .v { font-size: 18px; }

  /* ===== SECTION VERTICAL SPACING -- 70px tablet ===== */
  .services,
  .projects,
  .why-choose,
  .clients,
  .cta-section,
  .stats-band,
  .story,
  .pillars,
  .leadership,
  .rnd,
  .values,
  .jobs,
  .perks,
  .case-list,
  .quality,
  .certs,
  .qc,
  section.lab,
  .channels,
  .csplit,
  .map-band,
  .dl-search,
  .dl-cats,
  .ev-list,
  .faq-body,
  .plant,
  .cap-band,
  .process,
  .plant-gal,
  section.location,
  .pitch,
  .programs,
  .benefits,
  .form-sect,
  .confid,
  .all-products,
  .compare,
  .prod-cta,
  .prod-intro,
  .prod-details,
  .prod-packaging,
  .prod-applications,
  .prod-others,
  .featured-quote,
  .quotes,
  .recognition,
  .logos-band,
  .legal,
  .areas,
  .page-cta,
  .blog-list,
  .article-body,
  .related,
  .job-body,
  .about-cta,
  .featured-case { padding: 70px 0; }

  .eco-band { padding: 40px 0; }
  .contact-bar { padding: 0 32px; }

  /* intro-only sections (top padding only -- they flow into next section) */
  .apps-intro { padding: 70px 0 0; }
  .areas { padding: 35px 0 70px; }

  /* ===== SECTION-HEAD ROWS -- collapse to column ===== */
  .section-head-row,
  .clients-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .section-head-row h2,
  .clients-head h3 { font-size: clamp(32px, 4.5vw, 44px); }
  .section-subtitle,
  .section-desc-right { max-width: 100%; margin-top: 0; }

  /* ===== HOMEPAGE -- CONTACT BAND ===== */
  .contact-bar { grid-template-columns: 1fr; padding: 24px 32px; }
  .contact-cell { padding: 26px 0; border-bottom: 1px solid var(--line); }
  .contact-cell:last-child { border-bottom: none; }

  /* ===== HOMEPAGE -- SERVICES ===== */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* ===== HOMEPAGE -- ECO BAND (2x2 grid with dashed dividers) ===== */
  .eco-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .eco-cell {
    padding: 26px 24px;
    border-left: none;
    border-right: 1px dashed rgba(14,20,20,0.18);
    border-bottom: 1px dashed rgba(14,20,20,0.18);
  }
  .eco-cell:nth-child(2n) { border-right: none; padding-right: 0; }
  .eco-cell:nth-child(2n+1) { padding-left: 0; }
  .eco-cell:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
  .eco-cell:nth-child(-n+2) { padding-top: 0; }
  .eco-ic { margin-bottom: 12px; }
  .eco-ic svg { width: 50px; height: 50px; }
  .eco-label { font-size: 13px; letter-spacing: 0.1em; margin-bottom: 8px; }
  .eco-cell p { font-size: 14px; line-height: 1.55; max-width: 100%; }

  /* ===== HOMEPAGE -- ABOUT BLOCK ===== */
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 420px; }
  .about-dark { padding: 60px 40px; }
  .about-dark h2 { font-size: 34px; }

  /* ===== HOMEPAGE -- STATS BAND ===== */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { padding: 36px 24px; border-bottom: 1px dashed rgba(14,20,20,0.18); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-last-child(-n+2) { border-bottom: none; }
  .stat-cell .num { font-size: 48px; }

  /* ===== HOMEPAGE -- PROJECTS ===== */
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .project-1 { grid-column: 1 / -1; grid-row: auto; }
  .project-1 .ttl { font-size: 26px; }

  /* ===== HOMEPAGE -- WHY CHOOSE ===== */
  .features-grid,
  .features-bottom { grid-template-columns: repeat(2, 1fr); }
  .features-bottom .feature-card { grid-column: auto; }
  .features-bottom-img { grid-column: 1 / -1; min-height: 260px; }

  /* ===== HOMEPAGE -- CLIENTS / LOGO GRID ===== */
  .logo-grid { grid-template-columns: repeat(4, 1fr); }

  /* ===== HOMEPAGE -- CTA ===== */
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-left h2 { font-size: 36px; }

  /* ===== FOOTER ===== */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
    padding: 60px 0 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* ===== TWO-COL INTROS (about story, pitches, plant, quality, prod-intro) ===== */
  .story-grid,
  .pitch-grid,
  .plant-grid,
  .quality-grid,
  .prod-intro-grid,
  .csplit-grid,
  .about-cta-inner,
  .featured-quote .fq-grid,
  .featured-case-grid,
  .featured-post,
  .rnd-grid { grid-template-columns: 1fr !important; gap: 40px; }

  /* ===== BLOG / BLOG DETAIL ===== */
  /* Featured post stacks: image on top, body below */
  .featured-post { gap: 0 !important; }
  .featured-post .body { padding: 32px 26px; }
  .featured-post .meta { flex-wrap: wrap; row-gap: 6px; }
  .featured-post h2 { font-size: clamp(22px, 4vw, 30px); }

  /* Article hero -- give it proper top + bottom padding so it doesn't look plain */
  .article-hero { padding: 56px 0 24px; }
  .article-hero h1 { font-size: clamp(28px, 5vw, 44px); }
  /* Meta wraps cleanly; hide separator dots so wrapped items don't show
     orphan dots on their own line */
  .article-meta { flex-wrap: wrap; row-gap: 6px; }
  .article-meta .dot { display: none; }
  .featured-post .meta .dot { display: none; }
  .article-author { flex-wrap: wrap; gap: 14px; padding: 18px 0; }
  .article-author .share { margin-left: auto; }

  /* Article body grid -- collapse 3-col to 1-col, disable sticky TOC */
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; top: auto; }
  .article-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Related articles grid */
  .rel-grid { grid-template-columns: repeat(2, 1fr); }

  /* Blog-list section: give the filter bar breathing room from the hero above */
  .blog-list .filter-bar { margin-bottom: 32px; }

  /* ===== ABOUT PAGE: pillars, leadership, rnd ===== */
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .leaders { grid-template-columns: repeat(2, 1fr); }
  .lead-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
  .rnd-grid { gap: 0 !important; }
  .rnd-copy { padding: 40px 30px; }
  .rnd-photo { min-height: 280px; }

  /* ===== PRODUCT DETAIL ===== */
  /* .prod-specs is a thin band -- never use section padding */
  .prod-specs { padding: 0 !important; }

  .prod-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-specs-grid .spec {
    padding: 30px 26px;
    border-right: none;
    border-bottom: 1px solid rgba(14,20,20,0.18);
  }
  .prod-specs-grid .spec:nth-child(2n+1) { border-right: 1px solid rgba(14,20,20,0.18); }
  .prod-specs-grid .spec:nth-last-child(-n+2) { border-bottom: none; }
  .prod-details-grid { grid-template-columns: 1fr; gap: 24px; }
  .pack-grid .pack-item { min-width: calc(50% - 8px); }
  .app-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .others-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* ===== PRODUCTS PAGE ===== */
  .prod-grid-2col { grid-template-columns: 1fr; gap: 28px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-block { grid-template-columns: 1fr; gap: 30px; }

  /* ===== BLOG / CASE / EVENTS GRIDS ===== */
  .post-grid,
  .case-grid,
  .ev-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post,
  .featured-case { grid-template-columns: 1fr; }

  /* ===== TESTIMONIALS ===== */
  .q-grid { grid-template-columns: repeat(2, 1fr); }
  .logos-band .logo-grid { grid-template-columns: repeat(3, 1fr); }

  /* ===== FAQ ===== */
  .faq-body-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-side { position: static; }

  /* ===== CONTACT ===== */
  .ch-grid { grid-template-columns: repeat(2, 1fr); }
  .ch { padding: 28px 22px; gap: 12px; }
  .ch .ic { width: 48px; height: 48px; }
  .ch h4 { font-size: 16px; }
  .ch .val { font-size: 13px; }
  .form-card { padding: 28px 24px; }
  .form-card .head h3 { font-size: 20px; }

  /* ===== DOWNLOADS ===== */
  .dl-grid { grid-template-columns: repeat(2, 1fr); }

  /* ===== CAREERS ===== */
  .values-grid,
  .perks-grid,
  .val-grid { grid-template-columns: repeat(2, 1fr); }
  .val-grid > .val { padding: 26px 22px; }
  .job { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .job .arr { margin-top: 8px; }

  /* Career detail page -- collapse 2-col body to 1 col, disable sticky */
  .job-grid { grid-template-columns: 1fr; gap: 40px; }
  .job-side { position: static; top: auto; }
  .hero-badges { flex-wrap: wrap; gap: 10px; }

  /* ===== CERTIFICATIONS ===== */
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert { padding: 26px 22px; min-height: auto; }
  .cert h3 { font-size: 17px; }

  .qc-steps { grid-template-columns: repeat(2, 1fr); }
  .qc-step { min-height: auto; padding: 24px 20px; }
  .qc-step .n { font-size: 30px; margin-bottom: 12px; }

  .lab-list { grid-template-columns: 1fr; gap: 14px; }
  .lab-card { padding: 20px; gap: 16px; }

  /* ===== MANUFACTURING ===== */
  /* Capacity band: 2x2 grid with dashed dividers */
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .cap-cell {
    padding: 36px 24px;
    border-right: 1px dashed rgba(14,20,20,0.25);
    border-bottom: 1px dashed rgba(14,20,20,0.25);
  }
  .cap-cell:nth-child(2n) { border-right: none; }
  .cap-cell:nth-last-child(-n+2) { border-bottom: none; }
  .cap-cell .num { font-size: 52px; }
  .cap-cell .num .pl { font-size: 26px; }

  /* Process flow: stack vertically; circle on left spans both rows,
     title + description in right column */
  .proc-rail {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .proc-rail::before { display: none; }   /* remove horizontal dashed connector */
  .proc-step {
    display: grid;
    grid-template-columns: 76px 1fr;
    column-gap: 18px;
    row-gap: 6px;
    text-align: left;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line-soft);
  }
  .proc-step:last-child { border-bottom: none; }
  .proc-step .n {
    margin: 0;
    border: 0;
    grid-row: 1 / span 2;   /* circle spans title + description rows */
    align-self: center;     /* vertically centered next to the two text rows */
  }
  .proc-step h4 {
    grid-column: 2;
    margin-bottom: 0;
    line-height: 1.25;
  }
  .proc-step p {
    grid-column: 2;
    font-size: 13px;
  }

  /* Location: stack copy + map */
  .loc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* full-width photo card on tablet/mobile */
  .map-card {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: none;
  }
  .loc-info { grid-template-columns: 1fr 1fr; }

  /* Plant feature (video stamp) keeps min height when stacked */
  .plant-feature { min-height: 320px; }

  .process-grid { grid-template-columns: 1fr; }
  .plant-gal .gal-grid { grid-template-columns: repeat(2, 1fr); }

  /* ===== PARTNER / APPLICATIONS ===== */
  .programs-grid,
  .benefits-grid,
  .areas-grid { grid-template-columns: repeat(2, 1fr); }

  /* ===== LEGAL ===== */
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }

  /* ===== EV-HERO (article-hero handled in BLOG / BLOG DETAIL block above) ===== */
  .ev-hero { padding: 50px 0 0; }
  .ev-hero h1 { font-size: clamp(30px, 5vw, 44px); }
}


/* ==========================================================================
   <= 767px -- Tablet portrait / large mobile
   - Single-column for almost everything
   - Hero shrinks further
   ========================================================================== */
@media (max-width: 767px) {

  /* ===== HEADER ===== */
  .top-nav { height: 70px; }
  .brand-cell { padding: 8px 16px; }
  .logo-img { height: 40px; }
  .menu-cell { width: 60px; }
  .menu-cell .lines span { width: 20px; }

  /* ===== CONTAINER ===== */
  .container { padding: 0 20px; }

  main { padding-top: 70px; }

  /* ===== HERO (homepage) =====
     - main already pushes the hero below the fixed 70px header,
       so .hero's own top/bottom padding can be equal for symmetric spacing.
     - .hero-desc hidden on mobile to keep the banner short. */
  .hero {
    height: auto;
    min-height: 0;
    padding: 50px 0;          /* equal top + bottom */
  }
  .hero-content {
    height: auto;
    padding: 0 20px;
    align-items: flex-start;
  }
  .hero h1 { font-size: clamp(28px, 7vw, 38px); margin-bottom: 24px; }
  .hero-desc { display: none; }     /* hide on mobile for shorter banner */
  .hero-eyebrow { font-size: 11px; margin-bottom: 20px; }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero-slider-nav { margin-top: 24px; }

  /* ===== INNER PAGE HERO ===== */
  .page-hero {
    padding: 50px 0 44px;
    min-height: 280px;
  }
  .page-hero h1 { font-size: clamp(28px, 7vw, 40px); margin-bottom: 16px; }
  .page-hero .lede { font-size: 14px; line-height: 1.55; }
  .page-hero .breadcrumbs { margin-bottom: 18px; gap: 6px; flex-wrap: wrap; }
  .page-hero .ph-meta {
    gap: 18px;
    margin-top: 24px;
    padding-top: 18px;
  }
  .page-hero .ph-meta .m { flex: 1 1 45%; }
  .page-hero .ph-meta .m .v { font-size: 16px; }
  .page-hero .ph-meta .m .l { font-size: 10px; letter-spacing: 0.16em; }

  /* ===== SECTION VERTICAL SPACING -- 50px mobile ===== */
  .services,
  .projects,
  .why-choose,
  .clients,
  .cta-section,
  .stats-band,
  .story,
  .pillars,
  .leadership,
  .rnd,
  .values,
  .jobs,
  .perks,
  .case-list,
  .quality,
  .certs,
  .qc,
  section.lab,
  .channels,
  .csplit,
  .map-band,
  .dl-search,
  .dl-cats,
  .ev-list,
  .faq-body,
  .plant,
  .cap-band,
  .process,
  .plant-gal,
  section.location,
  .pitch,
  .programs,
  .benefits,
  .form-sect,
  .confid,
  .all-products,
  .compare,
  .prod-cta,
  .prod-intro,
  .prod-details,
  .prod-packaging,
  .prod-applications,
  .prod-others,
  .featured-quote,
  .quotes,
  .recognition,
  .logos-band,
  .legal,
  .areas,
  .page-cta,
  .blog-list,
  .article-body,
  .related,
  .job-body,
  .about-cta,
  .featured-case { padding: 50px 0; }

  .eco-band { padding: 32px 0; }
  .contact-bar { padding: 0 20px; }

  /* intro-only sections (top padding only) */
  .apps-intro { padding: 50px 0 0; }
  .apps-intro h2 { margin-bottom: 18px; }
  .apps-intro p { font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
  /* small breathing room between select-box and next section */
  .apps-intro .filter-bar { margin-bottom: 0; }
  .areas { padding: 28px 0 50px; }

  /* ===== TYPOGRAPHY -- generic headings shrink ===== */
  .section-head-row h2,
  .clients-head h3,
  .services-header h2,
  .about-dark h2,
  .cta-left h2 { font-size: clamp(26px, 7vw, 36px); line-height: 1.05; }
  .section-head-row { margin-bottom: 30px; }
  .services-header { margin-bottom: 36px; }

  /* ===== HOMEPAGE -- SERVICES ===== */
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-body { padding: 24px 22px; }
  .service .s-btn { margin: 20px -22px -24px; padding: 16px 22px; }

  /* (eco-band 2x2 grid inherited from 991px — keep two columns on mobile) */

  /* ===== HOMEPAGE -- ABOUT BLOCK ===== */
  .about-photo { min-height: 320px; }
  .about-dark { padding: 50px 24px; }
  .about-dark h2 { font-size: 28px; margin-bottom: 16px; }
  .about-dark p { font-size: 14px; margin-bottom: 24px; }
  .play-btn-big { width: 70px; height: 70px; }

  /* ===== HOMEPAGE -- STATS BAND ===== */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell {
    padding: 28px 20px;
    border-right: none !important;
    border-bottom: 1px dashed rgba(14,20,20,0.18);
  }
  .stat-cell:last-child { border-bottom: none; }
  .stat-cell .num { font-size: 40px; }

  /* ===== HOMEPAGE -- PROJECTS ===== */
  .projects-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
  .project { min-height: 240px; }
  .project-1 .ttl,
  .project .ttl { font-size: 20px; }
  .proj-tabs { flex-wrap: wrap; gap: 16px; }

  /* ===== HOMEPAGE -- WHY CHOOSE ===== */
  .features-grid,
  .features-bottom { grid-template-columns: 1fr; }
  .features-bottom-img { min-height: 200px; }
  .feature-card { padding: 26px 22px; }
  .feature-card .feature-num { font-size: 38px; }

  /* ===== HOMEPAGE -- CLIENTS / LOGO GRID ===== */
  .logo-grid { grid-template-columns: repeat(3, 1fr); }

  /* ===== HOMEPAGE -- CTA ===== */
  .cta-section { padding: 50px 0; }
  .cta-grid { gap: 32px; }
  .cta-left h2 { font-size: 28px; }
  .cta-card { padding: 16px 22px; gap: 16px; }
  .cta-card .cc-arrow { width: 38px; height: 38px; }

  /* ===== FOOTER ===== */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 50px 0 30px;
  }
  .footer-brand { grid-column: auto; }

  /* ===== BUTTONS ===== */
  .btn { padding: 14px 22px; font-size: 11px; letter-spacing: 0.14em; }

  /* ===== PRODUCT DETAIL ===== */
  /* keep .prod-specs as a thin band (no section padding) */
  .prod-specs { padding: 0 !important; }

  .prod-specs-grid { grid-template-columns: 1fr; }
  .prod-specs-grid .spec,
  .prod-specs-grid .spec:nth-child(2n+1),
  .prod-specs-grid .spec:nth-last-child(-n+2) {
    padding: 22px 20px;
    border-right: none;
    border-bottom: 1px dashed rgba(14,20,20,0.28);
    text-align: left;
  }
  .prod-specs-grid .spec:last-child { border-bottom: none; }
  .prod-specs-grid .spec .sl { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 6px; }
  .prod-specs-grid .spec .sv { font-size: 20px; }

  .pack-grid { gap: 12px; }
  .pack-grid .pack-item { min-width: 100%; padding: 22px 24px; }
  .pack-item .pack-text { font-size: 30px; }

  .app-grid { grid-template-columns: 1fr; gap: 14px; }
  .app-card .app-card-img { aspect-ratio: 16 / 10; }
  .app-card .app-label { padding: 14px 18px; font-size: 14px; }
  .app-card .app-cat { font-size: 10px; }

  .others-grid { grid-template-columns: 1fr; gap: 16px; }
  .prod-others-head { margin-bottom: 32px; }
  .prod-others-head h2 { font-size: clamp(28px, 7vw, 38px); margin-bottom: 12px; }
  .prod-others-head p { font-size: 14px; }

  /* ===== PRODUCTS PAGE ===== */
  .prod-grid { grid-template-columns: 1fr; }

  /* ===== ABOUT PAGE: pillars, leadership stack to 1 column ===== */
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar { padding: 28px 22px; }
  .leaders { grid-template-columns: 1fr; }
  .leader { padding: 24px 22px; }
  .leader .photo { aspect-ratio: 16/10; margin-bottom: 18px; }
  .leader h3 { font-size: 20px; }
  .lead-head h2 { font-size: clamp(28px, 7vw, 36px); }
  .rnd-copy { padding: 32px 22px; }
  .rnd-copy h2 { font-size: clamp(28px, 7vw, 36px); }
  .rnd-photo { min-height: 220px; }

  /* ===== BLOG / CASE / EVENTS GRIDS ===== */
  .post-grid,
  .case-grid,
  .ev-grid { grid-template-columns: 1fr; }

  /* ===== TESTIMONIALS ===== */
  .q-grid { grid-template-columns: 1fr; }
  .logos-band .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-quote .fq-text { font-size: clamp(20px, 5vw, 28px); }

  /* ===== DOWNLOADS ===== */
  .dl-grid { grid-template-columns: 1fr; }
  .dl-search-form { flex-direction: column; gap: 12px; }
  .dl-search-form input,
  .dl-search-form select,
  .dl-search-form button { width: 100%; }

  /* ===== CAREERS ===== */
  .values-grid,
  .perks-grid,
  .val-grid { grid-template-columns: 1fr; }
  .val-grid > .val { padding: 22px 18px; }
  .val-grid > .val h4 { font-size: 15px; }
  .hero-badges { flex-wrap: wrap; gap: 8px; }

  /* Career detail page -- tighter mobile sidebar */
  .job-content h2 { font-size: 18px; }
  .job-content p,
  .job-content ul li { font-size: 14px; line-height: 1.65; }
  .summary { padding: 24px 22px; }
  .summary h3 { font-size: 19px; margin-bottom: 14px; }
  .summary .row { padding: 10px 0; }
  .summary .row .v { font-size: 12px; }
  .iframe-note { padding: 18px 22px; font-size: 13px; }

  /* ===== CERTIFICATIONS ===== */
  .cert-grid { grid-template-columns: 1fr; }
  .cert { padding: 24px 20px; }
  .cert .badge { width: 56px; height: 56px; font-size: 11px; margin-bottom: 16px; }

  .qc-steps { grid-template-columns: 1fr; }
  .qc-step { padding: 20px 18px; min-height: auto; }
  .qc-step .n { font-size: 26px; margin-bottom: 8px; }
  .qc-step h4 { font-size: 14px; }
  .qc-step p { font-size: 12px; }

  .lab-list { grid-template-columns: 1fr; }
  .lab-card { padding: 18px; gap: 14px; }
  .lab-card .meta h4 { font-size: 15px; }
  .lab-card .dl { width: 40px; height: 40px; }

  /* ===== MANUFACTURING ===== */
  /* Capacity band: single column with dashed bottom dividers */
  .cap-grid { grid-template-columns: 1fr; }
  .cap-cell {
    padding: 28px 0;
    border-right: none !important;
    border-bottom: 1px dashed rgba(14,20,20,0.28);
  }
  .cap-cell:last-child { border-bottom: none; padding-bottom: 0; }
  .cap-cell:first-child { padding-top: 0; }
  .cap-cell .num { font-size: 44px; }
  .cap-cell .num .pl { font-size: 22px; }
  .cap-cell .lab { font-size: 11px; letter-spacing: 0.18em; }
  .cap-cell p { font-size: 13px; max-width: 100%; margin-top: 8px; }

  /* Process flow: tighter horizontal layout */
  .proc-step {
    grid-template-columns: 60px 1fr;
    gap: 14px;
    padding: 12px 0;
  }
  .proc-step .n {
    width: 60px; height: 60px;
    font-size: 18px;
  }
  .proc-step h4 { font-size: 14px; }
  .proc-step p { font-size: 12px; }

  /* Location: tighter map and info cells */
  .loc-info { grid-template-columns: 1fr 1fr; gap: 10px; }
  .loc-info .cell { padding: 14px; }
  .loc-info .cell .v { font-size: 14px; }
  .map-card { width: 100%; aspect-ratio: 16 / 10; max-height: none; }

  .plant-gal .gal-grid { grid-template-columns: 1fr; }
  .plant-feature { min-height: 260px; }

  /* ===== PARTNER / APPLICATIONS ===== */
  .programs-grid,
  .benefits-grid,
  .areas-grid { grid-template-columns: 1fr; }

  /* ===== CONTACT -- icon on LEFT, text on RIGHT (compact mobile layout)
     Equal top/bottom spacing inside the card, larger email/phone value. */
  .ch-grid { grid-template-columns: 1fr; }
  .ch {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    row-gap: 0;
    padding: 20px 18px;
    flex-direction: unset;       /* override base flex-column */
    align-items: start;
  }
  /* Icon: aligned with the LABEL at the top, not centered vertically */
  .ch .ic {
    grid-row: 1 / span 5;
    align-self: start;
    width: 44px;
    height: 44px;
  }
  .ch .ic svg { width: 20px; height: 20px; }

  /* Everything else stacks tightly in the right column */
  .ch .label,
  .ch h4,
  .ch .val,
  .ch .meta,
  .ch .arr { grid-column: 2; }

  .ch .label { font-size: 10px; margin-bottom: 2px; }
  .ch h4 { font-size: 17px; margin-bottom: 4px; line-height: 1.15; }
  /* Email / phone value -- the main info, bumped up */
  .ch .val {
    font-size: 15px;
    padding-left: 0;
    margin-bottom: 4px;
    line-height: 1.25;
    word-break: break-word;
  }
  .ch .meta { font-size: 11px; margin-bottom: 6px; line-height: 1.3; }
  .ch .arr {
    padding-top: 0;
    font-size: 10px;
    margin-top: 0;          /* override base margin-top: auto -- no extra push */
  }

  /* HEAD-OFFICE side cards (business hours / response / social)
     -- icon aligns with label at top (already handled in style.css base) */

  .csc { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; }
  .csc .ic { width: 40px; height: 40px; }
  .csc .val { font-size: 13px; }
  .csc--social .social-links a { width: 40px; height: 40px; }

  .form-card { padding: 24px 20px; }
  .form-card .head { gap: 8px; }
  .form-card .head h3 { font-size: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .ifield label { font-size: 10px; }

  /* ===== FAQ ===== */
  .faq-cat-grid { grid-template-columns: 1fr; }

  /* ===== LEGAL ===== */
  .legal-body { font-size: 14px; }

  /* ===== ARTICLE-HERO / EV-HERO ===== */
  .article-hero { padding: 40px 0 16px; }
  .ev-hero { padding: 30px 0 0; }
  .article-hero h1,
  .ev-hero h1 { font-size: clamp(26px, 6vw, 36px); }
  .article-meta { flex-wrap: wrap; gap: 10px; row-gap: 6px; }
  .article-meta .dot { display: none; }
  .ev-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
  .article-author { flex-wrap: wrap; gap: 12px; }
  .article-author .by { flex: 1 1 calc(100% - 70px); }
  .article-author .share { flex: 1 1 100%; margin-left: 0; margin-top: 4px; }

  /* Blog: featured post body padding tighter */
  .featured-post .body { padding: 26px 20px; }
  .featured-post h2 { font-size: clamp(20px, 5vw, 26px); }

  /* Article body grid + TOC */
  .article-grid { gap: 32px; }
  .toc { padding: 18px 20px; background: var(--paper-2); border-left: 3px solid var(--green); }
  .toc h4 { margin-bottom: 10px; }
  .article-content h2 { font-size: 18px; }
  .article-content p,
  .article-content ul li { font-size: 14px; line-height: 1.7; }
  .article-content blockquote { padding: 16px 18px; font-size: 16px; }

  /* Article aside cards: stack 1-col */
  .article-aside { grid-template-columns: 1fr; }

  /* Related articles: 1-col */
  .rel-grid { grid-template-columns: 1fr; }
  .rel-card { padding: 20px; }
  .rel-card h3 { font-size: 15px; }

  /* Blog filter bar spacing already inherited */
  .blog-list .filter-bar { margin-bottom: 24px; }

  /* ===== FILTER BAR -> NATIVE SELECT on mobile =====
     Hide button group, expose the JS-generated <select.filter-select>. */
  .filter-bar {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
    gap: 0;
  }
  .filter-bar button { display: none; }
  .filter-bar .filter-select { display: block; }

  /* ===== SLIDE PANEL ===== */
  .slide-panel { max-width: 100%; }
  .slide-panel__head { padding: 16px 22px; }
  .slide-panel__bottom { padding: 18px 22px 22px; }
  .slide-panel__quick .sq-icon { padding: 12px 6px; }

  /* ===== 404 ===== */
  .err-grid { grid-template-columns: 1fr; }
  .err-num { font-size: clamp(96px, 26vw, 180px); }
}


/* ==========================================================================
   <= 479px -- Mobile (small phones)
   - Tightest layout, smallest type, edge-to-edge padding
   ========================================================================== */
@media (max-width: 479px) {

  /* ===== CONTAINER ===== */
  .container { padding: 0 16px; }

  /* ===== HEADER ===== */
  .top-nav { height: 64px; }
  .brand-cell { padding: 6px 12px; }
  .logo-img { height: 34px; }
  .menu-cell { width: 52px; }

  main { padding-top: 64px; }

  /* ===== HERO (homepage) -- equal top/bottom for symmetric spacing ===== */
  .hero {
    min-height: 0;
    padding: 40px 0;
  }
  .hero-content { height: auto; padding: 0 16px; align-items: flex-start; }
  .hero h1 { font-size: clamp(24px, 8vw, 32px); margin-bottom: 20px; }
  .hero-actions { gap: 14px; }
  .hero-actions .btn { padding: 12px 18px; font-size: 10px; }
  .hero-actions .play-btn { width: 48px; height: 48px; flex-shrink: 0; }

  /* ===== INNER PAGE HERO ===== */
  .page-hero {
    padding: 40px 0 36px;
    min-height: 240px;
  }
  .page-hero h1 { font-size: clamp(24px, 8vw, 32px); }
  .page-hero .lede { font-size: 13px; }
  .page-hero .ph-meta { gap: 14px; }
  .page-hero .ph-meta .m { flex: 1 1 100%; }

  /* ===== SECTION VERTICAL SPACING -- 40px small mobile ===== */
  .services,
  .projects,
  .why-choose,
  .clients,
  .cta-section,
  .stats-band,
  .story,
  .pillars,
  .leadership,
  .rnd,
  .values,
  .jobs,
  .perks,
  .case-list,
  .quality,
  .certs,
  .qc,
  section.lab,
  .channels,
  .csplit,
  .map-band,
  .dl-search,
  .dl-cats,
  .ev-list,
  .faq-body,
  .plant,
  .cap-band,
  .process,
  .plant-gal,
  section.location,
  .pitch,
  .programs,
  .benefits,
  .form-sect,
  .confid,
  .all-products,
  .compare,
  .prod-cta,
  .prod-intro,
  .prod-details,
  .prod-packaging,
  .prod-applications,
  .prod-others,
  .featured-quote,
  .quotes,
  .recognition,
  .logos-band,
  .legal,
  .areas,
  .page-cta,
  .blog-list,
  .article-body,
  .related,
  .job-body,
  .about-cta,
  .featured-case { padding: 40px 0; }

  .eco-band { padding: 26px 0; }
  .apps-intro { padding: 40px 0 0; }
  .areas { padding: 22px 0 40px; }
  .eco-cell { padding: 20px 14px; }

  /* Manufacturing: even tighter on small phones */
  .cap-cell .num { font-size: 38px; }
  .cap-cell .num .pl { font-size: 18px; }
  .proc-step { grid-template-columns: 52px 1fr; gap: 12px; }
  .proc-step .n { width: 52px; height: 52px; font-size: 16px; }
  .loc-info { grid-template-columns: 1fr; }
  .map-card { width: 100%; aspect-ratio: 4 / 3; max-height: none; }
  .eco-cell:nth-child(2n+1) { padding-left: 0; }
  .eco-cell:nth-child(2n) { padding-right: 0; }
  .eco-cell:nth-child(-n+2) { padding-top: 0; }
  .eco-cell:nth-last-child(-n+2) { padding-bottom: 0; }
  .eco-ic svg { width: 44px; height: 44px; }
  .eco-label { font-size: 12px; letter-spacing: 0.08em; }
  .eco-cell p { font-size: 13px; line-height: 1.5; }
  .contact-bar { padding: 0 16px; }

  /* ===== TYPOGRAPHY ===== */
  .section-head-row h2,
  .clients-head h3,
  .services-header h2,
  .about-dark h2,
  .cta-left h2 { font-size: clamp(22px, 7vw, 30px); }

  /* ===== HOMEPAGE -- LOGO GRID ===== */
  .logo-grid { grid-template-columns: repeat(2, 1fr); }

  /* ===== HOMEPAGE -- STATS / NUMBERS ===== */
  .stat-cell .num { font-size: 36px; }
  .feature-card .feature-num { font-size: 32px; }

  /* ===== HOMEPAGE -- PROJECTS ===== */
  .project { min-height: 200px; }
  .project .meta { padding: 18px; }

  /* ===== HOMEPAGE -- CTA ===== */
  .cta-left h2 { font-size: 24px; }
  .cta-card { flex-direction: row; padding: 14px 18px; }
  .cta-card .cc-title { font-size: 15px; }

  /* ===== HOMEPAGE -- ABOUT DARK ===== */
  .about-dark { padding: 36px 20px; }
  .about-dark h2 { font-size: 24px; }
  .play-btn-big { width: 60px; height: 60px; }

  /* ===== BUTTONS ===== */
  .btn { padding: 12px 18px; font-size: 10px; letter-spacing: 0.12em; gap: 8px; }

  /* ===== FOOTER ===== */
  .footer-grid {
    padding: 40px 0 28px;
    gap: 30px;
  }
  .footer-grid h4 { margin-bottom: 16px; font-size: 12px; }
  .footer-grid ul li { margin-bottom: 10px; }
  .footer-grid ul li a { font-size: 14px; }
  .footer-bot { font-size: 11px; gap: 8px; }
  .footer-bot .right { gap: 16px; flex-wrap: wrap; }

  /* ===== TESTIMONIALS ===== */
  .logos-band .logo-grid { grid-template-columns: 1fr; }

  /* ===== FORM CARDS ===== */
  .form-card { padding: 22px 18px; }

  /* ===== FILTER BAR (small phone -- already a select from 767px) ===== */
  .filter-bar .filter-select { font-size: 12px; padding: 12px 40px 12px 16px; }

  /* ===== SLIDE PANEL ===== */
  .slide-panel__quick {
    flex-direction: column;
    gap: 8px;
  }

  /* ===== 404 ===== */
  .err-num { font-size: clamp(72px, 28vw, 130px); }
  .err-wrap { padding: 60px 0; }
}


/* ==========================================================================
   PRINT STYLES (legal pages, downloads)
   ========================================================================== */
@media print {
  .top-nav,
  .side-rail,
  .slide-panel,
  .menu-overlay,
  footer,
  .filter-bar,
  .cta-section,
  .prod-cta,
  .page-cta,
  .about-cta { display: none !important; }

  main { padding: 0 !important; }

  .page-hero {
    background: #fff !important;
    color: #000 !important;
    min-height: auto !important;
    padding: 20px 0 !important;
  }
  .page-hero h1,
  .page-hero .lede,
  .page-hero .breadcrumbs { color: #000 !important; }
  .page-hero::before,
  .page-hero::after,
  .page-hero .hero-bg { display: none !important; }

  body { background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
}
