/* ============================================================
   Waterclick — เทคโนโลยีการกรอง (Filtration Technology page)
   ------------------------------------------------------------
   Scoped stylesheet, enqueued only on the tech page (id 60420 /
   slug เทคโนโลยีการกรอง) — see waterclick_is_tech_page(). Same
   "precision dossier" design language as about.css: cool water-greys,
   red #D72127 as a rare accent, single font Prompt, system mono for
   spec numbers. Hand-authored flat CSS (mirror of scss/tech.scss).
   ============================================================ */

body.wc-tech{
  --ink:#0A2430;
  --ink-2:#3A5563;
  --ink-3:#6E8593;
  --paper:#F4F8FA;
  --surface:#FFFFFF;
  --mist:#DCE8ED;
  --mist-2:#EAF1F4;
  --red:#D72127;
  --red-deep:#B01015;
  --shadow:0 1px 2px rgba(10,36,48,.05), 0 8px 30px -12px rgba(10,36,48,.16);
  --shadow-lift:0 2px 4px rgba(10,36,48,.06), 0 26px 50px -20px rgba(10,36,48,.30);
  --r:14px; --r-lg:22px;
  --sans:"Prompt","Noto Sans Thai","Sarabun",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,"Cascadia Mono",monospace;
}

/* Full-width cool paper ground (on the wrapper, not .site-main — which is
   the ~1140px column and would float as a panel). */
body.wc-tech .site-content{ background:var(--paper); }
body.wc-tech .wp-block-cover.is-light .wp-block-cover__background{ background-color:var(--paper)!important; }
body.wc-tech .page-content{
  font-family:var(--sans);
  padding-bottom:clamp(48px,6vw,96px);
}

/* ---------- TYPOGRAPHY ---------- */
body.wc-tech .page-content p{
  font:400 clamp(15.5px,15px + .2vw,17px)/1.78 var(--sans);
  color:var(--ink-2);
}
body.wc-tech .page-content h2.wp-block-heading{
  color:var(--ink);
  font-family:var(--sans);
  font-weight:700;
  font-size:clamp(1.6rem,1.15rem + 1.9vw,2.4rem);
  line-height:1.22;
  letter-spacing:-.015em;
  margin:0 0 .5em;
}
body.wc-tech .page-content h3.wp-block-heading{
  color:var(--ink);
  font-family:var(--sans);
  font-weight:600;
  font-size:clamp(1.3rem,1.1rem + .9vw,1.7rem);
  line-height:1.28;
  letter-spacing:-.01em;
}
/* A centred red seal rule under centred section headings — the page's
   recurring accent, alignment-safe because the rule centres itself. */
body.wc-tech .page-content h2.wp-block-heading.has-text-align-center::after,
body.wc-tech .page-content h3.wp-block-heading.has-text-align-center::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  border-radius:2px;
  background:var(--red);
  margin:18px auto 0;
}
body.wc-tech .page-content a{
  color:var(--red-deep);
  text-underline-offset:2px;
}

/* ---------- SECTION RHYTHM ----------
   The rebuild dropped the original spacer blocks, so sections collided.
   Put a big gap BEFORE each section heading (and before a section's eyebrow
   when it has one); the heading then hugs its own eyebrow. Card/plate blocks
   get bottom air too, so nothing touches the next heading. */
body.wc-tech .page-content h2.wp-block-heading,
body.wc-tech .page-content h3.wp-block-heading,
body.wc-tech .page-content p.wc-eyebrow.has-text-align-center{
  margin-top:clamp(60px,6.5vw,110px);
}
body.wc-tech .page-content p.wc-eyebrow.has-text-align-center + h2.wp-block-heading,
body.wc-tech .page-content p.wc-eyebrow.has-text-align-center + h3.wp-block-heading{
  margin-top:14px;
}
body.wc-tech .page-content .wc-features,
body.wc-tech .page-content .wc-layers,
body.wc-tech .page-content .wc-jpgrid,
body.wc-tech .page-content .wc-certs,
body.wc-tech .page-content .wc-plate,
body.wc-tech .page-content .wc-lead{
  margin-bottom:clamp(20px,2.4vw,40px);
}
/* Space between the hero and the leadership two-column below it. */
body.wc-tech .page-content .wc-tech-hero + .wc-tech-hero{
  margin-top:clamp(28px,3vw,48px);
}

/* ---------- FIGURES — core images as framed plates ---------- */
/* Only core/image figures (large photos); GenerateBlocks icons/graphics
   below are left bare. */
body.wc-tech .page-content figure.wp-block-image img{
  border-radius:var(--r);
  border:1px solid var(--mist);
  background:var(--surface);
  box-shadow:var(--shadow);
}
body.wc-tech .page-content figure.wp-block-image figcaption{
  margin-top:.7em;
  font:500 13px/1.5 var(--sans);
  color:var(--ink-3);
  text-align:center;
}

