/* =========================================================
   DC Corporate Chair Massage — shared styles
   Hand-written CSS. No frameworks.
   Sections: 1 Tokens  2 Base  3 Layout  4 Header/nav
             5 Buttons  6 Sections & cards  7 Reviews
             8 Forms & schedule  9 Footer  10 Legal pages
             11 Utilities  12 Print
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
  --ink: #1d2a28;          /* main text */
  --ink-soft: #4a5653;     /* secondary text (7:1 on white) */
  --muted: #5f6b68;        /* small print (5.4:1 on white) */
  --teal: #2d5b54;         /* primary brand colour */
  --teal-dark: #1f4540;
  --teal-tint: #e6efec;    /* soft sage background */
  --sand: #f7f3ec;         /* warm background */
  --sand-deep: #ede5d8;
  --copper: #9a5f36;       /* accent (4.9:1 on white) */
  --line: #d9e0dd;
  --white: #ffffff;
  --danger: #a3322a;
  --danger-bg: #fbeceb;
  --success: #2c6a45;
  --success-bg: #e8f4ec;
  --focus: #c27a43;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 42, 40, .06), 0 8px 24px rgba(29, 42, 40, .06);
  --container: 1120px;
  --gutter: 20px;
  --space: clamp(56px, 9vw, 104px);   /* vertical section rhythm */
}

/* 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-dark); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* 3. Layout ------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding: var(--space) 0; }
.section-sand { background: var(--sand); }
.section-tint { background: var(--teal-tint); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.grid-2 { display: grid; gap: 32px; }
.grid-3, .grid-4 { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.media { border-radius: var(--radius); overflow: hidden; background: var(--teal-tint); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-portrait { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: center; }

/* 4. Header & navigation ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-logo { height: 48px; width: auto; }
@media (min-width: 860px) { .brand-logo { height: 56px; } }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  border: 0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: fixed; inset: 73px 0 0 0;
  background: var(--white);
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.site-nav li { border-bottom: 1px solid var(--line); }
.site-nav ul a {
  display: block; padding: 16px 4px;
  font-size: 1.15rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.site-nav ul a[aria-current="page"] { color: var(--teal); font-weight: 700; }
.site-nav .btn { width: 100%; }

/* Without JavaScript the menu button can't work, so show links inline. */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; padding: 0; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 28px;
    position: static; padding: 0; background: none; overflow: visible;
  }
  .site-nav ul { display: flex; gap: 26px; margin: 0; }
  .site-nav li { border: 0; }
  .site-nav ul a { padding: 6px 0; font-size: .98rem; border-bottom: 2px solid transparent; }
  .site-nav ul a:hover { color: var(--teal); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--copper); font-weight: 600; }
  .site-nav .btn { width: auto; }
  body.menu-open { overflow: auto; }
}

/* 5. Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-light { background: var(--white); color: var(--teal-dark); }
.btn-light:hover { background: var(--sand); color: var(--teal-dark); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 6. Sections & cards -------------------------------------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 var(--space); background: linear-gradient(180deg, var(--sand) 0%, var(--white) 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 34em; margin-bottom: 28px; }
.hero .media { aspect-ratio: 8 / 5; box-shadow: var(--shadow); }
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  list-style: none; padding: 0; margin: 28px 0 0;
  font-size: .95rem; color: var(--ink-soft);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 6vw, 64px); background: var(--sand); }
.page-hero .lead { max-width: 40em; margin-bottom: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card .media { border-radius: 0; aspect-ratio: 3 / 2; }
.service-card .card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-card .card-body .btn { margin-top: auto; align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.icon-badge {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint); color: var(--teal); margin-bottom: 16px;
}
.icon-badge svg { width: 24px; height: 24px; }
.section-tint .icon-badge { background: var(--white); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  position: relative; padding: 22px 22px 22px 76px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 22px; top: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-soft); }

.stat {
  display: grid; gap: 8px 28px; align-items: center;
  padding: 28px; border-radius: var(--radius);
  background: var(--teal); color: var(--white); margin-bottom: 32px;
}
.stat-num { font-family: var(--font-head); font-size: clamp(3rem, 8vw, 4.4rem); line-height: 1; font-weight: 600; }
.stat p { margin: 0; font-size: 1.1rem; }
@media (min-width: 720px) { .stat { grid-template-columns: auto 1fr; padding: 32px 40px; } }

.area-list { list-style: none; padding: 0; margin: 0 0 24px; }
.area-list li { display: flex; gap: 10px; margin-bottom: 10px; }
.area-list svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 4px; }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.hours-table th, .hours-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours-table th { font-weight: 600; }
.hours-table td { text-align: right; color: var(--ink-soft); }

.cta-band { background: var(--teal); color: var(--white); padding: clamp(48px, 8vw, 88px) 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 36em; }
.cta-inner { display: grid; gap: 24px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; align-items: center; } }

.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }

/* 7. Reviews ----------------------------------------------- */
.review {
  margin: 0; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; height: 100%;
}
.review-stars { display: flex; gap: 2px; color: #b07a1e; margin-bottom: 14px; }
.review-stars svg { width: 18px; height: 18px; }
.review-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.review blockquote { margin: 0 0 20px; color: var(--ink-soft); }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; font-weight: 600; }
.review figcaption span { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); }

