/* ==========================================================================
   Midas Packer — main stylesheet
   Brand colours: red / white / black. Change them once here in :root.
   Breakpoints: mobile < 640px · tablet 640–1023px · laptop/desktop ≥ 1024px
   ========================================================================== */

:root {
  /* Brand */
  --red: #D71920;            /* logo red – buttons, accents on white */
  --red-dark: #B3121A;       /* hover */
  --red-soft: #FDECEC;       /* tints */
  --red-on-dark: #FF6B6B;    /* red TEXT on black backgrounds (high contrast) */
  --black: #0E0E0F;
  --ink: #161618;            /* dark sections */
  --ink-2: #1E1E21;
  --white: #FFFFFF;

  /* Neutrals */
  --text: #1A1A1C;
  --muted: #5A5A63;
  --muted-on-dark: #C9C9CF;
  --line: #E7E7EA;
  --gray-bg: #F5F5F6;

  /* Type */
  --font-head: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 20, .06), 0 2px 8px rgba(16, 16, 20, .05);
  --shadow: 0 6px 24px rgba(16, 16, 20, .08);
  --shadow-lg: 0 18px 44px rgba(16, 16, 20, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
.lang-en body, body.lang-en { line-height: 1.6; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--black); letter-spacing: -.005em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--black); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1.2; text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(215, 25, 32, .28); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2a2e; }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: #f0f0f0; }
.btn-ghost { background: #fff; color: var(--black); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--black); }
.btn-outline { border-color: var(--line); color: var(--black); background: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-outline-light:hover { background: #fff; color: var(--black); border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; color: var(--red); font-family: var(--font-head); font-weight: 500; }
.link-arrow:hover { color: var(--red-dark); gap: .6em; }
.center-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 42px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; color: var(--black); }
.brand-text small { font-family: var(--font-head); font-weight: 600; font-size: .62rem; letter-spacing: .12em; color: var(--red); margin-top: 3px; }
@media (min-width: 1024px) { .brand img { width: 48px; } .brand-text strong { font-size: 1.3rem; } }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a { display: block; padding: 8px 14px; border-radius: 8px; font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--black); position: relative; }
.main-nav ul a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s var(--ease); }
.main-nav ul a:hover { color: var(--red); }
.main-nav ul a:hover::after, .main-nav ul a[aria-current]::after { transform: scaleX(1); }
.main-nav ul a[aria-current] { color: var(--red); }
.drawer-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: flex; align-items: center; gap: 10px; }
.hp-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.hp-icon .icon { width: 18px; height: 18px; }
.hp-text { display: flex; flex-direction: column; line-height: 1.15; }
.hp-text small { font-size: .72rem; color: var(--muted); }
.hp-text strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--black); white-space: nowrap; }
.header-phone:hover .hp-icon { background: var(--red); color: #fff; }
.lang-switch { display: flex; padding: 3px; background: var(--gray-bg); border-radius: 999px; border: 1px solid var(--line); }
.lang-switch a { min-width: 38px; padding: 5px 10px; border-radius: 999px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--muted); line-height: 1.3; }
.lang-switch a[aria-current] { background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(215, 25, 32, .35); }
.lang-switch a:not([aria-current]):hover { color: var(--black); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--black); color: #fff; place-items: center; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1180px) and (min-width: 1024px) {
  .main-nav ul a { padding: 8px 10px; font-size: .95rem; }
  .hp-text { display: none; }
}
@media (max-width: 1023px) {
  .nav-toggle { display: grid; }
  .hp-text { display: none; }
  .header-actions { margin-left: auto; gap: 10px; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: #fff;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 12px var(--gutter) 24px; border-top: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a::after { display: none; }
  .drawer-extra { display: grid; gap: 10px; margin-top: 18px; }
  .drawer-extra .btn { justify-content: flex-start; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 400px) {
  .brand-text strong { font-size: 1rem; }
  .brand img { width: 38px; }
  .hp-icon { width: 38px; height: 38px; }
  .nav-toggle { width: 38px; height: 38px; }
  .lang-switch a { min-width: 32px; padding: 4px 7px; }
  .header-actions { gap: 8px; }
}

/* ---------- Section heading (eyebrow / title / subtitle) ---------- */
.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; margin-left: auto; margin-right: auto; max-width: 760px; }
.sec-head--split { text-align: center; }
@media (min-width: 1024px) { .sec-head--split { text-align: left; } }
.eyebrow { margin: 0 0 8px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sec-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 700; margin: 0; }
.sec-sub { margin: 8px 0 0; font-size: 1.08rem; color: var(--red); font-weight: 500; }
.lang-th .eyebrow { letter-spacing: .02em; font-size: .9rem; }
.sec-head .sec-sub { color: var(--red); }
.sec-head--dark .eyebrow, .sec-head--dark .sec-sub { color: var(--red-on-dark); }
.sec-head--dark .sec-title { color: #fff; }

.section { padding: 72px 0; }
.section--tight { padding-top: 48px; }
.section--gray { background: var(--gray-bg); }
.section--dark { background: var(--ink); color: var(--muted-on-dark); }
@media (min-width: 1024px) { .section { padding: 100px 0; } .section--tight { padding-top: 64px; } }
.section-intro { max-width: 820px; margin: -12px auto 40px; text-align: center; color: var(--muted); font-size: 1.05rem; }
.section-intro--dark { color: var(--muted-on-dark); }
.lead { font-size: 1.1rem; color: var(--black); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 760px); display: flex; align-items: center; padding: 72px 0 96px; overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(8, 8, 10, .88) 0%, rgba(8, 8, 10, .66) 45%, rgba(8, 8, 10, .25) 100%),
  linear-gradient(0deg, rgba(8, 8, 10, .75) 0%, rgba(8, 8, 10, 0) 40%); }
