/* ===========================================================
   ปุ๋ยอินทรีย์ตราพญานาคพ่นน้ำ | บริษัท แสนโชคผลิตผล จำกัด
   สไตล์ชีตหลัก — mobile first
   =========================================================== */

:root {
  --green-900: #22372a;
  --green-800: #2f4a37;
  --green-700: #3d5a45;
  --green-600: #4a7355;
  --green-500: #5f9070;
  --green-100: #e3efe6;
  --green-50:  #f2f9f4;

  --orange:     #e8913c;
  --orange-dk:  #cf7723;
  --blue-fb:    #1877f2;
  --line-green: #06c755;

  --ink:      #1f2a22;
  --ink-soft: #4a5750;
  --muted:    #6b7a71;
  --line:     #dbe6de;
  --bg:       #fbfdfb;
  --white:    #ffffff;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 10px rgba(34,55,42,.07);
  --shadow-lg: 0 8px 28px rgba(34,55,42,.13);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans Thai", "Sarabun", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Helvetica Neue", "Leelawadee UI", "Tahoma", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

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

a { color: var(--green-600); }

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; color: var(--green-900); font-weight: 700; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.13rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.nowrap { white-space: nowrap; }

/* ---------- Skip link (a11y) ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--green-800); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt b { color: var(--green-800); font-size: 1rem; }
.brand-txt span { color: var(--muted); font-size: .72rem; letter-spacing: .02em; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--green-800); position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--green-800); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-links {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 8px 18px 16px;
  box-shadow: var(--shadow-lg);
}
.nav-links.open { display: block; }
.nav-links a {
  display: block; padding: 12px 4px; text-decoration: none;
  color: var(--green-900); font-weight: 600; border-bottom: 1px solid var(--green-50);
}
.nav-links a[aria-current="page"] { color: var(--orange-dk); }
.nav-cta { display: flex; gap: 9px; margin-top: 12px; }
.nav-cta .btn { flex: 1; justify-content: center; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex !important; position: static; align-items: center; gap: 4px;
    background: none; border: 0; padding: 0; box-shadow: none;
  }
  .nav-links a { border: 0; padding: 9px 13px; border-radius: 8px; font-size: .97rem; }
  .nav-links a:hover { background: var(--green-50); }
  .nav-cta { margin: 0 0 0 8px; }
  .nav-cta .btn { padding: 9px 15px; font-size: .9rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px; text-decoration: none;
  font-weight: 700; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1.3;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-800); }
.btn-orange  { background: var(--orange); color: #3a2408; }
.btn-orange:hover { background: var(--orange-dk); color: #fff; }
.btn-line    { background: var(--line-green); color: #fff; }
.btn-fb      { background: var(--blue-fb); color: #fff; }
.btn-ghost   { background: #fff; color: var(--green-800); border-color: var(--green-100); }
.btn-ghost:hover { border-color: var(--green-500); }
.btn-block   { display: flex; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(242,249,244,.97) 100%),
    radial-gradient(1200px 400px at 50% -10%, var(--green-100), transparent 70%);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
}
.hero h1 { font-size: 1.95rem; margin-bottom: .35em; }
.hero .lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.eyebrow {
  display: inline-block; background: var(--green-100); color: var(--green-800);
  font-size: .84rem; font-weight: 700; padding: 5px 13px; border-radius: 999px;
  margin-bottom: 14px;
}
@media (min-width: 900px) {
  .hero { padding: 58px 0 52px; }
  .hero h1 { font-size: 2.7rem; }
  .hero .lede { font-size: 1.15rem; }
}

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-tint { background: var(--green-50); }
.section-dark { background: var(--green-800); color: #eaf3ec; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: #b9cfc0; }
.section-head { max-width: 70ch; margin-bottom: 26px; }
.section-head.center { margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .section { padding: 62px 0; } }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 22px; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.num-card { position: relative; padding-top: 22px; }
.num-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-700); color: #fff; font-weight: 700; font-size: .95rem;
  margin-bottom: 10px;
}

/* ---------- Product cards ---------- */
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-img { background: var(--green-50); aspect-ratio: 4 / 3; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 17px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product h3 { margin-bottom: .3em; font-size: 1.09rem; }
.price {
  font-size: 1.2rem; font-weight: 800; color: var(--green-700);
  display: block; margin-bottom: .55em;
}
.price small { font-size: .82rem; font-weight: 600; color: var(--muted); }
.product .usage {
  background: var(--green-50); border-left: 3px solid var(--green-500);
  padding: 9px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .92rem; margin: 12px 0 0;
}
.product .buy { margin-top: auto; padding-top: 15px; }
.badge-best {
  display: inline-block; background: var(--orange); color: #3a2408;
  font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Feature list ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800;
}
.section-dark .ticks li::before { background: var(--green-600); color: #fff; }

/* ---------- Stats ---------- */
.stat { text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--green-700); line-height: 1.1; }
.section-dark .stat b { color: #a8dcbb; }

/* ---------- Wholesale highlight ---------- */
.deal-box {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff; border-radius: var(--radius); padding: 26px 22px;
}
.deal-box h2, .deal-box h3 { color: #fff; }
.deal-price {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 14px 0 18px;
}
.deal-price .was { text-decoration: line-through; opacity: .65; font-size: 1.05rem; }
.deal-price .now { font-size: 2.3rem; font-weight: 800; color: #ffd79a; line-height: 1; }
.truck-row { display: grid; gap: 11px; grid-template-columns: 1fr; margin: 16px 0; }
@media (min-width: 700px) { .truck-row { grid-template-columns: repeat(3, 1fr); } }
.truck {
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm); padding: 14px;
}
.truck b { display: block; font-size: 1.08rem; color: #ffd79a; }

/* ---------- Dealers ---------- */
.province-block { margin-bottom: 30px; }
.province-title {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border-bottom: 2px solid var(--green-100); padding-bottom: 8px; margin-bottom: 15px;
}
.province-title h3 { margin: 0; font-size: 1.22rem; }
.province-title .count { color: var(--muted); font-size: .9rem; font-weight: 600; }
.shop {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px;
}
.shop b { display: block; color: var(--green-900); font-size: 1.02rem; }
.shop .addr { color: var(--ink-soft); font-size: .93rem; margin: 4px 0 8px; }
.shop .tels { display: flex; flex-wrap: wrap; gap: 8px; }
.tel-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-50); border: 1px solid var(--green-100);
  color: var(--green-800); text-decoration: none; font-weight: 700;
  padding: 7px 13px; border-radius: 999px; font-size: .92rem;
}
.tel-btn:hover { background: var(--green-100); }

.region-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.region-tabs a {
  text-decoration: none; background: #fff; border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: .93rem; font-weight: 600;
  color: var(--green-800);
}
.region-tabs a:hover { border-color: var(--green-500); background: var(--green-50); }

/* ---------- Contact rows ---------- */
.contact-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-ico {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  background: var(--green-50); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.contact-row b { display: block; }

/* ---------- FAQ ---------- */
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0; margin-bottom: 10px; overflow: hidden;
}
details.faq summary {
  padding: 15px 18px; cursor: pointer; font-weight: 700; color: var(--green-900);
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--green-600); line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body { padding: 0 18px 16px; color: var(--ink-soft); }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: .96rem;
}
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--green-50); color: var(--green-900); font-weight: 700; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Quote ---------- */
.quote {
  background: #fff; border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; box-shadow: var(--shadow);
}
.quote p { font-size: 1.03rem; font-style: italic; color: var(--ink); }
.quote cite { font-style: normal; color: var(--muted); font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff; padding: 40px 0;
}
.cta-band h2 { color: #fff; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c3d6c9; padding: 40px 0 110px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: .7em; }
.site-footer a { color: #d8e8dc; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; padding-top: 18px;
  font-size: .88rem; color: #9db4a4;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tag-cloud span {
  background: rgba(255,255,255,.09); padding: 4px 10px; border-radius: 999px; font-size: .82rem;
}
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Sticky mobile contact bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; gap: 8px; padding: 9px 12px;
  background: rgba(255,255,255,.98); border-top: 1px solid var(--line);
  box-shadow: 0 -3px 16px rgba(34,55,42,.12);
  padding-bottom: calc(9px + env(safe-area-inset-bottom));
}
.mobile-bar .btn { flex: 1; justify-content: center; padding: 12px 8px; font-size: .97rem; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .9rem; color: var(--muted); padding: 14px 0 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 28px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 30px 0; }
.note {
  background: #fffaf0; border: 1px solid #f2dcb8; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: .95rem;
}

@media print { .mobile-bar, .site-header, .nav-toggle { display: none !important; } }

/* ---------- รูปฮีโร่ ---------- */
.hero-media {
  margin-top: 24px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 980px) {
  .hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
  .hero-media { margin-top: 0; aspect-ratio: 4 / 3; }
}

/* ---------- แกลเลอรีผลงาน ---------- */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.shot figcaption { padding: 10px 12px; font-size: .89rem; color: var(--ink-soft); }

/* ---------- โลโก้ในเมนู ---------- */
.brand img { object-fit: contain; border-radius: 0; }

/* ---------- กันเมนูลอยบังหัวข้อตอนกดลิงก์ข้ามส่วน ---------- */
:target,
[id] { scroll-margin-top: 88px; }
