@font-face { font-family: Prompt; src: url(../fonts/Prompt-Light.ttf); font-weight: 300; font-display: swap; }
@font-face { font-family: Prompt; src: url(../fonts/Prompt-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Prompt; src: url(../fonts/Prompt-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Prompt; src: url(../fonts/Prompt-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: Prompt; src: url(../fonts/Prompt-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --green-900: #12392a;
  --green-800: #174a36;
  --green-700: #1f5a3d;
  --green-600: #2a6e4c;
  --green-100: #e7f2ea;
  --green-50: #f3f8f4;
  --gold-600: #b8892e;
  --gold-500: #c99a3b;
  --gold-100: #f8f0dc;
  --ink: #1d2b24;
  --muted: #5f6f66;
  --line: #e3ebe5;
  --card: #ffffff;
  --bg: #f7faf8;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(23, 74, 54, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Prompt, "Sukhumvit Set", Tahoma, sans-serif; font-weight: 400; color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ic { width: 28px; height: 28px; flex: none; }
.ic-sm { width: 18px; height: 18px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { width: min(1440px, 100% - 32px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 88px; }
.brand { flex-shrink: 0; min-height: 88px; display: flex; align-items: center; gap: 14px; color: var(--green-800); }
.brand-mark { width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.brand-mark img, .brand-mark svg { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 24px; font-weight: 700; color: var(--green-800); }
.brand-text small { font-size: 15px; color: var(--muted); }
/* nav sits beside the brand when it fits, otherwise wraps to its own row under it */
.mainnav { display: flex; gap: 2px; flex-wrap: nowrap; flex-shrink: 0; margin-left: auto; padding: 4px 0; justify-content: flex-end; align-items: center; }
.mainnav a { padding: 8px 10px; border-radius: 10px; color: var(--ink); font-size: 14.5px; font-weight: 500; position: relative; white-space: nowrap; }
.mainnav a:hover { background: var(--green-50); color: var(--green-700); }
.mainnav a.active { color: var(--green-700); }
.mainnav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--green-700); border-radius: 2px; }
.mainnav a.nav-hl { background: linear-gradient(135deg, #f6e7c2, #e3c47a); color: var(--green-900); font-weight: 600; box-shadow: 0 2px 8px rgba(201, 154, 59, .35); }
.mainnav a.nav-hl:hover { background: linear-gradient(135deg, #f3e0b0, #d9b45a); color: var(--green-900); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-parent { display: inline-flex; align-items: center; gap: 3px; }
.caret { width: 12px; height: 12px; opacity: .7; }
.sub-toggle { display: none; background: none; border: 0; padding: 8px 10px; cursor: pointer; color: var(--green-800); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s; }
.subnav { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item:hover .subnav, .nav-item:focus-within .subnav { display: block; }
.mainnav .subnav a { display: block; padding: 9px 12px; font-weight: 400; }
.mainnav .subnav a::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-800); margin: 5px 0; border-radius: 2px; }

/* hero */
.hero { background: linear-gradient(105deg, #f5faf6 0%, #eef6f0 45%, #e3efe6 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 24px; min-height: 380px; padding: 40px 0; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; color: var(--green-800); display: flex; flex-direction: column; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--green-600); }
.hero .lead { font-size: 19px; color: #39493f; margin: 8px 0 22px; }
.hero-badge { display: inline-flex; align-items: center; gap: 12px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow); }
.hero-badge strong { display: block; color: var(--green-800); }
.hero-badge small { color: var(--muted); }
.hero-art { justify-self: end; width: 100%; }
.hero-art img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 24px; }
/* default illustration (used until an image is uploaded in the admin): no frame, blends into the hero */
.hero-illus img { width: 100%; height: auto; max-height: 440px; object-fit: contain; border-radius: 0; }
/* full-width banner: image fills the whole band, text sits on the left */
.hero-full { position: relative; display: flex; align-items: center; min-height: 500px; }
.hero-full .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.hero-full-inner { position: relative; z-index: 1; padding: 56px 0 80px; }
.hero-full .hero-text { max-width: 560px; }
.hero-photo .hero-bg { object-position: center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 57, 42, .88) 0%, rgba(18, 57, 42, .6) 42%, rgba(18, 57, 42, 0) 75%); }
.hero-photo h1, .hero-photo .lead { color: #fff; }
.hero-photo h1 .accent { color: #e8d29a; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -36px; position: relative; }
.feature { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); color: var(--ink); transition: transform .15s; }
.feature:hover { transform: translateY(-2px); color: var(--ink); }
.feature-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex: none; }
.feature-ic .ic { width: 34px; height: 34px; }
.feature-tx { flex: 1; display: flex; flex-direction: column; }
.feature-tx strong { font-size: 20px; color: var(--green-800); font-weight: 600; }
.feature-tx small { color: var(--muted); font-size: 14px; }
.go { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; color: var(--green-700); flex: none; }

/* quick bar */
.quickbar { display: grid; grid-template-columns: 3fr 1.1fr; gap: 16px; margin-top: 24px; }
.quick-list { display: grid; grid-template-columns: repeat(3, 1fr); background: linear-gradient(90deg, var(--green-800), var(--green-700)); border-radius: var(--radius); overflow: hidden; }
.quick { display: flex; align-items: center; gap: 12px; padding: 20px; color: #fff; }
.quick + .quick { border-left: 1px solid rgba(255,255,255,.15); }
.quick:hover { background: rgba(255,255,255,.06); color: #fff; }
.quick strong { display: block; font-weight: 500; font-size: 15px; }
.quick small { display: block; color: rgba(255,255,255,.75); font-size: 13px; }
.quick .ic { width: 36px; height: 36px; color: #e8d29a; }
.quick-hl { background: linear-gradient(135deg, #f6e7c2, #e9cf8f); color: var(--green-900); border-radius: var(--radius); box-shadow: var(--shadow); }
.quick-hl:hover { background: linear-gradient(135deg, #f3e0b0, #e3c47a); color: var(--green-900); }
.quick-hl small { color: #5b4a22; }
.quick-hl .ic { color: var(--green-800); }
.quick-hl strong { font-size: 18px; font-weight: 600; }
.quick-hl .go { background: var(--green-800); border-color: var(--green-800); color: #fff; margin-left: auto; }
.quick .go .ic, .feature .go .ic { width: 18px; height: 18px; }
.quick-hl .go .ic { color: #fff; }

/* rates */
.rates { margin-top: 48px; }
.sec-title { text-align: center; font-size: 30px; color: var(--green-800); font-weight: 700; }
.sec-title::after { content: ""; display: block; width: 64px; height: 3px; margin: 10px auto 0; background: linear-gradient(90deg, var(--gold-500), var(--green-600)); border-radius: 3px; }
.rate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.rate-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; }
.rate-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; color: var(--gold-500); }
.rate-ic .ic { width: 52px; height: 52px; stroke-width: 1.3; }
.rate-card h3 { font-size: 17px; color: var(--green-800); font-weight: 600; }
.rate-card h3 span { color: var(--green-700); font-weight: 600; }
.rate-list { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; }
.rate-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.rate-list li strong { font-weight: 500; }
.rate-list li span { color: var(--muted); white-space: nowrap; }
.rate-big, .rate-pre, .rate-unit, .rate-note { margin: 0; }
.rate-note { font-weight: 600; color: var(--green-800); margin-top: 6px; }
.rate-pre { color: var(--muted); margin-top: 8px; }
.rate-big { font-size: 56px; font-weight: 700; line-height: 1.05; color: var(--green-700); }
.rate-unit { color: var(--muted); }
.rc-big-gold { background: linear-gradient(180deg, #fffaf0, #fbf1da); border-color: #f0dfb5; }
.rc-big-gold .rate-big { color: var(--gold-600); }
.rc-big-gold h3 span { color: var(--gold-600); }
.small-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 12px; }

/* news + announcements */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-head h2 { font-size: 22px; color: var(--green-800); margin: 0; }
.pill { display: inline-block; padding: 4px 14px; border-radius: 99px; background: var(--green-700); color: #fff; font-size: 13px; }
.pill:hover { background: var(--green-600); color: #fff; }
.news-row, .ann-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.news-row:first-of-type, .ann-row:first-of-type { border-top: 0; }
.thumb { width: 92px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--green-50); display: grid; place-items: center; flex: none; color: var(--green-600); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.nr-tx { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nr-tx small { color: var(--muted); font-size: 13px; }
.nr-tx strong { font-weight: 500; font-size: 15px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--green-100); color: var(--green-700); white-space: nowrap; }
.ann-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.pdf { color: #c0392b; display: grid; place-items: center; }
.pdf .ic { width: 32px; height: 32px; }
.empty { color: var(--muted); }

/* trust banner */
.trust-banner { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 24px; margin: 44px 0; padding: 26px 32px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 85% 50%, rgba(255,255,255,.12), transparent 40%), linear-gradient(100deg, var(--green-900), var(--green-700)); }
.trust-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #e8d29a; }
.trust-ic .ic { width: 44px; height: 44px; }
.trust-banner h2 { margin: 0; font-size: 24px; }
.trust-banner .gold { color: #e8d29a; margin: 0; font-size: 20px; font-weight: 500; }
.trust-tx { margin: 0; color: rgba(255,255,255,.85); }

/* inner pages */
.page-head { background: linear-gradient(105deg, #f5faf6, #e3efe6); padding: 36px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { color: var(--green-800); font-size: 32px; margin: 0; }
.crumb { margin: 0 0 6px; font-size: 14px; }
.meta { color: var(--muted); margin: 8px 0 0; }
.content { padding: 32px 0 56px; }
.content h2 { color: var(--green-800); margin-top: 1.4em; }
.content [id] { scroll-margin-top: 140px; }
.content table { border-collapse: collapse; width: 100%; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.content th { background: #eef5f0; color: var(--green-800); font-weight: 500; }
.content h3 { color: var(--green-800); margin: 1.2em 0 .4em; }
@media (max-width: 640px) { .content table { display: block; overflow-x: auto; } }
.content img { border-radius: 12px; }
.news-cover img { max-height: 520px; width: auto; }
.doc-list { display: grid; gap: 10px; margin-top: 18px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.doc:hover { border-color: var(--green-600); color: var(--ink); }
.doc strong { flex: 1; font-weight: 500; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow); }
.nc-img { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--green-50); color: var(--green-600); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; align-items: flex-start; }
.nc-body small { color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 24px 0; }
.pager a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pager a.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--green-700); }
.contact-box h3 { margin-top: 8px; color: var(--green-800); }
.contact-box p { color: var(--ink); margin: 0; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.calc h3 { display: flex; align-items: center; gap: 8px; color: var(--green-800); }
.calc label { display: block; margin: 10px 0; font-size: 14px; color: var(--muted); }
.calc input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 10px; }
.calc input:focus { outline: 2px solid var(--green-600); border-color: transparent; }
.calc-out { background: var(--green-50); border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; }
.calc-out strong { color: var(--green-700); font-size: 20px; }

/* footer */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.85); margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.1fr 1fr 1.2fr .8fr; gap: 24px; padding: 40px 0 28px; }
.site-footer h4 { color: #fff; font-size: 16px; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.7); }
.f-line { display: flex; gap: 10px; font-size: 14px; margin: 16px 0 0; }
.f-line .ic { color: #e8d29a; margin-top: 3px; }
.f-menu { list-style: none; padding: 0; margin: 0; columns: 2; font-size: 14px; }
.f-menu li { margin-bottom: 6px; break-inside: avoid; }
.f-menu a, .f-bottom a { color: rgba(255,255,255,.85); }
.f-menu a:hover, .f-bottom a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.soc.fb { background: #1877f2; font-size: 20px; }
.soc.line { background: #06c755; }
.f-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.f-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; flex-wrap: wrap; }

/* responsive */
@media (max-width: 1270px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mainnav.open { display: flex; max-height: calc(100vh - 80px); overflow-y: auto; }
  .mainnav a.active::after { display: none; }
  .nav-item { flex-wrap: wrap; justify-content: center; }
  .nav-item .caret { display: none; }
  .sub-toggle { display: block; }
  .nav-item:hover .subnav, .nav-item:focus-within .subnav { display: none; }
  .nav-item.open .subnav { display: block; position: static; flex-basis: 100%; min-width: 0; border: 0; box-shadow: none; background: var(--green-50); text-align: center; }
  .nav-item.open .sub-toggle svg { transform: rotate(180deg); }
  .rate-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 28px 0 56px; }
  .hero-art { justify-self: stretch; }
  .hero-full { display: block; min-height: 0; }
  .hero-full-inner { padding: 32px 0 290px; }
  .hero-full:not(.hero-photo) .hero-bg { top: auto; height: 320px; object-position: 88% bottom; }
  .hero-photo .hero-full-inner { padding: 40px 0 56px; }
  .hero-photo::after { background: rgba(18, 57, 42, .7); }
  .features, .quick-list, .twocol, .contact-grid, .calc-grid, .news-grid { grid-template-columns: 1fr; }
  .quickbar { grid-template-columns: 1fr; }
  .quick + .quick { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .trust-banner { grid-template-columns: auto 1fr; }
  .trust-tx { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .rate-grid, .footer-grid { grid-template-columns: 1fr; }
  .brand { gap: 10px; }
  .brand-mark, .brand-mark img, .brand-mark svg { width: 52px; height: 52px; }
  .brand-text strong { font-size: 19px; }
  .brand-text small { font-size: 12.5px; }
  .thumb { width: 72px; height: 54px; }
  .news-row .tag { display: none; }
}
