/* ===== Home page — 1:1 SLT-style ===== */

/* ---------- Hero (warm dark brown + brushed metal effect) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: #fff;
  min-height: clamp(560px, 60vh, 680px);
  display: flex;
  align-items: center;
}
/* Dark scrim over the hero background. Sits ABOVE an (optional) Elementor
 * video background (z-index 0) but BELOW the hero content (z-index 2), so a
 * full-width video shows through while the white text stays readable.
 * Darker on the left (where the text lives), lighter on the right. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,24,20,.78) 0%, rgba(28,24,20,.58) 45%, rgba(28,24,20,.30) 100%);
  z-index: 1;
}
/* Hero background video — direct child of .hero, injected via JS.
 * Fills the hero exactly (full-width, clipped to hero height by overflow),
 * sits under the scrim (z-index 1) and content (z-index 2). */
.hero > .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-block: var(--space-16);
}
.hero-since {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.hero-since .label {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-2xl);
  color: #fff;
  white-space: nowrap;
  border-right: 2px solid rgba(255,255,255,.4);
  padding-right: var(--space-4);
}
.hero-since .certs {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  align-items: center;
}
.hero-since .certs .cert {
  height: 46px;
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex; align-items: center;
  box-shadow: var(--shadow-sm);
}
.hero-since .certs .cert img,
.hero-since .certs .cert svg { height: 100%; width: auto; display: block; }