.hero-content { max-width: calc(var(--container) + var(--gutter) * 2); }
.hero-title { color: #fff; font-weight: 700; font-size: clamp(2.2rem, 1.3rem + 4.2vw, 4.2rem); line-height: 1.15; margin-bottom: 18px; max-width: 16ch; text-wrap: balance; }
.hero-tagline { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, .95rem + .8vw, 1.55rem); color: var(--red-on-dark); margin-bottom: 14px; max-width: 34ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero-lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #E4E4E8; max-width: 52ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 639px) {
  .hero { min-height: auto; padding: 56px 0 64px; text-align: left; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 8, 10, .72) 0%, rgba(8, 8, 10, .82) 100%); }
  .hero-actions .btn { width: 100%; }
}

/* Highlights bar under hero */
.highlights { background: var(--black); color: #fff; }
.highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.hl { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hl { display: flex; align-items: center; gap: 14px; padding: 22px 16px; background: var(--black); }
.hl-value { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--red-on-dark); line-height: 1; min-width: 56px; }
.hl-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 107, 107, .12); color: var(--red-on-dark); flex: none; }
.hl-title { margin: 0; font-family: var(--font-head); font-weight: 500; color: #fff; line-height: 1.3; }
.hl-text { margin: 2px 0 0; font-size: .85rem; color: var(--muted-on-dark); line-height: 1.4; }
@media (min-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(4, 1fr); }
  .hl { border-bottom: 0; }
  .hl { padding: 30px 12px; }
  .hl + .hl { border-left: 1px solid rgba(255, 255, 255, .1); padding-left: 28px; }
  .hl-value { font-size: 2.4rem; }
}
@media (max-width: 479px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .hl { padding: 16px 4px; }
  .hl:last-child { border-bottom: 0; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; }
  .about-grid--reverse { grid-template-columns: .85fr 1.15fr; }
}
@media (max-width: 1023px) {
  .about-text { text-align: center; }
  .about-grid .about-visual { order: -1; }
  .about-grid--reverse .about-visual { order: -1; }
}
.about-text p { color: var(--muted); }
.about-text .lead { color: var(--black); }
.vision-mini { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--gray-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; text-align: left; }
.vision-mini h3 { font-size: 1.05rem; margin-bottom: 4px; }
.vision-mini p { margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 28px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--red); }
.stats span { font-size: .9rem; color: var(--muted); }
@media (max-width: 1023px) { .stats { justify-content: center; } .stats li { align-items: center; } }

.logo-showcase {
  position: relative; aspect-ratio: 1; width: min(100%, 460px); margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff 0%, #fff 55%, #F6F6F7 100%);
  box-shadow: 0 30px 60px rgba(16, 16, 20, .10), inset 0 0 0 1px var(--line);
}
.logo-showcase img { width: 72%; height: auto; }
.logo-showcase--xl { width: min(100%, 500px); }
@media (max-width: 1023px) { .logo-showcase, .logo-showcase--xl { width: min(60vw, 340px); } }
@media (max-width: 639px) { .logo-showcase { width: min(64vw, 260px); } }

