/* Kim Gudenus Massage Therapy: site styles */

:root {
  --bg: #F5F7F4;
  --card: #FFFFFF;
  --border: #DDE4E0;
  --text: #1E2B28;
  --text-2: #3D4F4A;
  --accent: #3E6A5F;
  --deep: #2F4A44;
  --tint: #EEF2EF;
  --photo: #DCE5E0;
  --dark: #1E2B28;
  --on-dark: #F5F7F4;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --gutter: 20px;
  --header-h: 68px;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
/* Booking mode switch (BOOKING_MODE in script.js). "request" is the default. */
html:not([data-booking-mode="fresha"]) [data-mode="fresha"] { display: none !important; }
html[data-booking-mode="fresha"] [data-mode="request"] { display: none !important; }

h1, h2, h3, .h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--text);
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
.h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 2.5rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8em;
}
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 36em; }
.hint { font-size: .9rem; color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--deep); border-color: var(--accent); }
.btn-secondary:hover { background: var(--tint); color: var(--deep); }
.btn-small { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 244, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  color: var(--text); text-decoration: none; line-height: 1.15;
}
.wordmark span { font-weight: 500; color: var(--accent); }
.wordmark:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text-2); text-decoration: none; font-weight: 500; border-radius: 999px;
}
.site-nav ul a:hover { color: var(--text); background: var(--tint); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--card); cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--text);
  transform: translateX(-50%); content: ""; transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { top: 50%; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 900px) {
  .js .nav-toggle { display: block; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px;
  }
  .js .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { width: 100%; font-size: 1.05rem; }
  /* Without JS the nav simply wraps under the wordmark */
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 8px 0; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* Photo placeholders: replaced by real images via script.js when files exist */
.photo {
  background: var(--photo); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--text-2); font-size: .9rem; padding: 16px; overflow: hidden; position: relative;
}
.photo.has-img { padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-hero { aspect-ratio: 4 / 5; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-square { aspect-ratio: 1 / 1; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

.trust, .ticks { list-style: none; padding: 0; margin: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--text-2); font-size: .95rem; }
.trust li, .ticks li { position: relative; padding-left: 26px; }
.trust li::before, .ticks li::before {
  content: ""; position: absolute; left: 2px; top: .38em;
  width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks { margin-bottom: 1.6rem; }
.ticks li { margin-bottom: .5em; }

.hero-ask { margin: 1.4rem 0 0; color: var(--text-2); }
.hero-ask a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Benefits */
.benefits { padding-bottom: 24px; }
.benefits-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 600px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.benefit p { color: var(--text-2); font-size: .95rem; margin: 0; }
.benefit-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, background-color .15s; }
.benefit-link:hover { border-color: var(--accent); color: inherit; }
.benefit-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 24px;
  font-weight: 600; font-size: .95rem; color: var(--accent);
}
.benefit-more::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-tint { background: var(--tint); }
.section-head { max-width: 40em; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--text-2); }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.treatment { display: flex; flex-direction: column; }
.treatment h3 { font-size: 1.15rem; }
.treatment p { color: var(--text-2); font-size: .95rem; flex: 1; }
.treatment p.treatment-note { flex: none; font-size: .88rem; padding: 10px 12px; background: var(--tint); border-radius: var(--radius-sm); color: var(--deep); }
.workplaces .chips + .h4 { margin-top: 1.2rem; }
.prices { margin: 0; padding-top: 14px; border-top: 1px solid var(--border); display: flex; gap: 20px; flex-wrap: wrap; }
.prices div { display: flex; gap: 8px; align-items: baseline; }
.prices dt { color: var(--text-2); font-size: .9rem; }
.prices dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--deep); }

/* Split layouts */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-reverse > .photo { order: 2; }
  .split-top { align-items: start; }
}
.split-text > p { color: var(--text-2); }
.split-text h3 { margin-top: 1.6rem; }

