/* ============ Section pages (Herbal Treatment, Yoga Studio, Regimental Therapy) ============
   Loaded after styles.css. Each page sets a theme class on <body> (t-herbal, …)
   that re-colours the shared tokens (sidebar, footer, etc. follow).
*/

.project {
  --bg: var(--t-deep);
  --bg-2: var(--t-mid);
  --glow: var(--t-glow);
  --accent: var(--t-accent);
  --ink: #f3efe4;
  --ink-soft: rgba(243, 239, 228, .72);
  --line: rgba(243, 239, 228, .16);
  --bar-bg: color-mix(in srgb, var(--bg) 88%, transparent);
  --col-gap: clamp(20px, 3vw, 48px);
}

/* layered gradient, glowing warm in the lower right like dusk light */
.project::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 100% 110%, var(--glow), transparent 60%),
    radial-gradient(60% 50% at 0% 0%, rgba(255, 255, 255, .04), transparent 70%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-2) 100%);
}
.project::before { opacity: .5; }

/* ============ Intro (first screen) ============ */
.intro {
  position: relative;
  min-height: calc(100vh - var(--pad) * 2);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.intro-caption {
  grid-column: 1 / 7;
  grid-row: 1;
  align-self: center;
  padding: 6vh 0 8vh;
}

.intro-caption > * {
  animation: fadeUp .9s var(--ease) both;
}
.intro-caption > :nth-child(2) { animation-delay: .08s; }
.intro-caption > :nth-child(3) { animation-delay: .16s; }
.intro-caption > :nth-child(4) { animation-delay: .24s; }
.intro-caption > :nth-child(5) { animation-delay: .32s; }
.intro-caption > :nth-child(6) { animation-delay: .4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .3s;
}
.back-link:hover { color: var(--accent); }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
}

.intro h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: .98;
  letter-spacing: -.03em;
}

.tagline {
  max-width: 32ch;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.3;
  color: var(--accent);
}

.lead {
  max-width: 50ch;
  margin: 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.intro-hero {
  grid-column: 8 / 13;
  grid-row: 1;
  align-self: start;
  height: min(66vh, 640px);
  margin: 0;
  border-radius: 16px 96px 16px 16px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  animation: heroIn 1.2s var(--ease) both;
}
.intro-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroImg 1.8s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes heroImg { from { transform: scale(1.15); } }

/* the hero is the morph target when arriving from a home box — let the morph do the motion */
.vt .intro-hero,
.vt .intro-hero img { animation: none; }

/* ---- buttons ---- */
.book {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--accent);
  color: var(--bg);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--accent); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { box-shadow: none; border-color: var(--accent); }

.project .footer { padding-top: 32px; }

/* ============ Tablet ============ */
@media (max-width: 1024px) {
  .intro-hero { grid-column: 7 / 13; height: min(58vh, 520px); }
}

/* ============ Mobile ============ */
@media (max-width: 768px) {
  .intro {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 0;
  }
  .intro-caption { padding: 12px 0 0; }
  .back-link { margin-bottom: 20px; }
  .intro-hero {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 72vh;
    border-radius: 14px 64px 14px 14px;
  }
  .book .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-caption > *, .intro-hero, .intro-hero img { animation: none; }
}
