/* Gowrisankara — landing page composition.
   Loaded after theme.css; only used by index.html. */

.page-home {
  overflow-x: hidden;
}

/* ---------- Layout primitives ---------- */

.shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.shell--narrow {
  max-width: 860px;
}

.band {
  position: relative;
  padding: clamp(64px, 8.5vw, 124px) 0;
}

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

.band--sand {
  background: var(--color-bg-alt);
}

.band--forest {
  background: var(--color-primary-dark);
}

.band--tight {
  padding: clamp(44px, 5vw, 72px) 0;
}

.band__head {
  max-width: 660px;
  margin: 0 auto clamp(40px, 5vw, 72px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin: 0;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* Flanking rules read better centred; left-aligned headings take a lead-in only */
.eyebrow--left::after {
  display: none;
}

.band__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.9vw, 47px);
  font-weight: 600;
  line-height: 1.16;
  color: var(--color-primary-dark);
  margin: 18px 0 0;
}

.band__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
}

.band__lead {
  max-width: 600px;
  margin: 18px auto 0;
  font-size: 17px;
  color: var(--color-text-muted);
}

.band--forest .band__title {
  color: #fff;
}

.band--forest .band__lead {
  color: rgba(255, 255, 255, 0.72);
}

.band--forest .eyebrow {
  color: #d8bd8c;
}

/* Small brass sprig used as a quiet section ornament */
.sprig {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 26px;
  color: var(--color-accent-warm);
  opacity: 0.85;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(94vh, 900px);
  overflow: hidden;
  background: var(--color-primary-dark);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -3%;
  background: url('../images/front1.jpg') center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 34s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.15) translate3d(-1.5%, -1.6%, 0);
  }
}

/* Layered scrim: dark enough to read on, light enough to keep the garden visible */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(16, 38, 26, 0.58) 0%,
      rgba(16, 38, 26, 0.3) 32%,
      rgba(16, 38, 26, 0.58) 74%,
      rgba(16, 38, 26, 0.9) 100%
    ),
    radial-gradient(115% 85% at 12% 48%, rgba(14, 34, 23, 0.78) 0%, rgba(14, 34, 23, 0) 62%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: clamp(96px, 13vh, 150px) 0 clamp(110px, 16vh, 175px);
  color: #fff;
  text-shadow: 0 2px 26px rgba(10, 28, 18, 0.4);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #e4cfa4;
  margin: 0;
}

.hero__eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6.2vw, 73px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 22px 0 0;
}

.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: #ecd9b3;
}

.hero__text {
  max-width: 530px;
  margin: 24px 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.hero__cue:hover,
.hero__cue:focus {
  color: #fff;
}

.hero__cue-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  animation: cue-breathe 2.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue-breathe {
  0%, 100% {
    transform: scaleY(0.45);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Soft curve easing the hero into the page */
.hero__curve {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  width: 100%;
  height: clamp(40px, 6vw, 84px);
  display: block;
  fill: var(--color-bg);
  pointer-events: none;
}

/* ---------- Opening statement ---------- */

.creed {
  text-align: center;
}

.creed__text {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.6vw, 33px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-primary-dark);
  margin: 0;
}

.creed__text em {
  font-style: italic;
  color: var(--color-accent-warm);
}

.creed__sign {
  margin: 28px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Stats ---------- */

.creed + .stats {
  margin-top: clamp(52px, 6vw, 88px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats__item {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.stats__item:last-child {
  border-right: 0;
}

.stats__num {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
}

.stats__label {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar {
  position: relative;
  overflow: hidden;
  padding: 36px 30px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.pillar::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 170, 147, 0.22) 0%, rgba(143, 170, 147, 0) 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(176, 133, 74, 0.35);
}

.pillar:hover::after {
  opacity: 1;
}

.pillar__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--color-bg-alt) 0%, #fff 100%);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: 20px;
}

.pillar__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
}

.pillar__text {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

.pillar__link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
}

.pillar__link:hover,
.pillar__link:focus {
  color: var(--color-accent-warm);
  text-decoration: none;
}

/* ---------- Signature therapies ---------- */

.therapies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.therapy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.therapy:hover,
.therapy:focus {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.therapy__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 0.7, 0.25, 1);
}

.therapy:hover .therapy__img,
.therapy:focus .therapy__img {
  transform: scale(1.07);
}

.therapy__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 40, 28, 0) 28%,
    rgba(18, 40, 28, 0.62) 68%,
    rgba(14, 33, 22, 0.92) 100%
  );
}

.therapy__body {
  display: block;
  position: relative;
  z-index: 1;
  padding: 26px 26px 28px;
}

.therapy__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.therapy__text {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.therapies__more {
  margin-top: 44px;
  text-align: center;
}

/* ---------- Heritage ---------- */

.heritage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5.5vw, 80px);
  align-items: center;
}

.heritage__figure {
  position: relative;
  margin: 0;
}

.heritage__figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Offset brass outline echoing the arch */
.heritage__figure::after {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(176, 133, 74, 0.45);
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  pointer-events: none;
}

.heritage__body p {
  margin-bottom: 1.05em;
}

.heritage__body p:last-of-type {
  margin-bottom: 0;
}

