/* =============================================================
   SHUNLITA — main stylesheet
   Palette from SHUNLITA brand assets: deep navy + leaf green
   ============================================================= */

:root {
  --navy:        #0a2342;
  --navy-light:  #143a6b;
  --green:       #2e9e4f;
  --green-dark:  #1f7a3a;
  --green-light: #e6f5ea;
  --ink:         #1f2937;
  --muted:       #6b7280;
  --bg:          #f7f9fb;
  --white:       #ffffff;
  --border:      #e5e7eb;
  --radius:      12px;
  --shadow:      0 4px 18px rgba(10, 35, 66, .08);
  --shadow-lg:   0 10px 32px rgba(10, 35, 66, .16);
  --font: 'Sarabun', 'Segoe UI', 'Leelawadee UI', 'Noto Sans Thai', Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* The `hidden` attribute must always win over class rules that set a
   `display` value (.lightbox-overlay, .cookie-popup, .grid all do), otherwise
   those elements render on page load even while marked hidden. */
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
ul { list-style: none; }

.container { width: min(1160px, 92%); margin-inline: auto; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 35, 66, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  color: var(--white); font-weight: 700; font-size: 1.25rem; letter-spacing: .5px;
}
.brand:hover { color: var(--white); }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-leaf { font-size: 1.6rem; }
.brand-text small {
  display: block; font-size: .62rem; font-weight: 400;
  color: #9fd4ae; letter-spacing: 1px; line-height: 1.1;
}
.nav-menu { display: flex; align-items: center; gap: .15rem; }
.nav-menu a {
  color: #d3dce8; padding: .5rem .7rem; border-radius: 8px;
  font-size: .92rem; white-space: nowrap; transition: color .2s, background .2s;
}
.nav-menu a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav-menu a.active { color: var(--white); background: var(--green); }

/* Dropdown (Media) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--navy); border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.3); padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; }
.lang-switch { display: flex; align-items: center; gap: .15rem; margin-left: .5rem; color: #7a8aa3; }
.lang-switch a { padding: .35rem .5rem; font-size: .85rem; }
.lang-switch a.active { background: rgba(255,255,255,.14); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--white);
  margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 62vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  color: var(--white); text-align: center;
}
.hero-small { min-height: 38vh; }
.hero-content { padding: 4.5rem 0; }
.hero-title {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  font-weight: 800; line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.hero-sub {
  margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.2rem);
  color: #dbe6f2; max-width: 720px; margin-inline: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); }
.section-title::after {
  content: ""; display: block; width: 64px; height: 4px;
  background: var(--green); border-radius: 2px; margin: .8rem auto 0;
}
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 2rem auto 0; }
.section-body { margin-top: 2.5rem; }
.lead { font-size: 1.06rem; max-width: 820px; margin-inline: auto; text-align: center; color: #374151; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .78rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: .97rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { color: var(--green-dark); }
.btn-sm { padding: .5rem 1.15rem; font-size: .88rem; }

/* ---------- Cards / product grid ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; cursor: zoom-in; background: var(--green-light); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { color: var(--navy); font-size: 1.15rem; margin-bottom: .45rem; }
.card-text {
  color: var(--muted); font-size: .93rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-actions { margin-top: 1.1rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.badge {
  display: inline-block; background: var(--green-light); color: var(--green-dark);
  font-size: .75rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px;
  margin-bottom: .5rem; width: fit-content;
}

/* ---------- Why-us feature tiles ---------- */
.feature {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem;
  text-align: center; box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform .25s;
  margin-top: 2rem;
}
.feature:hover { transform: translateY(-5px); }
.feature-icon { font-size: 2.4rem; }
.feature h3 { color: var(--navy); font-size: 1.08rem; margin: .8rem 0 .5rem; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid img {
  border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover;
  width: 100%; cursor: zoom-in; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.gallery-grid img:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 1rem; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green); font-size: 1.5rem; font-weight: 700; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--green-dark); }
