:root {
  --navy: #0d2b55;
  --blue: #1f5fae;
  --blue-soft: #e9f1fb;
  --brand: #3a6ea5;
  --gold: #f4b740;
  --line: #06c755;
  --ink: #1b2533;
  --muted: #4a5666;
  --border: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 43, 85, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Prompt", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.alt { background: var(--bg-alt); }
.eyebrow { color: var(--blue); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; margin-bottom: .3em; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-line { background: var(--line); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }

/* Header */
.topbar { background: var(--navy); color: #cfdcf0; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.branch { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; }
.branch a, .branch span { padding: 2px 12px; }
.branch span { background: var(--gold); color: var(--navy); font-weight: 600; }
header.site {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img.mark { height: 44px; width: auto; }
.logo img.word { height: 30px; width: auto; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
nav.main a:hover { background: var(--blue-soft); color: var(--blue); }
nav.main .btn { margin-left: 8px; padding: .55em 1.1em; }
nav.main .btn:hover { background: var(--blue); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  background: radial-gradient(1000px 500px at 85% -10%, #2f6fc0 0%, transparent 60%), linear-gradient(160deg, var(--navy), #143d75);
  color: #fff; padding: 72px 0 88px;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero h1 .kicker { display: block; color: var(--gold); font-size: 1.2rem; font-weight: 600; margin-bottom: .5em; }
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; max-width: 1040px; margin: 0 auto; }
.about img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.about p { font-size: 1.1rem; margin: 0 0 1em; }
.about p:last-child { margin-bottom: 0; }
.about.about-text { display: block; max-width: 860px; text-align: center; }
.hero p.lead { font-size: 1.15rem; color: #d6e2f3; margin: 0 0 28px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: #d6e2f3; }
.ticks li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 6px; }
.hero-card {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.hero-card h2 { font-size: 1.05rem; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
/* label | amount | unit: amounts share one right edge so the figures line up */
.price-row {
  display: grid; grid-template-columns: 1fr auto 3.4em; column-gap: 8px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.price-row:last-of-type { border-bottom: 0; }
.price-row b { font-size: 1.35rem; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.price-row small { color: var(--muted); font-size: .85rem; }
.hero-card .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* Stats */
.stats { margin-top: -44px; position: relative; padding: 0; }
.stats .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat { padding: 22px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: 1.6rem; color: var(--blue); }
.stat span { color: var(--muted); font-size: .9rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #bcd2ee; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 16px;
}
.icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; color: var(--navy); }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.card .from { font-size: .9rem; color: var(--muted); }
.card .from b { color: var(--navy); font-size: 1.1rem; }
.card .more { margin-top: 10px; color: var(--blue); font-weight: 600; font-size: .95rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
/* Highlight only the plan being pointed at (hover) or tapped (focus) */
.plan:hover, .plan:focus-within { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); outline: none; }
.plan .tag {
  position: absolute; top: -13px; left: 26px; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: .8rem; padding: 2px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }
.plan .price { font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan .sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fae' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan .btn { justify-content: center; }
.plan .btn-ghost { border-color: var(--blue); color: var(--blue); background: #fff; }
.price-note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 640px; margin: 32px auto 0; padding: 14px 20px;
  background: var(--blue-soft); border: 1px solid #c9dcf3; border-radius: 12px;
  color: var(--navy); font-weight: 500; text-align: center;
}
.price-note svg { width: 22px; height: 22px; flex: none; color: var(--blue); }
.note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* Problem / solution */
.ps { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ps > div { border-radius: var(--radius); padding: 30px; }
.ps .bad { background: #fff4f2; border: 1px solid #f7d4cd; }
.ps .good { background: #eefaf3; border: 1px solid #c7ecd6; }
.ps h3 { font-size: 1.2rem; }
.ps ul { list-style: none; padding: 0; margin: 0; }
.ps li { padding: 8px 0 8px 32px; position: relative; }
.ps li::before { position: absolute; left: 0; top: 7px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff; }
.ps .bad li::before { content: "✕"; background: #e2604a; }
.ps .good li::before { content: "✓"; background: #22a45d; }

/* Tax calendar */
.cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.due { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; }
.due .day { flex: none; width: 64px; text-align: center; border-radius: 12px; background: var(--navy); color: #fff; padding: 8px 0; height: fit-content; }
.due .day b { display: block; font-size: 1.6rem; line-height: 1.1; }
.due .day span { font-size: .75rem; color: #cfdcf0; }
.due h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.due p { margin: 0; color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* Agencies */
.agencies { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.agencies img { height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.agencies img:hover { filter: none; opacity: 1; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; }
.contact-info h2 { color: #fff; }
.contact-info dl { margin: 0 0 24px; }
.contact-info dt { color: var(--gold); font-weight: 600; font-size: .9rem; margin-top: 14px; }
.contact-info dd { margin: 0; }
.contact-info a { color: #fff; }
.contact-info .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.office { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.office iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

footer { background: #0a2244; color: #9fb3cf; padding: 28px 0 32px; font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: #fff; text-decoration: none; }

/* Original banner: service boxes pop and link to each service */
.banner { background: var(--navy); }
.hero-map { position: relative; max-width: 1672px; margin: 0 auto; }
.hero-map > img { width: 100%; height: auto; }
.hero-hotspot {
  position: absolute; left: 66.4%; width: 31.6%; height: 14.2%;
  border-radius: 9999px 6px 6px 9999px;
  background-image: url("../img/หน้าปกใหม่ 03.08.26.jpg");
  background-size: 316.46% 704.23%;
  background-position: 97.08% var(--py);
  background-repeat: no-repeat;
  transition: transform .22s ease, box-shadow .22s ease;
  z-index: 1;
}
.hero-hotspot:hover, .hero-hotspot:focus-visible {
  transform: scale(1.07);
  box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 14px 32px rgba(0,0,0,.35);
  outline: none; z-index: 2;
}
.hero-tip {
  position: absolute; right: 6px; bottom: calc(100% + 6px);
  padding: .3rem .7rem; border-radius: 999px; background: #fff; color: var(--navy);
  font-size: .85rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.hero-hotspot:hover .hero-tip, .hero-hotspot:focus-visible .hero-tip { opacity: 1; transform: translateY(0); }
.hero-hotspot:active { transform: scale(1.04); }
/* Light sweeps each service box in turn (1.2s each, linear, no overlap), then pauses 2.4s.
   All four share one timeline from page load; hover only hides the light so the order never drifts. */
.hero-hotspot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  /* blue edges keep the band visible on the white panels, white core shows on the coloured icons */
  background: linear-gradient(105deg, transparent 35%, rgba(31,95,174,.28) 44%, rgba(255,255,255,.7) 50%, rgba(31,95,174,.28) 56%, transparent 65%) no-repeat;
  background-size: 200% 100%; background-position: 165% 0;
  animation: hotspot-shine 7.2s linear infinite; transition: opacity .2s;
}
.hero-hotspot:nth-of-type(2)::after { animation-delay: 1.2s; }
.hero-hotspot:nth-of-type(3)::after { animation-delay: 2.4s; }
.hero-hotspot:nth-of-type(4)::after { animation-delay: 3.6s; }
.hero-hotspot:hover::after, .hero-hotspot:focus-visible::after { opacity: 0; }
@keyframes hotspot-shine {
  0% { background-position: 165% 0; }
  16.67%, 100% { background-position: -65% 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-hotspot::after { animation: none; } }
/* Touch screens have no hover: say it outright under the banner */
.banner-hint { display: none; }
@media (hover: none) {
  .banner-hint {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 0; padding: 10px 16px; color: #fff; font-size: .95rem; font-weight: 500; background: var(--navy);
  }
  .banner-hint svg { width: 20px; height: 20px; flex: none; color: var(--gold); }
}

/* Floating contact buttons (same as the current site) */
.contact-fab .fab { transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.contact-fab .fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.12));
}
.contact-fab .fab svg { width: 26px; height: 26px; }
.popover-phone {
  opacity: 0; transform: translateY(20px) scale(.94);
  transition: opacity .30s cubic-bezier(.2,.9,.2,1), transform .30s cubic-bezier(.2,.9,.2,1);
}
.popover-phone.is-open { opacity: 1; transform: translateY(0) scale(1); }

/* Current page in the menu */
nav.main a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }

/* ---------- Service pages ---------- */
.page-hero {
  background: radial-gradient(900px 420px at 90% -20%, #2f6fc0 0%, transparent 60%), linear-gradient(160deg, var(--navy), #143d75);
  color: #fff; padding: 48px 0 56px;
}
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.crumbs { font-size: .9rem; color: #b9cbe6; margin-bottom: 12px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4em; }
.page-hero p { color: #d6e2f3; font-size: 1.08rem; margin: 0; }
.page-hero img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 48px rgba(0,0,0,.3); }

.article { max-width: 880px; margin: 0 auto; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--navy); margin: 48px 0 16px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.25rem; color: var(--navy); margin: 32px 0 12px; }
.article p { margin: 0 0 1em; }
.article img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }

/* Check-mark list, same mark as the pricing plans */
.ticks-list { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks-list li { padding: 7px 0 7px 32px; position: relative; }
.ticks-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fae' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
/* Numbered steps list */
.num-list { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: n; }
.num-list li { counter-increment: n; padding: 8px 0 8px 44px; position: relative; }
.num-list li::before {
  content: counter(n); position: absolute; left: 0; top: 6px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .95rem;
}

/* Price tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; margin: 0 0 12px; }
.price-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.price-table th { background: var(--navy); color: #fff; font-weight: 600; padding: 12px 16px; text-align: left; }
.price-table td { padding: 12px 16px; border-top: 1px solid var(--border); }
.price-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.price-table td:nth-child(2), .price-table th:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table td:nth-child(2) { font-weight: 600; color: var(--navy); white-space: nowrap; }
.price-list { list-style: none; padding: 0; margin: 0 0 1em; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; }
.price-list li + li { border-top: 1px solid var(--border); }
.price-list li:nth-child(even) { background: var(--bg-alt); }
.price-list b { color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-list small { display: block; color: #c26a00; font-weight: 500; }
/* Every price keeps a slot for "*" so the figures line up whether or not it has one */
.price-list .ast { display: inline-block; width: .7em; font-style: normal; color: #c26a00; }
.price-list .amt { display: inline-block; min-width: 3.1em; text-align: right; }
.callout {
  display: flex; gap: 10px; align-items: center; padding: 12px 16px; margin: 0 0 1em;
  background: #fff4e5; border: 1px solid #f5d3a3; border-radius: 12px; color: #8a4b00; font-weight: 600;
}

.other-services .cards { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  nav.main {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff; padding: 10px 20px 18px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  nav.main.open { display: flex; }
  nav.main .btn { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 992px) {
  .hero .wrap, .page-hero .wrap { grid-template-columns: 1fr; }
  .cards, .other-services .cards { grid-template-columns: repeat(2, 1fr); }
  .plans, .cal { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact, .ps, .about { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 576px) {
  section { padding: 56px 0; }
  .cards, .other-services .cards { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .topbar .hours { display: none; }
  .logo img.word { height: 24px; }
  .hero { padding: 48px 0 80px; }
  .page-hero { padding: 36px 0 44px; }
  .price-list li { gap: 12px; }
  .price-table { min-width: 0; font-size: .92rem; }
  .price-table th, .price-table td { padding: 10px; }
  .contact-fab { right: 12px !important; bottom: 70px !important; gap: 10px !important; }
  .contact-fab .fab { width: 52px !important; height: 52px !important; }
}
/* Small phones (360-400px): tighter price card and tables so lines don't break mid-phrase */
@media (max-width: 400px) {
  .hero-card { padding: 20px 16px; }
  .price-row { grid-template-columns: 1fr auto 3em; column-gap: 6px; font-size: .92rem; }
  .price-row b { font-size: 1.15rem; }
  .price-table { font-size: .84rem; }
  .price-table th, .price-table td { padding: 8px 6px; }
}
