/* AquaFit landing — reduced palette: sky (primary) + cream/white + navy ink. LINE green for LINE CTAs only. */
:root {
  /* Open Sans for Latin; Thai glyphs fall through to Noto Sans Thai (same proportions) */
  --font-display: "Open Sans", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "Open Sans", "Noto Sans Thai", system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.03em;
  --cream: #fff8ef;
  --cream-2: #fbf0e2;
  --ink: #17305a;
  --ink-soft: #5a6a86;
  --sky-50: #f0f9ff; --sky-100: #e0f2fe; --sky-200: #bae6fd; --sky-300: #7dd3fc;
  --sky-400: #38bdf8; --sky-500: #0ea5e9; --sky-600: #0284c7; --sky-700: #0369a1;
  --line: #06c755;
  --line-dark: #05a647;
  --line-ink: #ffffff;     /* brand call: white on LINE green (2.3:1 — below WCAG AA for normal text) */
  --star: #f5b301;
  --shadow-sm: 0 2px 6px -2px rgb(23 48 90 / 0.08), 0 8px 20px -12px rgb(23 48 90 / 0.14);
  --shadow: 0 4px 10px -4px rgb(23 48 90 / 0.08), 0 18px 40px -20px rgb(23 48 90 / 0.22);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.6; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, .font-display { font-family: var(--font-display); letter-spacing: var(--display-tracking); line-height: 1.1; }

:is(h1, h2, h3, .mo-h) { font-weight: var(--display-weight) !important; }
@media (min-width: 768px) { h1 { font-size: 52px !important; } }
.btn-line, .mo-pill { font-weight: 700; letter-spacing: -0.01em; }

/* Thai: no negative tracking, taller lines for stacked vowels/tone marks */
html[lang="th"] { --display-tracking: 0; }
html[lang="th"] :is(h1, h2, h3) { line-height: 1.35 !important; }
html[lang="th"] body { line-height: 1.75; }
html[lang="th"] .btn-line, html[lang="th"] .mo-pill { letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 12px; }

/* header */
.af-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--cream) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.af-header .logo { height: 38px; width: auto; }
.af-header .right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.lang a { padding: 6px; border-radius: 8px; color: inherit; text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { color: var(--ink); text-decoration: underline 2px var(--sky-400); text-underline-offset: 4px; }
.lang span { opacity: 0.4; }
.btn-outline { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); font-weight: 800; font-size: 13px; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
@media (min-width: 768px) { .af-header { padding: 16px 32px; } .af-header .logo { height: 46px; } .btn-outline { padding: 10px 18px; font-size: 14px; } .lang { font-size: 14px; } }

/* LINE CTA */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px 15px 16px; border-radius: 999px;
  background: var(--line); color: var(--line-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 19px; text-decoration: none;
  box-shadow: 0 6px 0 -1px var(--line-dark), 0 14px 28px -12px rgb(6 199 85 / 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-line .ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--line); flex: none; }
.btn-line .ico svg { width: 22px; height: 22px; }
.btn-line:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -1px var(--line-dark), 0 18px 32px -12px rgb(6 199 85 / 0.65); }
.btn-line:active { transform: translateY(4px); box-shadow: 0 2px 0 -1px var(--line-dark), 0 8px 16px -10px rgb(6 199 85 / 0.5); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 999px; color: var(--ink); font-weight: 800; text-decoration: none; background: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost svg { width: 18px; height: 18px; color: var(--sky-500); }

/* chips / stickers */
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sky-100); color: var(--sky-700); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; }
.kicker svg { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 800; font-size: 13px; color: var(--ink); }
.sticker { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-weight: 800; font-size: 14px; line-height: 1.2; white-space: nowrap; animation: float 6s ease-in-out infinite; }
.sticker small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 12px; }
.sticker .ib { width: 32px; height: 32px; border-radius: 12px; }
.ib { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 18px; background: var(--sky-100); color: var(--sky-600); }
.ib svg { width: 55%; height: 55%; }

/* type */
.section-title { font-size: clamp(30px, 6vw, 48px); font-weight: 600; }
.section-sub { color: var(--ink-soft); font-size: 17px; max-width: 34rem; }
.hl { background: linear-gradient(transparent 62%, var(--sky-200) 62%); padding: 0 0.1em; border-radius: 4px; }
.hl-sky { color: var(--sky-500); }

