/* Viet Garment Trims — Design system from mockups */
:root {
  --bg-light: #f9f8f6;
  --bg-cream: #f3f0eb;
  --bg-dark: #2f2f2f;
  --bg-dark-2: #3d3d3d;
  --bg-card-dark: #454545;
  --accent: #c8a97e;
  --accent-hover: #b89568;
  --accent-soft: #e8d9c4;
  --text: #3c2414;
  --text-muted: #7a5c45;
  --text-on-dark: #f5f3ef;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --header-h: 72px;
  --font: 'Manrope', 'Segoe UI', sans-serif;
  --font-display: 'Syne', 'Manrope', sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

ul {
  list-style: none;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), #8f7350);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

.nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.nav-desktop > li {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: var(--bg-cream);
  color: var(--text);
}

/* Products mega dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}

.nav-item-products:hover .nav-dropdown,
.nav-item-products:focus-within .nav-dropdown,
.nav-item-products.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}

.nav-dropdown a:hover {
  background: var(--bg-cream);
}

.nav-dropdown img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-gold:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  border-radius: 8px;
  padding: 14px 36px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn-dark:hover {
  background: #2a1810;
  border-color: #2a1810;
}

.btn-lang {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.btn-lang:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-menu {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.btn-menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.btn-menu span::before,
.btn-menu span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.btn-menu span::before { top: -6px; }
.btn-menu span::after { top: 6px; }

.btn-quote-header {
  display: none;
  padding: 10px 18px;
  font-size: 0.8rem;
}

/* Mobile nav drawer */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(47, 47, 47, 0.45);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-panel {
  background: var(--white);
  width: min(320px, 88vw);
  height: 100%;
  margin-left: auto;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}

.nav-mobile.open .nav-mobile-panel {
  transform: translateX(0);
}

.nav-mobile a {
  display: block;
  padding: 14px 8px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-products summary {
  padding: 14px 8px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.nav-mobile-products summary::-webkit-details-marker { display: none; }

.nav-mobile-products a {
  padding-left: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ——— Main ——— */
#app {
  min-height: calc(100vh - var(--header-h) - 180px);
}

.page {
  animation: fadeUp 0.45s var(--ease);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-quote {
  background:
    linear-gradient(135deg, rgba(200, 169, 126, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, #f4f6f8 0%, #e8edf1 100%);
  padding: 64px clamp(16px, 3vw, 40px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.section-dark .section-sub {
  color: rgba(255, 255, 255, 0.55);
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ——— Hero carousel (full viewport) ——— */
.page-home {
  margin-top: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  min-height: 420px;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  background: #1a1a1a;
  color: var(--text-on-dark);
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 6.5s ease-out;
}

.hero-slide.is-active .hero-slide-media img {
  transform: scale(1);
}

/* GIF slides: no Ken Burns scale — keeps animation smooth */
.hero-slide.is-gif .hero-slide-media img,
.hero-slide.is-gif.is-active .hero-slide-media img {
  transform: none;
  transition: none;
}

.hero-slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.78) 0%, rgba(18, 18, 18, 0.45) 48%, rgba(18, 18, 18, 0.2) 100%),
    linear-gradient(0deg, rgba(18, 18, 18, 0.55) 0%, transparent 42%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) 20px clamp(56px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-brand {
  font-family: var(--font);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(16px);
}

.hero-slide.is-active .hero-brand {
  animation: heroIn 0.7s var(--ease) 0.12s forwards;
}

.hero-carousel .hero-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  max-width: 18ch;
  margin-bottom: 16px;
  color: #fff;
  opacity: 0;
  transform: translateY(18px);
}

.hero-slide.is-active .hero-title {
  animation: heroIn 0.75s var(--ease) 0.22s forwards;
}

.hero-carousel .hero-sub {
  color: rgba(245, 243, 239, 0.82);
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  max-width: 38ch;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
}

.hero-slide.is-active .hero-sub {
  animation: heroIn 0.75s var(--ease) 0.32s forwards;
}

.hero-carousel .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(18px);
}

.hero-slide.is-active .hero-actions {
  animation: heroIn 0.75s var(--ease) 0.42s forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.hero-dot.is-active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}

.hero-dot:hover {
  border-color: #fff;
}

/* ——— Full-viewport showcase (fig.2 style) ——— */
/* ——— Why choose us (below hero) ——— */
.section-why {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
  background: #e7ddd0;
  color: var(--text);
  overflow: hidden;
}

.why-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 90% 10%, rgba(200, 169, 126, 0.35), transparent 60%),
    radial-gradient(ellipse 55% 45% at 5% 85%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(165deg, #ebe2d4 0%, #e0d3c2 48%, #d9cbb8 100%);
}

.why-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.why-layout {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: start;
}

.why-head {
  max-width: 36rem;
}

.why-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a7345;
}

.why-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
}

.why-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 34ch;
  margin-bottom: 24px;
}

.why-cta {
  display: inline-flex;
}

.why-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.why-tile {
  position: relative;
  padding: 20px 18px 22px;
  border: 1px solid rgba(60, 36, 20, 0.1);
  background: rgba(255, 252, 247, 0.72);
  backdrop-filter: blur(6px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  animation: whyIn 0.7s var(--ease) forwards;
  animation-delay: calc(0.07s * var(--i, 0) + 0.1s);
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), background 0.3s, box-shadow 0.3s;
}

.why-tile::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent 85%);
  opacity: 0;
  transition: opacity 0.3s;
}

.why-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 126, 0.65);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(80, 55, 30, 0.08);
}

