/* =====================================================================
   ChefSolid — "Grand" layer
   Bigger, Alibaba-storefront-style components + light/premium theme.
   Loaded AFTER style.css. Used by index-a.html (light) & index-b.html (dark).
   ===================================================================== */

/* ---------- Bigger type / hero ---------- */
.h-2xl { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -.022em; }
.hero--xl .container {
  padding-top: 96px; padding-bottom: 96px;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: stretch;
}
.hero--xl .hero__copy { align-self: center; }
.hero--xl .hero__visual { align-self: stretch; display: flex; }
.hero--xl .hero__visual img { width: 100%; height: 100%; min-height: 520px; max-height: 720px; object-fit: cover; }
.hero--xl .lead { font-size: 1.18rem; max-width: 56ch; }
.hero--xl .eyebrow { font-size: .8rem; }
.section--xl { padding: 110px 0; }
.section-head--xl { max-width: 820px; margin-bottom: 60px; }
.section-head--xl .h-lg { font-size: clamp(2rem, 4vw, 3rem); }

/* trust badges row under hero buttons */
.hero-assure { display:flex; flex-wrap:wrap; gap:22px; margin-top:34px; padding-top:26px; border-top:1px solid rgba(255,255,255,.12); }
.hero-assure .item { display:flex; gap:10px; align-items:center; font-size:.86rem; color:var(--steel-300); }
.hero-assure .item svg { width:22px; height:22px; color:var(--accent); flex-shrink:0; }
.hero-assure .item b { color:#fff; display:block; font-size:.95rem; line-height:1.1; }

/* ---------- Strength / company scale band ---------- */
.strength {
  background: var(--surface-dark-radial), var(--surface-dark);
  color:#fff;
  position:relative;
}
/* (removed top orange stripe on strength band) */
.strength::after {
  content:"";
  position:absolute; top:4px; left:0; right:0; height:80px;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, transparent 100%);
  pointer-events:none;
}
.strength .container { position:relative; z-index:1; }
.strength .container { padding: 70px 24px; }
.strength__grid { display:grid; grid-template-columns:repeat(5,1fr); gap:0; }
.strength__item { text-align:center; padding: 8px 12px; border-right:1px solid rgba(255,255,255,.1); }
.strength__item:last-child { border-right:0; }
.strength__num { font-family:var(--font-mono); font-weight:800; font-size:clamp(2.2rem,3.5vw,3rem); color:#fff; line-height:1; white-space:nowrap; }
.strength__num span { color:var(--accent); }
.strength__num .unit { font-size:.5em; vertical-align:.35em; margin-left:.06em; letter-spacing:0; }
.strength__label { margin-top:10px; font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; color:var(--steel-300); }
.strength__head { text-align:center; margin-bottom:48px; }
.strength__head .eyebrow { justify-content:center; }
.strength__head h2 { font-size:clamp(1.8rem,3.5vw,2.6rem); }

/* ---------- Certificate wall ---------- */
.cert-wall { display:grid; grid-template-columns:repeat(6,1fr); gap:18px; }
.cert-card { border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; padding:26px 14px; text-align:center; transition:.15s; }
.cert-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.cert-card__badge { width:62px; height:62px; margin:0 auto 14px; border-radius:50%; display:grid; place-items:center; background:var(--accent-soft); border:2px solid var(--accent); }
.cert-card__badge span { font-family:var(--font-mono); font-weight:800; font-size:.9rem; color:var(--accent-dark); letter-spacing:.02em; }
.cert-card__name { font-weight:700; font-size:.92rem; }
.cert-card__desc { font-size:.76rem; color:var(--text-muted); margin-top:3px; }

/* ---------- Client / partner logo wall ---------- */
.logo-wall { display:grid; grid-template-columns:repeat(6,1fr); gap:0; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; background:#fff; }
.logo-wall .logo { display:grid; place-items:center; padding:34px 18px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.logo-wall .logo:nth-child(6n) { border-right:0; }
.logo-wall .logo svg { height:34px; width:auto; opacity:.62; transition:opacity .15s, filter .15s; filter:grayscale(1); }
.logo-wall .logo:hover svg { opacity:1; filter:grayscale(0); }

/* ---------- Page-hero with background photo (e.g. Factory banner) ---------- */
.page-hero--photo { position:relative; background-size:cover; background-position:center; padding:96px 0; }
.page-hero--photo::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(11,15,20,.88) 0%, rgba(11,15,20,.62) 55%, rgba(11,15,20,.40) 100%); }
.page-hero--photo .container { position:relative; z-index:1; }
@media (max-width:760px){ .page-hero--photo { padding:64px 0; } .page-hero--photo::before { background:rgba(11,15,20,.72); } }

/* ---------- Factory photo gallery ---------- */
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.gallery-grid__item { position:relative; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); aspect-ratio:4/3; background:var(--steel-100); }
.gallery-grid__item img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.gallery-grid__item:hover img { transform:scale(1.06); }
.gallery-grid__cap { position:absolute; left:0; right:0; bottom:0; padding:16px 16px 12px; background:linear-gradient(to top, rgba(11,15,20,.88), transparent); color:#fff; font-size:.88rem; font-weight:600; }
@media (max-width:760px){ .gallery-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .gallery-grid{ grid-template-columns:1fr; } }

/* ---------- Standards & compliance (text-only, no marks) ---------- */
.standards-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.standard {
  border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:24px 24px 24px 64px; background:#fff;
  position:relative;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.standard::before {
  content:""; position:absolute; left:22px; top:26px;
  width:26px; height:26px; border-radius:50%;
  background:var(--accent-soft);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size:14px; background-repeat:no-repeat; background-position:center;
}
.standard:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--steel-200); }
.standard__name { font-family:var(--font-heading); font-weight:700; font-size:1.02rem; color:var(--text); letter-spacing:-.01em; }
.standard__desc { font-size:.88rem; color:var(--text-muted); margin-top:6px; line-height:1.55; }
.standards-note { text-align:center; color:var(--text-muted); font-size:.9rem; margin-top:36px; font-style:italic; }
@media(max-width:760px){ .standards-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:520px){ .standards-grid{ grid-template-columns:1fr; } .standard{ padding-left:60px; } }