/* WP wraps core/group content in an inner-container — collapse it so the
   real content joins the grid/flex layouts below. */
body.wc-tech .page-content .wc-features > .wp-block-group__inner-container,
body.wc-tech .page-content .wc-feature > .wp-block-group__inner-container,
body.wc-tech .page-content .wc-layers > .wp-block-group__inner-container,
body.wc-tech .page-content .wc-layer > .wp-block-group__inner-container,
body.wc-tech .page-content .wc-jpgrid > .wp-block-group__inner-container,
body.wc-tech .page-content .wc-jpcard > .wp-block-group__inner-container,
body.wc-tech .page-content .wc-certs > .wp-block-group__inner-container,
body.wc-tech .page-content .wc-cert > .wp-block-group__inner-container,
body.wc-tech .page-content .wc-cta > .wp-block-group__inner-container{
  display:contents;
}

/* ---------- HERO (text + image split) ---------- */
body.wc-tech .page-content .wc-tech-hero{
  gap:clamp(24px,4vw,60px);
  align-items:center;
  margin:clamp(20px,2.5vw,36px) auto 0;
}
body.wc-tech .page-content p.wc-eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--red);
  margin:0 0 14px;
}
body.wc-tech .page-content .wc-hero-title{
  font-family:var(--sans);
  font-weight:700;
  font-size:clamp(1.8rem,1.2rem + 2.4vw,2.8rem);
  line-height:1.16;
  letter-spacing:-.02em;
  color:var(--ink);
  margin:0 0 .5em;
}
body.wc-tech .page-content .wc-hero-title::after{ display:none; }
body.wc-tech .page-content p.wc-hero-lead{
  font-size:clamp(16px,15px + .45vw,18px);
  line-height:1.72;
  color:var(--ink-2);
  margin:0;
}
body.wc-tech .page-content .wc-hero-img img{
  width:100%;
  border-radius:var(--r-lg);
  border:1px solid var(--mist);
  box-shadow:var(--shadow-lift);
}

/* ---------- Section lead (centred paragraph under a heading) ---------- */
body.wc-tech .page-content .wc-lead{
  max-width:760px;
  margin:1.2em auto 0;
  text-align:center;
  color:var(--ink-2);
}

/* ---------- FEATURE CARDS (the 4 highlights + japan-tech) ---------- */
body.wc-tech .page-content .wc-features,
body.wc-tech .page-content .wc-jpgrid{
  display:grid;
  gap:clamp(16px,1.6vw,22px);
  margin-top:clamp(28px,3vw,44px);
}
body.wc-tech .page-content .wc-features{ grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
body.wc-tech .page-content .wc-jpgrid{ grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
body.wc-tech .page-content .wc-feature,
body.wc-tech .page-content .wc-jpcard{
  display:flex;
  flex-direction:column;
  gap:12px;
  background:var(--surface);
  border:1px solid var(--mist);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow);
  padding:clamp(24px,2.2vw,32px);
  transition:box-shadow .2s ease, transform .2s ease;
}
body.wc-tech .page-content .wc-feature:hover,
body.wc-tech .page-content .wc-jpcard:hover{
  box-shadow:var(--shadow-lift);
  transform:translateY(-3px);
}
body.wc-tech .page-content .wc-feature .gb-block-image,
body.wc-tech .page-content .wc-feature figure.wp-block-image{ margin:0; }
body.wc-tech .page-content .wc-feature img{
  width:64px; height:64px; object-fit:contain;
  margin:0; border:0; box-shadow:none; border-radius:0; background:transparent;
}
body.wc-tech .page-content .wc-feature .wc-feat-title,
body.wc-tech .page-content .wc-jpcard .wc-feat-title{
  font-weight:700; font-size:1.12rem; color:var(--ink); margin:0; line-height:1.35;
}
body.wc-tech .page-content .wc-feature p,
body.wc-tech .page-content .wc-jpcard p{ margin:0; font-size:15px; line-height:1.7; }
/* Japan-tech cards lead with a photo. */
body.wc-tech .page-content .wc-jpcard figure.wp-block-image,
body.wc-tech .page-content .wc-jpcard .gb-block-image{ margin:0 0 6px; }
body.wc-tech .page-content .wc-jpcard img{
  width:100%; border-radius:var(--r); border:0; box-shadow:none; background:transparent;
}

/* ---------- 4-LAYER FILTRATION STEPS ---------- */
body.wc-tech .page-content .wc-layers{
  display:flex; flex-direction:column; gap:clamp(14px,1.6vw,20px);
  margin-top:clamp(24px,2.6vw,36px);
  counter-reset:layer;
}
body.wc-tech .page-content .wc-layer{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:clamp(18px,2vw,32px);
  align-items:center;
  background:var(--surface);
  border:1px solid var(--mist);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow);
  padding:clamp(18px,1.8vw,26px);
}
body.wc-tech .page-content .wc-layer img{
  width:100%; border-radius:var(--r); border:0; box-shadow:none; background:var(--mist-2);
}
body.wc-tech .page-content .wc-layer .wc-layer-body{ min-width:0; }
body.wc-tech .page-content .wc-layer .wc-feat-title{
  font-weight:700; color:var(--ink); font-size:1.08rem; margin:0 0 .35em; line-height:1.4;
  display:flex; align-items:baseline; gap:.5em;
}
body.wc-tech .page-content .wc-layer .wc-feat-title::before{
  counter-increment:layer; content:counter(layer);
  font-family:var(--mono); font-weight:600; font-size:.85em; color:var(--red);
  border:1.5px solid var(--red); border-radius:50%;
  width:1.7em; height:1.7em; flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
}
body.wc-tech .page-content .wc-layer p{ margin:0; font-size:14.5px; line-height:1.7; }
@media (max-width:640px){
  body.wc-tech .page-content .wc-layer{ grid-template-columns:1fr; text-align:center; }
  body.wc-tech .page-content .wc-layer .wc-feat-title{ justify-content:center; }
  body.wc-tech .page-content .wc-layer img{ max-width:160px; margin:0 auto; }
}

