/* น้ำอ้อย ที่ปรึกษาการเงิน — front-end styles (mobile first adjustments at the bottom) */
:root {
  /* brand palette: Allianz navy / white / gold — "pink" names kept for old selectors, now dark gold */
  --navy: #102F68;
  --navy-2: #1B3F80;
  --blue: #24508F;
  --sky: #EAF0F9;
  --sky-2: #DCE5F3;
  --pink: #B8892F;
  --pink-2: #E2BC6C;
  --gold: #D6A648;
  --gold-grad: linear-gradient(135deg, #EDD08F 0%, #D6A648 48%, #B8892F 100%);
  --navy-grad: linear-gradient(135deg, #1B3F80 0%, #102F68 60%, #0A2150 100%);
  --green: #2f9e55;
  --ink: #17233b;
  --muted: #5a6780;
  --line: #E1E7F1;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 47, 104, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: #F4F7FC;
  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: var(--gold-grad); color: #fff; box-shadow: 0 8px 20px rgba(184, 137, 47, .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(16, 47, 104, .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(214, 166, 72, .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: var(--gold-grad); 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: var(--gold-grad); color: #fff; }
.nav-call { flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #c5e3fb no-repeat right center / cover; }
/* family photo: round badge with white ring, gold orbit and a heart tag, bottom-right over the building */
.hero-family { position: absolute; right: 4%; bottom: 52px; width: min(215px, 15%); aspect-ratio: 1; margin: 0; z-index: 3; }
.hero-family::before { content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 2px dashed rgba(214, 166, 72, .9); animation: fam-spin 40s linear infinite; }
.hero-family::after { content: ""; position: absolute; inset: -26px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 70%); }
.hero-family img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 50%;
  border: 6px solid #fff; box-shadow: 0 18px 40px rgba(16, 47, 104, .32), 0 0 0 3px rgba(214, 166, 72, .6); }
.hero-family figcaption { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap;
  padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--navy); font: 600 .95rem "Kanit";
  box-shadow: 0 8px 20px rgba(16, 47, 104, .2); }
.hero-family figcaption span { color: var(--pink); }
@keyframes fam-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-family::before { animation: none; } }
/* 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, .94) 0%, rgba(243, 249, 255, .86) 34%, rgba(243, 249, 255, .45) 48%, rgba(243, 249, 255, 0) 62%); }
.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='%23f4f7fc'/%3E%3Cpath d='M0 42C380 4 1060 78 1440 18' stroke='%23d6a648' 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='%23d6a648' 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(16, 47, 104, .18)); }
/* speech bubble above the family picture: white card, tail pointing to the agent, gentle float */
.hero-note { position: absolute; right: 3%; top: 14px; margin: 0; padding: 14px 22px 16px; z-index: 4;
  font: 1.3rem/1.35 "Itim", "Kanit", cursive; color: var(--navy); text-align: center;
  background: rgba(255, 255, 255, .96); border: 2px solid #fff; border-radius: 26px;
  box-shadow: 0 14px 34px rgba(16, 47, 104, .20), 0 0 0 5px rgba(214, 166, 72, .35);
  animation: note-float 4.5s ease-in-out infinite; }
.hero-note::after { content: ""; position: absolute; left: 22px; bottom: -14px; width: 26px; height: 26px; background: #fff;
  transform: rotate(45deg) skew(12deg, 12deg); border-radius: 0 0 6px 0; box-shadow: 6px 6px 10px rgba(16, 47, 104, .08); }
.hero-note span { color: var(--pink); }
@keyframes note-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(-3deg); } }

/* Hero bullets with emoji + bold heading */
.checks li { align-items: flex-start; line-height: 1.5; }
.checks li b { color: var(--navy); }
.tick.emoji { background: #fff; box-shadow: 0 3px 10px rgba(16, 47, 104, .15); width: 32px; height: 32px; font-size: 1.05rem; margin-top: -3px; }

/* Main CTA: brightest thing in the hero */
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.btn-glow { position: relative; overflow: hidden; isolation: isolate;
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 14px 30px rgba(184, 137, 47, .45);
  animation: cta-pulse 2.4s ease-in-out infinite; transition: transform .2s, box-shadow .2s; }
.btn-glow::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg);
  animation: cta-shine 3.2s ease-in-out infinite; }