/* cards */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.photo-card { background: #fff; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.photo-card .ph { aspect-ratio: 4/3; overflow: hidden; }
.photo-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s ease; }
.photo-card:hover .ph img { scale: 1.04; }
.photo-card .body { padding: 20px 22px 24px; }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* polaroid */
.polaroid { background: #fff; padding: 10px 10px 36px; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(var(--r, -3deg)); position: relative; margin: 0; }
.polaroid img { border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--font-display); font-size: 14px; color: var(--ink-soft); }
.polaroid::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; translate: -50% 0; rotate: 4deg; background: rgb(186 230 253 / 0.85); border-radius: 3px; }

/* reviews */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { display: block; width: 18px; height: 18px; flex: none; }
.review { flex: none; width: min(84vw, 340px); scroll-snap-align: start; background: #fff; border-radius: 26px; padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-weight: 700; font-size: 16px; }
.review footer { display: flex; align-items: center; gap: 10px; margin-top: auto; font-size: 14px; font-weight: 800; }
.review footer small { display: block; font-weight: 600; color: var(--ink-soft); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--sky-700); font-family: var(--font-display); font-weight: 600; }
.placeholder-flag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #9a6b00; background: #fff4d6; border-radius: 6px; padding: 2px 6px; }
.snap { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 16px 16px; scroll-padding-inline: 16px; }
.snap::-webkit-scrollbar { display: none; }

/* before / after */
.ba { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; margin: 0; }
.ba img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.ba .tag { position: absolute; top: 12px; left: 12px; }
.ba .labels { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: space-around; }
.ba .labels span { background: rgb(255 255 255 / 0.9); padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; }

/* faq */
.faq details { background: #fff; border-radius: 20px; padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--sky-500); transition: rotate 0.2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* sticky mobile CTA */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; background: rgb(255 255 255 / 0.94); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: var(--shadow); }
.mobile-cta p { margin: 0; font-size: 13px; line-height: 1.2; font-weight: 700; flex: 1; }
.mobile-cta p small { display: block; color: var(--ink-soft); font-weight: 600; }
.mobile-cta .btn-line { padding: 8px 16px 8px 8px; font-size: 16px; box-shadow: 0 4px 0 -1px var(--line-dark); }
.mobile-cta .btn-line .ico { width: 28px; height: 28px; }
/* hidden until the visitor scrolls past the video (a2.html toggles .is-visible) */
.mobile-cta { transform: translateY(160%); opacity: 0; visibility: hidden; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s, visibility 0s linear 0.4s; }
.mobile-cta.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* deco */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.deco svg { position: absolute; }
.bubble { position: absolute; border-radius: 50%; border: 2px solid var(--sky-200); background: rgb(255 255 255 / 0.55); animation: float 7s ease-in-out infinite; }


/* ---------- page sections ---------- */
.hero-photo { position: relative; width: min(100%, 460px); margin-inline: auto; aspect-ratio: 4/5; }
.hero-photo .mask { position: absolute; inset: 0; overflow: hidden; border-radius: 58% 42% 48% 52% / 46% 52% 48% 54%; border: 8px solid #fff; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.tub-frame { padding: 10px; border-radius: 44px; background: #fff; box-shadow: var(--shadow); }
.why-photo { position: relative; border-radius: 36px; overflow: hidden; min-height: 320px; box-shadow: var(--shadow-sm); }
.why-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .photo-card .ph.sq { aspect-ratio: 1; } }
.rating-pill { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px; padding: 10px 10px 10px 22px; box-shadow: var(--shadow-sm); font-weight: 800; }
.rating-pill .num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; }
.rating-pill .stars svg { width: 26px; height: 26px; }
.rating-pill small { display: block; color: var(--ink-soft); font-weight: 700; font-size: 13px; }
.rating-pill .btn-ghost { box-shadow: none; background: var(--sky-50); padding: 10px 16px; }
@media (min-width: 900px) {
  .reviews.snap { display: block; columns: 3; column-gap: 18px; overflow: visible; margin-inline: 0; padding: 0; }
  .reviews .review { width: auto; break-inside: avoid; margin-bottom: 18px; }
}

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.nw { white-space: nowrap; } /* keep a Thai phrase together */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