.hero h1 {
  color: #fff;
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  max-width: 14ch;
  margin-bottom: var(--space-6);
}
.hero-usp {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.hero-usp li {
  display: flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.95);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: var(--fs-lg);
}
.hero-usp li::before {
  content: "»";
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero::before {
    background:
      linear-gradient(180deg, var(--hero-bg) 0%, rgba(20,17,14,.85) 100%),
      radial-gradient(600px 300px at 80% 30%, rgba(184,133,60,.45), transparent 60%),
      repeating-linear-gradient(115deg, #2a221b 0 12px, #1d1712 12px 24px);
  }
  .hero h1 { max-width: none; }
}

/* ---------- About preview (factory image + 22+ Years badge) ---------- */
.about-block {
  background: var(--bg-page);
  padding-block: var(--section-pad-y);
}
.about-block .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background:
    linear-gradient(135deg, #3a322a 0%, #5a4a3a 50%, #7a5e44 100%);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.78);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: var(--fs-lg);
}
.about-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(0,0,0,.18) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,0,0,.18) 38px 40px),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.35));
}
.about-visual > span { position: relative; z-index: 1; }
.about-badge {
  position: absolute;
  top: 22px; right: 22px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.about-badge .v {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 2.2rem;
  color: var(--brand-primary);
  line-height: 1;
}
.about-badge .l {
  font-family: var(--font-heading);
  font-size: .8rem;
  color: var(--text-dark);
  text-align: center;
  margin-top: .35rem;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}
.about-content h2 { font-size: var(--fs-3xl); margin-bottom: var(--space-5); font-weight: var(--fw-bold); }
.about-content p { margin-bottom: var(--space-4); line-height: var(--lh-loose); }
.about-content .adv {
  margin-top: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.about-content .adv li {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  color: var(--text-dark);
}

@media (max-width: 900px) {
  .about-block .container { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-badge { width: 100px; height: 100px; }
  .about-badge .v { font-size: 1.75rem; }
}

/* ---------- Workflow Track (8-step oval) ---------- */
.workflow {
  position: relative;
  margin-top: var(--space-8);
  padding-block: var(--space-12);
}
.workflow-track {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 5 / 2;
  border: 3px solid var(--brand-primary);
  border-radius: 50%;
  background: transparent;
}
.workflow-step {
  position: absolute;
  width: 16%;
  text-align: center;
  font-family: var(--font-heading);
  color: var(--text-dark);
}
.workflow-step .ring {
  width: 80px; height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.workflow-step .ring svg { width: 36px; height: 36px; }
.workflow-step .num {
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translate(-50%, 50%);
  background: var(--inquiry);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: .85rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.workflow-step .lbl {
  margin-top: var(--space-3);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  color: var(--text-dark);
}
/* Position 8 steps along the oval (top row 4, bottom row 4) */
.workflow-step.s1 { top: -20px;  left: 4%;  }
.workflow-step.s2 { top: -20px;  left: 26%; }
.workflow-step.s3 { top: -20px;  left: 48%; }
.workflow-step.s4 { top: -20px;  left: 70%; }
.workflow-step.s5 { bottom: -20px; left: 70%; }
.workflow-step.s6 { bottom: -20px; left: 48%; }
.workflow-step.s7 { bottom: -20px; left: 26%; }
.workflow-step.s8 { bottom: -20px; left: 4%;  }
/* Top numbers above, bottom numbers below — flip num position for bottom row */
.workflow-step.s1 .num,
.workflow-step.s2 .num,
.workflow-step.s3 .num,
.workflow-step.s4 .num { top: -6px; bottom: auto; transform: translate(-50%, -50%); }

@media (max-width: 1023px) {
  .workflow-track {
    aspect-ratio: auto;
    border: 0;
    background: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    padding: 0;
  }
  .workflow-step {
    position: static;
    width: auto;
  }
  .workflow-step .num { top: -6px; bottom: auto; transform: translate(-50%, -50%); }
}

/* ---------- Process videos (6 thumbnails with play button) ---------- */
.process-vids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8) var(--space-10);
  margin-top: var(--space-8);
}
.process-vid {
  text-align: center;
}
.process-vid .v-thumb {
  aspect-ratio: 1 / 1;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}
.process-vid:hover .v-thumb { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.process-vid .v-thumb::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-left: 22px solid var(--brand-primary);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
  opacity: .82;
}
.process-vid .v-thumb::before {
  content: "";
  position: absolute;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
  opacity: .55;
}
.process-vid .lbl {
  margin-top: var(--space-4);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-2xl);
  color: var(--text-dark);
}

@media (max-width: 900px) {
  .process-vids { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .process-vids { grid-template-columns: 1fr; gap: var(--space-6); }
  .process-vid .v-thumb { max-width: 180px; }
}

/* ---------- "What do you need to provide" split block ---------- */
.provide-block .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.provide-block .eyebrow {
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  letter-spacing: .04em;
  margin-bottom: var(--space-3);
}
.provide-block h2 { font-size: var(--fs-3xl); margin-bottom: var(--space-6); font-weight: var(--fw-bold); }
.provide-list {
  display: flex; flex-direction: column; gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.provide-list li {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}
.provide-list li svg {
  width: 22px; height: 22px;
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 4px;
}
.provide-list li strong { color: var(--text-dark); }
.provide-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-soft), var(--brand-primary-l));
  display: flex; align-items: center; justify-content: center;
}
.provide-visual img,
.provide-visual svg { width: 80%; max-height: 90%; object-fit: contain; }
@media (max-width: 900px) {
  .provide-block .container { grid-template-columns: 1fr; }
}

/* ---------- Sales CTA banner (warm tan, with avatar) ---------- */
.sales-cta {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  color: #fff;
}
.sales-cta .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-8);
  align-items: center;
}
.sales-avatar {
  width: 130px; height: 130px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #F1D9B5 0%, #C19A6B 60%, #8B6230 100%);
  display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 2rem;
  color: #fff;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.sales-avatar::before {
  content: "";
  position: absolute;
  top: 28%; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #F1D5A8;
}
.sales-avatar::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 90%; height: 60%;
  background: #2D1A0E;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

