/* ==========================================================================
   XIHE TECH — static B2B website stylesheet
   Mobile-first. Breakpoints: <=768 phone / 769-1024 tablet / >=1025 desktop
   Colours: XIHE green family + neutral ink only (2 colour families, per brief)
   Accessibility: WCAG 2.1 AA — brand green (#76bb2b) never carries white text
   ========================================================================== */

@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("../assets/fonts/poppins-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root{
  --brand:#76bb2b;
  --brand-light:#a2d45e;
  --brand-deep:#3f6b13;
  --brand-text:#457a17;
  --ink:#2b2b2b;
  --muted:#5f6368;
  --line:#e7e7e7;
  --bg:#ffffff;
  --bg-soft:#f6f8fa;
  --bg-tint:#f2f8ea;
  --focus:#1f4f0c;
  --shadow:0 8px 26px rgba(43,43,43,.09);
  --wrap:1280px;
  --tap:48px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.65}
img{max-width:100%;display:block}
a{color:var(--brand-text);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,h4{line-height:1.25;margin:0 0 .6em;color:var(--ink);font-weight:600}
/* Headings use the same deep green as links / eyebrow / outline buttons
   (#457a17 = 5.19:1 on white, WCAG AA). Specificity stays low so the existing
   white-on-dark rules (.home-hero h1, .site-footer h2, .cats h2) still win. */
h1,h2{color:var(--brand-text)}
h1{font-size:clamp(1.75rem,4.6vw,2.8rem);letter-spacing:-.02em}
h2{font-size:clamp(1.4rem,3vw,2rem);letter-spacing:-.015em}
h3{font-size:1.1rem}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.3em}
li{margin:.35em 0}
strong{font-weight:600}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-999px;top:0;z-index:200;background:var(--brand);color:var(--ink);padding:12px 18px;font-weight:600}
.skip-link:focus{left:8px;top:8px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}