.oil-grid { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.oil {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.oil strong { font-family: var(--font-head); font-weight: 600; }
.oil span { color: var(--text-2); font-size: .9rem; }
@media (max-width: 380px) { .oil-grid { grid-template-columns: 1fr; } }

.quals { columns: 1; padding-left: 1.2em; margin: 0; color: var(--text-2); }
.quals li { margin-bottom: .3em; break-inside: avoid; }
@media (min-width: 600px) { .quals { columns: 2; column-gap: 32px; } }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: .9rem; color: var(--text-2);
}

/* Reviews */
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.review blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.review figcaption { color: var(--text-2); font-size: .9rem; font-weight: 500; }

.google-review {
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  background: var(--tint); border-color: var(--accent); padding: 24px;
}
.google-review h3 { margin-bottom: .3em; }
.google-review p { margin: 0; color: var(--text-2); }
@media (min-width: 900px) { .google-review { padding: 32px 40px; } }
.google-review + .feedback { margin-top: 16px; }
.feedback { margin-top: 40px; display: grid; gap: 28px; padding: 28px; }
@media (min-width: 900px) { .feedback { grid-template-columns: .8fr 1.2fr; gap: 56px; padding: 40px; } }
.feedback-intro p { color: var(--text-2); }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field legend { padding: 0; margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid #A9B8B2; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.rating-options { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-options label { position: relative; }
.rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-options span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid #A9B8B2;
  background: #fff; font-weight: 600; cursor: pointer;
}
.rating-options input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.rating-options input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.rating .hint { margin: 4px 0 0; }

.checkbox { flex-direction: row; align-items: flex-start; gap: 12px; }
.checkbox input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.checkbox label { font-weight: 400; }
.form .btn { justify-self: start; min-width: 140px; }

/* Videos (dark) */
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h2 { color: var(--on-dark); }
.section-dark .eyebrow { color: #A8CFC3; }
.section-dark .section-head p:last-child { color: #CFD8D4; }
.video-grid { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 420px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(3, 1fr); max-width: none; } }
.badge {
  display: inline-block; margin: 0 0 1rem; padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(245, 247, 244, .12); border: 1px solid rgba(245, 247, 244, .35); color: var(--on-dark);
}
.video { margin: 0; }
.video-frame {
  aspect-ratio: 9 / 12; border-radius: var(--radius); background: #2F3F3B;
  border: 1px solid #3D4F4A; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(245, 247, 244, .14);
  border: 1px solid rgba(245, 247, 244, .35); position: relative;
}
.play::after {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-left: 16px solid var(--on-dark); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.video-label { font-size: .9rem; color: #CFD8D4; }
.video figcaption { margin-top: 12px; font-weight: 500; }

/* Location */
.address { font-size: 1.1rem; color: var(--text) !important; }
.contact { list-style: none; padding: 0; margin: 0 0 1.6rem; color: var(--text-2); }
.contact li { min-height: 36px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.location-media { display: grid; gap: 16px; }
.room-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-placeholder {
  background: var(--photo); border-radius: var(--radius); aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: .9rem;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.map { margin: 0; display: grid; gap: 8px; }
.map .hint { margin: 0; }

/* Request a booking */
.booking { padding: 24px; max-width: 860px; }
@media (min-width: 900px) { .booking { padding: 40px; } }
.booking-form { gap: 28px; }
.form-group { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 14px; }
.form-group > legend, .prefs > summary {
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; padding: 0; margin-bottom: 4px;
}
.form-group .hint { margin: 0; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.field-row .field { min-width: 0; }
.slots { display: grid; gap: 16px; }
.slot + .slot { padding-top: 16px; border-top: 1px solid var(--border); }
.optional { font-weight: 400; color: var(--text-2); }
input[type="tel"], input[type="date"] {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid #A9B8B2; border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.prefs { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.prefs[open] { padding-bottom: 20px; }
.prefs > summary {
  cursor: pointer; list-style: none; min-height: 52px; display: flex; align-items: center; gap: 8px; margin: 0;
}
.prefs > summary::-webkit-details-marker { display: none; }
.prefs > summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg);
}
.prefs[open] > summary::after { transform: rotate(-135deg); }
.prefs > .hint { margin: 0 0 14px; }
.prefs .field-row + .field-row, .prefs .hint + .field-row { margin-top: 14px; }
.form-error {
  margin: 0; padding: 12px 16px; border-radius: var(--radius-sm);
  background: #FBEDEA; color: #8A2A1B; border: 1px solid #E8C3BB;
}
.form-thanks {
  margin: 0; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--tint); color: var(--deep); font-weight: 500;
}
.form-thanks:focus { outline: none; }
.booking-done h3 { margin-bottom: .6em; }
.booking-done:focus { outline: none; }
.booking-done p { color: var(--text-2); }
.booking-preview {
  margin: 12px 0 0; padding: 16px; background: var(--tint); border-radius: var(--radius-sm);
  font: .9rem/1.6 var(--font-body); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* FAQ */
.faq-layout { display: grid; gap: 0; }
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 14px 52px 14px 20px;
  display: flex; align-items: center; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq-answer { padding: 0 20px 6px; color: var(--text-2); }
.faq-answer ul { margin: 0 0 1em; padding-left: 1.2em; }
.ask { display: grid; gap: 24px; padding: 24px; }
.ask p { color: var(--text-2); }
@media (min-width: 900px) {
  .ask { grid-template-columns: .8fr 1.2fr; gap: 24px 56px; padding: 40px; }
  .ask-direct { grid-column: 2; }
}
.chat { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chat-log {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 420px; overflow-y: auto; padding: 4px 2px;
}
.chat-msg {
  margin: 0; padding: 12px 16px; border-radius: 16px; max-width: 88%;
  white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55;
}
.ask .chat-bot { background: var(--tint); color: var(--text); align-self: flex-start; border-bottom-left-radius: 6px; }
.ask .chat-user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.ask .chat-error { background: #FFF; border: 1px solid var(--border); color: var(--text-2); align-self: flex-start; }
.chat-typing { color: var(--text-2); font-style: italic; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  font: 500 .9rem/1.3 var(--font-body); color: var(--deep); background: var(--card);
  border: 1px solid var(--accent); border-radius: 999px; padding: 10px 14px; min-height: 44px;
  cursor: pointer; text-align: left;
}
.chip-btn:hover { background: var(--tint); }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 52px; resize: none; }
.chat-form .btn { flex-shrink: 0; }
.ask-direct { border-top: 1px solid var(--border); padding-top: 8px; }
.ask-direct summary {
  cursor: pointer; font-weight: 600; color: var(--accent); min-height: 44px;
  display: flex; align-items: center;
}
.ask-direct .form { margin-top: 8px; }

/* Notice shown when a Book button is pressed before the Fresha link is set */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  transform: translateX(-50%); width: min(92vw, 460px);
  background: var(--deep); color: var(--on-dark); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .95rem; box-shadow: 0 8px 24px rgba(30, 43, 40, .25);
}

/* Footer */
.site-footer { background: var(--deep); color: var(--on-dark); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-inner ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.footer-inner a { color: var(--on-dark); display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.footer-inner a:hover { color: #fff; }

/* Legal pages */
.legal { padding: 48px 0 80px; }
.legal .container { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--text-2); }
.legal .updated { font-size: .9rem; }