/* ---------- Global reach map ---------- */
.reach-map-wrap { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px; overflow:hidden; }
.reach-map-stack { position:relative; aspect-ratio: 1200/600; }
.reach-map-bg { position:absolute; inset:0; width:100%; height:100%; display:block; opacity:.85; }
.reach-map-overlay { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.reach-map { width:100%; height:auto; display:block; }
.reach-stats { display:flex; justify-content:center; align-items:center; gap:48px; margin-top:40px; flex-wrap:wrap; }
.reach-stat { text-align:center; }
.reach-stat__num { font-family:var(--font-mono); font-weight:800; font-size:1.6rem; color:var(--text); line-height:1; }
.reach-stat__label { font-size:.78rem; color:var(--text-muted); margin-top:8px; text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.reach-stat-divider { width:1px; height:36px; background:var(--line); }
@media(max-width:760px){ .reach-stats{ gap:28px; } .reach-stat-divider{ display:none; } .reach-stat__num{ font-size:1.4rem; } }

/* ---------- Section eyebrow centered helper ---------- */
.eyebrow--center { justify-content:center; }

/* =====================================================================
   LIGHT / PREMIUM THEME  (body.theme-light)
   ===================================================================== */
body.theme-light { --bg:#ffffff; --bg-alt:#f5f8fb; --text:#101a23; --text-muted:#5a6772; --line:#e3e9ef; background:#fff; }

.theme-light .topbar { background: var(--surface-dark); color:#aeb9c3; border-bottom:0; }
.theme-light .topbar a { color:#d7dee4; }

.theme-light .site-header { background:#fff; border-bottom:1px solid #e6ebef; box-shadow:0 1px 0 rgba(11,15,20,.02); }
.theme-light .main-nav a { color:#2a3744; }
.theme-light .main-nav a:hover, .theme-light .main-nav a[aria-current="page"] { color:var(--accent-dark); background:var(--accent-soft); }
.theme-light .nav-toggle { color:#18222b; }

/* Light hero */
.theme-light .hero { background:linear-gradient(120deg,#ffffff 0%, #eef3f8 60%, #e3ecf4 100%); color:var(--text); }
.theme-light .hero::before {
  background-image:
    linear-gradient(rgba(20,40,70,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,40,70,.05) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image: radial-gradient(circle at 72% 42%, #000 0%, transparent 72%);
}
.theme-light .hero .lead { color:#475563; }
.theme-light .hero .pill { border-color:#cdd8e1; color:#3a4754; background:#fff; }
.theme-light .hero__visual img { border-color:#dbe3ea; box-shadow:0 24px 60px rgba(31,60,100,.16); }
.theme-light .hero__tag { background:rgba(255,255,255,.92); border-color:#dbe3ea; color:#2a3744; }
.theme-light .hero-assure { border-top-color:#dde5ec; }
.theme-light .hero-assure .item { color:#5a6772; }
.theme-light .hero-assure .item b { color:#101a23; }

/* In light theme keep the "dark" sections genuinely dark (strength/cta) */
.theme-light .cat-card { border-color:#dbe3ea; }
.theme-light .feature__icon { background:var(--accent-soft); }

/* A slightly stronger heading weight for premium feel */
.theme-light h1, .theme-light h2 { letter-spacing:-.02em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .strength__grid { grid-template-columns:repeat(2,1fr); gap:28px 0; }
  .strength__item:nth-child(2) { border-right:0; }
  .strength__item { border-bottom:1px solid rgba(255,255,255,.1); padding-bottom:22px; }
  .cert-wall { grid-template-columns:repeat(3,1fr); }
  .logo-wall { grid-template-columns:repeat(3,1fr); }
  .logo-wall .logo:nth-child(6n) { border-right:1px solid var(--line); }
  .logo-wall .logo:nth-child(3n) { border-right:0; }
}
/* Mobile: collapse hero--xl to single column + reset image height */
@media (max-width: 960px) {
  .hero--xl .container { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 64px; }
  .hero--xl .hero__visual { align-self: auto; }
  .hero--xl .hero__visual img { min-height: auto; max-height: 360px; height: auto; aspect-ratio: 4/3; }
  .h-2xl { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero--xl .lead { font-size: 1rem; }
  .hero--xl .eyebrow { font-size: .72rem; letter-spacing: .12em; }
}
@media (max-width: 560px) {
  .strength__grid { grid-template-columns:1fr 1fr; }
  .cert-wall { grid-template-columns:repeat(2,1fr); }
  .logo-wall { grid-template-columns:repeat(2,1fr); }
  .logo-wall .logo:nth-child(3n) { border-right:1px solid var(--line); }
  .logo-wall .logo:nth-child(2n) { border-right:0; }
  .hero--xl .container { padding-top:48px; padding-bottom:56px; gap: 28px; }
  .hero--xl .hero__visual img { max-height: 280px; }
}
