:root {
  --gold: #b8893a;
  --black: #111111;
  --ink: #222222;
  --ink-soft: #444444;
  --line: #e7e2d8;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --green: #00b900;
  --green-dark: #0b6b32;
  --messenger: #3b5bdb;
  --facebook: #3b5998;
  --mail: #db4c3f;
  --wrap: 1140px;
  --head: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  --body: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 21px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; line-height: 1.35; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nw { white-space: nowrap; }

/* header — logo centred like the original */
.masthead { text-align: center; padding: 28px 16px 22px; }
.masthead > a { display: inline-block; }
.masthead img { width: 300px; margin: 0 auto; }
.masthead p, .masthead h1 { font-family: var(--head); font-weight: 400; font-size: 24px; line-height: 1.5; margin-top: 6px; }
.masthead p a, .masthead h1 a { text-decoration: none; font-variant-numeric: tabular-nums; }

.menu { background: var(--black); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.menu a { display: block; padding: 11px 22px; color: #fff; text-decoration: none; font-family: var(--head); font-size: 21px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--gold); }

.banner { background: #3bbf4a; }
.banner img { width: 100%; max-width: 1920px; margin: 0 auto; }

/* section heading — centred title with a thin rule, as in the original */
.title { text-align: center; margin-bottom: 36px; }
.title h1, .title h2 { font-size: 34px; display: inline-block; padding: 0 28px 10px; border-bottom: 1px solid var(--line); min-width: min(380px, 100%); }
.title p { color: var(--ink-soft); margin-top: 12px; font-size: 20px; }

section { padding: 56px 0; }
.soft { background: var(--bg-soft); }

.line-cta { display: flex; justify-content: center; padding: 48px 16px 0; }
.btn-line-big { display: inline-flex; align-items: center; gap: 16px; background: var(--green); color: #fff; text-decoration: none; padding: 14px 30px 14px 18px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 185, 0, .22); transition: transform .15s ease, box-shadow .15s ease; }
.btn-line-big:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 185, 0, .3); }
.btn-line-big .badge { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; flex: none; }
.btn-line-big .badge svg { width: 40px; height: 40px; }
.btn-line-big strong { display: block; font-family: var(--head); font-weight: 500; font-size: 28px; line-height: 1.3; }
.btn-line-big strong em { font-style: normal; color: #fff200; }
.btn-line-big span { font-family: var(--head); font-size: 20px; }

/* categories — five cards in one row like the original */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.cat { border: 2px solid var(--gold); border-radius: 10px; overflow: hidden; background: #fff; }
.cat img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cat ul { list-style: none; margin: 0; padding: 12px 14px 14px; display: grid; gap: 4px; }
.cat li { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 20px; }
.cat li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10 7 5 5-5 5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* service + contact card */
.service { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; }
.service .copy > * + * { margin-top: 18px; }
.service .copy a { color: var(--green-dark); }
.service .lead { font-family: var(--head); font-size: 26px; line-height: 1.5; }
.note { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; color: var(--ink-soft); }
.card { border: 2px solid var(--gold); border-radius: 12px; padding: 28px 28px 30px; text-align: center; background: #fff; }
.card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card .sub { font-family: var(--head); font-size: 20px; margin: 18px 0 10px; }
.pill { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 300px; margin: 0 auto; padding: 13px 18px; border-radius: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-size: 22px; font-variant-numeric: tabular-nums; transition: filter .15s ease; }
.pill:hover { filter: brightness(1.15); }
.pill svg { width: 24px; height: 24px; flex: none; }
.pill-black { background: var(--black); }
.pill-green { background: var(--green); }
.pill-blue { background: var(--messenger); }

/* four social buttons, same colours as the original */
.social { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.social a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 10px; border-radius: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-size: 20px; letter-spacing: .04em; transition: filter .15s ease; }
.social a:hover { filter: brightness(1.15); }
.social svg { width: 24px; height: 24px; flex: none; }
.s-tel { background: var(--black); }
.s-mail { background: var(--mail); }
.s-fb { background: var(--facebook); }
.s-line { background: var(--green); }

/* gallery */
.gallery { display: grid; gap: 28px; max-width: 980px; margin: 0 auto; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.gallery img { width: 100%; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.more .pill { max-width: 420px; background: var(--facebook); }

/* contact page */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.contact .intro { font-family: var(--head); font-size: 26px; line-height: 1.5; margin-bottom: 28px; }
.contact dl { margin: 0; display: grid; gap: 18px; }
.contact dt { font-family: var(--head); font-size: 18px; color: var(--ink-soft); }
.contact dd { margin: 0; font-size: 25px; font-family: var(--head); overflow-wrap: anywhere; }
.contact dd a { text-decoration: none; }
.contact dd a:hover { color: var(--gold); }

/* footer */
.foot { background: var(--black); color: #e8e8e8; border-top: 3px solid var(--gold); padding: 44px 0 24px; }
.foot .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 26px; color: #fff; margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot li a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #e8e8e8; }
.foot li a:hover { color: var(--gold); }
.foot svg { width: 22px; height: 22px; flex: none; color: var(--gold); }
.foot .tag { margin-top: 32px; padding-top: 16px; border-top: 1px solid #2c2c2c; font-size: 17px; color: #b5b5b5; text-align: center; }

.actionbar { display: none; }

@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service, .contact { grid-template-columns: 1fr; gap: 36px; }
  .card { max-width: 420px; width: 100%; margin: 0 auto; }
  .social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 19px; padding-bottom: 78px; }
  .masthead { padding: 18px 16px 14px; }
  .masthead img { width: 210px; }
  .masthead p, .masthead h1 { font-size: 19px; }
  .menu ul { gap: 0; }
  .menu a { padding: 10px 9px; font-size: 18px; }
  section { padding: 40px 0; }
  .line-cta { padding-top: 32px; }
  .btn-line-big { padding: 12px 20px 12px 14px; gap: 12px; }
  .btn-line-big .badge { width: 48px; height: 48px; }
  .btn-line-big .badge svg { width: 32px; height: 32px; }
  .btn-line-big strong { font-size: 23px; }
  .btn-line-big span { font-size: 17px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat ul { padding: 10px 10px 12px; }
  .cat li { font-size: 18px; }
  .cat:last-child { grid-column: span 2; }
  .cat:last-child img { aspect-ratio: 2 / 1; }
  .title h1, .title h2 { font-size: 28px; }
  .service .lead, .contact .intro { font-size: 22px; }
  .contact dd { font-size: 22px; }
  .social a { font-size: 18px; }
  .foot .cols { grid-template-columns: 1fr; }
  .actionbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0, 0, 0, .06); }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px; border-radius: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-size: 18px; }
  .actionbar svg { width: 22px; height: 22px; }
}
