/* ============================================================
   คนึงจันนวดเพื่อสุขภาพ จันทบุรี — Design System
   Soft Thai-spa theme: warm cream + sage green + Thai gold + soft plum
   Hand-written CSS (no framework) for top Core Web Vitals = good SEO.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --bg:          #FAF6EF;   /* warm cream page background */
  --surface:     #FFFFFF;
  --surface-2:   #FFFDF9;
  --surface-alt: #F1EADE;   /* alternating section bg */
  --sage:        #7E9072;   /* primary — calm herbal green */
  --sage-dark:   #566048;
  --sage-soft:   #E7EDDF;
  --gold:        #BC9A5F;   /* Thai warm gold accent */
  --gold-dark:   #7A5D2C;
  --plum:        #7C5A6E;   /* soft mauve — echoes brand sign + lavender walls */
  --plum-soft:   #F0E7ED;
  --ink:         #38332C;   /* main text */
  --muted:       #6E665A;   /* secondary text */
  --line:        #E8DECB;   /* hairlines / borders */
  --line-soft:   #F0E8DA;
  --line-green:  #06C755;   /* LINE brand */
  --line-green-d:#05a546;
  --line-green-btn: #06803A;  /* เขียวเข้มพอให้ตัวอักษรขาวผ่าน WCAG */

  /* Typography */
  --font-head: "Prompt", system-ui, -apple-system, "Segoe UI", "Sarabun", sans-serif;
  --font-body: "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing / shape */
  --container: 1140px;
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow:    0 10px 30px -12px rgba(86, 96, 72, .25);
  --shadow-sm: 0 4px 14px -8px rgba(86, 96, 72, .25);
  --shadow-lg: 0 24px 60px -20px rgba(56, 51, 44, .30);
  --ring:      0 0 0 3px rgba(126, 144, 114, .35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* ~17px */
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--sage-dark);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p  { color: var(--ink); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--surface-alt); }
.section--sage { background: var(--sage-soft); }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }
.grid { display: grid; gap: 1.5rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 500; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); margin-top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--sage); --btn-fg: #fff; --btn-bd: var(--sage);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--gold  { --btn-bg: var(--gold-dark); --btn-bd: var(--gold-dark); }
.btn--gold:hover { background: #5f4824; }
.btn--line  { --btn-bg: var(--line-green-btn); --btn-bd: var(--line-green-btn); }
.btn--line:hover { background: #056e30; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--sage-dark); --btn-bd: var(--line); box-shadow: none; }
.btn--ghost:hover { --btn-fg: var(--sage-dark); background: var(--surface); border-color: var(--sage); }
.btn--lg { font-size: 1.08rem; padding: .95rem 1.85rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); }
.brand__logo { width: 42px; height: 42px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name b { font-weight: 600; font-size: 1.12rem; color: var(--sage-dark); }
.brand__name span { font-size: .72rem; color: var(--gold-dark); letter-spacing: .05em; }

.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.nav__links a {
  font-family: var(--font-head); font-weight: 400; font-size: 1rem;
  color: var(--ink); padding: .5rem .85rem; border-radius: 999px;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--sage-dark); background: var(--sage-soft); }
.nav__cta { display: flex; align-items: center; gap: .6rem; }

.nav__toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 12px; width: 46px; height: 46px; cursor: pointer; color: var(--sage-dark);
}
.nav__toggle svg { width: 24px; height: 24px; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__title { margin-bottom: 1.1rem; }
.hero__title em { font-style: normal; color: var(--gold-dark); }
.hero__text { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.75rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: -18px; left: -14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .75rem;
}
.hero__badge b { font-family: var(--font-head); color: var(--sage-dark); font-size: 1.25rem; display: block; }
.hero__badge span { font-size: .82rem; color: var(--muted); }
.hero__badge .ico { width: 38px; height: 38px; color: var(--gold); flex: none; }

.trust-row { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; margin-top: 1.9rem; }
.trust-row .item { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--muted); }
.trust-row .item svg { width: 22px; height: 22px; color: var(--sage); flex: none; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.card__price {
  margin-top: auto; display: flex; align-items: baseline; gap: .4rem;
  font-family: var(--font-head); color: var(--gold-dark); font-weight: 600; font-size: 1.25rem;
}
.card__price small { font-size: .82rem; color: var(--muted); font-weight: 400; }

/* feature (why-us) */
.feature { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); }
.feature .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage-dark); margin-bottom: 1rem;
}
.feature .ico svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .97rem; }