.why-tile:hover::before {
  opacity: 1;
}

.why-tile--custom,
.why-tile--oeko {
  grid-column: span 2;
}

.why-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.why-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #9a7345;
  border: 1px solid rgba(154, 115, 69, 0.28);
  background: rgba(200, 169, 126, 0.16);
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s;
}

.why-icon svg {
  width: 28px;
  height: 28px;
}

.why-tile:hover .why-icon {
  transform: rotate(-6deg) scale(1.06);
  background: rgba(200, 169, 126, 0.28);
  box-shadow: 0 0 0 6px rgba(200, 169, 126, 0.12);
}

.why-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(60, 36, 20, 0.28);
}

.why-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.why-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 36ch;
}

@keyframes whyIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .why-layout {
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
    gap: 48px;
    align-items: center;
  }

  .why-head {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .why-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .why-tile--custom,
  .why-tile--oeko {
    grid-column: auto;
  }

  .why-tile--custom {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 22px;
    align-items: center;
    padding: 26px 28px;
  }

  .why-tile--custom .why-tile-top {
    grid-row: 1 / 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 0;
  }

  .why-tile--custom .why-label {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .why-tile--custom .why-desc {
    font-size: 0.95rem;
    max-width: 48ch;
  }

  .why-tile {
    padding: 24px 22px 26px;
  }

  .why-label {
    font-size: 1.12rem;
  }
}

.home-showcase {
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: flex-start;
  background: var(--bg-light);
  padding: 28px 0 56px;
}

.home-showcase-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(16px, 2.5vw, 36px);
  padding-right: clamp(16px, 2.5vw, 36px);
  text-align: center;
}

.showcase-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: normal;
  color: var(--text);
  margin-bottom: 10px;
}

.showcase-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 42ch;
  margin: 0 auto 36px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin-bottom: 36px;
  text-align: left;
  width: 100%;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.35s var(--ease);
  opacity: 0;
  animation: showcaseIn 0.65s var(--ease) forwards;
  animation-delay: calc(0.08s * var(--i, 0));
}

@keyframes showcaseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.showcase-card:hover {
  transform: translateY(-6px);
}

.showcase-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-cream);
  margin-bottom: 12px;
}

.showcase-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.showcase-card:hover .showcase-card-img img {
  transform: scale(1.05);
}

