/* =========================================
   WHARTON BUILDER — Brand Catalogue Site
   Palette: deep charcoal + champagne gold
   ========================================= */

:root {
  --ink: #16181a;
  --ink-2: #1f2225;
  --ink-3: #2a2e31;
  --gold: #c8a96a;
  --gold-lt: #e2c894;
  --line: rgba(200, 169, 106, 0.22);
  --paper: #f7f5f1;
  --paper-2: #efece6;
  --text: #2b2b2b;
  --muted: #6f6b64;
  --white: #ffffff;
  --max: 1280px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }

h1, h2, h3, h4, .eyebrow { font-weight: 300; letter-spacing: 0.01em; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.eyebrow.light { color: var(--gold-lt); }

.lead { color: var(--muted); font-size: 1.03rem; max-width: 62ch; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.45s var(--ease);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled {
  background: rgba(22, 24, 26, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 0;
}
.nav { display: flex; align-items: center; gap: 1.7rem; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.brand-logo {
  height: 32px;
  width: auto;
  max-width: 230px;
  display: block;
}
.brand-logo-full { height: 54px; max-width: 220px; }
.brand-mark {
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 0.95rem; letter-spacing: 0.16em; color: #fff; font-weight: 500; }
.brand-text em {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.35s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.62rem 1.35rem !important;
  color: var(--gold) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 1px;
  background: #fff;
  transition: all 0.35s var(--ease);
}

/* ============ LANGUAGE SWITCHER ============ */
.header-right { display: flex; align-items: center; gap: 1rem; }
.lang-switch { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold-lt); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: rgba(22, 24, 26, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.35s var(--ease);
  z-index: 120;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.28s, color 0.28s;
}
.lang-item:hover { background: rgba(200, 169, 106, 0.12); color: #fff; }
.lang-item.active { color: var(--gold-lt); border-left: 2px solid var(--gold); }
.lang-code { font-size: 0.68rem; letter-spacing: 0.12em; opacity: 0.7; min-width: 24px; }
.lang-item.active .lang-code { opacity: 1; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 12, 0.88) 0%, rgba(10, 11, 12, 0.62) 45%, rgba(10, 11, 12, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 11, 12, 0.6) 0%, transparent 35%, rgba(10, 11, 12, 0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  color: #fff;
  padding-top: 7rem;
  animation: fadeUp 1.1s var(--ease) 0.25s both;
}
.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: 1.06;
  font-weight: 300;
  margin-bottom: 1.2rem;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold-lt);
}
.hero-cn {
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 2.4rem;
}
.hero-sub {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, var(--max));
  margin: 4.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1px;
}
.hstat {
  background: rgba(10, 11, 12, 0.42);
  backdrop-filter: blur(6px);
  padding: 1.7rem 1.4rem;
}
.hstat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  color: var(--gold-lt);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hstat span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.scroll-hint {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: grid;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint span {
  width: 3px; height: 7px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  70% { opacity: 0; transform: translateY(11px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SECTIONS ============ */
.section { padding: 7rem 0; }
.section-head { margin-bottom: 3.6rem; max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.center-text { margin-inline: auto; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.18;
  margin-bottom: 1.2rem;
}
.section-head h2.light, .cta-content h2.light { color: #fff; }
.lead.light { color: rgba(255, 255, 255, 0.75); }

/* ============ ABOUT ============ */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4.5rem;
  align-items: start;
}
.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.18;
  margin-bottom: 1.8rem;
}
.about-text p { color: var(--muted); margin-bottom: 1.15rem; font-size: 0.95rem; }

.about-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.6rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.about-metrics strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.65rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.about-metrics span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-media { display: grid; gap: 1.2rem; }
.about-media figure { position: relative; overflow: hidden; }
.about-media img {
  width: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.media-main img { aspect-ratio: 4 / 3; }
.media-sub img { aspect-ratio: 16 / 10; }
.about-media figure:hover img { transform: scale(1.05); }
.about-media figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: rgba(22, 24, 26, 0.82);
  color: var(--gold-lt);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  backdrop-filter: blur(6px);
}

/* ============ STRENGTH ============ */
.strength { background: var(--paper-2); }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: var(--paper);
  padding: 2.6rem 2rem;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease);
}
.pillar:hover { background: var(--ink); transform: translateY(-4px); }
.pillar-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold);
  opacity: 0.55;
  display: block;
  margin-bottom: 1.1rem;
  line-height: 1;
}
.pillar h3 {
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  transition: color 0.45s;
}
.pillar > p:first-of-type {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.pillar p:last-child { font-size: 0.86rem; color: var(--muted); transition: color 0.45s; }
.pillar:hover h3, .pillar:hover p:last-child { color: rgba(255, 255, 255, 0.85); }
.pillar:hover p:last-child { color: rgba(255, 255, 255, 0.62); }

/* ============ CATEGORIES ============ */
.categories { background: var(--paper); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cat-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.7s var(--ease);
  filter: saturate(0.92);
}
.cat-card:hover img { transform: scale(1.08); filter: saturate(1.05); }
.cat-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 1.3rem;
  background: linear-gradient(180deg, transparent, rgba(12, 13, 14, 0.9) 65%);
  color: #fff;
  transform: translateY(22%);
  transition: transform 0.55s var(--ease);
}
.cat-card:hover .cat-body { transform: translateY(0); }
.cat-body h3 { font-size: 1.02rem; letter-spacing: 0.04em; margin-bottom: 0.18rem; }
.cat-body span { font-size: 0.68rem; letter-spacing: 0.16em; color: var(--gold-lt); }

/* category detail panel (opens on click) */
.cat-panel {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 19, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  padding: 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.cat-card.open .cat-panel { opacity: 1; visibility: visible; }
.cat-panel-inner { transform: translateY(12px); transition: transform 0.45s var(--ease); }
.cat-card.open .cat-panel-inner { transform: translateY(0); }
.cat-panel h4 { color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; letter-spacing: 0.04em; }
.cat-kw { font-size: 0.7rem; letter-spacing: 0.12em; color: var(--gold-lt); margin-bottom: 0.9rem; text-transform: uppercase; }
.cat-panel ul { list-style: none; display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.cat-panel ul li {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 1rem;
  position: relative;
}
.cat-panel ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.cat-ask {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.35s;
}
.cat-ask:hover { background: var(--gold); color: var(--ink); }

/* ============ FAQ ============ */
.faq { background: var(--paper-2); }
.faq-inner { max-width: 900px; }
.faq-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.faq-item { background: var(--paper); }
.faq-item summary {
  padding: 1.4rem 1.8rem;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.35s;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--white); }
.faq-body { padding: 0 1.8rem 1.6rem; }
.faq-body p { font-size: 0.92rem; color: var(--muted); max-width: 76ch; }

.viz-banner {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: var(--ink);
  align-items: stretch;
}
.viz-banner img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.viz-text { padding: 3.4rem 3rem; color: rgba(255, 255, 255, 0.8); display: flex; flex-direction: column; justify-content: center; }
.viz-text h3 {
  font-family: var(--serif);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.1rem;
  line-height: 1.2;
}
.viz-text p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); margin-bottom: 2rem; }
.viz-text .btn { align-self: flex-start; }

/* ============ FACTORY ============ */
.factory {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 7rem 0;
}
.factory-bg { position: absolute; inset: 0; z-index: 0; }
.factory-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.24; }
.factory::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 22, 0.9), rgba(18, 20, 22, 0.95));
  z-index: 1;
}
.factory-inner { position: relative; z-index: 2; }
.factory-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.fcard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.6s var(--ease), background 0.6s var(--ease);
}
.fcard:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.07); }
.fcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fcard-body { padding: 1.8rem; }
.fcard-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--gold-lt); }
.fcard-body p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); }