/* ---------- Price table ---------- */
.pricelist { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--line-soft); }
.price-row:last-child { border-bottom: 0; }
.price-row:nth-child(odd) { background: var(--surface); }
.price-row .name { font-family: var(--font-head); font-weight: 500; color: var(--sage-dark); }
.price-row .name small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .85rem; }
.price-row .amt { text-align: right; font-family: var(--font-head); color: var(--gold-dark); font-weight: 600; white-space: nowrap; }
.price-row .amt span { display: block; font-size: .92rem; }
.price-row .amt span:nth-child(2) { color: var(--muted); font-weight: 400; font-size: .82rem; }

/* ---------- Detailed service blocks ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.service + .service { margin-top: clamp(3rem, 6vw, 5rem); }
.service:nth-child(even) .service__media { order: 2; }
.service__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service__body h3, .service__body h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: .35rem; }
.service__tag { color: var(--gold-dark); font-family: var(--font-head); font-weight: 500; font-size: .9rem; letter-spacing: .04em; margin-bottom: .9rem; }
.service__body ul { color: var(--muted); margin: 1rem 0 1.3rem; padding-left: 1.1rem; }
.service__body li { margin-bottom: .35rem; }
.service__price { display: inline-flex; gap: 1.2rem; flex-wrap: wrap; padding: .8rem 1.1rem; background: var(--sage-soft); border-radius: var(--radius-sm); font-family: var(--font-head); color: var(--sage-dark); margin-bottom: 1.3rem; }
.service__price b { color: var(--gold-dark); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; background: var(--surface-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery--featured a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--sage-dark), var(--sage)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: .8rem auto 1.6rem; }
.cta-band .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.6); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); --btn-fg:#fff; border-color:#fff; }

/* ---------- Info / contact ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sage-soft); color: var(--sage-dark); display: grid; place-items: center; flex: none; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list b { font-family: var(--font-head); color: var(--sage-dark); font-weight: 500; display: block; }
.info-list a { color: var(--ink); }
.info-list a:hover { color: var(--gold-dark); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; color: var(--sage-dark); font-family: var(--font-head); }
.hours-table tr:last-child td { border-bottom: 0; }

/* ---------- Quote / testimonial ---------- */
.quote { background: var(--surface-2); border: 1px solid var(--line-soft); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote .stars { color: #9C7A2E; font-size: 1.25rem; font-weight: 700; letter-spacing: .1em; margin-bottom: .6rem; }
.quote cite { display: block; margin-top: .9rem; font-style: normal; color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; max-width: 800px; margin-inline: auto; }
.faq details { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: .25rem 1.25rem; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--sage-dark); padding: .95rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--gold); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero { background: var(--sage-soft); border-bottom: 1px solid var(--line-soft); padding-block: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.page-hero p { color: var(--muted); margin-top: .6rem; max-width: 60ch; margin-inline: auto; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumb a { color: var(--gold-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage-dark); color: #EAEFE3; padding-block: 3.25rem 1.5rem; margin-top: 0; }
.site-footer a { color: #EAEFE3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.25rem; padding-bottom: 2.25rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-grid h2 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .02em; font-weight: 600; }
.footer-brand p { color: rgba(255,255,255,.78); font-size: .95rem; margin-top: .8rem; max-width: 38ch; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .95rem; }
.footer-list a { color: rgba(255,255,255,.85); }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: background .2s ease; }
.footer-social a:hover { background: rgba(255,255,255,.25); }
.footer-social svg { width: 22px; height: 22px; }
.footer-bottom { padding-top: 1.4rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.9); }

/* ---------- Floating quick-contact (mobile) ---------- */
.quick-contact { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: .6rem; }
.quick-contact a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); color: #fff; transition: transform .15s ease; }
.quick-contact a:hover { transform: scale(1.07); color:#fff; }
.quick-contact .qc-line { background: var(--line-green); }
.quick-contact .qc-call { background: var(--sage); }
.quick-contact svg { width: 28px; height: 28px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.todo-note { background: #FFF6E0; border: 1px dashed var(--gold); color: #8a6d2f; border-radius: var(--radius-sm); padding: .85rem 1.1rem; font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16/10; }
  .service, .service:nth-child(even) .service__media { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem;
    gap: .25rem; transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .8rem 1rem; }
  .nav__toggle { display: grid; place-items: center; }
  .nav .nav__cta .btn span.cta-label { display: none; }    /* compact CTA on small screens */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .gallery--featured a:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 1/1; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .btn { padding: .75rem 1.25rem; }
  .price-row { grid-template-columns: 1fr; gap: .25rem; }
  .price-row .amt { text-align: left; }
}

/* ---------- Lightbox ---------- */
.lb-overlay { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(40, 36, 30, .92); padding: 1.5rem; }
.lb-overlay.open { display: grid; }
.lb-img { max-width: min(94vw, 1200px); max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb-overlay button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer; border-radius: 999px; transition: background .2s ease; }
.lb-overlay button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 18px; right: 18px; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
@media (max-width: 600px) { .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1.5rem; } }

/* ---------- Stats band ---------- */
.stats { background: var(--sage-soft); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.8rem 1rem 1.6rem; box-shadow: var(--shadow-sm); }
.stat .ico { width: 44px; height: 44px; margin: 0 auto .75rem; color: var(--sage); }
.stat .num { font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 5vw, 2.9rem); color: var(--gold-dark); line-height: 1; }
.stat .num small { font-size: 1.05rem; font-weight: 500; }
.stat .label { margin-top: .55rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reviews carousel ---------- */
.reviews-carousel { position: relative; }
.reviews-track { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1rem; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; flex: 0 0 clamp(270px, 80%, 350px); background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.review-card .stars { color: #9C7A2E; font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; margin-bottom: .6rem; }
.review-card .text { color: var(--ink); flex: 1; font-size: .98rem; }
.review-card .reviewer { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.review-card .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: #fff; flex: none; }
.review-card:nth-child(3n+1) .avatar { background: var(--sage); }
.review-card:nth-child(3n+2) .avatar { background: var(--gold); }
.review-card:nth-child(3n+3) .avatar { background: var(--plum); }
.review-card .reviewer b { display: block; color: var(--sage-dark); font-family: var(--font-head); font-weight: 500; }
.review-card .reviewer .role { font-size: .83rem; color: var(--muted); }
.reviews-nav { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; }
.reviews-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--sage-dark); cursor: pointer; font-size: 1.6rem; line-height: 1; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.reviews-nav button:hover { background: var(--sage); color: #fff; border-color: var(--sage); }

/* ---------- Inline contextual links: distinguishable without color (a11y) ---------- */
.footer-list a, .faq details p a, .info-list a, .breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Blog ---------- */
.article { max-width: 768px; margin-inline: auto; }
.article__meta { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; display: flex; gap: .5rem 1rem; flex-wrap: wrap; align-items: center; }
.article__meta .tag { background: var(--sage-soft); color: var(--sage-dark); font-family: var(--font-head); font-size: .82rem; padding: .15rem .7rem; border-radius: 999px; }
.article__banner { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.8rem; }
.prose { font-size: 1.075rem; line-height: 1.85; }
.prose > p { margin: 1.05rem 0; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.1rem 0 .7rem; }
.prose h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin: 1.6rem 0 .5rem; }
.prose ul, .prose ol { margin: 1rem 0 1.2rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose figure { margin: 1.6rem 0; }
.prose figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 3/2; object-fit: cover; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: .55rem; }
.prose a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 4px solid var(--gold); background: var(--surface-2); margin: 1.4rem 0; padding: .9rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.post-card .card__body .post-date { color: var(--muted); font-size: .85rem; margin-bottom: .4rem; }
.post-card .card__body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
