/* Mobile Massage & Spa Therapists — calm premium spa, soft neutrals, mobile-first */

:root {
  --bg: #f8f6f3;
  --card: #ffffff;
  --ink: #2b2a27;
  --ink-soft: #5c5a54;
  --ink-faint: #8d8a82;
  --accent: #5e826c;
  --accent-deep: #476556;
  --mist: #eef3ef;
  --mist-line: #d8e2da;
  --border: #e7e2da;
  --warn-bg: #f7f1e4;
  --warn-line: #e5d5b5;
  --warn-ink: #7a5c2c;
  --danger: #b3543f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(43, 42, 39, 0.04), 0 10px 30px rgba(43, 42, 39, 0.05);
  --shadow-lift: 0 4px 10px rgba(43, 42, 39, 0.06), 0 18px 44px rgba(43, 42, 39, 0.1);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.55em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--mist { background: var(--mist); }

.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); }

.muted { color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.95rem;
  flex: none;
}

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--accent-deep); font-weight: 600; }

.nav-cta {
  display: inline-flex;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--accent-deep); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- Buttons / forms ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 12px 26px rgba(94, 130, 108, 0.3); }

.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--mist); }

.btn-danger { background: transparent; color: var(--danger); border-color: rgba(179, 84, 63, 0.35); }
.btn-danger:hover { background: rgba(179, 84, 63, 0.08); }

.btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.btn-block { width: 100%; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field input[type="url"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 14px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 5px 0;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ---------- Hero + filter panel ---------- */

.hero { padding: 56px 0 28px; }

.hero-copy { max-width: 680px; margin-bottom: 32px; }

.filter-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.filter-grid .field { margin-bottom: 0; }

.filter-treatments {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.filter-treatments .field label { margin-bottom: 8px; }

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.result-count {
  margin: 26px 0 16px;
  font-size: 0.925rem;
  color: var(--ink-faint);
}

/* ---------- Therapist cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.t-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.t-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.t-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  overflow: hidden;
}
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-photo .t-ph-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 1.6rem;
}

.t-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
}

.t-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }

.t-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 550;
  line-height: 1.25;
  margin: 0 0 3px;
}
.t-name a { color: var(--ink); }
.t-name a:hover { color: var(--accent-deep); text-decoration: none; }

.t-sub { font-size: 0.86rem; color: var(--ink-faint); margin: 0 0 10px; }

.t-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--accent-deep);
}
.tag--soft { background: var(--bg); color: var(--ink-faint); border: 1px solid var(--border); }

.t-covers {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0 0 12px;
  flex: 1;
}
.t-covers strong { color: var(--ink-soft); font-weight: 600; }

.t-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: auto;
}

.t-price {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 550;
}
.t-price .from { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--ink-faint); margin-right: 3px; }

.t-service { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- Profile page ---------- */

.page-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
}

.crumb {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.crumb a { color: var(--ink-faint); }
.crumb span { margin: 0 6px; opacity: 0.55; }

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--mist);
  aspect-ratio: 1;
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.block h2 { font-size: 1.32rem; margin-bottom: 12px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 7px 0 7px 28px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--mist);
  border: 1px solid var(--accent);
}

.price-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.price-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.price-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { font-weight: 600; color: var(--ink); }

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row .k {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Lightbox / modal ---------- */

.lightbox, .modal {
  position: fixed;
  inset: 0;
  background: rgba(43, 42, 39, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.lightbox.open, .modal.open { display: flex; }

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 12px;
}

.modal-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  width: min(520px, 94vw);
  max-height: 88vh;
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

/* ---------- Auth / dashboard / admin ---------- */

.auth-wrap {
  max-width: 460px;
  margin: 56px auto 80px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-wrap.wide { max-width: 860px; }

.notice {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background: var(--mist);
  color: var(--ink-soft);
}
.notice--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.notice--ok { background: var(--mist); border-color: var(--mist-line); color: var(--accent-deep); }
.notice--error { background: #f9ece8; border-color: #e5c1b6; color: var(--danger); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pending { background: var(--warn-bg); color: var(--warn-ink); }
.status-approved { background: var(--mist); color: var(--accent-deep); }
.status-rejected { background: #f9ece8; color: var(--danger); }
.status-paused { background: var(--border); color: var(--ink-soft); }

.dash-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-cell {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--mist);
  aspect-ratio: 1;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }

.photo-cell .photo-ops {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(43, 42, 39, 0.55);
}
.photo-ops button {
  flex: 1;
  border: none;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 2px;
  cursor: pointer;
}
.photo-ops button:hover { background: #fff; }

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.admin-tabs button {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.admin-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.admin-card h3 { font-size: 1.1rem; margin-bottom: 4px; }

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--ink-soft); }
.data-table tr:last-child td { border-bottom: none; }

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
.inline-form .field { margin-bottom: 0; min-width: 150px; flex: 1; }

.empty {
  text-align: center;
  padding: 52px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--ink-faint);
}

/* ---------- Trust strip / footer ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.trust-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.trust-item p { font-size: 0.92rem; color: var(--ink-soft); }

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
  margin-top: 80px;
  font-size: 0.89rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { font-family: var(--serif); font-size: 1.22rem; color: #fff; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.35em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.25em; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 36px 0 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    gap: 12px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