.showcase-brand {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6b52;
  margin-bottom: 4px;
}

.showcase-name {
  display: block;
  font-size: clamp(0.92rem, 1.15vw, 1.12rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}

.showcase-sku {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b3d22;
}

.showcase-cta {
  display: inline-flex;
}

/* ——— Customized service (below bestsellers) ——— */
.section-custom {
  position: relative;
  padding: 64px 0 72px;
  background:
    linear-gradient(180deg, #f7f3ec 0%, #fcfaf7 40%, #f3eee6 100%);
  border-top: 1px solid rgba(60, 36, 20, 0.06);
  overflow: hidden;
}

.section-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(200, 169, 126, 0.16), transparent 70%);
}

.custom-inner {
  position: relative;
  text-align: center;
  max-width: none;
  padding-left: clamp(16px, 2.5vw, 36px);
  padding-right: clamp(16px, 2.5vw, 36px);
}

.custom-title {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.custom-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 42ch;
  margin: 0 auto 40px;
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
}

.custom-item {
  position: relative;
  padding: 22px 20px 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(60, 36, 20, 0.08);
  opacity: 0;
  transform: translateY(16px);
  animation: customIn 0.6s var(--ease) forwards;
  animation-delay: calc(0.06s * var(--i, 0) + 0.08s);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.custom-item:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 126, 0.55);
  box-shadow: 0 16px 36px rgba(80, 55, 30, 0.07);
}

.custom-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  color: #8f6a3f;
  background: linear-gradient(145deg, rgba(200, 169, 126, 0.22), rgba(200, 169, 126, 0.06));
  border: 1px solid rgba(200, 169, 126, 0.35);
  transition: transform 0.35s var(--ease), background 0.3s;
}

.custom-icon svg {
  width: 28px;
  height: 28px;
}

.custom-item:hover .custom-icon {
  transform: scale(1.06);
  background: linear-gradient(145deg, rgba(200, 169, 126, 0.32), rgba(200, 169, 126, 0.1));
}

.custom-label {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.custom-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 28ch;
}

@keyframes customIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .custom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .section-custom {
    padding: 80px 0 88px;
  }

  .custom-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }

  .custom-item {
    padding: 26px 18px 28px;
    min-height: 220px;
  }

  .custom-label {
    font-size: 1.08rem;
  }

  .custom-desc {
    font-size: 0.86rem;
  }
}

