/* ==========================================================================
   Genki Osteo — Manual Therapy with Tony
   Bauhaus-inspired, single stylesheet, no framework.
   Palette: cream #FDF6EA · ink #453b33 · terracotta #BE6E47
            mustard #DBA45E · teal #9C82AE · slate #B49CC4 · sand #FBE8D3
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #fdf6ea;
  --ink: #453b33;
  --ink-soft: #7a6b5e;
  --terracotta: #be6e47;
  --terracotta-dark: #a25a38;
  --mustard: #dba45e;
  --teal: #9c82ae;
  --slate: #b49cc4;
  --sand: #fbe8d3;
  --line: #f0ddc4;
  --white: #fffdf9;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(61, 54, 48, 0.08);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Century Gothic", "Futura", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

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

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.kicker--terracotta { color: var(--terracotta); }
.kicker--mustard { color: #b08036; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand svg { width: 30px; height: 30px; }
.brand span small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--terracotta); }
.nav a[aria-current="page"] { border-bottom-color: var(--mustard); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terracotta); color: var(--white); }
.btn--primary:hover { background: var(--terracotta-dark); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--sand); color: var(--ink); }

/* --------------------------------- Hero ---------------------------------- */

.hero { padding: 64px 0 48px; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero__art { position: relative; }

/* ------------------------------- Sections -------------------------------- */

.section { padding: 76px 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2 { color: var(--white); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--art-left .split__art { order: -1; }

.notice {
  border-left: 4px solid var(--mustard);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
}

/* --------------------------------- Cards --------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-radius: 18px;
  padding: 22px 22px 26px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(69, 59, 51, 0.13); color: var(--ink); }
.card--img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  border: 1.5px solid #DFBFA0;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 0.35em; }
.card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ------------------------------ Testimonials ------------------------------ */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2rem; }
blockquote.quote {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px 20px;
  box-shadow: var(--shadow);
  font-size: 0.93rem;
  color: var(--ink-soft);
  position: relative;
}
blockquote.quote::before {
  content: "“";
  font-size: 3rem;
  line-height: 1;
  color: var(--mustard);
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, serif;
}
blockquote.quote footer {
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ------------------------------ Price table ------------------------------- */

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2rem; }
.price {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.price--accent { outline: 3px solid var(--mustard); }
.price .amount { font-size: 2.3rem; font-weight: 700; color: var(--terracotta); }
.price .amount small { font-size: 1rem; color: var(--ink-soft); font-weight: 500; }
.price p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------------------------------- FAQ ----------------------------------- */

.faq-list { margin-top: 1.5rem; }
details.faq {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--terracotta);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq__body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.96rem; }

/* --------------------------------- Forms ---------------------------------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 0.92rem; margin-bottom: 6px; }
.field .req { color: var(--terracotta); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp-wrap { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); }

.form-status { display: none; margin-top: 16px; padding: 16px 18px; border-radius: 10px; font-size: 0.95rem; }
.form-status--ok { display: block; background: #EDEEE2; border: 1.5px solid var(--teal); color: #4C5540; }
.form-status--err { display: block; background: #F9E9DD; border: 1.5px solid var(--terracotta); color: #7C4326; }

/* --------------------------------- Footer --------------------------------- */

.site-footer { background: var(--ink); color: var(--cream); margin-top: 64px; }
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 30px;
}
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: var(--white); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.95rem; }
.site-footer .fineprint {
  border-top: 1px solid rgba(253, 246, 234, 0.18);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: #C0B09D;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer .fineprint a { color: #C0B09D; text-decoration: underline; }

/* --------------------------------- Misc ----------------------------------- */

.cta-band { text-align: center; padding: 72px 0; }
.cta-band p { max-width: 38em; margin: 0 auto 1.6rem; color: var(--ink-soft); }
.section--ink .cta-band p { color: #E2D4C4; }

.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 26px 34px;
  border-left: 3px solid var(--line);
  margin-left: 8px;
}
.timeline li:last-child { padding-bottom: 4px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -9.5px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mustard);
  border: 3px solid var(--cream);
}
.timeline li:nth-child(odd)::before { background: var(--teal); }
.timeline .when { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--terracotta); text-transform: uppercase; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

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

@media (max-width: 860px) {
  .hero { padding: 40px 0 32px; }
  .hero__grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .split--art-left .split__art { order: 0; }
  .cards, .quotes, .prices { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 26px; border-bottom: none; }
  .nav a[aria-current="page"] { color: var(--terracotta); }
  .nav .btn { margin: 10px 24px 0; text-align: center; }
  .nav-toggle { display: block; }
}

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

/* ------------------------- Body systems explorer -------------------------- */

.sys-panel { display: none; }
.sys-panel.active {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
  background: #FCE7D2; /* matches the illustrations' paper color */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 38px;
  margin-top: 1.6rem;
}
.sys-panel img { max-height: 460px; width: auto; margin: 0 auto; border-radius: 10px; border: 1.5px solid #DFBFA0; }
.sys-panel h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.sys-panel .sys-sub { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 0.8rem; }
.sys-panel p { color: var(--ink-soft); font-size: 0.98rem; }

.sys-fig { position: relative; width: fit-content; margin: 0 auto; }
.sys-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 253, 251, 0.88);
  box-shadow: 0 1px 6px rgba(61, 54, 48, 0.18);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0 3px;
  transition: background 0.15s ease, color 0.15s ease;
}
.sys-arrow:hover { background: var(--terracotta); color: var(--white); }
.sys-arrow--prev { left: 8px; }
.sys-arrow--next { right: 8px; }

@media (max-width: 860px) {
  .sys-panel.active { grid-template-columns: 1fr; gap: 20px; padding: 24px 22px; }
  .sys-panel img { max-height: 340px; }
}

h2 .h-link, h2.h-link, .h-link { color: inherit; text-decoration: none; }
h2 a.h-link:hover { color: var(--terracotta); }
h2 a.h-link::after { content: " \2192"; font-weight: 500; opacity: 0.55; }

.quiet-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--terracotta);
  text-decoration: none;
}
.quiet-link:hover { color: var(--terracotta-dark); text-decoration: underline; text-underline-offset: 4px; }