/* ---------- Category cards (equal squares) ---------- */
.cat-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } .cat-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.cat-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(215, 25, 32, .35); }
.cat-media { aspect-ratio: 1 / 1; background: #F3F3F4; overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.04); }
.cat-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.cat-title { font-size: 1.3rem; margin-bottom: 2px; }
.cat-tag { color: var(--red); font-size: .92rem; font-weight: 500; margin-bottom: 14px; line-height: 1.45; }
.cat-list { display: grid; gap: 7px; margin-bottom: 18px; }
.cat-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; line-height: 1.45; color: var(--text); }
.cat-list .icon { color: var(--red); margin-top: .22em; }
.cat-list small { color: var(--muted); font-size: .85em; }
.cat-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-head); font-weight: 500; color: var(--red); }
.cat-card:hover .cat-more { gap: .65em; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Why cards ---------- */
.why-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } .why-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.why-card { text-align: center; padding: 36px 26px; background: var(--gray-bg); border-radius: var(--radius); border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s; }
.why-card--white { background: #fff; border-color: var(--line); }
.why-card:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow); border-color: var(--line); }
.why-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(215, 25, 32, .28); }
.why-icon .icon { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-card p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--red); box-shadow: 0 8px 24px rgba(215, 25, 32, .08); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--black); line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { background: var(--black); color: #fff; }
.faq-num { color: var(--red); margin-right: 2px; }
.faq-item[open] .faq-num { color: var(--red-on-dark); }
.faq-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gray-bg); color: var(--black); flex: none; transition: transform .25s var(--ease), background .2s; }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--red); color: #fff; }
.faq-a { padding: 18px 20px 20px; }
.faq-a p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; } }
.contact-form .field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .contact-form .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--black); }
.req { color: var(--red); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--gray-bg); font: inherit; font-size: 1rem; color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8C8C94; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(215, 25, 32, .12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); background: #FFF6F6; }
.hp-field { position: absolute; left: -9999px; }
.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.contact-list { display: grid; gap: 22px; margin-bottom: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red-soft); color: var(--red); flex: none; }
.contact-list h3 { font-size: 1rem; margin: 0 0 2px; }
.contact-list p { margin: 0; color: var(--muted); }
.contact-list a:hover { color: var(--red); }
.ci-strong { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--red) !important; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #E9EAEC; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-link { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border-radius: 8px; font-size: .85rem; font-weight: 500; box-shadow: var(--shadow); }
.map-link:hover { color: var(--red); }

/* ---------- Page hero (child pages) ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--ink); color: #fff; padding: 20px 0 56px; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 12, .80), rgba(10, 10, 12, .92)), url("../images/hero/hero-768.webp") center 60% / cover no-repeat; }
@media (min-width: 768px) { .page-hero-bg { background-image: linear-gradient(180deg, rgba(10, 10, 12, .78), rgba(10, 10, 12, .9)), url("../images/hero/hero-1280.webp"); } }
@media (min-width: 1024px) { .page-hero { padding: 24px 0 80px; } }
.page-hero .sec-head { margin: 36px auto 0; }
.page-hero .sec-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
.backbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.back-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.back-btn:hover { background: #fff; color: var(--black); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--muted-on-dark); }
.breadcrumb li + li::before { content: "/"; margin: 0 6px 0 2px; opacity: .5; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }
@media (max-width: 639px) { .breadcrumb { display: none; } }

/* Category tabs */
.cat-tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 50; }
.cat-tabs ul { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.cat-tabs ul::-webkit-scrollbar { display: none; }
.cat-tabs a { display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--black); transition: all .2s; }
.cat-tabs a:hover { border-color: var(--black); }
.cat-tabs a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }
@media (min-width: 1024px) { .cat-tabs ul { justify-content: center; } }

