:root {
  --bg: #f6f0ea;
  --surface: #ffffff;
  --text: #2d1f1a;
  --brand: #7b4a3c;
  --accent: #c4856a;
  --line: #e0d5cc;
  --max-width: 1040px;
  --chrome-bg: linear-gradient(
    90deg,
    #d4a89a 0%,
    #c08878 42%,
    #a86e5c 72%,
    #8f5848 100%
  );
  --chrome-text: #fdf5f3;
  --chrome-shadow: 0 4px 18px rgba(80, 30, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 120%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -5%, #ffffff, transparent 70%),
    radial-gradient(800px 400px at 90% 0%, #f9e8e2, transparent 70%), var(--bg);
}

.site-shell {
  max-width: var(--max-width);
  margin: 1.5rem auto 2rem;
  padding: 0;
  box-shadow: var(--chrome-shadow);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: clip;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page,
.footer-inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 0.75rem;
  padding-inline: 1rem;
  position: relative;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  width: 1.125rem;
  height: 2px;
  margin-inline: auto;
  background: var(--brand);
  display: block;
}

.menu {
  display: none;
  position: absolute;
  inset: 4.25rem 1rem auto auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  z-index: 10;
}

.menu a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 0.45rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.menu a:hover {
  background: #f5ece8;
}

.menu a[aria-current="page"] {
  background: #f0e4de;
  color: var(--accent);
}

.menu.is-open {
  display: block;
}

.page {
  padding-block: 2.25rem 2.75rem;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #d8c6bb;
  border-radius: 999px;
  background: rgba(255, 248, 244, 0.96);
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(80, 30, 20, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 30;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover {
    background: #fff2ec;
    border-color: var(--accent);
  }
}

/* ── Typography ── */

h1,
h2,
h3 {
  color: var(--brand);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 1.75rem 0 0.6rem;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.4rem;
  color: var(--accent);
}

p {
  line-height: 1.65;
  margin: 0 0 1rem;
  color: #3a2820;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
}

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

/* ── Hero ── */

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.hero-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

.hero-body {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  transform-origin: center center;
}

.hero-copy h1 {
  margin: 0 0 0.75rem;
  color: var(--brand);
}

.hero-copy p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: #3a2820;
}

.hero-copy p strong {
  color: var(--accent);
}

.cta-line a {
  color: var(--brand);
  text-decoration-thickness: 2px;
}

/* ── Modalities list on home page ── */

.modalities-preview {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 74, 60, 0.12);
    border-color: var(--accent);
  }
}

.card h2 {
  margin: 0 0 0.6rem;
  color: var(--brand);
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  line-height: 1.6;
  color: #3a2820;
}

/* ── Modalities detail page ── */

.modality-section {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.modality-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.massage-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.massage-sidebar {
  display: contents;
}

.massage-main {
  order: 2;
}

.section-nav {
  order: 1;
}

.quote-stack {
  order: 3;
}

.section-nav {
  background: #fff8f4;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}

.section-nav h2 {
  margin: 0 0 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #e9ddd4;
  font-size: 1.05rem;
  color: var(--brand);
}

.section-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-nav li + li {
  margin-top: 0.35rem;
}

.section-nav a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

.section-nav a:hover {
  color: var(--accent);
}

.quote-stack {
  display: grid;
  gap: 0.9rem;
}

.sidebar-quote {
  margin: 0;
  border-radius: 0.6rem;
}

.modality-image {
  float: left;
  margin: 0 1.25rem 1rem 0;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}

.modality-image-right {
  float: right;
  margin: 0 0 1rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
}

.hero-image img,
.modality-image,
.modality-image-right {
  transition: transform 0.22s ease;
  transform-origin: center center;
}

@media (hover: hover) and (pointer: fine) {
  .hero-image img:hover,
  .modality-image:hover,
  .modality-image-right:hover {
    transform: scale(1.022);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image img,
  .modality-image,
  .modality-image-right {
    transition: none;
  }

  .hero-image img:hover,
  .modality-image:hover,
  .modality-image-right:hover {
    transform: none;
  }
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ── Pull quotes / testimonials ── */

.pullquote {
  padding: 1rem 1.1rem;
  background: #fdf3ef;
  border-left: 3px solid #d9ad97;
  border-radius: 0 0.6rem 0.6rem 0;
  font-size: 0.88rem;
  color: #5a3830;
  line-height: 1.55;
}

.pullquote p {
  margin: 0 0 0.6rem;
  color: #5a3830;
  font-size: inherit;
}

.pullquote cite {
  display: block;
  font-style: italic;
  color: var(--accent);
  font-size: 0.83rem;
  margin-top: 0.25rem;
}

.pullquote hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0.75rem 0;
}

/* ── LomiLomi sub-sections ── */

.indented {
  padding-left: 1.25rem;
  border-left: 2px solid var(--line);
  margin: 0.75rem 0 1rem;
}

.indented h3 {
  margin-top: 0.75rem;
}

.indented p {
  margin-bottom: 0.5rem;
}

/* ── Contact page ── */

.contact-section {
  max-width: 600px;
}

.contact-section p {
  font-size: 1.05rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fdf3ef;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.contact-detail strong {
  color: var(--brand);
}

/* ── Footer ── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.75rem;
  color: #5a3830;
  font-size: 1.19rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-sites,
.footer-contact,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-style: normal;
}

.footer-divider {
  color: #c5a99e;
  margin-inline: 0.2rem;
}

.site-footer a {
  color: var(--brand);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer a.site-credit-link {
  display: inline-block;
  width: fit-content;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition:
    color 0.16s ease,
    transform 0.16s ease,
    text-shadow 0.16s ease;
}

.site-footer a.site-credit-link:hover,
.site-footer a.site-credit-link:focus-visible {
  color: var(--accent);
  transform: translateX(4px) scale(1.12) rotate(-4deg);
  text-shadow:
    0 0 10px rgba(196, 133, 106, 0.55),
    0 0 20px rgba(196, 133, 106, 0.28);
  outline: none;
}

/* ── Responsive ── */

@media (min-width: 840px) {
  .hamburger {
    display: none;
  }

  .menu {
    position: static;
    display: flex;
    inset: auto;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    gap: 0.35rem;
    z-index: auto;
  }

  .hero {
    gap: 1.75rem;
  }

  .hero-body {
    grid-template-columns: 1fr minmax(280px, 340px);
    gap: 1.5rem;
  }

  .hero-quotes {
    width: auto;
  }

  .modalities-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .massage-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.75rem;
  }

  .massage-main {
    order: 1;
  }

  .massage-sidebar {
    display: grid;
    gap: 1rem;
    order: 2;
  }

  .massage-sidebar {
    position: sticky;
    top: 1rem;
  }

  .modality-section .pullquote {
    float: right;
    width: min(280px, 38%);
    margin: 0 0 1.25rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .modality-image,
  .modality-image-right {
    float: none;
    display: block;
    margin: 0 0 1rem 0;
    max-width: 100%;
    height: auto;
  }
}