/* Legacy hero (other pages unused) kept minimal */
.hero {
  padding: 40px 0 28px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 24px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 40%, #ebe4d8 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, #e0d5c4 0%, transparent 45%),
    var(--bg-cream);
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hero-visual:hover img {
  transform: scale(1.04);
}

/* ——— Feature stats ——— */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.stat-card {
  background: var(--bg-card-dark);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card .label {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.stat-card .hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.stat-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

/* ——— Category cards ——— */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.section-dark .cat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-card-img {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-cream);
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.cat-card:hover .cat-card-img img {
  transform: scale(1.08);
}

.cat-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.cat-card-go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.feature-card {
  background: var(--bg-card-dark);
  border-radius: var(--radius);
  padding: 22px 18px;
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card .big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.feature-card h3 {
  font-size: 0.95rem;
  margin-top: 6px;
}

.feature-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

/* ——— Factory / certificates home ——— */
.section-factory {
  background:
    linear-gradient(180deg, #f7f3ec 0%, #fcfaf7 45%, #f3eee6 100%);
  color: var(--text);
  border-top: 1px solid rgba(60, 36, 20, 0.06);
}

.section-factory .section-title {
  color: var(--text);
}

.section-factory .section-sub {
  color: var(--text-muted);
}

.home-certs-wrap {
  max-width: 960px;
}

.factory-head {
  margin-bottom: 28px;
  text-align: center;
}

.factory-head .section-title {
  margin-bottom: 6px;
}

.factory-head .section-sub {
  margin-bottom: 0;
}

/* Single certificate feature */
.cert-feature {
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(60, 36, 20, 0.08);
  box-shadow: 0 16px 40px rgba(80, 55, 30, 0.07);
}

.cert-feature-visual {
  margin: 0 auto;
  width: min(100%, 280px);
  aspect-ratio: 320 / 440;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f3ef;
  box-shadow: 0 12px 32px rgba(60, 45, 25, 0.12);
  padding: 0;
  border: none;
  cursor: zoom-in;
  display: block;
}

.cert-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.cert-feature-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cert-feature-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(200, 169, 126, 0.12);
  border: 1px solid rgba(200, 169, 126, 0.4);
  color: #6b4528;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-feature-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.cert-feature-desc {
  margin: 0;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cert-feature .cert-year {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cert-feature .btn-certs {
  margin-top: 8px;
}

.cert-page-body {
  padding-bottom: 56px;
}

.cert-page-body .cert-feature {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cert-page-body .cert-feature-title {
  color: var(--text);
}

.cert-page-body .cert-feature-desc {
  color: var(--text-muted);
}

.cert-page-body .cert-feature-badge {
  background: rgba(200, 169, 126, 0.12);
  color: #6b4528;
  border-color: rgba(200, 169, 126, 0.4);
}

.cert-page-body .cert-feature-visual {
  box-shadow: 0 12px 32px rgba(60, 45, 25, 0.12);
}

/* Certificate lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 16, 20, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.cert-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cert-lightbox-inner {
  position: relative;
  max-width: min(920px, 100%);
  max-height: min(92vh, 100%);
}

.cert-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: min(88vh, 100%);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.cert-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.cert-lightbox-close:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 767px) {
  .cert-lightbox-close {
    top: -10px;
    right: 0;
  }
}

.factory-block {
  color: var(--text);
  overflow: visible;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.factory-layout {
  display: grid;
  gap: 28px;
}

.factory-left,
.factory-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.factory-photo {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ddd5c8;
  box-shadow: 0 12px 32px rgba(60, 45, 25, 0.1);
}

.factory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.factory-photo:hover img {
  transform: scale(1.04);
}

.factory-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 169, 126, 0.55);
  color: #5c3a22;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.panel-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b4528;
  margin-bottom: 2px;
}

.best-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 169, 126, 0.28);
  border-radius: var(--radius-sm);
  padding: 14px 12px 12px;
  box-shadow: 0 8px 24px rgba(60, 45, 25, 0.05);
}

.best-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.best-scroll::-webkit-scrollbar {
  height: 4px;
}

.best-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.best-item {
  flex: 0 0 104px;
  scroll-snap-align: start;
  text-align: center;
  padding: 10px 8px 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}

.best-item:hover {
  background: rgba(200, 169, 126, 0.14);
  border-color: rgba(200, 169, 126, 0.4);
  transform: translateY(-3px);
}

.best-item-img {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e5d9c6;
  box-shadow: 0 6px 16px rgba(60, 45, 25, 0.1);
  transition: border-color 0.2s;
}

.best-item:hover .best-item-img {
  border-color: var(--accent);
}

.best-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.best-item-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 3px;
}

.best-item-sku {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6b4528;
}

.btn-certs {
  width: auto;
  min-width: 200px;
  margin-top: 0;
}

/* ——— Quote form ——— */
.quote-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.quote-box {
  position: relative;
  display: grid;
  gap: 28px;
  background: #fff;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 60px rgba(30, 42, 50, 0.1);
  border: 1px solid rgba(30, 42, 50, 0.06);
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.quote-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #dfc49a 50%, #2a3a44);
}

.quote-intro {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.quote-eyebrow {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}

.quote-intro .section-title {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.quote-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 36ch;
  margin: 0 0 22px;
  line-height: 1.55;
}

.quote-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.quote-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3f6f8;
  border: 1px solid rgba(30, 42, 50, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.quote-points li span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #3c2414;
  letter-spacing: 0.02em;
}

.quote-direct-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.quote-direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quote-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(30, 42, 50, 0.14);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.quote-chip:hover {
  border-color: var(--accent);
  color: #5c3a22;
  background: rgba(200, 169, 126, 0.1);
}

.quote-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
  align-content: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: 1.5px solid #d5dde3;
  border-radius: 12px;
  background: #f7f9fb;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #a08a74;
  opacity: 1;
}

.quote-form input:hover,
.quote-form textarea:hover {
  border-color: #c5ced6;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 169, 126, 0.18);
}

.quote-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
  padding-top: 14px;
}

.quote-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin-top: 4px;
}

.quote-actions .btn {
  width: 100%;
  padding: 15px 28px;
  font-size: 0.92rem;
}

.quote-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.quote-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.form-msg {
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.2em;
  padding: 0 2px;
}

.form-msg.ok {
  color: #1f7a4d;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(45, 122, 79, 0.1);
}

.form-msg.err {
  color: #b33a3a;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(179, 58, 58, 0.08);
}

/* ——— Level 2 gallery (image overlay labels) ——— */
.page-banner {
  padding: 36px 0 12px;
  padding-left: 12px;
}

@media (min-width: 768px) {
  .page-banner {
    padding-left: 0;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  opacity: 0.4;
}

.l2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 56px;
}

.l2-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #222;
}

.l2-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.l2-card:hover img {
  transform: scale(1.06);
}

.l2-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

.l2-card:hover::after {
  background: rgba(200, 169, 126, 0.18);
}

.l2-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ——— Level 3 product list ——— */
.l3-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 56px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card-img {
  aspect-ratio: 1;
  background: var(--bg-cream);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-sku {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.product-specs {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
}

.product-card .btn {
  margin-top: 10px;
  width: 100%;
  pointer-events: none;
}

/* ——— Product detail ——— */
.detail-section {
  padding-top: 8px;
}

.detail-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-main-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-cream);
  border: 1px solid var(--border);
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
}

.detail-thumb {
  flex: 1;
  max-width: 88px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--bg-cream);
  transition: border-color 0.2s, transform 0.2s;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb:hover,
.detail-thumb.active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.detail-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b4528;
  margin-bottom: 10px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.detail-sku {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-sku strong {
  color: var(--text);
}

.detail-desc {
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.65;
}

.detail-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200, 169, 126, 0.25);
}

.detail-meta > div {
  display: grid;
  gap: 2px;
}

.detail-meta dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b4528;
}

.detail-meta dd {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.detail-features h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.detail-features ul {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-actions .btn {
  min-width: 160px;
}

.section-related {
  padding-top: 24px;
  background: var(--bg-light);
}

.section-related .section-title {
  margin-bottom: 20px;
}

.related-grid {
  padding-bottom: 8px;
}

@media (min-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .detail-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }
}

/* ——— Certificates page ——— */
.cert-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

/* ——— About page ——— */
.about-page {
  background: var(--bg-light);
}

.about-hero {
  padding: 48px 0 20px;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(200, 169, 126, 0.18), transparent 55%),
    linear-gradient(180deg, #f4efe8 0%, var(--bg-light) 100%);
}

.about-hero-inner,
.about-block-inner {
  max-width: 760px;
}

.about-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.about-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
}

.about-video-wrap {
  padding: 8px 0 12px;
}

.about-video {
  overflow: hidden;
  background: #1a1612;
  aspect-ratio: 16 / 9;
  animation: matRise 0.75s var(--ease) both;
}

.about-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-lead p,
.about-block p,
.about-row-copy p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-goal {
  color: var(--text) !important;
  font-weight: 700;
  font-size: 1.08rem !important;
}

.about-stats-wrap {
  padding: 28px 0 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-stat {
  background: #fff;
  border: 1px solid var(--border);
  padding: 22px 18px;
  animation: matRise 0.7s var(--ease) both;
  animation-delay: calc(0.06s * var(--i, 0));
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.about-stat p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 600;
}

.about-rows {
  padding: 20px 0 28px;
}

.about-row {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
  align-items: center;
  animation: matRise 0.75s var(--ease) both;
  animation-delay: calc(0.08s * var(--i, 0));
}

.about-row-media {
  overflow: hidden;
  background: #ebe6df;
  aspect-ratio: 4 / 3;
}

.about-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.about-row:hover .about-row-media img {
  transform: scale(1.04);
}

.about-row-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--text);
}

.about-block {
  padding: 40px 0;
}

.about-block--alt {
  background: #f3efe9;
}

.about-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--text);
}