/* ---------- Top utility bar ---------- */
.topbar{background:var(--brand-deep);color:#fff;font-size:.78rem}
.topbar .wrap{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.topbar a{color:#fff}
.topbar .tb-left{font-weight:500;letter-spacing:.01em}
.topbar .tb-right{display:flex;gap:16px;align-items:center}
.topbar .tb-right a{white-space:nowrap}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid var(--line)}
.header-inner{max-width:var(--wrap);margin:0 auto;padding:8px 20px;display:flex;align-items:center;gap:16px;min-height:76px}
.brand{display:flex;align-items:center;flex-shrink:0}
/* Heavier-weight derived logo, enlarged: was 48px (wordmark ~6px tall). */
.brand img{height:60px;width:auto}
.nav-main{display:none}
.nav-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.icon-btn{min-width:var(--tap);min-height:var(--tap);display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:6px;color:var(--ink)}
.icon-btn:hover{border-color:var(--brand-text);text-decoration:none}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-toggle{display:inline-flex}
.nav-toggle .bars{display:block;width:20px;height:14px;position:relative}
.nav-toggle .bars::before,.nav-toggle .bars::after,.nav-toggle .bars span{content:"";position:absolute;left:0;right:0;height:2px;background:currentColor}
.nav-toggle .bars::before{top:0}.nav-toggle .bars span{top:6px}.nav-toggle .bars::after{top:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--tap);padding:0 20px;border-radius:6px;font-weight:600;font-size:.92rem;border:1px solid transparent;text-align:center;transition:background-color .18s ease,border-color .18s ease}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--brand);color:var(--ink);border-color:var(--brand)}
.btn-primary:hover{background:var(--brand-light);border-color:var(--brand-light)}
.btn-dark{background:var(--brand-deep);color:#fff;border-color:var(--brand-deep)}
.btn-dark:hover{background:#2f5210;border-color:#2f5210;color:#fff}
.btn-outline{background:#fff;color:var(--brand-text);border-color:var(--brand-text)}
.btn-outline:hover{background:var(--bg-tint)}
.btn-small{font-size:.8rem;padding:0 14px;min-height:44px}
.btn-block{width:100%}
/* Sending state for the inquiry submit button */
.btn.is-sending{opacity:.75;cursor:progress;pointer-events:none}
.btn-spinner{display:inline-block;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:btnSpin .7s linear infinite}
@keyframes btnSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.btn-spinner{animation:none;border-right-color:currentColor}}
.header-quote{display:none}

/* Mobile slide-down nav */
.mobile-nav{display:none;background:#fff;border-top:1px solid var(--line);box-shadow:var(--shadow)}
.mobile-nav.open{display:block}
.mobile-nav ul{list-style:none;margin:0;padding:8px 20px 18px}
.mobile-nav li{border-bottom:1px solid var(--line)}
.mobile-nav a{display:block;min-height:var(--tap);padding:12px 4px;font-weight:500;color:var(--ink)}
.mobile-nav .sub a{padding-left:18px;color:var(--muted);font-weight:400;font-size:.9rem}

/* ---------- Search ---------- */
.search-panel{display:none;position:fixed;inset:76px 0 auto 0;z-index:70;background:#fff;border-bottom:1px solid var(--line);box-shadow:var(--shadow);padding:18px 20px}
.search-panel.open{display:block}
.search-panel .search-row{display:flex;gap:8px;max-width:720px;margin:0 auto}
.search-panel input[type=search]{flex:1;min-height:var(--tap);padding:10px 14px;border:1px solid var(--line);border-radius:6px}
.search-results{max-width:720px;margin:12px auto 0;list-style:none;padding:0;max-height:52vh;overflow:auto}
.search-results li{border-bottom:1px solid var(--line)}
.search-results a{display:block;min-height:44px;padding:10px 6px;color:var(--ink)}
.search-results small{display:block;color:var(--muted);font-weight:400}
.search-empty{color:var(--muted);font-size:.9rem;text-align:center;padding:14px}

/* ---------- Breadcrumb ---------- */
.breadcrumb{background:var(--bg-soft);border-bottom:1px solid var(--line);font-size:.82rem}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:10px 20px;max-width:var(--wrap);margin:0 auto;color:var(--muted)}
.breadcrumb li::after{content:"/";margin-left:6px;color:#b6b6b6}
.breadcrumb li:last-child::after{content:""}
.breadcrumb a{color:var(--brand-text)}
.eyebrow{display:inline-block;font-size:.75rem;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--brand-text);margin-bottom:12px}
.hero-facts{list-style:none;margin:14px 0 20px;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.84rem;color:var(--ink)}
.hero-facts li{display:flex;align-items:center;gap:6px;margin:0}
.hero-facts li::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--brand);flex-shrink:0}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.hero-note{font-size:.82rem;color:var(--muted)}
.section-head{margin-bottom:24px;max-width:70ch}
.section-head p{color:var(--muted);margin-bottom:0}
.grid{display:grid;gap:16px;grid-template-columns:1fr}
.card{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .18s ease,transform .18s ease}
.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.card-media{aspect-ratio:4/3;background:var(--bg-soft);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover}
/* Ultra-wide 3-in-1 comparison artwork: show all three panels, no centre crop. */
.card-media.is-banner{aspect-ratio:4/1}
/* Flat photo grid with a short usage caption underneath each image. */
.gallery-cap-item{margin:0;min-width:0}
.gallery-cap-text{margin-top:9px;font-size:.88rem;color:var(--muted);line-height:1.5}
.card-body{padding:16px;display:flex;flex-direction:column;flex:1;gap:8px}
.card-body h3{margin:0;font-size:1.02rem}
.card-body h3 a{color:var(--ink)}
.card-body h3 a:hover{color:var(--brand-text)}
.card-body p{font-size:.88rem;color:var(--muted);margin:0;flex:1}
.card-link{font-size:.84rem;font-weight:600;color:var(--brand-text)}

/* ---------- Spec strip / data ---------- */
.spec-strip{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:22px 0}
.spec-item{background:var(--bg-tint);border:1px solid #dcecc7;border-radius:8px;padding:14px}
.spec-item b{display:block;font-size:1.12rem;color:var(--brand-text);font-weight:600}
.spec-item span{font-size:.78rem;color:var(--muted)}

/* Company milestones / production process / source note (About XIHE) */
.timeline{list-style:none;margin:18px 0 26px;padding:0;border-left:2px solid #dcecc7}
.timeline-item{position:relative;padding:0 0 20px 26px;margin:0}
.timeline-item::before{content:"";position:absolute;left:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--brand);border:2px solid #fff;box-shadow:0 0 0 1px var(--brand)}
.timeline-year{display:inline-block;font-weight:600;color:var(--brand-text);font-size:.9rem;margin-bottom:2px}
.timeline-body h3{margin:0 0 3px;font-size:1rem}
.timeline-body p{margin:0;color:var(--muted);font-size:.9rem}

.page-hero-media{overflow:hidden;border-radius:8px}
/* Fill the figure so the img does not sit 16px inside it: without width:100%
   the image keeps its intrinsic 1200px, only the LEFT corners get clipped by
   the figure's radius, and the right corners stay square. */
.page-hero-media img{display:block;width:100%;height:auto;border-radius:inherit}
.process-steps{list-style:none;counter-reset:none;margin:18px 0 22px;padding:0;display:grid;grid-template-columns:1fr;gap:14px}
.process-steps li{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:0}
.step-media{background:var(--bg-soft);line-height:0}
.step-media img{display:block;width:100%;height:168px;object-fit:cover}
.step-body{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;font-size:.9rem}
.step-no{flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--brand-deep);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.82rem;font-weight:600}
.step-text{padding-top:3px}

.source-note{font-size:.78rem;color:var(--muted);border-left:3px solid var(--brand);background:var(--bg-soft);padding:10px 14px;margin:18px 0 0;border-radius:0 6px 6px 0}
.trust-bar{background:var(--brand-deep);color:#fff;padding:24px 0}
/* Five facts, two rows, type enlarged exactly 20% (.82rem x 1.2 = .984rem). */
.trust-bar ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:14px 20px;font-size:.984rem}
.trust-bar li{display:flex;gap:9px;align-items:flex-start;margin:0}
.trust-bar li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--brand-light);margin-top:10px;flex-shrink:0}
.trust-bar strong{color:#fff;font-weight:600}
.callout{background:var(--bg-tint);border-left:4px solid var(--brand);padding:16px 18px;border-radius:0 6px 6px 0;margin:20px 0;font-size:.92rem}
.callout p:last-child{margin-bottom:0}

/* ---------- Product layout ---------- */
.product-layout{display:flex;flex-direction:column;gap:26px;padding:30px 0 48px;max-width:var(--wrap);margin:0 auto}
.product-main{min-width:0}
.product-aside{width:100%}
.product-hero{border-radius:8px;overflow:hidden;background:var(--bg-soft);margin-bottom:14px}
.product-hero img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
.thumb-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:22px}
.thumb-row img{width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;border:1px solid var(--line);border-radius:5px;background:var(--bg-soft)}
.prose{max-width:74ch}
.prose h2{margin-top:1.6em}
.prose h2:first-child{margin-top:0}
/* render_blocks() emits flat sibling blocks. Each .prose is a SEPARATE
   container, so ":first-child" always matches and a heading following a card /
   gallery / table grid used to sit flush against the image above it. Give every
   adjacent pair a consistent gap instead. :where() keeps specificity at 0 so
   component and inline margins still win. */
