/* Lavender Massage — public A2P-compliance website
   Static, dependency-free. Bilingual via body.lang-en / body.lang-zh. */

:root {
  --bg: #faf8fc;
  --surface: #ffffff;
  --border: #e7e2ee;
  --text: #2a2433;
  --muted: #6b6478;
  --accent: #7c5cbf;
  --accent-soft: #f1ebfb;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(60, 40, 90, 0.06);
  --maxw: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Language toggle: show only the active language */
body.lang-en .zh { display: none; }
body.lang-zh .en { display: none; }

a { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
  flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav.site-nav { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
nav.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav.site-nav a:hover { color: var(--accent); }

.lang-toggle {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 4px; display: inline-flex; gap: 2px;
}
.lang-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-size: 13px; padding: 4px 10px; border-radius: 999px; color: var(--muted);
}
.lang-toggle button.active { background: var(--accent); color: #fff; }

/* Hero */
.hero { padding: 56px 0 32px; text-align: center; }
.hero h1 { font-size: 34px; margin: 0 0 10px; }
.hero p.tag { font-size: 18px; color: var(--muted); margin: 0 0 8px; }
.hero .meta { font-size: 14px; color: var(--muted); }
.btn {
  display: inline-block; margin-top: 18px; background: var(--accent); color: #fff;
  text-decoration: none; padding: 11px 22px; border-radius: var(--radius); font-weight: 600;
}

/* Sections */
section { padding: 36px 0; border-top: 1px solid var(--border); }
section h2 { font-size: 24px; margin: 0 0 18px; }
section h3 { font-size: 17px; margin: 22px 0 8px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}

/* Services */
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.services li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.services .name { font-weight: 600; }
.services .price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.services .dur { color: var(--muted); font-size: 13px; margin-left: 8px; }

/* Info grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px){ .info-grid { grid-template-columns: 1fr; } }
.info-grid dt { font-weight: 600; margin-top: 8px; }
.info-grid dd { margin: 0 0 4px; color: var(--muted); }

/* Opt-in form */
.optin-cta { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
form.optin label { display: block; font-weight: 600; margin: 14px 0 6px; }
form.optin input[type="tel"], form.optin input[type="text"] {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px;
}
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 4px; }
form.optin button {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
}
.hp { position: absolute; left: -9999px; }

/* Legal pages */
.legal { padding: 32px 0 8px; }
.legal h1 { font-size: 28px; }
.legal h2 { font-size: 19px; margin-top: 26px; }
.legal .clause {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 12px 16px; border-radius: 8px; margin: 14px 0;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border); margin-top: 24px;
  padding: 28px 0; font-size: 13px; color: var(--muted);
  /* Subtle lavender accent: heavy light overlay keeps text fully readable */
  background-image: linear-gradient(rgba(250, 248, 252, 0.93), rgba(250, 248, 252, 0.95)),
                    url("images/lavender.jpg");
  background-size: cover; background-position: center;
}
footer.site a { color: var(--muted); }
footer.site .links { margin: 8px 0; display: flex; gap: 16px; flex-wrap: wrap; }

/* Pricing note (prices intentionally not shown — contact for pricing) */
.pricing-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* Real photos (owner-supplied; no third-party images) */
img.hero-photo {
  display: block; width: 100%; height: 300px; object-fit: cover;
  border-radius: var(--radius); margin-top: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.gallery img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
}

/* Lavender branding element beside the wordmark (subtle) */
.brand { display: inline-flex; align-items: center; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  margin-right: 8px; border: 1px solid var(--border);
}

/* About section — the prominent lavender brand moment */
.about { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
@media (max-width: 600px) { .about { grid-template-columns: 1fr; } }
.about-img {
  width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.about-text h2 { margin-top: 0; }
