:root {
  --navy: #1c2b56;
  --navy-dark: #14203f;
  --red: #e02226;
  --orange: #f26f21;
  --gold: #d9a441;
  --maroon: #5a1f2b;
  --cream: #faf7f2;
  --ink: #22252b;
  --muted: #6b7080;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 32, 63, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'Prompt', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4, .logo-text, .btn { font-family: 'Prompt', 'Sarabun', sans-serif; }

img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee6da;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 9px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 22px; font-family: 'Prompt', sans-serif;
}
.logo-text { color: var(--navy); font-weight: 700; font-size: 21px; letter-spacing: 1px; }
.logo-text small { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 500; }
nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
nav a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 16px; }
nav a:hover, nav a.active { color: var(--red); }
.lang-toggle {
  border: 1.5px solid var(--navy); background: none; color: var(--navy);
  border-radius: 20px; padding: 5px 14px; font-weight: 600; cursor: pointer; font-size: 14px;
  font-family: 'Prompt', sans-serif;
}
.lang-toggle:hover { background: var(--navy); color: #fff; }
img.logo-mark { background: none !important; border-radius: 9px; object-fit: contain; }
.menu-btn { display: none; background: none; border: none; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,32,63,0.82) 0%, rgba(20,32,63,0.45) 55%, rgba(20,32,63,0.10) 100%);
}
.hero-inner { position: relative; color: #fff; max-width: 640px; padding: 90px 0; }
.hero .eyebrow {
  display: inline-block; background: var(--red); color: #fff; font-size: 13px;
  font-weight: 600; letter-spacing: 1.5px; padding: 6px 16px; border-radius: 20px; margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.25; font-weight: 700; margin-bottom: 18px; }
.hero p { font-size: 19px; color: #e8ecf5; margin-bottom: 34px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 32px; border-radius: 30px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.btn-red { background: var(--red); color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; margin-left: 12px; }
.btn-navy { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.section-head .kicker {
  color: var(--red); font-weight: 600; letter-spacing: 2px; font-size: 13px; text-transform: uppercase;
  font-family: 'Prompt', sans-serif;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); color: var(--navy); margin: 10px 0 14px; line-height: 1.3; }
.section-head p { color: var(--muted); font-size: 18px; }

/* trust strip */
.trust { background: var(--navy); color: #fff; padding: 46px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; text-align: center; }
.trust-item .num { font-size: 30px; font-weight: 700; color: var(--gold); font-family: 'Prompt', sans-serif; }
.trust-item .lbl { font-size: 15px; color: #c6cede; }

/* product cards */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.prod-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s ease;
}
.prod-card:hover { transform: translateY(-6px); }
.prod-card .prod-img { height: 340px; border-bottom: 1px solid #f2ede4; overflow: hidden; display:flex; align-items:center; justify-content:center; }
.prod-card .prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-card.sodimin .prod-img { background: #fff; }
.prod-card.sodimin .prod-img img { max-width: 85%; max-height: 85%; }
.prod-card.morecalf .prod-img { background: #fff; }
.prod-card .prod-img img { object-fit: contain; padding: 26px 20px; }
.prod-body { padding: 30px 32px 34px; flex: 1; display: flex; flex-direction: column; }
.prod-tag { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-family:'Prompt',sans-serif; }
.sodimin .prod-tag { color: var(--orange); }
.morecalf .prod-tag { color: var(--maroon); }
.prod-body h3 { font-size: 27px; color: var(--navy); margin: 6px 0 10px; }
.prod-body p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.prod-feats { list-style: none; margin-bottom: 24px; }
.prod-feats li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 15.5px; }
.prod-feats li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; }
.sodimin .prod-feats li::before { color: var(--orange); }
.morecalf .prod-feats li::before { color: var(--maroon); }
.prod-body .btn { margin-top: auto; align-self: flex-start; padding: 11px 26px; font-size: 15px; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-maroon { background: var(--maroon); color: #fff; }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--navy); margin-bottom: 16px; line-height: 1.3; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split .kicker { color: var(--red); font-weight: 600; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; font-family:'Prompt',sans-serif; }

/* gallery band */
.band { padding: 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.band-grid img { width: 100%; height: 300px; object-fit: cover; }

/* species */
.species-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.species {
  background: #fff; border-radius: var(--radius); padding: 26px 14px; text-align: center;
  box-shadow: var(--shadow); font-weight: 600; color: var(--navy);
}
.species .icon { font-size: 34px; display: block; margin-bottom: 8px; }

/* analysis tables */
.spec-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; }
.spec-wrap h4 { color: var(--navy); font-size: 18px; margin: 18px 0 8px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.spec td { padding: 8px 4px; border-bottom: 1px solid #f0ebe2; }
table.spec td:last-child { text-align: right; font-weight: 600; color: var(--navy); }

/* product detail sections */
.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prod-detail .imgs img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.pill { display: inline-block; padding: 5px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; font-family:'Prompt',sans-serif; text-transform: uppercase; }
.pill-orange { background: #fdeadd; color: var(--orange); }
.pill-maroon { background: #f5e6e3; color: var(--maroon); }
.prod-detail h2 { font-size: 34px; color: var(--navy); margin-bottom: 6px; }
.prod-detail .sub { color: var(--muted); font-size: 18px; margin-bottom: 22px; }
.stage-row { display: flex; gap: 14px; margin: 20px 0; flex-wrap: wrap; }
.stage {
  flex: 1; min-width: 140px; background: #fff; border-radius: 12px; padding: 18px; text-align: center;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.stage .n { font-weight: 700; color: var(--maroon); font-size: 15px; }
.stage .d { font-size: 14px; color: var(--muted); }

/* about */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.value-card { background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.value-card .icon { font-size: 34px; margin-bottom: 12px; }
.value-card h3 { color: var(--navy); font-size: 20px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 15.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 40px; }
.contact-card h3 { color: var(--navy); font-size: 22px; margin-bottom: 20px; }
.c-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.c-row .ic {
  width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.c-row .t b { color: var(--navy); display: block; font-size: 15px; }
.c-row .t span, .c-row .t a { color: var(--muted); font-size: 15.5px; text-decoration: none; }
.c-row .t a:hover { color: var(--red); }

form .frow { margin-bottom: 16px; }
form label { display: block; font-weight: 600; color: var(--navy); font-size: 14.5px; margin-bottom: 5px; }
form input, form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e5ddcf; border-radius: 10px;
  font-family: inherit; font-size: 15.5px; background: var(--cream);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--navy); }
form button { border: none; cursor: pointer; width: 100%; }

/* CTA banner */
.cta {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; text-align: center; border-radius: var(--radius);
  padding: 64px 30px; margin: 0 24px;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.cta p { color: #c6cede; margin-bottom: 28px; font-size: 18px; }

/* footer */
footer { background: var(--navy-dark); color: #aeb6c9; margin-top: 84px; padding: 60px 0 30px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
footer a { color: #aeb6c9; text-decoration: none; display: block; margin-bottom: 8px; }
footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; text-align: center; font-size: 13.5px; }

/* page hero (inner pages) */
.page-hero {
  position: relative; background-size: cover; background-position: center;
  padding: 110px 0 90px; color: #fff; text-align: center;
}
.page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(20,32,63,0.68); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); }
.page-hero p { color: #dde3ef; font-size: 19px; max-width: 620px; margin: 12px auto 0; }

/* responsive */
@media (max-width: 900px) {
  .prod-grid, .split, .prod-detail, .contact-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr; }
  .band-grid img { height: 220px; }
  .foot-grid { grid-template-columns: 1fr; }
  nav ul {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid #eee;
  }
  nav ul.open { display: flex; }
  .menu-btn { display: block; }
  .hero { min-height: 62vh; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
}
