/* หน้าหลัก — โครงสร้าง สี และฟอนต์ตามเว็บเดิม (Lora + Source Sans 3, ครีม #fef5e7, เขียว #38512f) */
.home { font-family: 'Source Sans 3', 'Sarabun', sans-serif; font-size: 19px; line-height: 1.6; color: #3a3630; background: #fef5e7; }
.home h1, .home h2, .home h3 { font-family: 'Lora', 'Prompt', serif; font-weight: 400; color: #38512f; line-height: 1.25; margin: 0 0 .6em; }
.home h1, .home h2 { font-size: clamp(32px, 4.4vw, 45px); }
.home h3 { font-size: 22px; margin-bottom: .4em; }
.home h3.big { font-size: 27px; }
.home p { margin: 0 0 1em; }
.home .top { background: rgba(254,245,231,.94); }
.home .brand img { height: 40px; width: auto; border-radius: 6px; display: block; }
.home .nav a { color: #3a3630; font-family: 'Source Sans 3', sans-serif; font-size: 16px; }
.home .nav a:hover { background: #f3e7d4; }
.home .btn { font-family: 'Source Sans 3', 'Prompt', sans-serif; font-weight: 600; border-radius: 6px; font-size: 17px; }
.home .btn-primary { background: #38512f; }
.home .btn-outline { background: #fef5e7; color: #38512f; border-color: #38512f; }
.home .btn-ghost { color: #38512f; }
.sec { padding: 76px 0; }
.sec.green { background: #38512f; color: #fff; }
.sec.green h2, .sec.green h3 { color: #fff; }
.sec img { display: block; width: 100%; height: auto; border-radius: 6px; }
.cols { display: grid; gap: 34px; align-items: start; }
.c2 { grid-template-columns: 1fr 1fr; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.c-img-l { grid-template-columns: 384px 1fr; }
.c-cap { grid-template-columns: minmax(0, 445px) 1fr; }
.cols > * { min-width: 0; }
.mt { margin-top: 28px; }
.stack > * + * { margin-top: 14px; }
.home ul.dots { margin: 0; padding-left: 1.3em; }
.home ul.dots li { margin: .35em 0; }

.hero2 { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; background: #fef5e7; }
.hero2 .txt { padding: 96px 40px 96px max(20px, calc((100vw - 1120px) / 2 + 20px)); }
.hero2 .txt p { max-width: 600px; }
.hero2 .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero2 .logo { background: #f2e4cf; display: grid; place-items: center; padding: 40px; position: relative; overflow: hidden; }
.hero2 .logo img { width: min(380px, 100%); border-radius: 4px; box-shadow: 0 10px 40px rgba(140,90,60,.18); position: relative; }
.hero2 .logo svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.accent { display: grid; grid-template-columns: 437px 1fr; padding: 0; }
.accent.right { grid-template-columns: 1fr 437px; }
.accent .pic { background-size: cover; background-position: center; min-height: 420px; }
.accent .body { padding: 76px max(20px, calc((100vw - 1120px) / 2 + 20px)) 76px 60px; }
.accent.right .body { padding: 76px 60px 76px max(20px, calc((100vw - 1120px) / 2 + 20px)); }

.tl { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; position: relative; margin: 10px 0 60px; }
.tl::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid #c9bda9; }
.tl .it { display: grid; grid-template-rows: 1fr 46px 1fr; padding: 0 14px; }
.tl .num { grid-row: 2; justify-self: center; align-self: center; width: 46px; height: 46px; display: grid; place-items: center; background: #f3e7d4; font-family: 'Lora', serif; font-size: 27px; position: relative; z-index: 1; border-radius: 4px; }
.tl .tx { grid-row: 1; align-self: end; padding-bottom: 26px; }
.tl .it:nth-child(even) .tx { grid-row: 3; align-self: start; padding: 26px 0 0; }
.tl h3 { color: #3a3630; }

.box { background: #f3e7d4; border-radius: 8px; padding: 22px; }
.box .ic, .feat .ic { width: 52px; height: 52px; border-radius: 50%; background: #a9b59a; color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.feat .ic { background: none; color: #38512f; border-radius: 0; width: 44px; height: 44px; }
.ic svg { width: 28px; height: 28px; }
.feat .ic svg { width: 40px; height: 40px; }
.box h3, .feat h3 { color: #3a3630; }
.gbox { background: #38512f; color: #fff; border-radius: 8px; padding: 24px; }
.gbox h3 { color: #fff; }
.panel { background: #fef5e7; color: #3a3630; border-radius: 10px; padding: 48px 36px; }
.sec.green .panel h2, .sec.green .panel h3 { color: #38512f; }
.sec.green .panel h3 { color: #3a3630; }
.arrow { background: #a9b59a; color: #fff; height: 56px; display: grid; place-items: center; clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%, 6% 50%); margin-bottom: 16px; }
.arrow svg { width: 26px; height: 26px; }
.cbox { border: 1px solid #d9cdb8; border-radius: 6px; padding: 18px 20px; }
.cbox a { color: #38512f; font-weight: 700; }
.cbox h3 { color: #3a3630; }
.callout { background: #dde5d0; border-radius: 6px; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; }
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 4px; }
.home footer { background: #f2e4cf; border-top: 0; }

.gal { display: grid; gap: 14px; grid-template-columns: repeat(var(--n, 4), 1fr); }
.gal.tight { gap: 8px; }
.gal figure { margin: 0; background: #f0ece6; border-radius: 8px; aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.sec .gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 0; transition: transform .35s; }
.gal figure:hover img { transform: scale(1.06); }
.gal.logos figure { background: #f0ece6; aspect-ratio: 4 / 3; border: 1px solid #eadfcb; }
.sec .gal.logos img { padding: 10px; box-sizing: border-box; }
.gal.logos figure:hover img { transform: none; }
.eyebrow { font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .14em; color: #8c5a3c; margin: 0 0 6px !important; }
.accent .gal { margin-top: 26px; }

@media (max-width: 900px) {
  .gal { grid-template-columns: repeat(4, 1fr); }
  .gal.tight { grid-template-columns: repeat(3, 1fr); }
  .hero2, .accent, .accent.right, .c-img-l, .c-cap { grid-template-columns: 1fr; }
  .hero2 > *, .accent > * { min-width: 0; }
  .hero2 .txt { padding: 56px 20px; }
  .accent .pic { min-height: 240px; order: -1; }
  .accent .body, .accent.right .body { padding: 48px 20px; }
  .c4 { grid-template-columns: 1fr 1fr; }
  .c3 { grid-template-columns: 1fr; }
  .c-img-l > img { max-width: 420px; }
  .tl { grid-template-columns: 1fr; text-align: left; margin-bottom: 30px; }
  .tl::before { left: 23px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px solid #c9bda9; }
  .tl .it { grid-template-rows: auto; grid-template-columns: 46px 1fr; gap: 16px; padding: 0 0 22px; }
  .tl .num { grid-row: 1; grid-column: 1; align-self: start; }
  .tl .tx, .tl .it:nth-child(even) .tx { grid-row: 1; grid-column: 2; padding: 4px 0 0; align-self: start; }
}
@media (max-width: 620px) {
  .gal { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .gal.logos { grid-template-columns: repeat(4, 1fr); }
  .home { font-size: 17px; }
  .sec { padding: 52px 0; }
  .c2, .c4 { grid-template-columns: 1fr; }
  .c4.keep2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .panel { padding: 30px 18px; }
  .home .brand img { height: 32px; }
}