/* ---------- CERTS & AWARDS (logo cards) ---------- */
body.wc-tech .page-content .wc-certs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:clamp(16px,1.6vw,22px);
  margin-top:clamp(24px,2.6vw,36px);
}
body.wc-tech .page-content .wc-cert{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px;
  background:var(--surface); border:1px solid var(--mist); border-radius:var(--r-lg);
  box-shadow:var(--shadow); padding:clamp(24px,2.4vw,34px) clamp(20px,2vw,28px);
}
body.wc-tech .page-content .wc-cert figure.wp-block-image{ margin:0; }
body.wc-tech .page-content .wc-cert img{
  height:76px; width:auto; object-fit:contain;
  margin:0; border:0; box-shadow:none; border-radius:0; background:transparent;
}
body.wc-tech .page-content .wc-cert .wc-cert-ph{
  height:76px; width:76px; border-radius:12px; border:1.5px dashed var(--mist);
  display:flex; align-items:center; justify-content:center;
  font:600 11px/1.3 var(--mono); color:var(--ink-3); text-align:center; padding:6px;
}
body.wc-tech .page-content .wc-cert .wc-feat-title{ font-weight:700; color:var(--ink); font-size:1rem; margin:0; }
body.wc-tech .page-content .wc-cert p{ margin:0; font-size:14px; line-height:1.6; color:var(--ink-3); }

/* ---------- CTA ---------- */
body.wc-tech .page-content .wc-cta{
  text-align:center;
  background:var(--surface);
  border:1px solid var(--mist);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow);
  padding:clamp(36px,4vw,60px) clamp(24px,3vw,48px);
  margin-top:clamp(40px,4vw,64px);
}
body.wc-tech .page-content .wc-cta h2.wp-block-heading::after{ margin-left:auto; margin-right:auto; }
body.wc-tech .page-content .wc-cta p{ max-width:640px; margin-inline:auto; }
body.wc-tech .page-content .wc-cta .gb-button,
body.wc-tech .page-content .wc-cta .wp-block-button__link{
  display:inline-block;
  margin-top:26px;
  background:var(--red)!important;
  color:#fff!important;
  font-weight:600;
  border:0;
  border-radius:999px;
  padding:15px 40px;
  text-decoration:none;
  transition:background .2s ease, transform .2s ease;
}
body.wc-tech .page-content .wc-cta .gb-button:hover,
body.wc-tech .page-content .wc-cta .wp-block-button__link:hover{
  background:var(--red-deep)!important;
  transform:translateY(-2px);
}

/* Strip the base plate frame from images inside the card components (higher
   specificity than the generic figure.wp-block-image rule) — logos/icons sit
   bare; photos keep only their rounded corners. */
body.wc-tech .page-content .wc-cert figure.wp-block-image img,
body.wc-tech .page-content .wc-feature figure.wp-block-image img{
  border:0; box-shadow:none; border-radius:0; background:transparent;
}
body.wc-tech .page-content .wc-jpcard figure.wp-block-image img{
  border:0; box-shadow:none; background:transparent; border-radius:var(--r);
}
body.wc-tech .page-content .wc-layer figure.wp-block-image img{
  border:0; box-shadow:none; background:var(--mist-2); border-radius:var(--r);
}

/* ---------- Big content images (lab, structure) as plates ---------- */
body.wc-tech .page-content .wc-plate img{
  border-radius:var(--r-lg); border:1px solid var(--mist);
  box-shadow:var(--shadow); background:var(--surface);
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion:reduce){
  body.wc-tech *{ transition:none!important; }
}
