/* Dentallight — จัดฟันใส  |  mood: clean white + Dentallight blue, font Prompt */

:root {
  --blue: #1870b9;
  --blue-dark: #045cb4;
  --blue-deep: #0e4a84;
  --ink: #2c3540;
  --gray: #5a6673;
  --gray-soft: #8a95a1;
  --tint: #f0f6fc;
  --tint-2: #e4effa;
  --line: #dce8f4;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(18, 89, 156, .10);
  --shadow-lg: 0 12px 40px rgba(18, 89, 156, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3 { line-height: 1.35; font-weight: 600; color: var(--ink); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  color: var(--ink); font-size: 15px; font-weight: 400;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.nav-links a:hover { background: var(--tint); color: var(--blue-dark); }
.nav-links a.active { color: var(--blue-dark); font-weight: 500; }
.nav-cta {
  background: var(--blue); color: #fff !important; font-weight: 500;
  padding: 9px 22px; border-radius: 999px; font-size: 15px;
  box-shadow: var(--shadow); white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-dark); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 0;
    font-size: 26px; color: var(--blue-dark); cursor: pointer; line-height: 1;
  }
  .nav-links {
    display: none; width: 100%; flex-direction: column; gap: 0;
    padding: 6px 0 10px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 10px 8px; border-radius: 10px; }
  .nav-cta { margin-left: 8px; padding: 8px 18px; }
}

/* ── hero ────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 90%); }
.hero-grid {
  max-width: 1140px; margin: 0 auto; padding: 56px 20px 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: 40px; font-weight: 700; }
.hero h1 .blue { color: var(--blue); }
.hero .sub { margin: 18px 0 8px; font-size: 18px; color: var(--gray); }
.hero .points { margin: 18px 0 26px; list-style: none; }
.hero .points li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink); }
.hero .points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}
.hero-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 36px 20px 28px; }
  .hero h1 { font-size: 30px; }
}

/* ── buttons ─────────────────────────────────────────── */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 500;
  padding: 13px 32px; border-radius: 999px; font-size: 16px;
  box-shadow: var(--shadow); border: 2px solid var(--blue);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.ghost { background: #fff; color: var(--blue-dark); border: 2px solid var(--blue); box-shadow: none; }
.btn.ghost:hover { background: var(--tint); }
.btn.line { background: #06c755; border-color: #06c755; }
.btn.line:hover { background: #05a648; border-color: #05a648; }

/* ── sections ────────────────────────────────────────── */
.section { padding: 56px 0; }
.section.tint { background: var(--tint); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head h2 { font-size: 30px; }
.section-head .lead { margin-top: 12px; color: var(--gray); font-size: 17px; }
.kicker {
  display: inline-block; color: var(--blue); font-weight: 500; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}
@media (max-width: 700px) {
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 24px; }
}

/* ── cards ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.card .pad { padding: 18px 20px 22px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--gray); font-size: 15px; }

.card-plain {
  background: #fff; border-radius: var(--radius); padding: 26px 26px 28px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.card-plain .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--tint-2);
  color: var(--blue-dark); font-weight: 600; font-size: 19px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card-plain h3 { font-size: 18px; margin-bottom: 8px; }
.card-plain p { color: var(--gray); font-size: 15px; }

/* ── split (image + text) ────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.split.rev > .split-img { order: 2; }
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split h2 { font-size: 28px; margin-bottom: 14px; }
.split p { color: var(--gray); margin-bottom: 12px; }
.split ul { margin: 10px 0 16px 2px; list-style: none; }
.split ul li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.split ul li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split.rev > .split-img { order: 0; }
  .split h2 { font-size: 24px; }
}

/* ── compare table ───────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.compare thead th { background: var(--blue); color: #fff; font-weight: 500; }
table.compare thead th:first-child { border-radius: 0; }
table.compare td.yes { color: var(--blue-dark); font-weight: 500; }
table.compare td.no { color: var(--gray-soft); }
table.compare tbody tr:nth-child(even) { background: var(--tint); }

/* ── steps ───────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.step .n {
  counter-increment: step; width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--gray); font-size: 15px; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 600; flex-shrink: 0; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 22px 20px; color: var(--gray); font-size: 15px; }

/* ── banner images ───────────────────────────────────── */
.banner img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.banner + .banner { margin-top: 26px; }

/* ── quote / testimonial ─────────────────────────────── */
.quote {
  max-width: 860px; margin: 0 auto; background: #fff; border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 30px;
  box-shadow: var(--shadow); color: var(--gray); font-size: 17px;
}
.quote .who { margin-top: 12px; color: var(--blue-dark); font-weight: 500; font-size: 15px; }

/* ── CTA band ────────────────────────────────────────── */
.cta-band { background: linear-gradient(115deg, var(--blue-dark), var(--blue)); }
.cta-band .inner {
  max-width: 900px; margin: 0 auto; padding: 52px 20px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.cta-band p { opacity: .92; margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: var(--blue-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--tint); }
.cta-band .btn.line { background: #06c755; color: #fff; border-color: #06c755; }
@media (max-width: 700px) { .cta-band h2 { font-size: 22px; } }

/* ── trust strip ─────────────────────────────────────── */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.trust-strip .t { background: #fff; border-radius: var(--radius); padding: 22px 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.trust-strip .big { font-size: 26px; font-weight: 700; color: var(--blue-dark); }
.trust-strip .cap { font-size: 14px; color: var(--gray); margin-top: 4px; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: 1fr 1fr; } }

/* ── breadcrumb ──────────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--gray-soft); padding: 16px 0 0; }
.crumbs a { color: var(--gray); }

/* ── prose (long-form pages) ─────────────────────────── */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 26px; margin: 36px 0 14px; }
.prose h3 { font-size: 20px; margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose .note {
  background: var(--tint); border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 20px 0; color: var(--gray);
  font-size: 15px;
}

/* ── branches ────────────────────────────────────────── */
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.branch {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow);
}
.branch h3 { font-size: 16px; color: var(--blue-dark); margin-bottom: 4px; }
.branch p { font-size: 14px; color: var(--gray); }
@media (max-width: 900px) { .branch-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .branch-grid { grid-template-columns: 1fr; } }

/* ── footer ──────────────────────────────────────────── */
footer { background: var(--blue-deep); color: #cfe2f4; margin-top: 64px; }
.footer-grid {
  max-width: 1140px; margin: 0 auto; padding: 48px 20px 28px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
}
.footer-grid .logo-box img { height: 38px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer-grid .about { margin-top: 14px; font-size: 14px; line-height: 1.8; }
.footer-grid .h { color: #fff; font-weight: 500; margin-bottom: 12px; }
.footer-grid a { color: #cfe2f4; display: block; font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-grid .txt { font-size: 14px; margin-bottom: 8px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.15); text-align: center;
  padding: 18px; font-size: 13px; color: #9dbcd9;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── photo gallery ───────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 14px; box-shadow: var(--shadow);
}
.gallery-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .gallery-grid, .gallery-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid, .gallery-grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }

/* ── video ───────────────────────────────────────────── */
.video-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.video-card video { width: 100%; display: block; }
.video-card .cap { padding: 14px 20px; font-size: 15px; color: var(--gray); }

/* ── promo hero ──────────────────────────────────────── */
.promo-hero { background: linear-gradient(115deg, var(--blue-deep), var(--blue)); color: #fff; }
.promo-hero .inner { max-width: 900px; margin: 0 auto; padding: 56px 20px; text-align: center; }
.promo-hero h1 { color: #fff; font-size: 36px; }
.promo-hero p { opacity: .94; margin: 14px 0 24px; font-size: 18px; }
.promo-hero .btn { background: #fff; color: var(--blue-dark); border-color: #fff; }
.promo-hero .btn.line { background: #06c755; color: #fff; border-color: #06c755; }
@media (max-width: 700px) { .promo-hero h1 { font-size: 27px; } }

/* ── floating LINE button ────────────────────────────── */
.fab-line {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: #06c755; color: #fff; font-weight: 500; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.22);
  display: flex; align-items: center; gap: 8px;
}
.fab-line:hover { background: #05a648; }