.btn-glow:hover, .btn-glow:focus-visible { transform: translateY(-4px) scale(1.04); animation-play-state: paused;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 20px 40px rgba(184, 137, 47, .55); }
.btn-glow:hover .arrow { transform: translateX(5px); }
.btn-glow .arrow { transition: transform .2s; }
@keyframes cta-pulse { 0%, 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--gold), 0 14px 30px rgba(184, 137, 47, .45); }
  50% { box-shadow: 0 0 0 4px #fff, 0 0 0 11px rgba(214, 166, 72, .55), 0 14px 34px rgba(184, 137, 47, .55); } }
@keyframes cta-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.hero-alt { display: inline-flex; align-items: center; gap: 12px; padding: 10px 24px 10px 10px; border-radius: 999px;
  background: #fff; border: 2px solid #06c755; box-shadow: 0 10px 24px rgba(6, 199, 85, .22);
  font: 600 1.2rem/1.2 "Kanit"; color: var(--navy); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hero-alt small { display: block; font: 400 .85rem "Sarabun"; color: #4a5a78; }
.hero-alt .line-badge { width: 50px; height: 50px; border-radius: 50%; font-size: .78rem; flex: none; }
.hero-alt:hover { color: #06a648; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(6, 199, 85, .3); }
@media (prefers-reduced-motion: reduce) { .hero-note, .btn-glow, .btn-glow::before { animation: none; } }

/* Poster cards (plans & promotions) */
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 26px; }
.poster { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.poster:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16, 47, 104, .16); }
.poster img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }
.poster span { padding: 14px 18px 18px; display: grid; gap: 6px; }
.poster b { font: 600 1.05rem/1.4 "Kanit"; color: var(--navy); }
.poster small { color: var(--pink); font-weight: 600; }
.article-img.is-poster { max-width: 560px; display: block; margin-left: auto; margin-right: auto; box-shadow: var(--shadow); }
.join-poster { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; margin: 10px 0 34px; }
.join-poster img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.join-poster h2 { font: italic 700 clamp(1.6rem, 3vw, 2.2rem)/1.25 "Kanit"; color: var(--navy); margin: 0 0 10px; }
.join-poster h2 em { color: var(--pink); }
.join-poster .checks li { font-size: 1.08rem; }

/* 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, #F7EFDD, #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: var(--gold-grad); }
.theme-blue .service-ic { background: linear-gradient(135deg, #3d8bff, var(--blue)); }
.theme-gold .service-ic { background: linear-gradient(135deg, #EDD08F, #B8892F); }
.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(16, 47, 104, .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, #F7EFDD, #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), #F7EFDD) 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, #F7EFDD, #EAF0F9); 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: var(--gold-grad); 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(184, 137, 47, .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: var(--gold-grad); margin-bottom: 10px; }
.theme-blue .page-ic { background: linear-gradient(135deg, #3d8bff, var(--blue)); }
.theme-gold .page-ic { background: linear-gradient(135deg, #EDD08F, #B8892F); }
.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: #FBF5E8; 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: var(--gold-grad); 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(184, 137, 47, .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(16, 47, 104, .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(184, 137, 47, .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(16, 47, 104, .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: var(--gold-grad); 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(184, 137, 47, .55); } 50% { box-shadow: 0 0 0 12px rgba(184, 137, 47, 0); } }
@media (prefers-reduced-motion: reduce) { .fb-call { animation: none; } }

/* Inner pages */
.page-banner { background: linear-gradient(120deg, #DCE5F3 0%, #F4F7FC 55%, #F7EFDD 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; }
  .hero-family { 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(16, 47, 104, .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%; }
  .hero-cta { justify-content: center; }
  .poster-grid, .join-poster { grid-template-columns: 1fr; }
  /* 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: right 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(16, 47, 104, .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; }
}
.fb-badge { background: #1877f2; font-size: 1.4rem; font-family: Arial, sans-serif; }
.hero .t3 em { white-space: nowrap; display: inline-block; }
.hero .t3 { font-size: clamp(1.2rem, 2.3vw, 1.85rem); }
.checks li b { font-weight: 700; font-family: "Kanit", sans-serif; font-weight: 600; }
.fb-page { background: #1877f2; }

/* ---------- Mobile: contact buttons become a bottom bar, headline sized to fit ---------- */
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .float-bar { left: 0; right: 0; bottom: 0; top: auto; transform: none; flex-direction: row; gap: 0;
    background: #fff; box-shadow: 0 -6px 20px rgba(16, 47, 104, .14); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .float-bar a { flex: 1 1 0; width: auto; height: 54px; border: 0; border-radius: 12px; margin: 0 3px; gap: 1px; animation: none; }
  .float-bar a span { display: block; font: 600 .72rem/1 "Kanit"; }
  .float-bar .ic, .float-bar svg { width: 20px; height: 20px; }
  .fb-line b { font-size: .78rem; }
  .fb-line::after { content: "แชทไลน์"; font: 600 .62rem/1 "Kanit"; opacity: .9; }
  .hero .t1, .hero .t2 { font-size: min(1.85rem, 7vw); }
  .hero .t3 { font-size: min(1.15rem, 4.6vw); }
  .hero .t3 em { white-space: normal; display: inline; }
  .quote { text-wrap: balance; }
}
.hero-alt .fb-badge { font-size: 1.15rem; }
@media (min-width: 1081px) { .hero-person { left: 49%; height: 97%; } }

/* Mobile: family photo as a small round badge in the top-right of the picture block */
@media (max-width: 760px) {
  .hero-family { display: block; top: 12px; right: 14px; bottom: auto; width: 25vw; max-width: 110px; }
  .hero-family::before { inset: -7px; }
  .hero-family::after { inset: -14px; }
  .hero-family img { border-width: 4px; }
  .hero-family figcaption { bottom: -10px; padding: 2px 9px; font-size: .68rem; }
}


/* ---------- Premium navy / white / gold theme ---------- */
.btn-pink, .big-phone, .cs-phone, .fb-call, .nav a.btn, .nav a.btn:hover { color: var(--navy); }
.btn-pink { box-shadow: 0 10px 24px rgba(184, 137, 47, .32), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-pink:hover { color: var(--navy); }
.btn-outline { border-color: var(--gold); color: var(--navy); }
.btn-blue { background: var(--navy-grad); }
.nav .home { background: var(--navy-grad); color: #fff; }
.nav .home:hover { color: var(--gold); }
.nav a:hover { color: var(--pink); }
.topbar { background: var(--navy-grad); border-bottom: 2px solid var(--gold); }
.brand-pill { background: var(--navy-grad); box-shadow: inset 0 0 0 1.5px var(--gold); }
.theme-pink { background: linear-gradient(180deg, #F7EFDD, #fff); }
.theme-blue { background: linear-gradient(180deg, #E6EDF8, #fff); }
.theme-gold { background: linear-gradient(180deg, #F7EFDD, #fff); }
.theme-blue .service-ic, .theme-blue .page-ic { background: var(--navy-grad); }
.theme-gold .service-ic { background: var(--gold-grad); }
.hero-note span, .hero-family figcaption span { color: var(--gold); }

/* Brand wordmark: navy name with a gold edge, small spaced subtitle between gold rules */
.brand-text { align-items: center; }
.brand-text b { font: 700 2.6rem/1.2 "Kanit"; color: var(--navy); padding-top: .08em; letter-spacing: .02em;
  text-shadow: 1px 0 0 var(--gold), -1px 0 0 var(--gold), 0 1px 0 var(--gold), 0 -1px 0 var(--gold),
    1px 1px 0 var(--gold), -1px -1px 0 var(--gold), 1px -1px 0 var(--gold), -1px 1px 0 var(--gold), 0 4px 10px rgba(16, 47, 104, .18); }
.brand-text i { display: flex; align-items: center; gap: 8px; font: 500 .95rem/1.4 "Kanit"; font-style: normal; color: var(--navy); letter-spacing: .03em; }
.brand-text i::before, .brand-text i::after { content: ""; width: 18px; height: 1.5px; background: var(--gold); }
.brand-pill { display: none; }

/* Allianz logo: original navy-on-white, with a fine gold edge around the letters */
.agent-badge img { filter: drop-shadow(.6px 0 0 #D6A648) drop-shadow(-.6px 0 0 #D6A648) drop-shadow(0 .6px 0 #D6A648) drop-shadow(0 -.6px 0 #D6A648); }
.agent-meta { background: #fff; box-shadow: inset 0 0 0 1px var(--gold); color: var(--navy); }
@media (max-width: 760px) {
  .brand-text b { font-size: 1.9rem; }
  .brand-text i { font-size: .75rem; letter-spacing: .02em; gap: 6px; }
  .brand-text i::before, .brand-text i::after { width: 12px; }
}

/* ---------- Mobile hero (matches the approved phone mockup) ---------- */
.hero-m { display: none; }
@media (max-width: 760px) {
  /* header: Allianz logo | น้ำอ้อย ที่ปรึกษาการเงิน · menu */
  .mobile-tagline { display: none; }
  .brand-row { padding-top: 7px; padding-bottom: 7px; gap: 10px; }
  .agent-badge { order: -1; margin: 0; padding: 0 10px 0 0; border-right: 1.5px solid var(--navy); border-radius: 0; }
  .agent-badge img { height: 27px; filter: none; }
  .agent-meta { display: none; }
  .brand { margin-right: auto; }
  .brand-text { flex-direction: row; align-items: baseline; gap: 5px; white-space: nowrap; }
  .brand-text b { font: 600 1.12rem/1.2 "Kanit"; text-shadow: none; padding: 0; letter-spacing: 0; }
  .brand-text i { font: 500 1rem/1.2 "Kanit"; letter-spacing: 0; color: var(--navy); }
  .brand-text i::before, .brand-text i::after { display: none; }
  .menu-btn { background: none; padding: 0 8px; }
  .menu-btn span { background: var(--navy); height: 3px; }

  .hero { background: #F4F7FC !important; }
  .hero::after { display: none; }
  .hero-grid { display: none; }
  .site-header { box-shadow: none; }
  .hero-m { display: block; position: relative; overflow: hidden; background: #EAF0F9; }
  .hm-art { display: block; width: 100%; height: auto; }
  /* live copy stays in the DOM for SEO / screen readers; the artwork shows the designed version */
  .hm-title, .hm-sub { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* transparent tap areas exactly over the buttons drawn in the artwork */
  .hm-btn { position: absolute; z-index: 3; top: 81.7%; height: 11.7%; border-radius: 999px; overflow: hidden;
    color: transparent; font-size: 0; text-decoration: none; -webkit-tap-highlight-color: rgba(16, 47, 104, .15); }
  .hm-btn > * { display: none; }
  .hm-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .hm-btn-navy { left: 43.2%; width: 25.1%; }
  .hm-btn-line { left: 70%; width: 24.5%; }
}

/* Desktop wordmark: shiny metallic gold with a moving sparkle */
@media (min-width: 761px) {
  .brand-text b {
    font-size: 2.9rem; letter-spacing: .03em; color: transparent; text-shadow: none;
    background:
      linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .95) 48%, transparent 60%) -200% 0 / 250% 100% no-repeat,
      linear-gradient(180deg, #FFF6D0 0%, #F9DC8A 22%, #D9A53A 45%, #A8761C 55%, #E9C163 72%, #FFF0B3 88%, #C8952F 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-stroke: .6px #8A6114;
    filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 3px 6px rgba(168, 118, 28, .35));
    animation: gold-shine 4s ease-in-out infinite;
  }
  .brand-text i { color: var(--navy); font-weight: 600; }
  .brand-text i::before, .brand-text i::after { height: 2px; width: 24px; background: linear-gradient(90deg, #A8761C, #FFE9A6, #D9A53A); }
  .brand-text i::after { background: linear-gradient(90deg, #D9A53A, #FFE9A6, #A8761C); }
  .agent-badge img { filter: none; }
}
@keyframes gold-shine { 0%, 55% { background-position: -200% 0, 0 0; } 100% { background-position: 200% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .brand-text b { animation: none; } }