.about-pillars {
  color: var(--text) !important;
  font-weight: 800;
  font-size: 1.05rem !important;
  letter-spacing: 0.01em;
  padding: 14px 0;
  border-top: 1px solid rgba(60, 36, 20, 0.12);
  border-bottom: 1px solid rgba(60, 36, 20, 0.12);
  margin: 8px 0 18px !important;
}

.about-block--promise {
  background: #221c17;
  color: var(--text-on-dark);
  padding: 56px 0 64px;
}

.about-block--promise .about-kicker {
  color: var(--accent-soft);
}

.about-block--promise h2,
.about-block--promise .about-goal {
  color: var(--text-on-dark) !important;
}

.about-block--promise p {
  color: rgba(245, 243, 239, 0.78);
}

.about-promise-end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 28px;
}

.about-promise-end strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-promise-end span {
  color: rgba(245, 243, 239, 0.72);
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .about-hero {
    padding: 64px 0 28px;
  }

  .about-video-wrap {
    padding: 12px 0 20px;
  }

  .about-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .about-stat {
    padding: 26px 20px;
  }

  .about-rows {
    padding: 28px 0 40px;
  }

  .about-row {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    margin-bottom: 72px;
  }

  .about-row.is-reverse .about-row-media {
    order: 2;
  }

  .about-row.is-reverse .about-row-copy {
    order: 1;
  }

  .about-block {
    padding: 56px 0;
  }

  .about-block--promise {
    padding: 72px 0 80px;
  }
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 28px;
}