/* ---------- Product detail ---------- */
.product-list { display: grid; gap: 28px; }
.product { display: grid; gap: 28px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 72px); }
.product:target { border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 25, 32, .12), var(--shadow); }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; padding: 32px; align-items: start; } }
.product-gallery { display: grid; gap: 12px; }
@media (min-width: 900px) { .product-gallery { position: sticky; top: calc(var(--header-h) + 80px); } }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #F3F3F4; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery-main img.is-swapping { opacity: .3; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 88px)); gap: 10px; }
.gallery-thumb { position: relative; padding: 0; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); background: #F3F3F4; transition: border-color .2s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--red); }
.gallery-thumb span { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(14, 14, 15, .8); color: #fff; font-size: .7rem; font-weight: 600; }
.lang-th .product-brand { letter-spacing: .06em; }
.product-brand { margin: 0 0 4px; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.product-name { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 12px; }
.product-desc { color: var(--muted); font-size: 1.02rem; }
.product-block { margin-top: 22px; }
.product-block h3 { font-size: .95rem; font-weight: 600; margin-bottom: 10px; color: var(--black); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--red-soft); color: var(--red-dark); font-family: var(--font-head); font-weight: 500; font-size: .92rem; }
.checks { display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.checks .icon { color: #fff; background: var(--red); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 2px; }
.specs { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.specs div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { padding: 10px 14px; background: var(--gray-bg); font-weight: 500; font-size: .92rem; color: var(--black); }
.specs dd { margin: 0; padding: 10px 14px; font-size: .92rem; color: var(--text); }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 639px) { .product { padding: 16px; } .product-actions .btn { width: 100%; } }

/* ---------- Products overview ---------- */
.group-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--black); }
.group-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0; }
.group-head p { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 639px) { .group-head { flex-direction: column; align-items: center; text-align: center; } }
.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .tile-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .tile-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.p-tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.p-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(215, 25, 32, .35); }
.p-tile-media { aspect-ratio: 1; background: #F3F3F4; }
.p-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.p-tile-body { padding: 14px 16px 16px; flex: 1; }
.p-tile-cat { margin: 0 0 2px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.p-tile-name { font-size: 1.02rem; margin: 0 0 4px; line-height: 1.35; }
.p-tile-size { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 479px) { .p-tile-body { padding: 10px 12px 12px; } .p-tile-name { font-size: .95rem; } }

/* ---------- About page ---------- */
.vision-quote { margin: 0; padding: 36px 28px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(215, 25, 32, .16), rgba(215, 25, 32, .04)); border: 1px solid rgba(255, 107, 107, .3); text-align: center; }
.vision-quote p { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); line-height: 1.5; color: #fff; }
.mission-grid { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 640px) { .mission-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mission-grid { grid-template-columns: repeat(4, 1fr); } }
.mission-card { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.mission-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(215, 25, 32, .35); }
.mission-num { display: inline-block; margin-bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--red); }
.mission-card h3 { font-size: 1.12rem; }
.mission-card p { margin: 0; color: var(--muted); }
.closing { max-width: 820px; margin: 64px auto 0; text-align: center; }
.closing h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.closing p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-text h2 { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-bottom: 4px; }
.cta-text p { margin: 0; color: rgba(255, 255, 255, .92); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: var(--black); box-shadow: none; }
.cta-band .btn-primary:hover { background: #2a2a2e; }
@media (max-width: 1023px) { .cta-inner { flex-direction: column; text-align: center; } .cta-actions { justify-content: center; } }
@media (max-width: 479px) { .cta-actions { width: 100%; } .cta-actions .btn { width: 100%; } }

/* ---------- Status pages (thanks / 404) ---------- */
.status-page { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.status-icon { display: inline-grid; place-items: center; min-width: 88px; height: 88px; padding: 0 18px; margin-bottom: 20px; border-radius: 999px; background: var(--black); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; }
.status-icon--ok { background: var(--red); }
.status-icon .icon { width: 40px; height: 40px; }
.status-page .sec-head { margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--muted-on-dark); padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 48px; } }
.brand--light .brand-text strong { color: #fff; }
.brand--light .brand-text small { color: var(--red-on-dark); }
.logo-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.logo-badge img { width: 40px; }
.footer-company { margin: 18px 0 6px; color: #fff; font-weight: 500; }
.footer-title { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--red-on-dark); margin-top: .25em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #9A9AA2; }
.footer-bottom p { margin: 0; }
@media (max-width: 639px) { .footer-bottom { flex-direction: column; } }

/* ---------- Back-to-top ---------- */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(215, 25, 32, .35); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media print {
  .site-header, .to-top, .cta-band, .map, .contact-form { display: none !important; }
  .hero, .page-hero, .highlights, .site-footer { background: none !important; color: #000 !important; }
}
