/* ==========================================================================
   SHANGU LIGHTING — template v2
   Neutral, image-led catalogue style. One brand colour, used sparingly.
   ========================================================================== */

:root {
  --ink: #111;
  --text: #3d3d3d;
  --muted: #7a7a7a;
  --line: #e4e4e1;
  --soft: #f4f4f2;
  --white: #fff;
  --brand: #003c96;
  --brand-dark: #002a6b;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 80px;
  --section: clamp(72px, 9vw, 128px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 16px; }
#main section[id], #contact { scroll-margin-top: var(--header-h); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius); font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn--brand { background: var(--brand); color: var(--white); }
.btn--brand:hover { background: var(--brand-dark); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--soft); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--white); }

.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; color: var(--ink); border-radius: 50%; }
.icon-btn:hover { background: var(--soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.logo img { height: 38px; width: auto; }

.nav { margin-left: auto; height: 100%; }
.nav__list { display: flex; height: 100%; }
.nav__item { display: flex; align-items: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 100%; padding: 0 16px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.nav__link .icon { font-size: 14px; transition: transform .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__item:hover .nav__link::after, .nav__item:focus-within .nav__link::after { transform: scaleX(1); }
.nav__item--mega:hover .nav__link .icon { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: repeat(4, 1fr) 1.3fr; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
.mega__title { margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.mega__col li a { display: block; padding: 5px 0; font-size: 15px; color: var(--muted); transition: color .2s; }
.mega__col li a:hover { color: var(--ink); }
.mega__feature { display: block; }
.mega__feature-img { display: block; aspect-ratio: 16 / 10; margin-bottom: 14px; background: var(--soft); }
.mega__feature-img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.mega__feature-name { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.mega__feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.lang__btn .icon { font-size: 14px; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 8px 0; background: var(--white);
  border: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; }
.lang__list a { display: block; padding: 8px 18px; font-size: 14px; color: var(--muted); }
.lang__list a:hover, .lang__list a[aria-current] { color: var(--ink); background: var(--soft); }
.header-cta { margin-left: 8px; }
.menu-btn { display: none; }

/* Drawer (mobile) */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 200; width: min(400px, 100%); padding: 20px var(--gutter) 32px;
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
}
.drawer.is-open { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(0, 0, 0, .08); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer__head img { height: 32px; width: auto; }
.drawer__list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 500; color: var(--ink); }
.drawer__cta { margin-top: auto; }

/* Search overlay */
.search {
  position: fixed; inset: 0; z-index: 250; background: rgba(255, 255, 255, .98); display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.search.is-open { opacity: 1; visibility: visible; }
.search__close { position: absolute; top: 20px; right: var(--gutter); }
.search__form { width: 100%; display: flex; align-items: center; gap: 16px; }
.search__form input {
  flex: 1; min-width: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; outline: 0;
  font-size: clamp(24px, 4vw, 48px); font-weight: 400; letter-spacing: -.02em; color: var(--ink);
}
.search__form input::placeholder { color: #bbb; }
.search__form button { font-size: 28px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; height: calc(100svh - var(--header-h)); min-height: 560px; max-height: 900px; overflow: hidden; background: #0b0f17; color: var(--white); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s, visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 55%), linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 50%);
}
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(96px, 14vh, 150px); z-index: 2; }
.hero__title { color: var(--white); font-size: clamp(48px, 7.5vw, 112px); font-weight: 500; line-height: .95; letter-spacing: -.035em; }
.hero__text { margin: 18px 0 32px; max-width: 520px; font-size: clamp(17px, 1.5vw, 21px); color: rgba(255, 255, 255, .88); }
.hero__content > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .1s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .2s; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; display: flex; align-items: center; gap: 24px; }
.hero__count { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 32px; height: 2px; background: rgba(255, 255, 255, .35); transition: background .3s, width .3s; }
.hero__dots button.is-active { width: 56px; background: var(--white); }
.hero__arrows { margin-left: auto; display: flex; gap: 8px; }
.hero__arrows button {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  color: var(--white); font-size: 18px; transition: background .2s, border-color .2s;
}
.hero__arrows button:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head h2 { font-size: clamp(32px, 3.6vw, 52px); }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--soft); }
.cat img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18% 12% 8%;
  mix-blend-mode: multiply; transition: transform .6s var(--ease);
}
.cat:hover img { transform: scale(1.05); }
.cat__name { position: absolute; left: 24px; top: 22px; z-index: 1; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; color: var(--ink); letter-spacing: -.01em; }

/* New products carousel */
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  font-size: 18px; color: var(--ink); background: var(--white); transition: border-color .2s, opacity .2s;
}
.carousel-nav button:hover { border-color: var(--ink); }
.carousel-nav button:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.product { scroll-snap-align: start; display: block; }
.product__img { display: block; aspect-ratio: 1; margin-bottom: 18px; overflow: hidden; background: var(--white); }
.product__img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .6s var(--ease); }
.product:hover .product__img img { transform: scale(1.05); }
.product__name { display: block; font-size: 18px; font-weight: 500; color: var(--ink); }
.product__type { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }

/* Featured project — image is a fixed background so it stays put while the page scrolls */
.project {
  position: relative; height: clamp(520px, 78vh, 820px); overflow: hidden; color: var(--white);
  background-color: #0b0f17;
  background-image: var(--project-image, url("../images/projects/case-01.jpg"));
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Touch browsers ignore background-attachment: fixed, so only pin it on pointer devices */
@media (hover: hover) and (pointer: fine) {
  .project { background-attachment: fixed; }
}
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%), linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 60%); }
.project__content { position: absolute; left: 0; right: 0; bottom: clamp(48px, 8vh, 88px); z-index: 1; }
.project__title { color: var(--white); font-size: clamp(36px, 5vw, 72px); letter-spacing: -.03em; }
.project__text { margin: 16px 0 32px; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .85); }
.project__actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

