/* OPAW PET SPA — warm cream, deep teal, soft peach. */
:root {
  --bg: #fbf7f1;
  --bg-alt: #f3ece1;
  --surface: #ffffff;
  --ink: #1f2a2c;
  --muted: #5b6668;
  --line: #e4dbcd;
  --primary: #2f6f6a;
  --primary-dark: #245955;
  --primary-soft: #dcebe8;
  --accent: #f2b68f;
  --accent-soft: #fbe3d2;
  --serif: "Fraunces", "Noto Sans SC", Georgia, serif;
  --sans: "Nunito", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31, 42, 44, .05), 0 8px 24px rgba(31, 42, 44, .06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font: 600 clamp(30px, 4vw, 44px)/1.15 var(--serif); letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }

html[data-lang="en"] .zh, html[data-lang="zh"] .en { display: none !important; }
html[data-lang="zh"] body { font-size: 16px; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2 { font-family: "Noto Sans SC", var(--sans); font-weight: 700; letter-spacing: .02em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
html[data-lang="zh"] .eyebrow { letter-spacing: .2em; }

/* placeholder marker — remove once real content is in */
.tbc {
  display: inline-block;
  padding: 0 8px;
  border: 1px dashed #d79a6f;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #8a4b22;
  font-size: .88em;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; }
.brand-mark rect { fill: var(--primary); }
.brand-mark g { fill: var(--bg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font: 600 24px/1 var(--serif); letter-spacing: .04em; }
.brand-text small { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .32em; color: var(--muted); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 700 14px/1 var(--sans);
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--primary); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font: 600 clamp(40px, 5.6vw, 68px)/1.06 var(--serif);
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
html[data-lang="zh"] .hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.22; }
.hero h1 em { font-style: italic; color: var(--primary); }
html[data-lang="zh"] .hero h1 em { font-style: normal; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.hero-facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }

.hero-art svg { width: 100%; max-width: 480px; margin-inline: auto; }
.art-bg { fill: var(--primary-soft); }
.art-bubbles circle { fill: #fff; stroke: #9cc7c0; stroke-width: 2.5; }
.art-ear { fill: #b97a4f; }
.art-head { fill: #edc49c; }
.art-snout { fill: #fbe8d4; }
.art-ink { fill: var(--ink); }
.art-shine { fill: #fff; }
.art-line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.art-blush { fill: #f19f86; opacity: .55; }
.art-foam circle { fill: #fff; stroke: #c9e0dc; stroke-width: 2; }
.art-tub { fill: #fff; stroke: var(--primary); stroke-width: 4; }
.art-tub-line { stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.art-feet { stroke: var(--primary); stroke-width: 6; stroke-linecap: round; }
.art-spark { fill: var(--accent); }

/* ---------- why ---------- */
.why { padding: 8px 0 64px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-item { padding: 26px 24px; }
.why-item + .why-item { border-left: 1px solid var(--line); }
.why-item h3 { font-size: 17px; margin-bottom: 6px; }
.why-item p { font-size: 15px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-sub { margin-top: 14px; color: var(--muted); }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--primary-soft);
}
.service-icon svg { width: 30px; height: 30px; fill: var(--primary); stroke: var(--primary); }
.service:nth-child(even) .service-icon { background: var(--accent-soft); }
.service:nth-child(even) .service-icon svg { fill: #c4733f; stroke: #c4733f; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 16px; }

/* prices */
.price-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.price-tabs button {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 15px/1 var(--sans);
  cursor: pointer;
}
.price-tabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.price-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table thead th { font-size: 15px; background: #faf6ef; }
.price-table small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.price-table tbody th { font-weight: 700; }
.table-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.addon-list { margin: 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.addon-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; font-weight: 600; }
.addon-list li + li { border-top: 1px solid var(--line); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font: 600 18px/1 var(--serif);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.policies { margin-top: 32px; padding: 28px 32px; border-radius: var(--radius); background: var(--primary-soft); }
.policies-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.draft-note { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: #8a4b22; font-size: 13px; font-weight: 700; }
.policies ul { margin: 0; padding-left: 20px; }
.policies li { margin: 6px 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ph {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin: 0;
  border: 2px dashed #d6c8b4;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 42%, rgba(47, 111, 106, .10) 0 34px, transparent 35px),
    var(--bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding-top: 90px;
}

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 26px/1 var(--sans);
  color: var(--primary);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* booking */
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.book-intro { position: sticky; top: 100px; }
.book-intro > p { margin-top: 14px; color: var(--muted); }
.book-points { margin: 20px 0 0; padding-left: 20px; color: var(--muted); }
.book-points li { margin: 6px 0; }
.book-form {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
fieldset { margin: 0 0 24px; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 14px; font: 600 22px/1.2 var(--serif); }
html[data-lang="zh"] legend { font-family: "Noto Sans SC", var(--sans); font-weight: 700; font-size: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 15px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.invalid { border-color: #c2513a !important; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-weight: 600; }
.checks label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checks input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--primary); }
.form-error { margin-bottom: 14px; color: #a83f2a; font-weight: 700; font-size: 15px; }
.book-result { margin-top: 24px; padding-top: 24px; border-top: 1px dashed var(--line); }
.result-title { font-weight: 700; margin-bottom: 10px; }
.book-result pre {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg);
  font: 14px/1.6 var(--sans);
  white-space: pre-wrap;
  word-break: break-word;
}
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.contact-list { margin: 28px 0 0; }
.contact-list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; color: var(--muted); }
.hours { padding: 28px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.hours h3 { margin-bottom: 12px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.hours-table td { text-align: right; }
.hours-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* footer */
.site-footer { padding: 36px 0 48px; background: var(--ink); color: #c9d1d0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-brand { color: #fff; letter-spacing: .2em; font-size: 14px; }
.footer-brand strong { font: 600 22px/1 var(--serif); letter-spacing: .06em; margin-right: 4px; }
.footer-meta { font-size: 14px; }
.footer-meta a { color: #fff; }

.mobile-book { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3) { border-left: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-sm { display: none; }
  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
  }
  .menu-btn span { height: 2px; border-radius: 2px; background: var(--ink); }
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 300px; }
  .book-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-intro { position: static; }
  .section { padding: 64px 0; }
  .mobile-book {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 15;
    box-shadow: 0 8px 24px rgba(31, 42, 44, .25);
    transition: opacity .2s, transform .2s;
  }
  .mobile-book.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .service-grid, .steps, .why-grid { grid-template-columns: 1fr; }
  .why-item + .why-item { border-left: 0; border-top: 1px solid var(--line); }
  .field-row, .checks { grid-template-columns: 1fr; gap: 0; }
  .checks { gap: 10px; }
  .book-form { padding: 22px 18px; }
  .policies, .hours { padding: 22px 20px; }
  .contact-list div { grid-template-columns: 90px 1fr; }
  .brand-text small { letter-spacing: .24em; }
  .lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