.faq-answer { padding: 0 1.4rem 1.3rem; color: #374151; }

/* ---------- News cards ---------- */
.news-meta { color: var(--muted); font-size: .82rem; margin-bottom: .5rem; }
.news-article { max-width: 820px; margin-inline: auto; }
.news-article .news-body { margin-top: 1.4rem; color: #374151; }
.news-article img.news-hero { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.6rem; cursor: zoom-in; }

/* ---------- Thumbnail row (service galleries, etc.) ---------- */
.thumb-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.thumb-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: zoom-in; box-shadow: var(--shadow); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-light) 55%, var(--green-dark));
  color: var(--white); text-align: center; padding: 4rem 0; margin-top: 2rem;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { margin: .8rem 0 1.6rem; color: #cfe3d6; }

/* ---------- Info table (about page) ---------- */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { padding: .95rem 1.3rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.info-table th { width: 32%; background: #f0f4f8; color: var(--navy); font-weight: 600; white-space: nowrap; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); cursor: zoom-in; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.2rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .93rem; }
.form-control {
  width: 100%; padding: .72rem .95rem; border: 1.5px solid var(--border);
  border-radius: 9px; font-family: inherit; font-size: .95rem; background: #fcfdfe;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 158, 79, .15); }
textarea.form-control { min-height: 140px; resize: vertical; }

.alert { padding: .95rem 1.2rem; border-radius: 9px; margin-bottom: 1.3rem; font-size: .94rem; }
.alert-success { background: #e7f6ec; color: #196b33; border: 1px solid #b7e2c4; }
.alert-error   { background: #fdecec; color: #a02121; border: 1px solid #f3c1c1; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9c6d8; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer h4 { color: var(--white); margin-bottom: .9rem; }
.footer-brand { color: var(--white); font-size: 1.35rem; margin-bottom: .7rem; }
.footer p { font-size: .9rem; margin-bottom: .45rem; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col a { color: #b9c6d8; font-size: .92rem; }
.footer-col a:hover { color: var(--white); }
.footer-admin-link { font-size: .8rem !important; color: #6d7f96 !important; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 0; text-align: center; }
.footer-bottom p { font-size: .82rem; color: #8194ab; }

/* ---------- PDPA cookie popup ---------- */
.cookie-popup {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 300;
  padding: 1rem; display: flex; justify-content: center;
  /* Deliberately NO `both` fill mode. This banner is un-hidden by JS after
     load, and with `both` the element holds the `from` keyframe
     (translateY(110%) = off-screen, accept button unclickable) until the
     animation actually runs. Default fill means the resting position is the
     base style — on screen — and the slide-up is purely decorative. Never let
     a control's reachability depend on an animation completing. */
  animation: cookieUp .5s ease;
}
@keyframes cookieUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cookie-popup { animation: none; } }
.cookie-box {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); max-width: 680px; padding: 1.4rem 1.6rem;
}
.cookie-box h4 { color: var(--navy); margin-bottom: .4rem; }
.cookie-box p { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(5, 15, 30, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem; animation: fadeIn .25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img {
  max-width: 92vw; max-height: 82vh; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  animation: zoomIn .3s ease both;
}
@keyframes zoomIn { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.6rem;
  background: none; border: 0; color: var(--white); font-size: 2.6rem;
  cursor: pointer; line-height: 1; opacity: .85;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption { color: #cbd7e4; margin-top: 1rem; font-size: .95rem; }

/* ---------- Scroll-reveal animations ----------
   Hidden state is gated on html.js (set by main.js) so content
   stays visible when JavaScript is unavailable. */
.reveal, .reveal-left, .reveal-right { transition: opacity .7s ease, transform .7s ease; }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal-left  { opacity: 0; transform: translateX(-36px); }
html.js .reveal-right { opacity: 0; transform: translateX(36px); }
html.js .reveal.visible, html.js .reveal-left.visible, html.js .reveal-right.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* Hero entrance (no scroll needed) */
.anim-fade-up { animation: fadeUp .9s ease both; }
.anim-delay-1 { animation-delay: .25s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  .anim-fade-up { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

/* Nav collapses to a hamburger earlier (900px) because there are 8 items */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: .8rem 1.2rem 1.2rem; gap: .2rem;
    display: none; box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: .8rem 1rem; }
  .lang-switch { margin-left: 0; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.12); }
  /* Dropdown flattens into the stacked menu on mobile */
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.05); border-radius: 8px;
    margin: .2rem 0 .2rem .8rem; padding: .2rem;
  }
  .dropdown-toggle { pointer-events: none; opacity: .75; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
}

@media (max-width: 700px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .section { padding: 3rem 0; }
  .form-card { padding: 1.5rem; }
}

/* =====================================================================
   20. Top contact bar + language switcher
   ===================================================================== */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 38px; flex-wrap: wrap;
}
.topbar-item a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar-item a:hover { color: #fff; }
.topbar-lang { margin-inline-start: auto; display: flex; gap: .4rem; align-items: center; }
.topbar-lang a {
  color: rgba(255,255,255,.7); text-decoration: none;
  padding: .1rem .45rem; border-radius: 4px; line-height: 1.6;
}
.topbar-lang a:hover { color: #fff; background: rgba(255,255,255,.12); }
.topbar-lang a.active { color: var(--navy); background: #fff; font-weight: 600; }

/* Nav call-to-action pill */
.nav-menu .nav-cta {
  background: var(--green); color: #fff !important;
  padding: .45rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.nav-menu .nav-cta:hover { background: var(--green-dark); }
.nav-menu .nav-cta::after { display: none; }

/* Ghost button */
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); border-color: var(--muted); }

.footer-reg { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: .6rem; }

/* =====================================================================
   21. Google Translate — suppress the injected banner
   Google inserts a 40px top banner and shifts <body> down. Left alone it
   breaks the sticky navbar. Hide its chrome; keep the widget functional.
   ===================================================================== */
#google_translate_element { display: none !important; }
.goog-te-banner-frame,
.goog-te-gadget-icon,
iframe.skiptranslate { display: none !important; }
body { top: 0 !important; }              /* undo Google's body offset */
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

@media (max-width: 700px) {
  .topbar-inner { justify-content: center; gap: .75rem; font-size: .76rem; }
  .topbar-lang { margin-inline-start: 0; }
}

/* =====================================================================
   22. Components added for the 10-page rebuild
   Every class used in the templates is defined here or above. The previous
   build referenced .hero-section/.img-zoom/.btn-outline-gold that existed
   nowhere — do not reintroduce undefined classes.
   ===================================================================== */

/* Utilities */
.center     { text-align: center; }
.mt-2       { margin-top: 1.5rem; }
.section-tight { padding-block: 2rem; }

/* Buttons: size + accent variants layered on the base .btn */
.btn-lg { padding: .85rem 1.9rem; font-size: 1.02rem; }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-dark); color: #fff; }

/* Navy band (stats) */
.section-navy { background: var(--navy); color: #fff; padding-block: 3rem; }
.section-navy .stat-num { color: #fff; }
.section-navy .stat-label { color: rgba(255,255,255,.75); }

/* Stats */
.stats { text-align: center; }
.stat-num {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800; color: var(--green); line-height: 1.15;
}
.stat-label { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* Feature icon (homepage strengths) */
.card-icon { font-size: 2.2rem; line-height: 1; margin-bottom: .75rem; }

/* Product card */
.product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--green-light); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-body h3 { font-size: 1.06rem; color: var(--navy); margin: 0; }
.product-body p  { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.badge-grade {
  position: absolute; top: .6rem; inset-inline-start: .6rem;
  background: var(--green); color: #fff;
  font-size: .72rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 999px;
}

/* News card */
.news-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.news-body h3 { font-size: 1.02rem; color: var(--navy); margin: 0; }
.news-body p  { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.news-date { font-size: .78rem; color: var(--green-dark); font-weight: 600; }

/* Inline "read more" link */
.link-more {
  align-self: flex-start; margin-top: .3rem;
  font-size: .86rem; font-weight: 600; color: var(--green-dark);
  text-decoration: none;
}
.link-more:hover { text-decoration: underline; }

/* Empty state */
.empty-state {
  text-align: center; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 2.5rem 1rem;
}

/* Footer text blocks */
.footer-desc, .footer-contact { font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.75; }
.footer-contact a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: #fff; }

/* Two-column grid (used by contact/partners) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* =====================================================================
   23. Catalog controls, spec lists, mission list
   ===================================================================== */
.catalog-controls {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--border); background: var(--white);
  color: var(--ink); font-family: inherit; font-size: .86rem;
  padding: .4rem 1rem; border-radius: 999px; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.search-input { max-width: 260px; }

.spec-list { list-style: none; padding: 0; margin: .35rem 0 0; }
.spec-list li {
  font-size: .82rem; color: var(--muted);
  padding-inline-start: 1rem; position: relative; margin-bottom: .25rem;
}
.spec-list li::before {
  content: '✔'; position: absolute; inset-inline-start: 0;
  color: var(--green); font-size: .72rem;
}
.product-unit { font-size: .8rem; color: var(--navy); font-weight: 600; margin: .35rem 0 .6rem !important; }

.mission-list { list-style: none; padding: 0; margin: 0; }
.mission-list li {
  position: relative; padding-inline-start: 1.15rem;
  margin-bottom: .5rem; font-size: .92rem; color: var(--ink);
}
.mission-list li::before {
  content: '•'; position: absolute; inset-inline-start: 0;
  color: var(--green); font-weight: 700;
}

@media (max-width: 700px) {
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .search-input { max-width: none; }
}

/* =====================================================================
   24. Certifications
   ===================================================================== */
.cert-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.cert-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .9rem; }
.cert-icon { font-size: 2rem; line-height: 1; }
.cert-head h3 { margin: 0; color: var(--navy); font-size: 1.3rem; letter-spacing: .02em; }
.cert-fullname { margin: .1rem 0 0; font-size: .82rem; color: var(--green-dark); font-weight: 600; }
.cert-th { margin: .1rem 0 0; font-size: .82rem; color: var(--muted); }
.cert-desc { font-size: .9rem; color: var(--ink); margin: 0 0 .8rem; }
.cert-scope {
  font-size: .78rem; color: var(--navy); background: var(--green-light);
  display: inline-block; padding: .25rem .7rem; border-radius: 999px; margin: 0;
}
.cert-note {
  margin-top: 1.75rem; text-align: center;
  font-size: .86rem; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 1rem;
}

/* =====================================================================
   25. Cold-chain timeline
   ===================================================================== */
.timeline { display: grid; gap: 1rem; }
.timeline-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem;
  background: var(--white); border: 1px solid var(--border);
  border-inline-start: 4px solid var(--green);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
}
.timeline-num {
  font-size: 1.6rem; font-weight: 800; color: var(--green);
  opacity: .45; line-height: 1;
}
.timeline-body h3 { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--navy); }
.timeline-icon { margin-inline-end: .3rem; }
.timeline-body p { margin: 0 0 .6rem; font-size: .9rem; color: var(--muted); }
.timeline-temp {
  font-size: .78rem; font-weight: 600; color: var(--navy);
  background: var(--green-light); padding: .25rem .7rem; border-radius: 999px;
}

/* =====================================================================
   26. Incoterms
   ===================================================================== */
.incoterm-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.incoterm-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.incoterm-code {
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: .5rem .9rem; border-radius: 8px; letter-spacing: .04em;
}
.incoterm-head h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.incoterm-th { margin: .1rem 0 0; font-size: .82rem; color: var(--muted); }
.incoterm-card > p { font-size: .9rem; color: var(--ink); }
.incoterm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.incoterm-split h4 {
  font-size: .82rem; color: var(--navy); margin: 0 0 .4rem;
  padding-bottom: .3rem; border-bottom: 1px solid var(--border);
}
.spec-list-neutral li::before { content: '•'; color: var(--muted); }
@media (max-width: 560px) { .incoterm-split { grid-template-columns: 1fr; } }

/* =====================================================================
   27. Gallery items
   ===================================================================== */
.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  cursor: zoom-in; transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10,35,66,.85));
  color: #fff; font-size: .85rem; padding: 1.5rem .8rem .7rem;
}

/* =====================================================================
   28. Seasonal calendar
   ===================================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.season-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 680px; }
.season-table th, .season-table td {
  border: 1px solid var(--border); padding: .5rem .35rem; text-align: center;
}
.season-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.season-fruit { text-align: start !important; white-space: nowrap; background: var(--bg); font-weight: 600; color: var(--navy); }
.season-peak { background: var(--green); color: #fff; font-weight: 700; font-size: .72rem; }
.season-in   { background: var(--green-light); color: var(--green-dark); }
.season-off  { background: var(--white); }
.season-legend {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  flex-wrap: wrap; margin-top: 1rem; font-size: .8rem; color: var(--muted);
}
.legend-swatch {
  width: 16px; height: 16px; border: 1px solid var(--border);
  border-radius: 3px; display: inline-block; margin-inline-start: .75rem;
}

/* =====================================================================
   29. Forms, pagination, policy, map
   ===================================================================== */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.req { color: #dc2626; }
.muted-note { font-size: .8rem; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pagination .chip { text-decoration: none; }

.map-wrap {
  margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 16 / 10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  margin-top: 1.25rem; padding: 1.25rem; text-align: center;
  font-size: .86rem; color: var(--muted);
  background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius);
}

.policy { max-width: 820px; }
.policy h2 { font-size: 1.15rem; color: var(--navy); margin: 1.75rem 0 .6rem; }
.policy p, .policy li { font-size: .92rem; color: var(--ink); line-height: 1.85; }
.policy ul { padding-inline-start: 1.25rem; }
.policy li { margin-bottom: .3rem; }

/* =====================================================================
   30. Info card — padded, left-aligned, equal-height (Vision / Mission)
   NOTE: plain `.card` has NO padding of its own — its padding lives in
   `.card-body`. Using `.card` with direct children makes the text sit flush
   against the edges. Use `.feature` for centred tiles, or `.info-card` here
   for left-aligned prose/lists.
   ===================================================================== */
.info-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  height: 100%;                 /* fill the grid row → both cards align */
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.info-card .card-icon { font-size: 2.4rem; line-height: 1; margin-bottom: .6rem; }
.info-card h3 { color: var(--navy); font-size: 1.15rem; margin: 0 0 .6rem; }
.info-card p  { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.85; }

/* Equal-height cards need the grid to stretch, not centre. `.split` sets
   align-items:center because it is built for text+image pairs. */
.grid-2.cards-equal { align-items: stretch; }

@media (max-width: 700px) {
  .info-card { padding: 1.5rem 1.35rem; }
}

/* Footer bottom links (cookie settings / privacy / admin) */
.footer-bottom-links { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.footer-bottom-links a { font-size: .8rem; color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }
@media (max-width: 700px) {
  .footer-bottom-links { justify-content: center; }
}

/* =========================================
   Hero Video Background Styles
========================================= */
.hero.has-video {
  position: relative;
  overflow: hidden;
  background: transparent; /* ยกเลิกสีพื้นหลังเดิมเมื่อมีวิดีโอ */
}

/* จัดให้วิดีโออยู่กึ่งกลางและครอบคลุมเต็มพื้นที่ */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover; 
}

/* แผ่นฟิล์มสีน้ำเงิน เพื่อให้ตัวอักษรอ่านง่าย (จำลองจาก linear-gradient เดิม) */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(10,35,66,.62), rgba(10,35,66,.72));
  z-index: 1;
}

/* ดันเนื้อหาให้อยู่เหนือสุด */
.hero.has-video .hero-content {
  position: relative;
  z-index: 2; 
}