.contact-quote {
  min-width: 0;
}

.contact-quote .quote-box {
  gap: 24px;
}

.contact-info {
  display: grid;
  gap: 14px;
}

.info-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.info-row .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.info-row .val {
  font-weight: 650;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 36px 20px 100px;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer .brand {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 18px 0;
}

.footer-nav a:hover {
  color: var(--accent);
}

/* ——— WhatsApp FAB ——— */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wa-fab a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}

.wa-fab a:hover {
  transform: scale(1.08);
}

.wa-fab a svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.wa-fab span {
  font-size: 0.65rem;
  font-weight: 700;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  color: var(--text);
  max-width: 90px;
  text-align: center;
  line-height: 1.2;
}

/* ——— Utilities ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--accent);
}

/* ——— Tablet ——— */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-slide-content {
    padding: 40px 28px 56px;
  }

  .showcase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 32px);
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 44px;
  }

  .showcase-name {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .factory-layout {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
    gap: 28px;
  }

  .cert-feature {
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 36px;
    padding: 32px 40px;
    text-align: left;
  }

  .cert-feature-visual {
    margin: 0;
    width: 100%;
  }

  .cert-feature-body {
    align-items: flex-start;
    text-align: left;
  }

  .section-factory .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .factory-block {
    padding: 0;
  }

  .best-item {
    flex: 0 0 112px;
  }

  .l2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

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

  .quote-box {
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
    gap: 40px;
    align-items: start;
    padding: 48px 44px;
  }

  .quote-form {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .quote-form .field-wide,
  .quote-form .quote-actions,
  .quote-form .form-msg {
    grid-column: 1 / -1;
  }

  .quote-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .quote-actions .btn {
    width: auto;
    min-width: 200px;
  }

  .quote-note {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    gap: 32px;
    align-items: start;
  }

  /* Contact page: avoid nesting two side-by-side grids (inputs get too narrow) */
  .contact-quote .quote-box {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 28px;
  }

  .contact-quote .quote-intro .section-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  }

  .contact-quote .quote-sub {
    max-width: none;
    margin-bottom: 16px;
  }

  .contact-quote .quote-points {
    margin-bottom: 16px;
  }

  .contact-quote .quote-form {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .contact-quote .quote-form input,
  .contact-quote .quote-form textarea {
    min-height: 50px;
    font-size: 1rem;
    padding: 15px 18px;
  }

  .contact-quote .quote-form textarea {
    min-height: 150px;
  }

  .contact-quote .quote-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .contact-quote .quote-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-quote-header {
    display: inline-flex;
  }
}

/* ——— Desktop ——— */
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .btn-menu {
    display: none;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .section {
    padding: 72px 0;
  }

  .l2-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

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

/* ——— Materials page ——— */
.materials-page {
  background: var(--bg-light);
}

.mat-hero {
  position: relative;
  min-height: min(72vh, 640px);
  overflow: hidden;
  background: #1c1712;
}

.mat-hero img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  animation: matFade 1.1s var(--ease) both;
}

.mat-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 40px;
  background: linear-gradient(transparent, rgba(18, 14, 10, 0.78));
  color: var(--text-on-dark);
  text-align: center;
}