:where(.prose,.grid,.spec-strip,.table-wrap,.callout,.timeline,.process-steps) + :where(.prose,.grid,.spec-strip,.table-wrap,.callout,.timeline,.process-steps){margin-top:26px}
.prose ul,.prose ol{color:var(--ink)}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:18px 0}
table{width:100%;border-collapse:collapse;font-size:.88rem;min-width:480px}
th,td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--bg-soft);font-weight:600;width:38%}
.side-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:16px}
.side-card h2{font-size:1.05rem;margin-bottom:12px}
.side-card ul{list-style:none;padding:0;margin:0;font-size:.87rem}
.side-card li{padding:7px 0;border-bottom:1px solid var(--line)}
.side-card li:last-child{border-bottom:0}
.faq details{border-bottom:1px solid var(--line);padding:2px 0}
.faq summary{min-height:44px;display:flex;align-items:center;font-weight:600;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";margin-left:auto;font-size:1.2rem;color:var(--brand-text)}
.faq details[open] summary::after{content:"−"}
.faq .answer{padding:0 0 14px;color:var(--muted);font-size:.9rem}
.faq h3.faq-category{margin:26px 0 4px;color:var(--brand-text);font-size:1.12rem}
.faq h3.faq-category:first-of-type{margin-top:16px}

/* ---------- Forms ---------- */
.quote-section{background:var(--bg-soft);padding:44px 0;scroll-margin-top:76px}
.quote-grid{display:flex;flex-direction:column;gap:28px}
/* Green form outline (client request). --brand-text keeps >=3:1 contrast on white. */
.quote-form{background:#fff;border:2px solid var(--brand-text);border-radius:8px;padding:20px}
.form-row{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.form-row label{font-size:.84rem;font-weight:600;color:var(--ink)}
.form-row label .req{color:#b3261e}
.form-row input,.form-row select,.form-row textarea{width:100%;min-height:var(--tap);padding:10px 12px;border:1px solid #cfcfcf;border-radius:6px;background:#fff}
.form-row textarea{min-height:110px;resize:vertical}
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{border-color:var(--brand-text);outline:2px solid rgba(69,122,23,.25);outline-offset:0}
.form-error{color:#b3261e;font-size:.8rem;min-height:1em;margin:0}
.form-note{font-size:.8rem;color:var(--muted);margin-top:10px}
/* Honeypot: off-screen, never shown to users, still seen by naive bots. */
.hp-field{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
.form-notice{display:none;margin-top:18px;padding:18px;border:1px solid #cfe6b4;background:var(--bg-tint);border-radius:8px}
.form-notice.show{display:block}
.form-notice h3{margin:0 0 8px;font-size:1.05rem}
.form-notice .alt-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.prefilled{background:var(--bg-soft);border:1px dashed var(--brand-text);padding:8px 10px;border-radius:6px;font-size:.84rem;margin-bottom:14px}

/* WhatsApp / WeChat QR codes in the quote-area left column */
.qr-contact{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.qr-contact h3{font-size:1rem;margin:0 0 6px}
.qr-contact p{font-size:.84rem;color:var(--muted);margin:0 0 12px;max-width:44ch}
.qr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:372px}
.qr-item{margin:0;background:#fff;border:2px solid var(--brand-text);border-radius:8px;padding:10px;text-align:center}
/* Keep the modules crisp: lossless WebP source, no upscaling, high-contrast rendering. */
.qr-item img{width:100%;max-width:156px;height:auto;margin:0 auto;image-rendering:-webkit-optimize-contrast}
.qr-item figcaption{font-size:.8rem;font-weight:600;color:var(--ink);margin-top:8px}

/* ---------- Footer / fixed CTA / chat ---------- */
.site-footer{background:#25300f;color:#d9e9c6;padding:38px 0 22px;font-size:.86rem}
.footer-grid{display:grid;gap:24px;grid-template-columns:1fr}
.site-footer h2{color:#fff;font-size:.95rem;margin-bottom:10px;text-transform:uppercase;letter-spacing:.06em}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:6px 0}
.site-footer a{color:#d9e9c6}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:26px;padding-top:16px;font-size:.78rem;display:flex;flex-wrap:wrap;gap:10px 20px;justify-content:space-between}
.mobile-cta{position:fixed;left:0;right:0;bottom:0;z-index:55;display:flex;background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 18px rgba(0,0,0,.08);padding:8px 12px calc(8px + env(safe-area-inset-bottom));gap:8px}
.mobile-cta .btn{flex:1;min-height:var(--tap);font-size:.86rem;padding:0 8px}
/* 2026-11-12: the WhatsApp label now carries the phone number, so on the
   narrow sticky bar let it wrap cleanly instead of being squeezed. */
.mobile-cta .btn[data-link-location="mobile_sticky"]{font-size:.76rem;line-height:1.25;white-space:normal;padding:4px 8px}
body{padding-bottom:64px}
.chat-widget{position:fixed;right:14px;bottom:78px;z-index:54}
.chat-toggle{min-height:44px;border-radius:24px;padding:0 16px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);font-size:.8rem;font-weight:600;color:var(--brand-text);display:flex;align-items:center;gap:8px}
.chat-toggle::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--brand)}
.chat-card{display:none;position:absolute;right:0;bottom:54px;width:min(290px,86vw);background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:16px}
.chat-card.open{display:block}
.chat-card h2{font-size:.98rem;margin-bottom:6px}
.chat-card p{font-size:.82rem;color:var(--muted)}
.chat-card a{display:block;min-height:44px;padding:9px 0;border-top:1px solid var(--line);font-size:.85rem;font-weight:500}
.chat-card .btn{width:100%;margin-top:8px}

/* ---------- Tablet: 769-1024 ---------- */
@media (min-width:769px){
  .wrap{padding:0 28px}
  .header-inner{padding:12px 28px}
  .topbar .wrap{padding:6px 28px}
  .nav-toggle{display:none}
  .header-quote{display:inline-flex}
  .mobile-nav{display:none!important}
  .nav-main{display:block;flex:1;min-width:0}
  .nav-main ul{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0;justify-content:flex-end}
  .nav-main a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;font-size:.85rem;font-weight:500;color:var(--ink);border-bottom:2px solid transparent}
  .nav-main a:hover,.nav-main a[aria-current="page"]{color:var(--brand-text);border-bottom-color:var(--brand);text-decoration:none}
  .nav-actions{margin-left:0}
  .grid{grid-template-columns:repeat(2,1fr);gap:20px}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .spec-strip{grid-template-columns:repeat(3,1fr)}
  .process-steps{grid-template-columns:repeat(2,1fr)}
  .trust-bar ul{grid-template-columns:repeat(3,1fr);gap:16px 24px}
  .product-layout{flex-direction:row;align-items:flex-start;padding:36px 28px 56px}
  .product-main{flex:1}
  .product-aside{width:290px;flex-shrink:0;position:sticky;top:92px}
  .quote-grid{flex-direction:row;align-items:flex-start}
  .quote-grid > *{flex:1}
  .quote-form .form-two{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
  .footer-grid{grid-template-columns:repeat(3,1fr)}
  .mobile-cta{display:none}
  body{padding-bottom:0}
  .chat-widget{bottom:22px}
  .search-panel{inset:76px 0 auto 0}
}

/* ---------- Desktop: >=1025 ---------- */
@media (min-width:1025px){
  .wrap{padding:0 32px}
  .header-inner{padding:10px 32px;min-height:92px}
  .brand img{height:72px}
  .search-panel{inset:92px 0 auto 0}
  .product-aside{top:104px}
  .showcase-sidebar{top:104px}
  .nav-main a{font-size:.89rem;padding:0 12px}
  .grid{grid-template-columns:repeat(3,1fr);gap:24px}
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(4,1fr)}
  .spec-strip{grid-template-columns:repeat(5,1fr)}
  .process-steps{grid-template-columns:repeat(3,1fr)}
  /* 5 facts in 3 columns = still two rows after the removals */
  .trust-bar ul{grid-template-columns:repeat(3,1fr);gap:18px 30px}
  .product-layout{padding:44px 32px 72px;gap:40px}
  .product-aside{width:310px;padding-bottom:64px}
  .quote-section{padding:68px 0}
  .footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}
  .chat-widget{right:24px;bottom:24px}
}

/* ---------- Dropdown navigation (Pergola / Product directories) ---------- */
.nav-main ul ul{display:none}
.nav-main li{position:relative}
.nav-main > ul > li{padding-bottom:6px}
.nav-main .has-drop > a{padding-right:22px}
.drop-arrow{position:absolute;right:8px;top:19px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--brand-text);pointer-events:none}
.dropdown{position:absolute;left:0;top:100%;z-index:80;min-width:230px;list-style:none;margin:0;padding:6px 0;background:#fff;border:1px solid var(--line);border-radius:0 0 8px 8px;box-shadow:var(--shadow)}
.dropdown li{padding:0}
.dropdown a{display:block;min-height:44px;padding:10px 16px;font-size:.86rem;font-weight:500;color:var(--ink);border-bottom:0;white-space:nowrap}
.dropdown a:hover,.dropdown a:focus-visible{background:var(--bg-tint);color:var(--brand-text);text-decoration:none}
.dropdown .dropdown-sub{left:100%;top:-6px;min-width:225px}
.nav-main li:hover > .dropdown,.nav-main li:focus-within > .dropdown{display:block}
.nav-main .has-drop .has-drop > a::after{content:"›";float:right;margin-left:14px;color:var(--brand-text)}
.mobile-nav .sub-deep a{padding-left:32px;font-size:.84rem}
.mobile-nav .sub a,.mobile-nav .sub-deep a{min-height:44px}
.showcase-wrap{max-width:var(--wrap);margin:0 auto;padding:26px 20px 56px;display:flex;flex-direction:column;gap:22px}
.showcase-sidebar{width:100%}
.showcase-main{min-width:0}
.cats{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.cats h2{margin:0;background:var(--brand-deep);color:#fff;font-size:.95rem;padding:13px 16px;text-transform:uppercase;letter-spacing:.05em}
.cats > ul{list-style:none;margin:0;padding:0}
.cats > ul > li{border-top:1px solid var(--line)}
.cats > ul > li:first-child{border-top:0}
.cats > ul > li > a{display:block;padding:12px 16px;font-size:.9rem;font-weight:600;color:var(--brand-text)}
.cats .toggle{float:right;color:#8a8a8a;font-weight:400}
.cats .sub{list-style:none;margin:0;padding:0 0 8px}
.cats .sub a{display:block;min-height:38px;padding:8px 16px 8px 26px;font-size:.82rem;font-weight:400;color:var(--ink);border-left:3px solid transparent}
.cats .sub a:hover,.cats .sub a:focus-visible{background:var(--bg-tint);color:var(--brand-text);border-left-color:var(--brand);text-decoration:none}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.toolbar h2{margin:0;font-size:1.25rem}
.toolbar span{font-size:.82rem;color:var(--muted)}
.showcase-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}
/* Four linked products inside an editorial article: one compact row. */
.showcase-grid.product-link-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.showcase-grid.product-link-grid .card-media{aspect-ratio:16/9}
.showcase-grid.product-link-grid .card-body{padding:9px 10px 11px;gap:5px}
.showcase-grid.product-link-grid .pname{font-size:.78rem;min-height:2.4em}
.showcase-grid.product-link-grid .detail{font-size:.74rem}
.showcase-grid.product-link-grid .inquire{min-height:38px;padding:7px 4px;line-height:24px;font-size:.76rem}
@media (max-width:1024px){.showcase-grid.product-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.showcase-grid.product-link-grid{grid-template-columns:1fr}}
.showcase-grid .card-body{padding:12px 12px 14px;gap:6px}
.showcase-grid .pname{font-size:.84rem;font-weight:500;line-height:1.4;min-height:2.8em;color:var(--ink)}
.showcase-grid .pname a{color:var(--ink)}
.showcase-grid .pname a:hover{color:var(--brand-text)}
.showcase-grid .detail{font-size:.78rem;font-weight:600;color:var(--brand-text)}
.showcase-grid .inquire{display:block;text-align:center;background:var(--brand);color:var(--ink);font-weight:600;font-size:.8rem;padding:9px 6px;border-radius:5px;margin-top:auto;min-height:44px;line-height:26px}
.showcase-grid .inquire:hover{background:var(--brand-light);text-decoration:none}

/* Editorial section with its product photo on the right. */
.section-with-photo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,42%);gap:28px;align-items:start;margin:26px 0}
/* Wide 2:1 artwork (carport) gets a wider column so its height reads closer
   to the 4:3 section photos without cropping. */
.section-with-photo.is-wide{grid-template-columns:minmax(0,1fr) minmax(0,55%)}
.section-with-photo .section-copy{min-width:0}
.section-with-photo .section-photo{margin:0;position:sticky;top:18px}
.section-with-photo .section-photo img{display:block;width:100%;height:auto;border-radius:8px}
.section-with-photo-caption{margin-top:8px;font-size:.8rem;color:var(--muted);line-height:1.5}
@media (max-width:900px){
  .section-with-photo,.section-with-photo.is-wide{grid-template-columns:1fr;gap:12px}
  .section-with-photo .section-photo{position:static}
}

/* Phone: keep the full category list but make it a compact scrollable panel
   so the product grid is not pushed a full screen down. */
@media (max-width:768px){
  .showcase-sidebar{max-height:300px;overflow-y:auto;border:1px solid var(--line);border-radius:8px}
  .cats{border:0}
  .showcase-grid{gap:12px}
  .showcase-grid .card-body{padding:10px}
}

@media (min-width:769px){
  .showcase-wrap{flex-direction:row;align-items:flex-start;padding:30px 28px 60px;gap:30px}
  .showcase-sidebar{flex:0 0 260px;position:sticky;top:100px;max-height:calc(100vh - 120px);overflow-y:auto}
  .showcase-main{flex:1}
  .showcase-grid{gap:20px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
}
@media (min-width:1025px){
  .showcase-wrap{padding:38px 32px 72px;gap:36px}
  .showcase-sidebar{flex:0 0 280px}
  .showcase-grid{grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:22px}
  .footer-grid{grid-template-columns:1.1fr 1fr 1.1fr 1fr 1.2fr}
}

/* ---------- Home: full-bleed hero (reference-style) ---------- */
.home-hero{position:relative;overflow:hidden;background:#16250c;color:#fff}
.home-hero-media{position:absolute;inset:0}
/* ALUNOTEC-style carousel: slide 1 is a permanent base; slide 2 fades in on
   top and back out (9s cycle, ~4.5s each). No ::after overlay, so the photos
   keep their original colour and one full image is visible at all times. */
.home-hero-slide{position:absolute;inset:0;opacity:0}
.home-hero-slide img{width:100%;height:100%;object-fit:cover;object-position:center}
.home-hero-slide:nth-child(1){opacity:1}
.home-hero-slide:nth-child(2){animation:heroSlide2 9s ease-in-out infinite}
@keyframes heroSlide2{0%,42%{opacity:0}50%,92%{opacity:1}100%{opacity:0}}
/* 4-photo full-bleed hero for the Advanced / Premium nav landing pages
   (Jody 2026-11-16). Same 8s / 2s-per-photo cadence and negative-delay sync as
   the small .photo-carousel: exactly one full photo visible at any moment,
   all four in order, no overlay layer. Text sits above via .home-hero-inner. */
.home-hero-slide-4{position:absolute;inset:0;opacity:0;animation:heroFade4 8s linear infinite}
.home-hero-slide-4 img{width:100%;height:100%;object-fit:cover;object-position:center}
.home-hero-slide-4:nth-child(1){animation-delay:0s}
.home-hero-slide-4:nth-child(2){animation-delay:-6s}
.home-hero-slide-4:nth-child(3){animation-delay:-4s}
.home-hero-slide-4:nth-child(4){animation-delay:-2s}
@keyframes heroFade4{0%,20%{opacity:1}25%,95%{opacity:0}100%{opacity:1}}
/* Decorative dots, animated on the same cycle. */
.hero-dots{position:absolute;left:0;right:0;bottom:16px;z-index:2;display:flex;justify-content:center;gap:9px}
.hero-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.45);box-shadow:0 1px 4px rgba(0,0,0,.45)}
.hero-dot:first-child{background:#fff;transform:scale(1.3)}
.hero-dot:nth-child(1){animation:heroDot1 9s ease-in-out infinite}
.hero-dot:nth-child(2){animation:heroDot2 9s ease-in-out infinite}
@keyframes heroDot1{0%,42%{background:#fff;transform:scale(1.3)}50%,92%{background:rgba(255,255,255,.45);transform:scale(1)}100%{background:#fff;transform:scale(1.3)}}
@keyframes heroDot2{0%,42%{background:rgba(255,255,255,.45);transform:scale(1)}50%,92%{background:#fff;transform:scale(1.3)}100%{background:rgba(255,255,255,.45);transform:scale(1)}}
/* ---- Advanced Series photo carousel (2026-11-12) -------------------------
   One large 16:10 frame with 4 pure-CSS crossfading slides on an 8s cycle
   (2s per photo, Jody 2026-11-12). A single keyframe + four negative
   animation-delays keeps all slides in sync and guarantees exactly one full
   photo at any moment (the container's soft background covers the brief
   crossfade). Delay step must stay cycle/4 = 2s. Hover pauses the show;
   prefers-reduced-motion falls back to a static first photo. */
.photo-carousel{position:relative;aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:var(--bg-soft);border:1px solid var(--line)}
/* Static single-photo variant: same 16:10 rounded frame, no animation/dots.
   Used for the photo that moved down when Jody swapped the hero and carousel.
   PHOTO(key, ratio) sets --photo-ratio inline so ultra-wide banners (2.4:1)
   display at their native ratio instead of being centre-cropped. */
.photo-carousel-static{aspect-ratio:var(--photo-ratio,16/10);margin:26px 0}
.photo-carousel-static > img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.photo-carousel-slide{position:absolute;inset:0;opacity:0;animation:photoCarouselFade 8s linear infinite}
.photo-carousel-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.photo-carousel-slide:nth-child(1){animation-delay:0s}
.photo-carousel-slide:nth-child(2){animation-delay:-6s}
.photo-carousel-slide:nth-child(3){animation-delay:-4s}
.photo-carousel-slide:nth-child(4){animation-delay:-2s}
@keyframes photoCarouselFade{0%,20%{opacity:1}25%,95%{opacity:0}100%{opacity:1}}
.photo-carousel:hover .photo-carousel-slide{animation-play-state:paused}
.photo-carousel-dots{position:absolute;left:0;right:0;bottom:14px;z-index:2;display:flex;justify-content:center;gap:9px}
.photo-carousel-dot{width:8px;height:8px;border-radius:50%;background:rgba(31,61,8,.55);border:1px solid rgba(255,255,255,.9);box-shadow:0 1px 3px rgba(0,0,0,.35);animation:photoCarouselDot 8s linear infinite}
.photo-carousel-dot:nth-child(1){animation-delay:0s}
.photo-carousel-dot:nth-child(2){animation-delay:-6s}
.photo-carousel-dot:nth-child(3){animation-delay:-4s}
.photo-carousel-dot:nth-child(4){animation-delay:-2s}
@keyframes photoCarouselDot{0%,20%{background:var(--brand);transform:scale(1.35)}25%,100%{background:rgba(31,61,8,.55);transform:scale(1)}}

/* ---------- Two-up photo pair (pergola showcase: operation / mounting) ----------
   Both frames share one aspect ratio (--pair-ratio, set per pair) so they tile
   horizontally at exactly the same height. object-fit:cover only kicks in when
   a source ratio differs; each pair uses the native ratio of its own photos. */
.photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0 8px}
.photo-pair-item{margin:0;min-width:0}
.photo-pair-media{position:relative;aspect-ratio:var(--pair-ratio,4/3);background:var(--bg-soft);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.photo-pair-media>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.photo-pair-caption{margin-top:9px;font-size:.86rem;font-weight:600;color:var(--brand-text)}
/* Remote-control badge: white chip + dark ink text + green glyph (AA contrast). */
.photo-badge{position:absolute;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:7px;padding:7px 12px;background:rgba(255,255,255,.95);color:var(--ink);border:1px solid rgba(63,107,19,.28);border-radius:999px;font-size:.76rem;font-weight:600;line-height:1.1;box-shadow:0 2px 10px rgba(0,0,0,.14)}
.photo-badge-icon{color:var(--brand-text);flex:0 0 auto}
/* Cropped close-up inset, sitting beside the main photo in the same frame. */
.photo-inset{position:absolute;right:12px;bottom:12px;width:106px;background:#fff;border:3px solid #fff;border-radius:6px;overflow:hidden;box-shadow:0 3px 14px rgba(0,0,0,.24)}
.photo-inset img{display:block;width:100%;height:120px;object-fit:cover;object-position:center}
.photo-inset span{display:block;padding:4px 3px;background:#fff;color:var(--ink);font-size:.62rem;font-weight:600;line-height:1.25;text-align:center}
@media (max-width:768px){
  .photo-pair{grid-template-columns:1fr;gap:14px}
  .photo-inset{width:88px}
  .photo-inset img{height:100px}
}

.home-hero-inner{position:relative;z-index:1;padding:46px 20px 52px;max-width:var(--wrap);margin:0 auto}
/* Layered glyph shadows keep white text legible on bright daylight photos.
   These are text-shadow (a property of the glyphs), NOT an overlay layer -
   the photo itself is never darkened or covered. */
.home-hero h1{color:#fff;max-width:20ch;font-size:clamp(1.17rem,3.07vw,1.87rem);text-shadow:0 1px 2px rgba(0,0,0,.9),0 2px 7px rgba(0,0,0,.7),0 3px 22px rgba(0,0,0,.55)}
/* Showcase hub carousel title (2026-11-16): styled like the HOME H1 but as a
   <p> so the page keeps exactly one <h1> (the green banner). Same white glyph
   shadows, no overlay; slightly larger since it is the only headline up top. */
.home-hero .hero-big-title{color:#fff;max-width:24ch;margin:0 0 12px;font-size:clamp(1.7rem,4.6vw,3rem);font-weight:700;line-height:1.14;text-shadow:0 1px 2px rgba(0,0,0,.9),0 2px 7px rgba(0,0,0,.7),0 3px 22px rgba(0,0,0,.55)}
.home-hero .lede{color:#eef5e6;max-width:58ch;font-size:1.02rem;text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 12px rgba(0,0,0,.55)}
.home-hero .eyebrow{color:#eafbd4;text-shadow:0 1px 2px rgba(0,0,0,.9),0 2px 8px rgba(0,0,0,.6)}
.home-hero .hero-facts{color:#f1f7e9;text-shadow:0 1px 2px rgba(0,0,0,.9),0 2px 8px rgba(0,0,0,.6)}
.home-hero .hero-note{color:#dbe8cc;text-shadow:0 1px 2px rgba(0,0,0,.9),0 2px 8px rgba(0,0,0,.6)}
.home-hero .hero-actions .btn{min-height:38px;padding:0 14px;font-size:.78rem;border-radius:5px}
.home-hero .hero-actions .btn-outline{background:#fff;color:var(--brand-text);border-color:#fff}
/* 2026-11-19: light-image heroes (pencil sketches) use dark ink copy instead
   of white text, which is unreadable on a near-white background. */
.home-hero.hero-light h1{color:var(--ink);text-shadow:0 1px 1px rgba(255,255,255,.9)}
.home-hero.hero-light .lede{color:#41474a;text-shadow:0 1px 1px rgba(255,255,255,.9)}
.home-hero.hero-light .eyebrow{color:var(--brand-text);text-shadow:0 1px 1px rgba(255,255,255,.9)}
/* Hero copy is intentionally minimal (lede / fact chips / note removed). The
   template still emits their containers, so hide empty ones: no extra spacing,
   no empty nodes for screen readers. */
.home-hero .lede:empty,.home-hero .hero-facts:empty,.home-hero .hero-note:empty{display:none}

.home-stats{background:var(--bg-soft);border-bottom:1px solid var(--line)}
.home-stats .wrap{padding:22px 20px}
.home-stats ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:18px 14px}
.home-stats li{display:flex;flex-direction:column;gap:2px;margin:0}
.home-stats strong{font-size:1.28rem;font-weight:700;color:var(--brand-deep);line-height:1.2}
.home-stats span{font-size:.78rem;color:var(--muted);line-height:1.4}

.home-intro .wrap{padding:44px 20px 8px;display:grid;gap:18px}
.home-intro-copy p{color:var(--muted);margin:0 0 12px}
/* 2026-11-19: pencil-sketch illustration in the left column. */
.intro-sketch{margin:0;max-width:560px}
.intro-sketch img{display:block;width:100%;height:auto;border-radius:10px}
/* 2026-11-23 (Jody): tagline now matches the global h2 style — same font,
   weight and size as the "Four ways to shape the light." heading. */
.intro-tagline{margin:0 0 16px}

/* ---------- Home: model / "Product Lines" cards ----------
   Reference-site look: framed light-green media, rounded 4:3 image,
   larger title, dashed spec table, generous body padding, hover lift.
   Brand green stays XIHE (#76bb2b family); no white text on bright green. */
.home-models{padding:30px 0 10px}
.home-models .section-head{margin-bottom:26px;max-width:760px}
.model-grid{display:grid;grid-template-columns:1fr;gap:24px}
.model-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);transition:transform .2s ease,box-shadow .2s ease}
.model-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(43,43,43,.14)}
.model-media{background:linear-gradient(160deg,#eef5e4,#dcecc7);padding:10px}
.model-media img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.model-body{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1;gap:10px}
.model-tag{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-text)}
.model-body h3{margin:0;font-size:1.3rem;letter-spacing:-.01em}
.model-body h3 a{color:var(--ink)}
.model-body h3 a:hover{color:var(--brand-text)}
.model-body p{font-size:.9rem;color:var(--muted);margin:0;min-height:2.6em}
.model-specs{list-style:none;margin:4px 0 8px;padding:12px 0 0;border-top:1px dashed var(--line)}
.model-specs li{display:flex;justify-content:space-between;gap:14px;padding:5px 0;font-size:.85rem}
.model-specs span{color:var(--muted)}
.model-specs strong{font-weight:600;text-align:right;color:var(--ink)}
.model-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:6px}

@media (min-width:769px){
  .home-hero-inner{padding:74px 28px 82px;min-height:460px;display:flex;flex-direction:column;justify-content:center}
  .home-hero h1{font-size:clamp(1.47rem,2.93vw,2.27rem)}
  .home-hero .lede{font-size:1.1rem}
  .home-stats ul{grid-template-columns:repeat(4,1fr)}
  .home-intro .wrap{grid-template-columns:1fr 1fr;gap:48px;align-items:start;padding:70px 28px 20px}
  .model-grid{grid-template-columns:repeat(2,1fr);gap:24px}
  .form-row-full{grid-column:1/-1}
  .product-aside .quote-form .form-two{grid-template-columns:1fr}
}
@media (min-width:1025px){
  .home-hero-inner{padding:92px 32px 100px;min-height:520px}
  .home-stats ul{grid-template-columns:repeat(4,1fr)}
  .home-intro .wrap{padding:84px 32px 24px}
  .model-grid{grid-template-columns:repeat(2,1fr);gap:28px}
}
@media (max-width:768px){
  .home-hero .hero-facts,.home-hero .hero-note{display:none}
  /* 4 stats: 2x2 on mobile, no spanning needed. */
  .home-hero-inner{min-height:min(62vh,470px);display:flex;flex-direction:column;justify-content:center}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
  /* Carousels must become a static first photo, not land on the last slide. */
  .photo-carousel-slide,.photo-carousel-dot{animation:none!important}
  .photo-carousel-slide{opacity:0}
  .photo-carousel-slide:first-child{opacity:1}
  .home-hero-slide-4{animation:none!important;opacity:0}
  .home-hero-slide-4:first-child{opacity:1}
  .photo-carousel-dot{background:rgba(31,61,8,.55);transform:scale(1)}
  .photo-carousel-dot:first-child{background:var(--brand);transform:scale(1.35)}
}

@media print{
  .topbar,.site-header,.mobile-cta,.chat-widget,.quote-section,.site-footer{display:none!important}
  body{padding-bottom:0}
}