/* Contact / inquiry */
.contact { background: var(--soft); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.contact__intro h2 { font-size: clamp(32px, 3.6vw, 52px); }
.contact__intro p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.contact__direct { margin-top: 36px; }
.contact__direct li + li { margin-top: 8px; }
.contact__direct a { font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact__direct a:hover { border-color: var(--ink); }

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  font-size: 16px; color: var(--ink); outline: 0; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea::placeholder { color: #aaa; }
.field.has-error input, .field.has-error textarea { border-color: #c62828; }
.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { font-size: 14px; color: var(--muted); }
.form__status { padding: 14px 16px; font-size: 15px; color: var(--ink); background: var(--white); border-left: 2px solid var(--brand); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-top: 72px; padding-bottom: 64px; }
.footer__brand img { height: 36px; width: auto; }
.footer__brand p { max-width: 320px; margin-top: 20px; color: var(--muted); }
.footer__social { display: flex; gap: 6px; margin-top: 24px; }
.footer__social a { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; color: var(--ink); border-radius: 50%; transition: background .2s; }
.footer__social a:hover { background: var(--soft); }
.footer__title { margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink); }
.footer__col li { margin-bottom: 10px; color: var(--muted); }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__bottom ul { display: flex; gap: 24px; }
.footer__bottom a:hover { color: var(--ink); }

/* Floating WhatsApp (single, discreet) */
.whatsapp {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--white); font-size: 24px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: background .2s, transform .2s, opacity .3s, visibility .3s;
}
.whatsapp.is-visible { opacity: 1; visibility: visible; transform: none; }
.whatsapp.is-visible:hover { background: #25d366; transform: translateY(-2px); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .logo img { height: 30px; }
  .lang, .header-cta { display: none; }
  .hero { min-height: 520px; }
  .hero__arrows { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat__name { left: 14px; top: 12px; font-size: 15px; }
  .carousel { grid-auto-columns: 72%; gap: 14px; }
  .carousel-nav { display: none; }
  .contact__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .whatsapp { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .hero__content > * { opacity: 1; transform: none; }
}
.nav__link.is-current::after { transform: scaleX(1); }

/* ==========================================================================
   Shared: page head, breadcrumb, outline button, band
   ========================================================================== */
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn .icon { font-size: 18px; }

.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { margin-top: 20px; font-size: clamp(40px, 5.4vw, 80px); letter-spacing: -.035em; }
.page-head p { max-width: 560px; margin-top: 16px; font-size: 18px; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); }
.breadcrumb--top { padding: 24px 0; }

.band { border-top: 1px solid var(--line); }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 56px; }
.band h2 { font-size: clamp(24px, 2.4vw, 32px); }
.band p { margin-top: 8px; color: var(--muted); }

.link-reset { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ==========================================================================
   Product listing
   ========================================================================== */
.catbar { position: sticky; top: var(--header-h); z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex-shrink: 0; padding: 18px 0; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 500; }
.tab.is-active::after { transform: scaleX(1); }

.listing { padding: 32px 0 var(--section); }
.toolbar { display: flex; align-items: center; gap: 24px; padding-bottom: 24px; }
.toolbar__filters {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .2s;
}
.toolbar__filters:hover, .toolbar__filters[aria-expanded="true"] { border-color: var(--ink); }
.toolbar__filters .icon { font-size: 18px; }
.toolbar__badge { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 12px; }
.toolbar__badge[hidden] { display: none; }
.toolbar__count { font-size: 14px; color: var(--muted); }
.toolbar__sort { margin-left: auto; }
.toolbar__sort select {
  height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.6' d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
  -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
}

.filter-panel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; padding: 28px 32px; background: var(--soft); }
.filter-panel[hidden] { display: none; }
.filter-group { margin: 0; padding: 0; border: 0; }
.filter-group legend { margin-bottom: 12px; padding: 0; font-size: 13px; font-weight: 600; color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.filter-panel__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.product-grid .product__img { position: relative; background: var(--soft); }
.product-grid .product__img img { mix-blend-mode: multiply; }
.section--soft .product-grid .product__img { background: var(--white); }
.section--soft .product-grid .product__img img { mix-blend-mode: normal; }
.product__tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 3px 10px; background: var(--white); font-size: 12px; font-weight: 500; color: var(--ink); }
.product.is-hidden { display: none; }
.empty { padding: 64px 0; text-align: center; color: var(--muted); }
.empty[hidden] { display: none; }

/* ==========================================================================
   Product detail
   ========================================================================== */
.pd__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); }
.gallery__main { aspect-ratio: 1; background: var(--soft); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.gallery__main img.is-photo { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumb { aspect-ratio: 1; background: var(--soft); border: 1px solid transparent; overflow: hidden; transition: border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.gallery__thumb:hover { border-color: var(--line); }
.gallery__thumb.is-active { border-color: var(--ink); }

.pd__cat { font-size: 14px; color: var(--muted); }
.pd__cat:hover { color: var(--ink); }
.pd__title { margin-top: 12px; font-size: clamp(44px, 5vw, 72px); letter-spacing: -.035em; }
.pd__subtitle { margin-top: 6px; font-size: 20px; color: var(--muted); }
.pd__desc { margin-top: 24px; max-width: 520px; font-size: 17px; }
.pd__keys { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd__keys li { padding: 16px 12px 16px 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.pd__keys span { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }

.config { margin-top: 32px; }
.config__group + .config__group { margin-top: 20px; }
.config__label { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.config__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; color: var(--text); transition: border-color .2s, background .2s, color .2s; }
.opt:hover { border-color: var(--ink); color: var(--ink); }
.opt.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.config__code { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 16px 20px; background: var(--soft); }
.config__code span { font-size: 13px; color: var(--muted); }
.config__code strong { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.pd__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pd__actions .btn { flex: 1; min-width: 180px; }
.pd__note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; align-items: center; gap: 32px; height: 60px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { position: relative; flex-shrink: 0; height: 100%; display: flex; align-items: center; font-size: 15px; color: var(--muted); }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }
.subnav__cta { margin-left: auto; flex-shrink: 0; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.subnav.is-stuck .subnav__cta { opacity: 1; visibility: visible; }
.pd-page section[id] { scroll-margin-top: calc(var(--header-h) + 60px); }

.pd-section { padding: clamp(56px, 7vw, 104px) 0; }
.pd-section--soft { background: var(--soft); }
.pd-section--line { border-top: 1px solid var(--line); }
.pd-section__title { font-size: clamp(28px, 3vw, 40px); }
.pd-section__sub { margin: 56px 0 20px; font-size: 20px; }
.pd-split { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }

.pd-hero { margin: 0; aspect-ratio: 21 / 9; overflow: hidden; }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: 48px; }
.feature h3 { font-size: 20px; }
.feature p { margin-top: 10px; color: var(--muted); }

.specs { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: 36px; align-items: start; }
.spec-table, .data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; font-weight: 400; color: var(--muted); }
.spec-table td { color: var(--ink); }
.specs__drawing { margin: 0; background: var(--white); padding: 24px; }
.specs__drawing img { width: 100%; }
.specs__drawing figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.data-table { min-width: 560px; }
.data-table th, .data-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); text-align: left; }
.data-table thead th { font-size: 13px; font-weight: 600; color: var(--ink); border-bottom-color: var(--ink); }
.data-table td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }

.downloads { border-top: 1px solid var(--line); }
.download { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.download__name { flex: 1; font-size: 16px; font-weight: 500; }
.download__meta { font-size: 14px; color: var(--muted); }
.download .icon { font-size: 20px; transition: transform .25s var(--ease); }
.download:hover .icon { transform: translateY(2px); }

/* Quote panel */
.overlay { position: fixed; inset: 0; z-index: 180; background: rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.quote {
  position: fixed; inset: 0 0 0 auto; z-index: 190; width: min(520px, 100%); overflow-y: auto; padding: 24px clamp(20px, 4vw, 40px) 40px;
  background: var(--white); transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
}
.quote.is-open { transform: none; visibility: visible; }
.quote__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.quote__head h2 { font-size: 28px; }
.quote__product { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding: 14px; background: var(--soft); }
.quote__product img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.quote__product strong { display: block; color: var(--ink); font-weight: 600; }
.quote__product span { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quote .form { gap: 18px; }

.pd-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-panel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .pd__inner { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .specs, .pd-split { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .toolbar { flex-wrap: wrap; gap: 12px; }
  .toolbar__count { order: 3; width: 100%; }
  .filter-panel { grid-template-columns: 1fr 1fr; padding: 20px; gap: 20px; }
  .pd__keys { grid-template-columns: repeat(2, 1fr); }
  .pd__keys li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pd-hero { aspect-ratio: 4 / 3; }
  .subnav__cta { display: none; }
  .gallery__thumbs { gap: 6px; }
  .pd-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); }
  .pd-page ~ .whatsapp { bottom: 84px; }
  .pd-page ~ .site-footer { padding-bottom: 72px; }
}

/* ==========================================================================
   About / OEM / Projects / Contact
   ========================================================================== */
.breadcrumb--light, .breadcrumb--light a, .breadcrumb--light [aria-current] { color: rgba(255, 255, 255, .85); }
.breadcrumb--light a:hover { color: var(--white); }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink); line-height: 1.5; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.split > h2 { font-size: clamp(28px, 3vw, 40px); }

/* Page hero (full-bleed image with title) */
.page-hero { position: relative; height: clamp(440px, 70vh, 720px); overflow: hidden; background: #0b0f17; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 60%); }
.page-hero__content { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vh, 72px); z-index: 1; }
.page-hero h1 { margin-top: 20px; color: var(--white); font-size: clamp(40px, 5.6vw, 88px); line-height: 1; letter-spacing: -.035em; }

/* About */
.statement { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.2; }
.statement__text p + p { margin-top: 16px; }
.statement__text p { font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.stats li { padding: 28px 24px 0 0; }
.stats strong { display: block; font-size: clamp(32px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.img-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.img-grid__item { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.img-grid__item--wide { aspect-ratio: auto; }
.img-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.img-grid__item figcaption { position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; font-size: 13px; color: var(--ink); background: var(--white); }
.tick-list { margin-top: 28px; border-top: 1px solid var(--line); }
.tick-list li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 7px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg); }

/* OEM */
.wide-img { margin: 0; aspect-ratio: 21 / 9; overflow: hidden; }
.wide-img img { width: 100%; height: 100%; object-fit: cover; }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 32px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell h3 { font-size: 20px; }
.cell p { margin-top: 10px; color: var(--muted); }
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.steps-row li { padding-top: 20px; border-top: 1px solid var(--ink); }
.steps-row__n { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps-row h3 { margin-top: 24px; font-size: 20px; }
.steps-row p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.field select {
  width: 100%; height: 50px; padding: 0 40px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); outline: 0; font-size: 16px; color: var(--ink);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.6' d='m7 10 5 5 5-5'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.field select:focus { border-color: var(--ink); }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 24px; }
.pcard { display: block; }
.pcard.is-hidden { display: none; }
.pcard__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__meta { display: block; margin-top: 18px; font-size: 14px; color: var(--muted); }
.pcard__title { display: block; margin-top: 4px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; color: var(--ink); letter-spacing: -.02em; }

.project-title { margin-top: 8px; font-size: clamp(44px, 6vw, 96px); letter-spacing: -.04em; }
.project-sub { margin: 12px 0 clamp(32px, 4vw, 48px); font-size: 18px; color: var(--muted); }
.project-hero { margin: 0; height: clamp(400px, 72vh, 820px); overflow: hidden; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 20px 16px 20px 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.facts span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin: clamp(56px, 7vw, 96px) 0; }
.story h2 { font-size: clamp(24px, 2.4vw, 32px); }
.story p { margin-top: 16px; font-size: 17px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.compare img { width: 100%; height: 100%; object-fit: cover; }
.compare figcaption { position: absolute; left: 16px; top: 16px; padding: 4px 10px; font-size: 13px; color: var(--ink); background: var(--white); }
.quote-block { max-width: 880px; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0; }
.quote-block p { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.quote-block footer { margin-top: 20px; font-size: 15px; color: var(--muted); }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.next-project { position: relative; display: block; height: clamp(280px, 40vh, 420px); overflow: hidden; color: var(--white); background: #0b0f17; }
.next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .4s, transform .8s var(--ease); }
.next-project:hover img { opacity: .85; transform: scale(1.03); }
.next-project__content { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.next-project__label { display: block; font-size: 14px; color: rgba(255, 255, 255, .8); }
.next-project__title { display: inline-flex; align-items: center; gap: 16px; margin-top: 8px; font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -.03em; }

/* Contact */
.contact-page { padding-bottom: var(--section); }
.contact-page__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-info__block { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-info__block:first-child { padding-top: 0; border-top: 0; }
.contact-info__title { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.contact-info__block > a:not(.link-arrow) { display: block; width: fit-content; padding: 2px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid transparent; }
.contact-info__block > a:not(.link-arrow):hover { border-color: var(--ink); }
.contact-info__block p { color: var(--text); }
.contact-info__block .link-arrow { margin-top: 12px; font-size: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 20px; transition: transform .25s var(--ease); }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq p { padding: 0 40px 22px 0; color: var(--muted); }
.visit { position: relative; height: clamp(360px, 56vh, 560px); overflow: hidden; background: #0b0f17; color: var(--white); }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, 0) 65%); }
.visit__content { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vh, 64px); z-index: 1; }
.visit h2 { color: var(--white); font-size: clamp(32px, 4vw, 56px); }
.visit p { max-width: 520px; margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, .85); }

@media (max-width: 1180px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .steps-row { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
}
@media (max-width: 960px) {
  .statement, .split, .story, .contact-page__inner { grid-template-columns: 1fr; gap: 28px; }
  .cells { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(n+3) { margin-top: 24px; }
}
@media (max-width: 760px) {
  .img-grid, .project-grid, .compare { grid-template-columns: 1fr; }
  .img-grid__item--wide { aspect-ratio: 4 / 3; }
  .cells { grid-template-columns: 1fr; }
  .cell { padding: 24px; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .wide-img { aspect-ratio: 4 / 3; }
  .project-hero { height: 320px; }
}

/* Legibility on bright photos & even image rows */
.page-hero::after, .visit::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, 0) 75%),
              linear-gradient(90deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 60%);
}
.img-grid__item, .img-grid__item--wide { aspect-ratio: auto; height: clamp(240px, 30vw, 440px); }
@media (max-width: 760px) {
  .img-grid__item, .img-grid__item--wide { height: auto; aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Applications / News / Article / Legal / Search / 404
   ========================================================================== */
mark { padding: 0 2px; background: #e6eef9; color: inherit; }

/* Applications */
.apps { padding: clamp(48px, 6vw, 80px) 0 var(--section); }
.app-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; scroll-margin-top: calc(var(--header-h) + 72px); }
.app-row + .app-row { margin-top: clamp(64px, 9vw, 128px); }
.app-row--flip .app-row__img { order: 2; }
.app-row__img { aspect-ratio: 4 / 3; overflow: hidden; }
.app-row__img img { width: 100%; height: 100%; object-fit: cover; }
.app-row__n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-row h2 { margin-top: 12px; font-size: clamp(32px, 3.6vw, 52px); }
.app-row p { margin-top: 16px; max-width: 460px; font-size: 17px; color: var(--muted); }
.app-row__links { margin: 28px 0; border-top: 1px solid var(--line); }
.app-row__links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.app-row__links .icon { transition: transform .25s var(--ease); }
.app-row__links a:hover .icon { transform: translateX(4px); }

/* News */
.featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.featured__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.featured:hover .featured__img img { transform: scale(1.03); }
.featured__title { display: block; margin: 12px 0 14px; font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.featured .link-arrow { margin-top: 24px; }
.catbar--spaced { position: static; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 24px; }
.ncard { display: block; }
.ncard.is-hidden { display: none; }
.ncard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ncard:hover .ncard__img img { transform: scale(1.04); }
.ncard__meta { display: block; margin-top: 18px; font-size: 13px; color: var(--muted); }
.ncard__title { display: block; margin-top: 6px; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.ncard__excerpt { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 72px; font-size: 15px; }
.pager > * { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.pager [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pager a:hover { border-color: var(--ink); }

/* Article */
.article__head { padding-top: clamp(32px, 5vw, 64px); }
.article__meta { margin-top: 28px; font-size: 14px; color: var(--muted); }
.article__head h1 { max-width: 1040px; margin-top: 12px; font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -.03em; }
.article__lede { max-width: 820px; margin-top: 20px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--text); }
.article__hero { margin: clamp(40px, 5vw, 64px) auto; max-width: var(--container); padding: 0 var(--gutter); }
.article__hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.prose { max-width: calc(760px + 2 * var(--gutter)); padding-bottom: var(--section); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: 26px; line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose figure { margin: 40px 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose .data-table { min-width: 0; font-size: 15px; }
.prose .data-table a { text-decoration: none; border-bottom: 1px solid var(--line); }
.prose .btn { color: var(--white); text-decoration: none; }
.article__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px !important; padding: 28px 32px; background: var(--soft); }
.article__cta-title { font-size: 20px; font-weight: 500; color: var(--ink); }
.article__cta p:not(.article__cta-title) { margin-top: 4px; font-size: 15px; color: var(--muted); }
.article__share { display: flex; align-items: center; gap: 6px; margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article__share span { margin-right: 10px; }
.article__share a { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; color: var(--ink); border-radius: 50%; text-decoration: none; }
.article__share a:hover { background: var(--soft); }
.article__body { display: grid; grid-template-columns: minmax(0, 820px) minmax(220px, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-bottom: var(--section); }
.article__body .prose { max-width: none; padding: 0; }
.article__body .prose > h2:first-child { margin-top: 0; }
.article__aside { position: sticky; top: calc(var(--header-h) + 24px); justify-self: end; width: 100%; max-width: 280px; }
.article__toc { font-size: 14px; }
.article__toc p { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.article__toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.article__toc a { display: block; padding: 6px 0 6px 16px; color: var(--muted); }
.article__toc a:hover { color: var(--ink); }
.article__aside .article__share { margin-top: 32px !important; }

/* Legal */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 14px; }
.legal__toc p { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.legal__toc ol { list-style: none; border-left: 1px solid var(--line); }
.legal__toc a { display: block; padding: 6px 0 6px 16px; color: var(--muted); }
.legal__toc a:hover { color: var(--ink); }
.prose--legal { max-width: 760px; padding: 0; }
.prose--legal h2:first-child { margin-top: 0; }

/* Search */
.search-inline { display: flex; align-items: center; gap: 12px; max-width: 640px; margin-top: 32px; border-bottom: 1px solid var(--ink); }
.search-inline input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; outline: 0; font-size: clamp(20px, 2vw, 26px); color: var(--ink); }
.search-inline input::placeholder { color: #aaa; }
.search-inline button { font-size: 24px; color: var(--ink); }
.results-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 28px; font-size: 24px; }
.results-head span { font-size: 15px; font-weight: 400; color: var(--muted); }
.product-grid + .results-head { margin-top: 72px; }
.results { border-top: 1px solid var(--line); }
.result { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); }
.result__type { display: block; font-size: 13px; color: var(--muted); }
.result__title { display: block; margin-top: 4px; font-size: 20px; font-weight: 500; color: var(--ink); }
.result:hover .result__title { text-decoration: underline; text-underline-offset: 3px; }
.result__excerpt { display: block; margin-top: 6px; color: var(--muted); }

/* 404 */
.error { padding: clamp(80px, 12vw, 160px) 0; }
.error__inner { max-width: calc(720px + 2 * var(--gutter)); }
.error__code { font-size: clamp(96px, 16vw, 200px); font-weight: 500; line-height: .9; letter-spacing: -.05em; color: var(--soft); -webkit-text-stroke: 1px var(--line); }
.error h1 { margin-top: 24px; font-size: clamp(32px, 4vw, 52px); }
.error__inner > p:not(.error__code) { margin-top: 16px; font-size: 18px; color: var(--muted); }
.error__links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }

@media (max-width: 960px) {
  .app-row, .featured, .legal { grid-template-columns: 1fr; gap: 28px; }
  .app-row--flip .app-row__img { order: 0; }
  .legal__toc { position: static; }
  .article__body { grid-template-columns: 1fr; gap: 0; }
  .article__aside { position: static; justify-self: stretch; max-width: none; }
  .article__toc { display: none; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .article__hero { padding: 0; }
  .article__hero img { aspect-ratio: 4 / 3; }
  .prose { font-size: 16px; }
  .article__cta { padding: 22px; }
}
.prose figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 35%; }
.legal__toc ol { margin: 0; padding: 0; }
.error__code { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.app-row__img img { object-position: center 30%; }
.error__code { color: #d4d4d0; -webkit-text-stroke: 0; }

/* ==========================================================================
   Interactive 3D demo
   ========================================================================== */
.demo { position: relative; background: #05080f; color: var(--white); overflow: hidden; }
.demo__stage { position: relative; height: clamp(560px, 86vh, 860px); }
.demo__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.demo.is-ready .demo__poster { opacity: 0; pointer-events: none; }
.demo__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: pan-y; }
.demo.is-dragging .demo__canvas { cursor: grabbing; }
.demo__loading, .demo__hint {
  position: absolute; top: 24px; right: var(--gutter); z-index: 2; padding: 6px 12px; font-size: 13px;
  color: rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .35); border-radius: 20px; transition: opacity .4s;
}
.demo__loading { opacity: 0; }
.demo.is-loading .demo__loading { opacity: 1; }
.demo__hint { left: var(--gutter); right: auto; opacity: 0; }
.demo.is-ready .demo__hint { opacity: 1; }
@media (pointer: coarse) { .demo__hint { display: none; } }
.demo__explode {
  position: absolute; top: 20px; right: var(--gutter); z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 19px; font-size: 13px; color: var(--white); background: rgba(5, 8, 15, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .4s, border-color .2s, background .2s;
}
.demo.is-ready .demo__explode { opacity: 1; visibility: visible; }
.demo__explode:hover { border-color: rgba(255, 255, 255, .7); }
.demo__explode[aria-pressed="true"] { background: rgba(255, 255, 255, .16); border-color: var(--white); }
.demo__explode svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.demo__explode[aria-pressed="true"] svg { transform: rotate(180deg) scale(.85); }

.demo__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; padding-top: 120px; padding-bottom: 40px; pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 8, 15, .92) 0%, rgba(5, 8, 15, .6) 55%, rgba(5, 8, 15, 0) 100%);
  max-width: none; padding-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
.demo__ui > * { pointer-events: auto; }
.demo__intro h2 { color: var(--white); font-size: clamp(32px, 3.6vw, 52px); }
.demo__intro p { margin: 10px 0 18px; color: rgba(255, 255, 255, .75); }
.demo__controls { display: flex; flex-direction: column; gap: 14px; }
.demo__group { display: flex; align-items: center; gap: 16px; }
.demo__label { width: 52px; flex-shrink: 0; font-size: 12px; font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .6); }
.demo__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch, .chip {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px; font-size: 13px; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .06);
  transition: border-color .2s, background .2s, color .2s;
}
.swatch:hover, .chip:hover { border-color: rgba(255, 255, 255, .6); }
.swatch.is-active, .chip.is-active, .chip--power[aria-pressed="true"] { border-color: var(--white); background: rgba(255, 255, 255, .16); color: var(--white); }
.swatch__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, conic-gradient(#ff3b3b, #ffd23b, #2bff7a, #3d6bff, #c23bff, #ff3b3b)); box-shadow: 0 0 8px var(--c, rgba(255, 255, 255, .5)); }
.chip--power { min-width: 64px; justify-content: center; }

@media (max-width: 960px) {
  .demo__stage { height: 62vh; min-height: 380px; }
  .demo__ui { position: static; flex-direction: column; align-items: stretch; gap: 28px; padding-top: 32px; padding-bottom: 48px; background: #05080f; }
  .demo__group { align-items: flex-start; }
  .demo__label { padding-top: 10px; }
}


/* WordPress */

/* Keep the template's sticky positions clear of the fixed admin toolbar. */
body.admin-bar { --shangu-adminbar-h: 0px; }
body.admin-bar .site-header { top: var(--shangu-adminbar-h); }
body.admin-bar .catbar,
body.admin-bar .subnav { top: calc(var(--header-h) + var(--shangu-adminbar-h)); }
body.admin-bar .gallery,
body.admin-bar .article__aside,
body.admin-bar .legal__toc { top: calc(var(--header-h) + 24px + var(--shangu-adminbar-h)); }
body.admin-bar #main section[id],
body.admin-bar #contact { scroll-margin-top: calc(var(--header-h) + var(--shangu-adminbar-h)); }
body.admin-bar .pd-page section[id] { scroll-margin-top: calc(var(--header-h) + 60px + var(--shangu-adminbar-h)); }
body.admin-bar .app-row { scroll-margin-top: calc(var(--header-h) + 72px + var(--shangu-adminbar-h)); }
body.admin-bar .prose h2 { scroll-margin-top: calc(var(--header-h) + 24px + var(--shangu-adminbar-h)); }

@media (min-width: 601px) {
  body.admin-bar { --shangu-adminbar-h: 46px; }
  body.admin-bar .drawer,
  body.admin-bar .search,
  body.admin-bar .quote,
  body.admin-bar .overlay { top: var(--shangu-adminbar-h); }
}
@media (min-width: 783px) {
  body.admin-bar { --shangu-adminbar-h: 32px; }
}

/* Basic editor blocks use the template's prose typography. */
.prose .wp-block-image img { height: auto; }
.prose .wp-block-image.aligncenter { text-align: center; }
.prose .wp-block-image.aligncenter img { margin-left: auto; margin-right: auto; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .wp-block-table th,
.prose .wp-block-table td { padding: 14px 18px; border: 1px solid var(--line); text-align: left; }
.prose .wp-block-table th { color: var(--ink); font-weight: 500; background: var(--soft); }
.prose .wp-block-quote { margin-left: 0; margin-right: 0; padding-left: 24px; border-left: 2px solid var(--brand); }
.prose .wp-block-quote cite { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; font-style: normal; }
.prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.prose .wp-block-embed__wrapper iframe { width: 100%; height: 100%; border: 0; }

/* Cookie choices: equal access to accept and reject, including small screens. */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 1000; width: min(420px, calc(100% - 48px)); padding: 24px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 40px rgba(0,0,0,.1); }
.cookie-banner[hidden], #cookieChoices[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.cookie-banner p { color: var(--muted); font-size: 14px; }
.cookie-banner p a { text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.cookie-banner__actions > .btn { flex: 1; white-space: nowrap; padding: 0 18px; }
.cookie-banner__actions > [data-cookie-settings] { width: 100%; padding: 6px; font-size: 14px; text-decoration: underline; }
#cookieChoices { margin-top: 14px; }
#cookieChoices label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
#cookieChoices input { appearance: auto; width: 16px; height: 16px; }
#cookieChoices .btn { margin-top: 6px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
@media (max-width: 760px) {
  .cookie-banner { left: 0; bottom: 0; width: 100%; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  body.cookie-visible .whatsapp { display: none; }
}

/* Accessibility: readable muted text and controllable, touch-friendly slides. */
:root { --muted: #6b6b6b; }
.hero__pause { flex-shrink: 0; min-height: 32px; padding: 0 12px; border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); color: var(--white); font-size: 13px; line-height: 1; }
.hero__pause:hover { background: var(--white); color: var(--ink); }
.hero__pause:focus-visible, .hero__dots button:focus-visible { outline-color: var(--white); }
.hero__dots button, .hero__dots button.is-active { position: relative; height: 24px; background: transparent; }
.hero__dots button::after { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: rgba(255,255,255,.55); transition: background .3s; }
.hero__dots button.is-active::after { background: var(--white); }

/* Keep language selection available in the mobile drawer. */
.drawer { overflow-y: auto; }
.drawer__languages { margin-top: auto; padding-top: 20px; }
.drawer__languages + .drawer__cta { margin-top: 16px; }
.drawer__languages .lang { display: inline-block; }
.drawer__languages .lang__btn { min-height: 44px; border: 1px solid var(--line); padding: 0 14px; }
.drawer__languages .lang__list { left: 0; right: auto; top: auto; bottom: calc(100% + 8px); z-index: 1; max-height: min(240px, 50svh); overflow-y: auto; }
.drawer__languages .lang__list a { min-height: 44px; display: flex; align-items: center; }

/* The large status code remains readable as text on white (WCAG AA, 3:1). */
.error__code { color: #92928f; }