.mat-hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
  animation: matRise 0.8s var(--ease) 0.15s both;
}

.mat-hero-caption h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 18ch;
  margin: 0 auto;
  animation: matRise 0.85s var(--ease) 0.28s both;
}

.mat-intro {
  padding: 56px 0 24px;
}

.mat-intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mat-intro-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 18px;
  color: var(--text);
}

.mat-intro-inner p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.mat-list {
  padding: 20px 0 40px;
}

.mat-block {
  display: grid;
  gap: 22px;
  margin-bottom: 48px;
  align-items: center;
  animation: matRise 0.75s var(--ease) both;
  animation-delay: calc(0.08s * var(--i, 0));
}

.mat-block-media {
  overflow: hidden;
  background: #ebe6df;
  aspect-ratio: 4 / 3;
}

.mat-block-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.mat-block:hover .mat-block-media img {
  transform: scale(1.04);
}

.mat-block-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.mat-block-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 10px;
}

.mat-block-tag {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.mat-block-copy p:last-child {
  color: var(--text-muted);
  max-width: 42ch;
}

.mat-choose {
  padding: 28px 0 56px;
}

.mat-choose-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.mat-choose-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 16px;
}

.mat-choose-inner p {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mat-close {
  background: #221c17;
  color: var(--text-on-dark);
}

.mat-close-media {
  overflow: hidden;
  max-height: 420px;
}

.mat-close-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.92;
}

.mat-close-inner {
  text-align: center;
  padding: 48px 20px 64px;
  max-width: 720px;
  margin: 0 auto;
}

.mat-close-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  margin-bottom: 18px;
  line-height: 1.3;
}

.mat-close-inner h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 10px;
}

.mat-close-slogan {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.mat-close-inner > p:not(.mat-close-line):not(.mat-close-slogan) {
  color: rgba(245, 243, 239, 0.72);
  margin-bottom: 24px;
}

.mat-close .btn {
  min-width: 160px;
}

@keyframes matFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes matRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .mat-block {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
  }

  .mat-block.is-reverse .mat-block-media {
    order: 2;
  }

  .mat-block.is-reverse .mat-block-copy {
    order: 1;
    justify-self: end;
    text-align: right;
  }

  .mat-block.is-reverse .mat-block-copy p:last-child {
    margin-left: auto;
  }

  .mat-intro {
    padding: 72px 0 32px;
  }

  .mat-hero-caption {
    padding: 64px 24px 52px;
  }
}

@media (min-width: 1024px) {
  .mat-block {
    gap: 56px;
  }

  .mat-close-media img {
    height: 460px;
  }
}
