:root {
  --ink: #171918;
  --charcoal: #242725;
  --olive: #6c7c5b;
  --sage: #b9c7ad;
  --mineral: #d7dde1;
  --clay: #b66f55;
  --gold: #c7a15a;
  --cream: #f8f5ec;
  --paper: #fffdf8;
  --line: rgba(23, 25, 24, 0.12);
  --shadow: 0 22px 60px rgba(23, 25, 24, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  color: var(--paper);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open,
body:not(.home) .site-header {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 40px rgba(23, 25, 24, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-family: Georgia, serif;
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
  color: inherit;
  opacity: 0.82;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a[aria-current="page"],
.site-header.is-open .site-nav a:hover,
.site-header.is-open .site-nav a[aria-current="page"],
body:not(.home) .site-nav a:hover,
body:not(.home) .site-nav a[aria-current="page"] {
  background: rgba(108, 124, 91, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 4px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../assets/images/hero-longevity.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 14, 12, 0.78), rgba(12, 14, 12, 0.36) 52%, rgba(12, 14, 12, 0.12)),
    linear-gradient(0deg, rgba(12, 14, 12, 0.68), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 170px 0 88px;
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-card .eyebrow,
.quote-band .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-content p {
  max-width: 610px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(255, 253, 248, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--clay);
}

.button-primary:hover {
  background: #9f6049;
}

.button-ghost {
  color: var(--paper);
  border-color: rgba(255, 253, 248, 0.46);
  background: rgba(255, 253, 248, 0.08);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.section {
  padding: 96px 0;
}

.intro-band {
  background: var(--cream);
}

.intro-grid,
.page-hero-grid,
.quote-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.intro-grid p,
.page-hero-grid p,
.split-copy p,
.massage-copy p,
.values-grid p,
.service-card p,
.detail-card p,
.session-grid p,
.contact-card p,
.site-footer p {
  color: rgba(23, 25, 24, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-preview-grid,
.values-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.values-grid article,
.testimonial-card,
.detail-card,
.contact-form,
.contact-card,
.session-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.service-card,
.values-grid article,
.testimonial-card,
.detail-card,
.contact-card,
.session-grid article {
  padding: 28px;
}

.service-card {
  overflow: hidden;
}

.service-card-image,
.detail-image {
  width: calc(100% + 56px);
  max-width: none;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: -28px -28px 26px;
  object-fit: cover;
}

.service-card.featured,
.detail-card.dark-card {
  color: var(--paper);
  background: var(--charcoal);
}

.service-card.featured p,
.detail-card.dark-card p,
.detail-card.dark-card li {
  color: rgba(255, 253, 248, 0.74);
}

.service-number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--olive);
  font-weight: 900;
}

.featured .service-number {
  color: var(--gold);
}

.split-section {
  background: linear-gradient(180deg, var(--paper), #eef2ea);
}

.split-grid,
.massage-grid,
.contact-grid,
.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.split-grid.reverse .image-panel {
  order: 2;
}

.image-panel {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--mineral);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--clay);
}

.quote-band {
  color: var(--paper);
  background: var(--ink);
}

.quote-grid {
  align-items: end;
}

blockquote {
  margin: 0;
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.08;
}

.quote-grid strong,
.quote-grid span {
  display: block;
}

.quote-grid span {
  margin-top: 8px;
  color: rgba(255, 253, 248, 0.66);
}

.page-hero {
  padding: 168px 0 86px;
  background:
    linear-gradient(120deg, rgba(108, 124, 91, 0.14), transparent 42%),
    var(--cream);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.values-section {
  background: var(--cream);
}

.services-detail {
  padding-bottom: 36px;
}

.service-detail-grid {
  align-items: stretch;
}

.detail-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.detail-card .check-list {
  margin-top: auto;
  padding-top: 26px;
}

.massage-section {
  padding-top: 50px;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.testimonial-grid {
  max-width: 860px;
  grid-template-columns: 1fr;
  gap: 20px;
}

.testimonial-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  background: var(--cream);
}

.testimonial-card.large {
  color: var(--paper);
  background: var(--charcoal);
}

.testimonial-card p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.22;
  color: inherit;
}

.testimonial-card span {
  display: block;
  margin-top: 4px;
  color: rgba(23, 25, 24, 0.58);
}

.testimonial-card.large span {
  color: rgba(255, 253, 248, 0.68);
}

.contact-section {
  background: #eef2ea;
}

.contact-grid {
  max-width: 760px;
  grid-template-columns: 1fr;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px;
  color: var(--ink);
  background: var(--paper);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(182, 111, 85, 0.32);
  border-color: var(--clay);
}

.contact-list {
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.contact-list li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-list span {
  display: block;
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  padding: 50px 0;
  color: var(--paper);
  background: var(--ink);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer p {
  max-width: 450px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.64);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.75);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    padding: 14px 20px;
  }

  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: 780px;
  }

  .hero-content {
    padding: 128px 0 54px;
  }

  h1 {
    font-size: clamp(2.8rem, 11vw, 4rem);
  }

  .section {
    padding: 70px 0;
  }

  .intro-grid,
  .page-hero-grid,
  .quote-grid,
  .split-grid,
  .split-grid.reverse,
  .massage-grid,
  .contact-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .split-grid.reverse .image-panel {
    order: 0;
  }

  .service-preview-grid,
  .values-grid,
  .testimonial-grid,
  .session-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card.large {
    grid-column: span 1;
  }

  .detail-card {
    min-height: auto;
  }

  .image-panel img {
    min-height: 340px;
  }

  .page-hero {
    padding: 134px 0 64px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 730px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-card,
  .values-grid article,
  .testimonial-card,
  .detail-card,
  .contact-card,
  .contact-form,
  .session-grid article {
    padding: 22px;
  }

  .service-card-image,
  .detail-image {
    width: calc(100% + 44px);
    height: auto;
    margin: -22px -22px 22px;
  }
}
