/* ============================================================
   YIMWAAN DENTAL CLINIC — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --green:       #4A7973;
  --green-dk:    #3a6560;
  --green-lt:    #EAF4F3;
  --text:        #1a1a1a;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --bg:          #f9fafb;
  --white:       #ffffff;
  --radius:      10px;
  --max-w:       1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Sarabun', 'Noto Sans Thai', sans-serif; color: var(--text); background: var(--white); line-height: 1.75; font-size: 16px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
p  { color: var(--muted); line-height: 1.8; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: var(--green-dk); }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--white); }
.btn-white { background: var(--white); color: var(--green); }
.btn-white:hover { background: var(--green-lt); }

/* ── Divider ── */
.divider { width: 40px; height: 3px; background: var(--green); border-radius: 2px; margin: 14px 0 32px; }
.divider.center { margin: 14px auto 32px; }

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px; height: 64px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-menu { display: flex; list-style: none; gap: 2px; }
.nav-menu a {
  display: block; padding: 6px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--green); background: var(--green-lt); }
.nav-menu .cta-link a {
  background: var(--green); color: var(--white) !important;
  border-radius: 50px; padding: 7px 18px;
}
.nav-menu .cta-link a:hover { background: var(--green-dk); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 11px 16px; border-radius: 8px; font-weight: 500;
  color: var(--text); transition: .2s;
}
.mobile-nav a:hover { background: var(--green-lt); color: var(--green); }
.mobile-nav .mobile-cta {
  margin-top: 8px; background: var(--green); color: var(--white) !important;
  text-align: center; border-radius: 50px; padding: 12px !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.55);
  padding: 48px 24px 28px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 24px;
}
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 0.85rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem;
}

/* ============================================================
   CONTACT STRIP (re-usable at bottom of pages)
   ============================================================ */
.contact-strip {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}
.contact-strip-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.contact-strip p { font-size: 0.9rem; margin: 0; }
.contact-strip p strong { color: var(--text); }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
/* phone pill */
.contact-links .c-phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  background: var(--green); color: white;
  font-size: 0.88rem; font-weight: 700; line-height: 1;
  transition: background .2s, transform .2s; white-space: nowrap;
}
.contact-links .c-phone:hover { background: var(--green-dk); transform: translateY(-2px); }
.contact-links .c-phone img { height: 16px; width: auto; flex-shrink: 0; }
/* icon-only — same height as pill */
.contact-links .c-icon {
  display: inline-block; line-height: 0; flex-shrink: 0;
  width: 42px; height: 42px;
  transition: opacity .2s, transform .2s;
}
.contact-links .c-icon:hover { opacity: .75; transform: translateY(-2px); }
.contact-links .c-icon img { width: 42px; height: 42px; object-fit: contain; display: block; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  background-color: var(--green-lt);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18;
}
.page-hero-content {
  position: relative; z-index: 1;
  padding: 72px 24px 56px;
  max-width: var(--max-w); margin: 0 auto;
}
.page-hero-content h1 { color: var(--green); }
.page-hero-content p { max-width: 560px; margin-top: 10px; font-size: 1.05rem; }

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--bg); }

/* ============================================================
   PRICE TABLE (services page)
   ============================================================ */
.price-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
}
.price-card-head {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.price-card-head img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.price-card-head-text h2 { font-size: 1.1rem; color: var(--text); }
.price-badge {
  margin-top: 4px; display: inline-block;
  background: var(--green-lt); color: var(--green);
  font-size: 0.78rem; font-weight: 700; padding: 3px 12px;
  border-radius: 20px; letter-spacing: .02em;
}
.price-rows { }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 24px; border-bottom: 1px solid var(--border); gap: 16px;
}
.price-row:last-child { border-bottom: none; }
.price-row .name { color: var(--text); font-size: 0.9rem; }
.price-row .amount { color: var(--green); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--green); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; margin-top: 2px;
}
.step-body h3 { font-size: 1rem; margin-bottom: 4px; }
.step-body p { font-size: 0.9rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; background: none; border: none; text-align: left;
  font-size: 0.95rem; font-weight: 600; color: var(--text); gap: 16px;
}
.faq-btn .icon { color: var(--green); font-size: 1.2rem; flex-shrink: 0; transition: transform .3s; }
.faq-btn.open .icon { transform: rotate(45deg); }
.faq-ans { display: none; padding-bottom: 20px; }
.faq-ans.open { display: block; }
.faq-ans p, .faq-ans li { font-size: 0.9rem; }
.faq-ans ul, .faq-ans ol { padding-left: 20px; margin-top: 8px; }
.faq-ans li { margin-bottom: 6px; }

/* ============================================================
   SYMPTOM CHIPS
   ============================================================ */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  padding: 7px 16px; border-radius: 50px;
  border: 1px solid var(--border); font-size: 0.85rem; color: var(--muted);
  background: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-strip-inner { flex-direction: column; text-align: center; }

  .section { padding: 56px 0; }
  .page-hero-content { padding: 48px 24px 40px; }
}
@media (max-width: 480px) {
  .btn { padding: 11px 22px; font-size: 0.9rem; }
}