/* 8. Forms & schedule -------------------------------------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.book-layout > *, .schedule-box, .schedule-output, .field { min-width: 0; }
@media (min-width: 980px) { .book-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 56px; } }
.book-aside { display: grid; gap: 20px; }
@media (min-width: 980px) { .book-aside { position: sticky; top: 92px; } }
.aside-card { background: var(--sand); border-radius: var(--radius); padding: 24px; }
.aside-card h2 { font-size: 1.3rem; }
.aside-card .steps li { padding: 16px 16px 16px 62px; }
.aside-card .steps li::before { left: 16px; top: 15px; width: 32px; height: 32px; font-size: .95rem; }
.aside-card .steps h3 { font-size: 1rem; }
.aside-card .steps p { font-size: .95rem; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow);
}
fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
legend {
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem;
  padding: 0; margin-bottom: 4px; color: var(--ink);
}
.legend-note { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.fields { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 620px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .span-2 { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .98rem; }
.req { color: var(--danger); font-weight: 700; }
.hint { display: block; font-size: .88rem; color: var(--muted); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white);
  border: 1.5px solid #a9b5b1; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
input[type="date"], input[type="time"] { min-width: 0; }
select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232d5b54' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45, 91, 84, .2); }
[aria-invalid="true"] { border-color: var(--danger) !important; background-color: #fffafa; }
.field-error { display: none; color: var(--danger); font-size: .92rem; font-weight: 600; margin: 6px 0 0; }
.field-error:not(:empty) { display: flex; gap: 6px; }
.field-error:not(:empty)::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
[hidden] { display: none !important; }

/* Honeypot: hidden from people, visible to bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.schedule-box {
  border: 1.5px dashed #b9c6c2; border-radius: var(--radius); padding: 20px;
  background: #fbfcfb;
}
.schedule-controls { display: grid; gap: 16px; align-items: end; }
@media (min-width: 620px) { .schedule-controls { grid-template-columns: 220px 1fr; } }
.schedule-output { margin-top: 22px; }
.schedule-summary {
  background: var(--teal-tint); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 14px;
}
.schedule-summary strong { font-size: 1.1rem; }
.schedule-summary p { margin: 4px 0 0; font-size: .95rem; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 460px; overflow-y: auto; background: #fff; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.schedule-table caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.schedule-table th, .schedule-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.schedule-table thead th { position: sticky; top: 0; background: var(--sand); z-index: 1; }
.schedule-table td:last-child { min-width: 160px; width: 40%; }
.schedule-table tr.slot-start td { border-top: 2px solid #c8d3cf; }
.schedule-table tbody tr:first-child td { border-top: 0; }
@media (max-width: 560px) {
  .schedule-box { padding: 0; border: 0; background: none; }
  .form-card { padding: 18px 16px; }
  .schedule-table { font-size: .85rem; }
  .schedule-table th, .schedule-table td { padding: 9px 6px; }
  .schedule-table td:last-child { min-width: 70px; }
}
.schedule-actions { margin-top: 14px; }
.schedule-empty { margin: 0; color: var(--ink-soft); }

.form-footer { border-top: 1px solid var(--line); padding-top: 24px; }
.form-footer .hint { margin: 12px 0 0; }

.alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; }
.alert:empty { display: none; }
.alert h2, .alert h3 { font-size: 1.15rem; margin-bottom: .3em; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: var(--danger-bg); border-left: 4px solid var(--danger); color: #5c1c17; }
.alert-success { background: var(--success-bg); border-left: 4px solid var(--success); }
.success-panel { text-align: center; padding: clamp(24px, 5vw, 48px) 8px; }
.success-panel:focus { outline: none; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; }
.success-icon svg { width: 32px; height: 32px; }
.success-panel .btn-row { justify-content: center; }

/* 9. Footer ------------------------------------------------ */
.site-footer { background: #17221f; color: #cfd8d5; padding: 56px 0 28px; font-size: .97rem; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #e8c9a8; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb0ab; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-logo { height: 48px; }
.footer-brand .brand-name small { color: #9fb0ab; }
.footer-brand p { max-width: 26em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #9fb0ab; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* 10. Legal pages ------------------------------------------ */
.legal { padding: clamp(40px, 6vw, 72px) 0 var(--space); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal .effective { color: var(--muted); font-weight: 600; margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal li { margin-bottom: .4em; }

/* 11. Utilities -------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* 12. Print ------------------------------------------------- */
@media print {
  .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
  /* "Print schedule" prints only the sign-up sheet */
  body.print-schedule * { visibility: hidden; }
  body.print-schedule #schedule-print-area, body.print-schedule #schedule-print-area * { visibility: visible; }
  body.print-schedule #schedule-print-area { position: absolute; left: 0; top: 0; width: 100%; }
  body.print-schedule .table-scroll { max-height: none; overflow: visible; border: 0; }
  body.print-schedule .schedule-table th, body.print-schedule .schedule-table td { padding: 8pt 6pt; border-bottom: 1px solid #999; }
  body.print-schedule .schedule-table td:last-child { width: 45%; }
  body.print-schedule .schedule-table thead { display: table-header-group; }
  body.print-schedule .schedule-table thead th { position: static; }
  body.print-schedule tr { page-break-inside: avoid; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