.signature {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
}

/* Source file is only 143px wide — render small so it stays sharp */
.signature__avatar {
  flex-shrink: 0;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
}

.signature__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.3;
}

.signature__role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.heritage__cta {
  margin-top: 30px;
}

/* ---------- The stay, step by step ---------- */

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* Hairline threading the four markers together */
.journey::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(176, 133, 74, 0) 0%,
    rgba(176, 133, 74, 0.45) 12%,
    rgba(176, 133, 74, 0.45) 88%,
    rgba(176, 133, 74, 0) 100%
  );
}

.step {
  position: relative;
  text-align: center;
}

.step__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid rgba(176, 133, 74, 0.5);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 600;
  color: var(--color-accent-warm);
}

.band--sand .step__marker {
  background: var(--color-bg-alt);
}

.step__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 8px;
}

.step__meta {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: 6px;
}

.step__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Guest voices ---------- */

.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.voice {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.voice:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(216, 189, 140, 0.4);
}

.voice__mark {
  font-family: var(--font-heading);
  font-size: 51px;
  line-height: 0.7;
  color: #d8bd8c;
  margin-bottom: 16px;
}

.voice__quote {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 19px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.93);
  border: 0;
  padding: 0;
  margin: 0;
}

.voice__author {
  margin: 22px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8bd8c;
}

.voice__author span {
  display: block;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.voices__more {
  margin-top: 42px;
  text-align: center;
}

.voices__more a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 189, 140, 0.5);
  padding-bottom: 4px;
}

.voices__more a:hover,
.voices__more a:focus {
  color: #fff;
  border-color: #d8bd8c;
  text-decoration: none;
}

/* ---------- Invitation ---------- */

.invite {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.5vw, 72px) clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #3a7355 100%);
  box-shadow: var(--shadow-lg);
  text-align: center;
  color: #fff;
}

.invite::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -110px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 189, 140, 0.2) 0%, rgba(216, 189, 140, 0) 68%);
}

.invite__title {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(29px, 3.4vw, 42px);
  font-weight: 600;
  color: #fff;
  margin: 16px 0 0;
}

.invite__text {
  position: relative;
  max-width: 560px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.86);
}

.invite__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.invite .eyebrow {
  position: relative;
  color: #d8bd8c;
}

.invite .btn-wellness {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary-dark);
}

.invite .btn-wellness:hover,
.invite .btn-wellness:focus {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

/* ---------- Location ---------- */

.locate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 24px;
  align-items: start;
}

.locate__col {
  display: grid;
  gap: 20px;
}

.info-card {
  padding: 28px 30px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 16px;
}

.info-card p {
  font-size: 15px;
  margin-bottom: 10px;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card i {
  width: 20px;
  margin-right: 8px;
  color: var(--color-accent-warm);
}

.info-card__social {
  margin-top: 18px;
}

.info-card__social a {
  font-size: 24px;
  color: var(--color-primary);
}

.info-card__social a:hover {
  color: var(--color-accent-warm);
}

.travel-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.6;
}

.travel-tip:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.travel-tip i {
  margin-top: 5px;
  flex-shrink: 0;
  color: var(--color-accent-warm);
}

.map-wrap {
  position: relative;
  min-height: 460px;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
}

/* Blocks scroll-hijacking by the embed until the map is clicked */
.map-shield {
  position: absolute;
  inset: 0;
  background: transparent;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.22, 0.7, 0.25, 1),
    transform 0.9s cubic-bezier(0.22, 0.7, 0.25, 1);
  transition-delay: var(--d, 0ms);
}

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

@media (max-width: 1099px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .therapies {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 26px;
  }

  .journey::before {
    display: none;
  }

  .voices {
    grid-template-columns: 1fr;
  }

  .voice__quote {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .heritage {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .heritage__figure {
    max-width: 400px;
    margin: 0 auto;
  }

  /* The offset frame needs room to read as intentional; drop it when stacked */
  .heritage__figure::after {
    display: none;
  }

  .locate {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    min-height: 360px;
  }

  .map-wrap iframe {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .shell {
    padding: 0 20px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero__media {
    background-position: center 45%;
  }

  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(16, 38, 26, 0.62) 0%,
      rgba(16, 38, 26, 0.5) 40%,
      rgba(16, 38, 26, 0.86) 100%
    );
  }

  .hero__actions .btn-wellness,
  .hero__actions .btn-wellness-outline {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero__cue {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item {
    padding: 26px 14px;
    border-bottom: 1px solid var(--color-border);
  }

  .stats__item:nth-child(2n) {
    border-right: 0;
  }

  .stats__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .pillars,
  .therapies {
    grid-template-columns: 1fr;
  }

  .therapy {
    min-height: 280px;
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .invite__actions .btn-wellness,
  .invite__actions .btn-wellness-outline {
    flex: 1 1 100%;
    text-align: center;
  }

  .signature {
    gap: 14px;
  }
}

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

  .hero__media,
  .hero__cue-line {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .therapy__img,
  .therapy,
  .pillar {
    transition: none;
  }

  .therapy:hover .therapy__img,
  .therapy:focus .therapy__img {
    transform: none;
  }
}