/* ============ SERVICE ============ */
.service { background: var(--paper-2); }
.service-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 4rem;
}
.sstep {
  background: var(--paper);
  padding: 2.6rem 2.2rem;
  position: relative;
  transition: background 0.5s var(--ease);
}
.sstep:hover { background: var(--white); }
.sstep-n {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.6;
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
}
.sstep h3 { font-size: 1.15rem; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.sstep-cn { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--gold); display: block; margin-bottom: 0.9rem; }
.sstep p { font-size: 0.87rem; color: var(--muted); }

.service-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--paper);
  padding: 2.5rem;
  border: 1px solid var(--line);
}
.service-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.service-copy h3 { font-family: var(--serif); font-size: 2rem; margin-bottom: 1.1rem; }
.service-copy > p { font-size: 0.93rem; color: var(--muted); margin-bottom: 1.6rem; }
.check-list { list-style: none; display: grid; gap: 0.8rem; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 0.89rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62rem;
  width: 8px; height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ============ GLOBAL ============ */
.global { background: var(--paper); }
.region-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 2.6rem;
}
.region {
  background: var(--paper);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: background 0.45s var(--ease);
}
.region:hover { background: var(--ink); }
.region h4 { font-size: 0.92rem; letter-spacing: 0.05em; transition: color 0.45s; }
.region span { font-size: 0.65rem; letter-spacing: 0.14em; color: var(--muted); transition: color 0.45s; }
.region:hover h4 { color: #fff; }
.region:hover span { color: var(--gold-lt); }

.global-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 1.2rem;
}
.g-main { grid-row: span 2; position: relative; overflow: hidden; }
.g-main img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; transition: transform 1.2s var(--ease); }
.g-side { position: relative; overflow: hidden; }
.g-side img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; transition: transform 1.2s var(--ease); }
.global-grid figure:hover img { transform: scale(1.05); }
.global-grid figcaption {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  padding: 1.5rem 1.3rem 0.9rem;
  background: linear-gradient(transparent, rgba(12, 13, 14, 0.86));
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.6rem;
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.logos span {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  transition: color 0.4s, opacity 0.4s;
}
.logos span:hover { color: var(--gold); opacity: 1; }

/* ============ CTA ============ */
.cta { position: relative; padding: 7rem 0; overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 15, 17, 0.93), rgba(14, 15, 17, 0.97)),
    radial-gradient(ellipse at center, rgba(14, 15, 17, 0.55), rgba(14, 15, 17, 0.9));
}
.cta-content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 720px);
  margin-inline: auto;
}
.cta-content h2 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1.2rem; }
.cta-text { color: rgba(255, 255, 255, 0.68); font-size: 0.98rem; margin-bottom: 2.6rem; }

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  text-align: left;
}
.quote-form input,
.quote-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0.95rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  transition: border-color 0.4s, background 0.4s;
}
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}
.quote-form textarea { grid-column: 1 / -1; resize: vertical; }
.quote-form button { grid-column: 1 / -1; justify-self: center; min-width: 220px; }
.form-msg {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold-lt);
  min-height: 1.4em;
}
.cta-contact {
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.cta-contact a {
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.4s;
}
.cta-contact a:hover { color: var(--gold-lt); }
.cta-contact .dot { color: var(--gold); }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.62); padding: 4.5rem 0 2rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.f-brand p { font-size: 0.86rem; margin-top: 1.3rem; max-width: 42ch; }
.f-col h5 {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.f-col a, .f-col p {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.6rem;
  transition: color 0.35s;
}
.f-col a { word-break: break-word; }
.f-col p { white-space: nowrap; }
.f-col p a { white-space: nowrap; }
.f-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  width: min(100% - 3rem, var(--max));
  margin: 1.8rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RTL (Arabic) ============ */
[dir="rtl"] body { font-family: var(--sans); }
[dir="rtl"] .hero-content,
[dir="rtl"] .section-head,
[dir="rtl"] .about-text { text-align: right; }
[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(270deg, rgba(10, 11, 12, 0.88) 0%, rgba(10, 11, 12, 0.62) 45%, rgba(10, 11, 12, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 11, 12, 0.6) 0%, transparent 35%, rgba(10, 11, 12, 0.75) 100%);
}
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 1.7rem; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .cat-panel ul li { padding-left: 0; padding-right: 1rem; }
[dir="rtl"] .cat-panel ul li::before { left: auto; right: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-item.active { border-left: none; border-right: 2px solid var(--gold); }
[dir="rtl"] .logo-row { flex-direction: row-reverse; }

/* ============ CERTIFICATIONS & TECH DATA ============ */
.certs { margin-top: 3.6rem; }
.certs-head { text-align: center; margin-bottom: 1.8rem; }
.certs-title {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cert {
  background: var(--paper);
  padding: 1.6rem 1rem;
  text-align: center;
  transition: background 0.4s var(--ease);
}
.cert:hover { background: var(--ink); }
.cert strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
  transition: color 0.4s;
}
.cert span { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); transition: color 0.4s; }
.cert:hover strong { color: var(--gold-lt); }
.cert:hover span { color: rgba(255, 255, 255, 0.7); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: none;
}
.tech {
  background: var(--paper);
  padding: 1.15rem 0.9rem;
  text-align: center;
}
.tech strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.tech span { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

@media (max-width: 860px) {
  .certs-grid, .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  padding: 0.85rem 1.1rem;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.38);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  background: #1eb855;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}
.wa-label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  white-space: nowrap;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
[dir="rtl"] .wa-float { right: auto; left: 22px; }

@media (max-width: 560px) {
  .wa-float { right: 14px; bottom: 14px; padding: 0.75rem; }
  .wa-label { display: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .viz-banner { grid-template-columns: 1fr; }
  .viz-banner img { min-height: 300px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78vw;
    max-width: 320px;
    background: rgba(22, 24, 26, 0.98);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 0.95rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .factory-cards { grid-template-columns: 1fr; }
  .service-flow { grid-template-columns: 1fr; }
  .service-panel { grid-template-columns: 1fr; padding: 1.6rem; }
  .global-grid { grid-template-columns: 1fr; }
  .g-main { grid-row: auto; }
  .g-main img { min-height: 320px; }
  .quote-form { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 5rem 0; }
}

@media (max-width: 560px) {
  .container, .header-inner, .hero-content, .hero-stats, .footer-bottom {
    width: min(100% - 2rem, var(--max));
  }
  .pillars { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .about-metrics { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ============ PRODUCT PAGES ============ */
.page-products { background: var(--bg); }
.page-wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; padding: 7rem 0 5rem; }
.page-hero { margin-bottom: 3.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem; }
.page-hero .lead { font-size: 1.05rem; line-height: 1.75; color: var(--muted); max-width: 62ch; }
.section-label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 .9rem; }
.cat-grid-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.4rem; margin: 0 0 4rem; }
.pcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(22,24,26,.1); }
.pcard-img { aspect-ratio: 4/5; background: #f2f0ec; overflow: hidden; display: block; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-body { padding: 1.05rem 1.15rem 1.25rem; }
.pcard-body h3 { font-size: 1.02rem; margin: 0 0 .3rem; letter-spacing: -0.01em; }
.pcard-code { font-size: .78rem; color: var(--gold); font-weight: 600; letter-spacing: .05em; }
.pcard-meta { font-size: .82rem; color: var(--muted); margin-top: .55rem; line-height: 1.6; }
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 780px; }
table.spec th { background: #16181a; color: #f7f5f1; text-align: left; padding: .85rem 1rem; font-weight: 600; font-size: .8rem; letter-spacing: .04em; }
table.spec td { padding: .78rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
table.spec tbody tr:nth-child(even) { background: #faf9f7; }
table.spec td.code { font-weight: 600; color: var(--gold); white-space: nowrap; }
table.spec a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold); }
table.spec a:hover { color: var(--gold); }
.prod-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.prod-img { background: #f2f0ec; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.prod-img img { width: 100%; display: block; }
.prod-meta h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 .5rem; letter-spacing: -0.02em; }
.prod-code { font-size: .95rem; color: var(--gold); font-weight: 600; letter-spacing: .06em; margin-bottom: 1.4rem; }
.spec-list { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-weight: 600; text-align: right; }
.use-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.use-list li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: .92rem; color: var(--muted); }
.use-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.notice { border-left: 3px solid var(--gold); background: #fff; padding: 1rem 1.2rem; font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
.prod-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--muted); text-decoration: none; margin-bottom: 2rem; }
.back-link:hover { color: var(--gold); }
.prod-foot { margin-top: 4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); line-height: 1.75; }
@media (max-width: 900px) { .prod-detail { grid-template-columns: 1fr; gap: 2.2rem; } .page-wrap { padding-top: 5.5rem; } }

/* ---- product pages: the header sits over a light background, so it needs
   its own solid bar instead of the transparent overlay used on the home page ---- */
.page-products .site-header {
  background: rgba(22, 24, 26, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.page-products .nav a { color: #d8d5cf; }
.page-products .nav a:hover { color: #fff; }
.page-products .nav .nav-cta { color: var(--gold); }
.page-products .wa-inline-sm { color: #d8d5cf; }
.page-products .wa-inline-sm:hover { color: #25D366; }
.page-products .brand-logo { filter: none; }
