/* น้ำอ้อย ที่ปรึกษาการเงิน — front-end styles (mobile first adjustments at the bottom) */
:root {
  --navy: #0b2c6b;
  --blue: #1a5bc4;
  --sky: #eaf4ff;
  --sky-2: #d7eaff;
  --pink: #e6336f;
  --pink-2: #ff5c8f;
  --gold: #f4b324;
  --green: #2f9e55;
  --ink: #17233b;
  --muted: #5a6780;
  --line: #dbe6f5;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 44, 107, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: #f6faff;
  font-family: "Sarabun", system-ui, sans-serif; font-size: 17px; line-height: 1.7;
}
h1, h2, h3, h4, .btn, nav { font-family: "Kanit", sans-serif; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; color: var(--navy); }
a { color: var(--blue); }
img { max-width: 100%; }
.ic { width: 1.25em; height: 1.25em; vertical-align: -.22em; flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.fine { font-size: .88rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 0;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; box-shadow: 0 8px 20px rgba(230, 51, 111, .3); }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; }
.btn-line { background: #06c755; color: #fff; }
.btn-outline { border: 2px solid var(--pink); color: var(--pink); background: #fff; }
.btn-sm { padding: 7px 16px; font-size: .92rem; }
.btn-big { padding: 14px 22px 14px 18px; text-align: left; }
.btn-big .ic { width: 38px; height: 38px; }
.btn-big b { display: block; font-size: 1.45rem; line-height: 1.1; }
.btn-big small { font-size: .9rem; opacity: .9; }
.btn-big .arrow { font-size: 2rem; margin-left: 10px; }

/* Top bar + header */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.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; }
.topbar-links { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.pill-line { background: #06c755; color: #fff; border-radius: 6px; padding: 0 6px; font: 600 .75rem "Kanit"; }
.pill-fb { background: #fff; color: var(--navy) !important; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font: 700 .9rem Arial; }

.site-header { background: #fff; box-shadow: 0 2px 12px rgba(11, 44, 107, .06); position: sticky; top: 0; z-index: 50; }
.brand-row { display: flex; align-items: center; gap: 26px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 76px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-text b { font: italic 700 2.2rem/1 "Kanit"; color: var(--navy); }
.brand-text i { font: italic 600 1.05rem/1.5 "Kanit"; color: var(--blue); }
.brand-pill { margin-top: 5px; align-self: flex-start; background: linear-gradient(90deg, var(--navy), var(--blue)); color: #fff; border-radius: 999px;
  font: 500 .74rem/1.75 "Kanit"; padding: 1px 12px; white-space: nowrap; box-shadow: inset 0 0 0 1.5px rgba(244, 179, 36, .9); }
.brand-tag { flex: 1; border-left: 2px solid var(--line); padding-left: 26px; font-family: "Kanit"; color: var(--navy); line-height: 1.45; }
.brand-tag strong { display: block; font-weight: 600; font-size: 1.3rem; }
.brand-tag span { font-size: 1.05rem; color: var(--blue); }
.agent-badge { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-left: 24px; border-left: 2px solid var(--line); }
.agent-badge img { display: block; height: 52px; width: auto; }
.agent-badge b { font: 700 1.3rem "Kanit"; color: var(--navy); }
.agent-meta { font: 500 .78rem/1.6 "Kanit"; color: var(--navy); background: var(--sky); padding: 1px 12px; border-radius: 999px; white-space: nowrap; }
.menu-btn { display: none; }
.mobile-tagline { display: none; }

.nav { border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 18px; padding-top: 8px; padding-bottom: 8px; }
.nav-inner > ul { display: flex; align-items: center; justify-content: space-between; flex: 1; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: 10px; font: 500 1.02rem "Kanit"; white-space: nowrap; }
.nav a:hover { background: var(--sky); color: var(--pink); }
.nav .home { display: flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; padding: 7px 18px; border-radius: 999px; }
.nav .home:hover { color: #fff; }
.nav .home .ic { width: 22px; height: 22px; }
.home-label { display: none; }
.caret { font-style: normal; font-size: .72em; opacity: .7; margin-left: 2px; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: 0; z-index: 60; background: #fff; min-width: 250px; list-style: none; margin: 0; padding: 8px;
  border-radius: 14px; box-shadow: var(--shadow); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.menu-call { display: none; }
.nav a.btn { display: inline-flex; color: #fff; border-radius: 999px; padding: 10px 22px; }
.nav a.btn:hover { background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; }
.nav-call { flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #c5e3fb no-repeat right center / cover; }
/* soft light wash behind the text only, fading smoothly into the photo */
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(243, 249, 255, .82) 0%, rgba(243, 249, 255, .62) 28%, rgba(243, 249, 255, .25) 42%, rgba(243, 249, 255, 0) 56%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 42C380 4 1060 78 1440 18V60H0Z' fill='%23f6faff'/%3E%3Cpath d='M0 42C380 4 1060 78 1440 18' stroke='%23f4b324' stroke-width='4' fill='none'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.hero-grid { position: relative; z-index: 2; min-height: 560px; display: flex; align-items: center; padding-top: 36px; padding-bottom: 70px; }
.hero-text { max-width: 600px; position: relative; z-index: 2; }
.hero-visual { display: none; }
.hero h1 { font-style: italic; margin-bottom: 14px; }
.hero h1 span { display: block; }
.hero .t1, .hero .t2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
.hero .t3 { font-size: clamp(1.3rem, 2.6vw, 2.05rem); font-weight: 700; color: var(--navy); margin-top: 6px; position: relative; padding-bottom: 12px; }
.hero .t3 em { color: var(--pink); }
.hero .t3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 82%; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9C120 1 280 1 398 7' stroke='%23f4b324' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.quote { font: italic 500 1.12rem/1.6 "Kanit"; color: var(--navy); text-align: center; max-width: 520px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; }
.checks li { display: flex; gap: 10px; align-items: center; margin: 6px 0; font-size: 1.05rem; font-weight: 500; }
.tick { width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.hero-person { position: absolute; bottom: 0; left: 43%; height: 100%; max-width: 32%; object-fit: contain; object-position: bottom center; z-index: 1;
  filter: drop-shadow(0 10px 24px rgba(11, 44, 107, .18)); }
.hero-note { position: absolute; right: 2%; top: 24px; margin: 0; font: 1.35rem/1.3 "Itim", "Kanit", cursive; color: var(--navy); transform: rotate(-8deg); text-align: center; z-index: 2;
  text-shadow: 0 0 6px #fff, 0 0 14px #fff, 0 0 22px rgba(255, 255, 255, .9); }

/* Section titles */
.section { padding: 64px 0; }
.section.tint { background: linear-gradient(180deg, #fff, var(--sky)); }
.title-center { text-align: center; max-width: 960px; margin: 0 auto 36px; }
.title-center h1, .title-center h2 { font: italic 700 clamp(1.8rem, 3.4vw, 2.5rem) "Kanit"; position: relative; display: inline-block; padding: 0 70px; }
.title-center h1::before, .title-center h2::before, .title-center h1::after, .title-center h2::after {
  content: ""; position: absolute; top: 55%; width: 54px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--pink)); }
.title-center h1::before, .title-center h2::before { left: 0; }
.title-center h1::after, .title-center h2::after { right: 0; transform: scaleX(-1); }
.title-center p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { border-radius: 22px; padding: 26px 22px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid #fff; }
.theme-pink { background: linear-gradient(180deg, #ffe9f0, #fff); }
.theme-blue { background: linear-gradient(180deg, #e3f0ff, #fff); }
.theme-gold { background: linear-gradient(180deg, #fff4dc, #fff); }
.theme-green { background: linear-gradient(180deg, #e3f7ea, #fff); }
.service-ic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; color: #fff; }
.service-ic .ic { width: 46px; height: 46px; }
.theme-pink .service-ic { background: linear-gradient(135deg, var(--pink-2), var(--pink)); }
.theme-blue .service-ic { background: linear-gradient(135deg, #3d8bff, var(--blue)); }
.theme-gold .service-ic { background: linear-gradient(135deg, #ffd25e, #e09a00); }
.theme-green .service-ic { background: linear-gradient(135deg, #5fd08a, var(--green)); }
.service h3 { font-size: 1.3rem; }
.service-3d { width: 170px; height: 120px; object-fit: contain; margin: -8px auto 8px; display: block; filter: drop-shadow(0 8px 12px rgba(11, 44, 107, .15)); }
.services.mini .service-3d { width: 90px; height: 64px; margin: 0 0 8px; }
.service ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; flex: 1; }
.service li { position: relative; padding-left: 26px; margin: 6px 0; font-size: .97rem; }
.service li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--pink); color: #fff;
  font-size: .7rem; display: grid; place-items: center; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }
.more { align-self: center; border: 2px solid var(--pink); color: var(--pink); border-radius: 999px; padding: 6px 20px; text-decoration: none; font: 500 .95rem "Kanit"; background: #fff; }
.more:hover { background: var(--pink); color: #fff; }

/* Goals strip */
.goals { display: flex; align-items: stretch; background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; margin-top: -20px; }
.goals-title { margin: 0; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font: italic 700 1.6rem/1.3 "Kanit"; padding: 26px 34px;
  border-radius: 0 60px 60px 0; display: flex; align-items: center; min-width: 290px; }
.goals ul { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(6, 1fr); flex: 1; }
.goals li { text-align: center; padding: 8px 6px; font: 500 .95rem/1.35 "Kanit"; color: var(--navy); border-left: 1px solid var(--line); }
.goals li:first-child { border-left: 0; }
.goals li .ic { width: 40px; height: 40px; color: var(--pink); display: block; margin: 0 auto 6px; }
.goals li img { width: 58px; height: 52px; object-fit: contain; display: block; margin: 0 auto 4px; }
.goals li:nth-child(even) .ic { color: var(--gold); }

/* Steps */
.steps { margin-top: 26px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; border-radius: 24px; display: flex; align-items: center; gap: 20px; padding: 22px 28px; }
.steps h2 { color: #fff; font: italic 700 1.7rem/1.1 "Kanit"; margin: 0; min-width: 220px; }
.steps h2 b { color: var(--gold); font-size: 3rem; }
.steps h2 small { display: block; font-size: 1.05rem; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; gap: 12px; }
.steps li { text-align: center; position: relative; font-family: "Kanit"; }
.steps li + li::before { content: "›"; position: absolute; left: -12px; top: 18px; font-size: 1.8rem; opacity: .7; }
.step-ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--pink); display: grid; place-items: center; margin: 0 auto 6px; }
.step-ic .ic { width: 30px; height: 30px; }
.steps li b { display: block; font-size: 1.15rem; }
.steps li small { opacity: .85; }

/* Why */
.why { margin-top: 26px; display: flex; gap: 20px; align-items: center; }
.why h2 { background: linear-gradient(135deg, #ffe0ea, #fff); border-radius: 24px; padding: 18px 26px; font: italic 700 1.4rem/1.3 "Kanit"; margin: 0; min-width: 260px; box-shadow: var(--shadow); }
.why h2 span { color: var(--pink); font-size: 2.2rem; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); flex: 1; }
.why li { text-align: center; padding: 6px 8px; border-left: 1px solid var(--line); font-family: "Kanit"; color: var(--navy); }
.why li:first-child { border-left: 0; }
.why li .ic { width: 40px; height: 40px; color: var(--pink); display: block; margin: 0 auto 4px; }
.why li b { display: block; font-weight: 600; line-height: 1.3; }
.why li small { color: var(--muted); font-size: .85rem; line-height: 1.3; display: block; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.calc form { padding: 32px; display: grid; gap: 16px; }
label { display: grid; gap: 6px; font: 500 .95rem "Kanit"; color: var(--navy); }
input, select, textarea { font: inherit; font-family: "Sarabun"; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfdff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 91, 196, .15); }
.calc-out { background: linear-gradient(135deg, var(--sky), #fff); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 6px; align-items: flex-start; }
.calc-out .num { font: 700 clamp(2rem, 4vw, 2.8rem) "Kanit"; color: var(--pink); }
.calc-out small { color: var(--muted); }
.calc-out .btn { margin-top: 14px; }

/* Tax */
.tax-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tax-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.tax-card h3 { font-size: 1.1rem; }
.tax-card .big { font: 700 1.35rem "Kanit"; color: var(--pink); margin: 0 0 4px; }
.tax-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* About */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; }
.about-photo { background: #fff; border-radius: 28px; padding: 16px; box-shadow: var(--shadow); }
.about-photo img { display: block; width: 100%; border-radius: 18px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 18px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Reviews */
.reviews { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.reviews h2 { font: italic 700 1.35rem/1.3 "Kanit"; margin: 0; min-width: 200px; }
.reviews figure { flex: 1 1 320px; display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 24px; padding: 18px 22px; margin: 0; box-shadow: var(--shadow); flex-wrap: wrap; }
.reviews img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.reviews blockquote { margin: 0; flex: 1; font-size: .98rem; }
.reviews figcaption { width: 100%; text-align: right; color: var(--muted); font-size: .9rem; }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s; }
.article-card:hover { transform: translateY(-3px); }
.article-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--sky-2), #ffe3ec) center / cover; position: relative; }
.article-cover .cat { position: absolute; left: 14px; top: 14px; background: var(--pink); color: #fff; font: 500 .8rem "Kanit"; padding: 3px 12px; border-radius: 999px; }
.article-body { padding: 18px 20px 22px; }
.article-body small { color: var(--muted); }
.article-body h3 { font-size: 1.15rem; margin: 4px 0 8px; }
.article-body p { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.chips a { padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font: 500 .92rem "Kanit"; }
.chips a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pager a.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.article { max-width: 820px; }
.article h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.meta { color: var(--muted); }
.article-img { width: 100%; border-radius: var(--radius); margin: 10px 0 20px; }

/* Prose (admin-written text) */
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }

/* Join + contact */
.join { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, #fff4dc, #ffe6ee); border-radius: 24px; padding: 32px 36px; margin-top: 10px; }
.join h2 { font-size: 1.6rem; }
.join p { margin: 0; }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.contact-card { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.5rem; }
.big-phone { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; text-decoration: none;
  font: 700 clamp(1.6rem, 3.5vw, 2.4rem) "Kanit"; padding: 10px 28px; border-radius: 999px; margin: 8px 0 16px; box-shadow: 0 8px 20px rgba(230, 51, 111, .3); }
.line-row { display: flex; align-items: center; gap: 10px; font: 600 1.4rem "Kanit"; color: var(--navy); text-decoration: none; }
.line-row .pill-line { font-size: .95rem; padding: 4px 10px; border-radius: 10px; }
.qr { width: 150px; margin-top: 14px; border-radius: 12px; border: 1px solid var(--line); }
.links { list-style: none; padding: 0; margin: 16px 0 0; }
.links li { margin: 4px 0; }
.lead-form { background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.lead-form h3 { font-size: 1.5rem; margin: 0; }
.lead-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.ok { background: #e3f7ea; color: #1b6b3a; padding: 10px 14px; border-radius: 12px; margin: 0; }
.err { background: #ffe6ee; color: #a3123f; padding: 10px 14px; border-radius: 12px; margin: 0 0 10px; }

/* Service detail page */
.page-hero { padding: 26px 0 44px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.page-hero h1 { font: italic 700 clamp(2rem, 4vw, 3rem) "Kanit"; }
.page-hero .lead { font-size: 1.15rem; max-width: 36em; }
.page-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--pink-2), var(--pink)); margin-bottom: 10px; }
.theme-blue .page-ic { background: linear-gradient(135deg, #3d8bff, var(--blue)); }
.theme-gold .page-ic { background: linear-gradient(135deg, #ffd25e, #e09a00); }
.theme-green .page-ic { background: linear-gradient(135deg, #5fd08a, var(--green)); }
.page-ic .ic { width: 36px; height: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.page-img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.detail { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding-top: 40px; padding-bottom: 50px; }
.toc { position: sticky; top: 150px; align-self: start; display: grid; gap: 2px; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); font-family: "Kanit"; }
.toc b { color: var(--navy); margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.toc a:hover { background: var(--sky); color: var(--navy); }
.detail-main > section { margin-bottom: 40px; scroll-margin-top: 150px; }
.detail-main h2 { font-size: 1.6rem; }
.tick-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tick-list li { display: flex; gap: 10px; background: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); }
.tick-list .ic { color: var(--pink); }
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hl { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--sky); }
.hl .ic { color: var(--blue); width: 26px; height: 26px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.plan { position: relative; background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--pink); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.2rem; padding-right: 60px; }
.plan p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.plan ul { padding-left: 1.1em; margin: 0 0 10px; font-size: .95rem; }
.plan dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; margin: auto 0 14px; }
.plan dt { color: var(--muted); }
.plan dd { margin: 0; font-weight: 600; }
.plan .premium { color: var(--pink); }
.plan .btn { align-self: flex-start; }
.badge { position: absolute; right: 16px; top: 16px; background: var(--gold); color: var(--navy); font: 600 .8rem "Kanit"; padding: 2px 10px; border-radius: 999px; }
.tax-note { background: #fff8e6; border-radius: 20px; padding: 24px; border-left: 5px solid var(--gold); }
.tax-note h2 { display: flex; gap: 10px; align-items: center; }
.doc-list { padding-left: 1.3em; }
.doc-list li { margin: 6px 0; }
.faq { background: #fff; border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 18px; font: 500 1.05rem "Kanit"; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 1.4rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff;
  border-radius: 24px; padding: 26px 30px; margin-top: 30px; }
.cta-box h3 { color: #fff; font-size: 1.4rem; margin: 0; }
.cta-box p { margin: 4px 0 0; opacity: .9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.services.mini .service { text-align: left; }
.services.mini .service-ic { margin: 0 0 10px; width: 56px; height: 56px; border-radius: 16px; }
.services.mini .service-ic .ic { width: 30px; height: 30px; }

/* Footer */
.footer { margin-top: 30px; }
.contact-strip { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 26px; padding: 14px 22px; box-shadow: var(--shadow); margin-bottom: -40px; position: relative; z-index: 2; }
.cs-ic { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #3d8bff, var(--blue)); color: #fff; display: grid; place-items: center; flex: none; }
.cs-ic .ic { width: 30px; height: 30px; }
.contact-strip p { margin: 0; font: 600 1.15rem/1.35 "Kanit"; color: var(--navy); }
.cs-phone { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--pink-2), var(--pink)); color: #fff; text-decoration: none;
  font: 700 clamp(1.4rem, 2.6vw, 2.1rem) "Kanit"; padding: 6px 26px; border-radius: 999px; box-shadow: 0 8px 20px rgba(230, 51, 111, .3); white-space: nowrap; }
.cs-phone .ic { width: 28px; height: 28px; }
.cs-line { display: inline-flex; align-items: center; gap: 10px; font: 600 1.25rem "Kanit"; color: var(--navy); text-decoration: none; white-space: nowrap; }
.line-badge { background: #06c755; color: #fff; border-radius: 12px; width: 46px; height: 46px; display: grid; place-items: center; font: 700 .72rem "Kanit"; }
.cs-qr { width: 92px; height: 92px; flex: none; border-radius: 8px; }
.cs-qr img, .cs-qr canvas { width: 92px !important; height: 92px !important; }
.skyline { height: 190px; background: linear-gradient(180deg, transparent, rgba(11, 44, 107, .25)), url("../img/pattaya.jpg") center 70% / cover, linear-gradient(180deg, #bfe0ff, #7fb6ec);
  display: flex; align-items: flex-end; padding: 0 24px 14px; }
.skyline span { font: italic 700 1.5rem "Kanit"; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); background: rgba(230, 51, 111, .9); padding: 2px 14px; border-radius: 10px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 24px; font-size: .86rem; color: var(--muted); }
/* Floating contact buttons */
.float-bar { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.float-bar a, .float-bar button { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(11, 44, 107, .25); cursor: pointer;
  font: 500 .72rem/1.1 "Kanit"; transition: transform .15s; }
.float-bar a:hover, .float-bar button:hover { transform: scale(1.08); }
.float-bar .ic { width: 22px; height: 22px; }
.fb-call { background: linear-gradient(135deg, var(--pink-2), var(--pink)); animation: ring 2.4s infinite; }
.fb-line { background: #06c755; }
.fb-line b { font: 700 .82rem "Kanit"; }
.fb-msg { background: linear-gradient(135deg, #00b2ff, #006aff); }
.fb-book { background: linear-gradient(135deg, var(--blue), var(--navy)); }
.fb-top { background: #fff; color: var(--navy) !important; font-size: 1rem !important; border-color: var(--line) !important; opacity: 0; pointer-events: none; }
.fb-top.show { opacity: 1; pointer-events: auto; }
.float-bar [data-tip]::before { content: attr(data-tip); position: absolute; right: 68px; white-space: nowrap; background: var(--navy); color: #fff; font: 500 .85rem "Kanit";
  padding: 6px 12px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.float-bar [data-tip]:hover::before { opacity: 1; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 51, 111, .55); } 50% { box-shadow: 0 0 0 12px rgba(230, 51, 111, 0); } }
@media (prefers-reduced-motion: reduce) { .fb-call { animation: none; } }

/* Inner pages */
.page-banner { background: linear-gradient(120deg, #dcecff 0%, #f3f9ff 55%, #ffe8f0 100%); padding: 22px 0 34px; position: relative; }
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--pink), var(--blue)); }
.page-banner h1 { font: italic 700 clamp(1.8rem, 3.6vw, 2.6rem) "Kanit"; display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.page-banner h1 .page-ic { margin: 0; width: 54px; height: 54px; }
.page-banner p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.service-list { display: grid; gap: 18px; }
.service-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 26px; align-items: center; border-radius: 24px; padding: 22px 28px; box-shadow: var(--shadow); }
.service-row .service-3d { margin: 0 auto; width: 150px; }
.service-row h2 { font-size: 1.5rem; margin-bottom: 4px; }
.service-row p { margin: 0 0 8px; color: var(--muted); }
.service-row-actions { display: grid; gap: 8px; justify-items: stretch; text-align: center; }
.service-row-actions small { color: var(--muted); }
.mini-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.mini-ticks li { position: relative; padding-left: 22px; font-size: .95rem; }
.mini-ticks li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); color: #fff; font-size: .62rem; display: grid; place-items: center; }
.info-grid, .perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.perk-grid { grid-template-columns: repeat(4, 1fr); }
.info-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.info-card h3 { font-size: 1.12rem; }
.info-card p { margin: 0; color: var(--muted); }
.perk { text-align: center; border-top-color: var(--pink); }
.perk .ic { width: 42px; height: 42px; color: var(--pink); }
.lead-text { font-size: 1.12rem; max-width: 780px; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.ql { display: grid; justify-items: center; text-align: center; gap: 2px; background: #fff; border-radius: 20px; padding: 20px 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); transition: transform .15s; }
.ql:hover { transform: translateY(-3px); }
.ql .ic { width: 38px; height: 38px; color: var(--pink); margin-bottom: 4px; }
.ql b { font: 600 1.08rem "Kanit"; }
.ql small { color: var(--muted); }
.nav a.on:not(.home):not(.btn) { background: var(--sky); color: var(--pink); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .brand-tag { display: none; }
  .agent-badge { margin-left: auto; }
  .nav-inner { gap: 10px; }
  .nav a { padding: 8px 7px; font-size: .94rem; }
  .nav .home { padding: 7px 14px; }
  .services, .tax-grid, .quick-links, .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 120px 1fr; }
  .service-row .service-3d { width: 110px; }
  .service-row-actions { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: start; }
  .goals { flex-direction: column; }
  .goals-title { border-radius: 0; min-width: 0; padding: 18px 24px; }
  .goals ul { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .goals li:nth-child(4) { border-left: 0; }
  .steps, .why { flex-direction: column; align-items: stretch; text-align: center; }
  .why ul { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .why li:nth-child(4) { border-left: 0; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
  .hero { background-position: 38% center; }
  .hero-person { left: auto; right: 2%; height: 92%; max-width: 42%; }
  .hero-note { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar { display: none; }
  .brand-row { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .brand { gap: 6px; }
  .brand img { height: 38px; }
  .brand-text b { font-size: 1.38rem; }
  .brand-text i { font-size: .8rem; white-space: nowrap; }
  .brand-pill { display: none; }
  .mobile-tagline { display: block; text-align: center; background: linear-gradient(90deg, var(--navy), var(--blue)); color: #fff;
    font: 500 .8rem/1.4 "Kanit"; padding: 5px 10px; border-top: 2px solid var(--gold); }
  .mobile-tagline span { color: var(--gold); margin: 0 4px; }
  .agent-badge { margin-left: auto; padding-left: 0; border: 0; gap: 3px; }
  .agent-badge img { height: 24px; }
  .agent-badge b { font-size: .95rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .agent-badge { flex: 0 0 auto; }
  .agent-meta { font-size: .56rem; line-height: 1.25; padding: 0; background: none; color: var(--muted); white-space: normal; text-align: center; max-width: 66px; }
  .am-role { display: none; }
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; flex: none; width: 44px; height: 44px; padding: 0 11px;
    border: 0; border-radius: 12px; background: var(--navy); cursor: pointer; }
  .menu-btn span { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav { border: 0; }
  .nav-inner { padding: 0; }
  .nav a.nav-call { display: none; }
  .nav-inner > ul { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 60; flex-direction: column; align-items: stretch; justify-content: flex-start;
    background: #fff; padding: 6px 16px 18px; box-shadow: 0 16px 30px rgba(11, 44, 107, .16); max-height: calc(100vh - 110px); overflow-y: auto; border-top: 1px solid var(--line); }
  .nav-inner > ul.open { display: flex; }
  .nav-inner > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 12px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav .home { background: none; color: var(--navy); padding: 12px 4px; border-radius: 0; }
  .nav .home .ic { color: var(--pink); }
  .home-label { display: inline; }
  .caret { display: none; }
  .sub { display: block; position: static; box-shadow: none; padding: 0 0 8px 14px; min-width: 0; border-radius: 0; }
  .sub a { font-size: .97rem; color: var(--muted); padding: 8px 4px; }
  .menu-call { display: block; border-bottom: 0 !important; margin-top: 14px; }
  .menu-call a.btn { display: flex; justify-content: center; color: #fff; padding: 13px; border-radius: 999px; }




  .contact-strip { flex-wrap: wrap; justify-content: center; text-align: center; gap: 12px; margin-bottom: -30px; }
  .contact-strip p { width: 100%; }
  .cs-ic { display: none; }
  .cs-phone { margin: 0; width: 100%; justify-content: center; }
  .skyline { height: 140px; }

  .hero-note { display: none; }
  .btn-big { width: 100%; }
  /* stacked hero: picture block, then text */
  .hero { background: linear-gradient(180deg, #dcedfd 0%, #eef6ff 100%) !important; }
  .hero::before { display: none; }
  .hero-grid { display: block; min-height: 0; padding-top: 0; padding-bottom: 64px; }
  .hero-person { display: none; }
  .hero-visual { display: block; position: relative; overflow: hidden; margin: 0 -16px 18px; aspect-ratio: 4 / 3;
    background-color: #c5e3fb; background-repeat: no-repeat; background-size: cover; background-position: 78% center; }
  .hero-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, rgba(220, 237, 253, 0), #dcedfd); }
  .hero-visual img { position: absolute; left: 3%; bottom: 0; height: 100%; width: auto; max-width: 56%; object-fit: contain; object-position: bottom left; z-index: 1;
    filter: drop-shadow(0 8px 18px rgba(11, 44, 107, .2)); }
  .hero-text { max-width: none; }
  .hero h1 { margin-top: 0; }
  .quote { font-size: 1rem; }

  .section { padding: 44px 0; }
  .title-center h1, .title-center h2 { padding: 0 34px; }
  .title-center h1::before, .title-center h2::before, .title-center h1::after, .title-center h2::after { width: 26px; }
  .services, .tax-grid, .article-grid, .tick-list, .hl-grid, .info-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .service-row .mini-ticks { justify-content: center; }
  .service-row-actions { grid-template-columns: 1fr; }
  .goals { margin-top: 0; }
  .goals ul, .why ul { grid-template-columns: repeat(2, 1fr); }
  .goals li, .why li { border-left: 0; }
  .steps { padding: 22px 16px; }
  .steps ol { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .steps li + li::before { display: none; }
  .calc, .contact, .page-hero-grid, .detail { grid-template-columns: 1fr; }
  .calc form, .calc-out, .contact-card, .lead-form { padding: 22px; }
  .join { flex-direction: column; align-items: flex-start; padding: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .toc b { width: 100%; }
  .toc a { background: var(--sky); font-size: .9rem; }
  .detail { padding-top: 24px; }
  .cta-box { padding: 22px; }
  .cta-actions .btn { flex: 1 1 100%; }

  .site-header { position: relative; }
  .lead-form .btn { justify-self: stretch; padding: 14px; font-size: 1.05rem; }
  .float-bar { top: auto; bottom: 14px; right: 10px; transform: none; gap: 8px; }
  .float-bar a, .float-bar button { width: 46px; height: 46px; border-width: 2px; }
  .float-bar a span { display: none; }
  .float-bar .ic { width: 22px; height: 22px; }
  .float-bar [data-tip]::before { display: none; }
  .fb-top { display: none !important; }
}

/* ---------- Small phones (320-380px) ---------- */
@media (max-width: 380px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .hero-visual { margin: 0 -12px 16px; }
  .brand-row { gap: 6px; }
  .brand img { height: 32px; }
  .brand-text b { font-size: 1.22rem; }
  .brand-text i { font-size: .72rem; }
  .agent-badge img { height: 20px; }
  .menu-btn { width: 40px; height: 40px; padding: 0 10px; }
  .hero .t1, .hero .t2 { font-size: 1.85rem; }
  .hero .t3 { font-size: 1.15rem; }
}