.sales-text h3 {
  color: #fff;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.sales-text p {
  color: rgba(255,255,255,.9);
  font-size: var(--fs-base);
  line-height: var(--lh-loose);
}
.sales-text p strong { color: #fff; }

@media (max-width: 900px) {
  .sales-cta .container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .sales-text { order: 2; }
  .sales-avatar { order: 1; }
}

/* ---------- Testimonials (carousel-look static) ---------- */
.testimonials {
  position: relative;
}
.testi-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.testi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.testi-card .head {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.testi-card .head strong { color: var(--text-dark); }
.testi-card .stars { color: var(--brand-primary); letter-spacing: 2px; }
.testi-card h4 { font-size: var(--fs-lg); color: var(--text-dark); }
.testi-card p { color: var(--text-body); font-size: var(--fs-sm); line-height: var(--lh-loose); }
.testi-card .reply {
  margin-top: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-body);
}
.testi-card .reply .biz {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: var(--space-2);
  font-weight: var(--fw-semibold);
  color: var(--text-dark);
}
.testi-card .reply .biz .ico {
  width: 28px; height: 28px;
  background: var(--brand-primary);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .75rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
}
.testi-dots {
  margin-top: var(--space-6);
  display: flex; justify-content: center; gap: 6px;
}
.testi-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.testi-dots span.is-active { background: var(--brand-primary); width: 22px; border-radius: 4px; }

@media (max-width: 900px) {
  .testi-rail { grid-template-columns: 1fr; }
}

/* ---------- Certifications row (7 documents) ---------- */
.cert-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-3);
}
.cert-doc {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 3px solid var(--brand-primary);
  padding: var(--space-2);
  display: flex; align-items: stretch;
  overflow: hidden;
  position: relative;
}
.cert-doc::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(255,255,255,.7)),
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(120,90,40,.06) 6px 7px),
    linear-gradient(180deg, #fbf6ec 0%, #efe1ce 100%);
}
.cert-doc .name {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--brand-primary-d);
  font-size: var(--fs-xs);
  text-align: center;
  width: 100%;
  padding: 4px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
}
.cert-doc::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-primary-l), transparent);
  opacity: .8;
}

@media (max-width: 900px) { .cert-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cert-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Inner page hero ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 80% 30%, rgba(178,107,71,.45), transparent 60%),
    linear-gradient(180deg, #3a322a 0%, #2D2620 100%);
  color: #fff;
  padding-block: clamp(4rem, 6vw, 5.5rem);
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-3); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 60ch; font-size: var(--fs-lg); }
.page-hero .crumbs { margin-bottom: var(--space-5); }

/* ---------- Tab/filter ---------- */
.filter-tabs {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  margin-bottom: var(--space-8);
  justify-content: center;
}
.filter-tabs button {
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-body);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  transition: all var(--dur) var(--ease);
}
.filter-tabs button:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.filter-tabs button.is-active {
  background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
}

/* ---------- Contact info card ---------- */
.contact-info {
  display: flex; flex-direction: column; gap: var(--space-4);
}
.contact-info .row {
  display: flex; gap: var(--space-4);
  padding: var(--space-5);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.contact-info .row .ico {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--brand-primary-l);
  color: var(--brand-primary);
  flex-shrink: 0;
}
.contact-info .row h5 { margin-bottom: .3rem; font-size: var(--fs-base); }
.contact-info .row p { font-size: var(--fs-sm); color: var(--text-muted); }
.map-stub {
  margin-top: var(--space-6);
  aspect-ratio: 16/9;
  background:
    linear-gradient(45deg, var(--bg-section) 25%, transparent 25%) 0 0/24px 24px,
    linear-gradient(-45deg, var(--bg-section) 25%, transparent 25%) 0 0/24px 24px,
    linear-gradient(45deg, transparent 75%, var(--bg-section) 75%) 0 0/24px 24px,
    linear-gradient(-45deg, transparent 75%, var(--bg-section) 75%) 0 0/24px 24px,
    var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
/* Real Google Map embed (replaces .map-stub via [tongyii_map]) */
.map-embed {
  margin-top: var(--space-6);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
