/* Antara-inspired theme for Sutra Ayurveda */
:root {
  --cream: #c5beb1;
  --cream2: #dad5ca;
  --brown: #78694e;
  --green: #425e40;
  --darkgreen: #162015;
  --gold: #B8966E;
  --top: 8.333vw;
  --left: 1.868vw;
  --left2: 2.792vw;
  --fraunces: "Fraunces", serif;
  --manrope: "Manrope", sans-serif;
  --curve-radius: 39.865vw;
}

html.lenis { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body.page-home {
  font-family: var(--manrope);
  font-size: clamp(14px, 0.938vw, 18px);
  font-weight: 400;
  line-height: 1.33;
  background: var(--cream);
  color: var(--brown);
}

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4,
body.page-home h5 {
  font-family: var(--fraunces);
  font-weight: 100;
  font-style: italic;
  color: inherit;
}

body.page-home h1,
body.page-home .h1 {
  font-size: clamp(3rem, 11.458vw, 8rem);
  line-height: 1;
  text-transform: uppercase;
}

body.page-home h2,
body.page-home .h2 {
  font-size: clamp(2.2rem, 6.25vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

body.page-home h3,
body.page-home .h3 {
  font-size: clamp(1.8rem, 5.208vw, 4rem);
  line-height: 1;
}

body.page-home h6 {
  font-family: var(--manrope);
  font-size: clamp(0.85rem, 1.25vw, 1.1rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-box {
  flex-shrink: 0;
  width: 70vw;
  max-width: 900px;
  height: 100%;
  background: var(--green);
  border-radius: 15vw;
  transform: scaleX(0);
  transform-origin: center;
}

.preloader-box.left { animation: preloaderSlideLeft 1.2s ease forwards 0.2s; }
.preloader-box.right { animation: preloaderSlideRight 1.2s ease forwards 0.2s; }

@keyframes preloaderSlideLeft {
  0% { transform: scaleX(0); }
  40% { transform: scaleX(1); }
  100% { transform: scaleX(1) translateX(-120%); }
}

@keyframes preloaderSlideRight {
  0% { transform: scaleX(0); }
  40% { transform: scaleX(1); }
  100% { transform: scaleX(1) translateX(120%); }
}

.preloader-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--cream);
  text-align: center;
  width: min(90%, 420px);
  z-index: 2;
}

.preloader-text .percentage {
  margin-top: 2vw;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--fraunces);
}

/* Antara header */
.antara-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.668vw var(--left);
  color: var(--cream);
  pointer-events: none;
}

.antara-header * { pointer-events: auto; }

.antara-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.antara-header-tag {
  font-weight: 600;
  font-size: clamp(0.65rem, 0.85vw, 0.8rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8vw 1.2vw 0.8vw 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid var(--cream);
  position: relative;
}

.antara-header-tag::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 0;
  background: var(--cream);
  animation: lineGrow 0.8s ease forwards 0.5s;
}

.antara-header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 1vw;
}

.antara-header-logo img {
  height: clamp(50px, 6.8vw, 90px);
  width: auto;
  filter: brightness(0) invert(1) sepia(1) saturate(0.3) hue-rotate(10deg);
}

.antara-header-nav {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.antara-header-nav a {
  color: var(--cream);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  padding: 0.8vw 1.3vw;
  position: relative;
  overflow: hidden;
  transition: color 0.2s;
}

.antara-header-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 0;
  background: var(--cream);
  animation: lineGrow 0.8s ease forwards 0.8s;
}

.antara-header-nav a::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
  transition: top 0.2s;
  z-index: -1;
}

.antara-header-nav a:hover {
  color: var(--brown);
}

.antara-header-nav a:hover::after {
  top: 0;
}

@keyframes lineGrow {
  to { height: 100%; }
}

/* Floating menu (Antara style) */
.floating-menu {
  position: fixed;
  top: 50%;
  right: var(--left);
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.7vw;
}

.floating-menu .menu-pill,
.floating-menu .audio-pill {
  background: var(--cream);
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.floating-menu .menu-pill {
  width: clamp(36px, 2.3vw, 44px);
  height: clamp(90px, 6.4vw, 110px);
  border-radius: 1.7vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(0.6rem, 0.75vw, 0.75rem);
  color: var(--brown);
  gap: 0.5vw;
}

.floating-menu .menu-pill span.label {
  transform: rotate(-90deg);
  white-space: nowrap;
}

.floating-menu .menu-pill .menu-icon-bar {
  width: 7px;
  height: 2px;
  background: var(--brown);
  margin: 2px 0;
  transition: background 0.2s;
}

.floating-menu .audio-pill {
  width: clamp(36px, 2.3vw, 44px);
  height: clamp(36px, 2.3vw, 44px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--brown);
}

.floating-menu.active .menu-pill,
.floating-menu.active .audio-pill {
  background: var(--brown);
  color: var(--cream);
}

.floating-menu.active .menu-icon-bar {
  background: var(--cream);
}

/* Hide default navbar on home when Antara header active */
body.page-home .navbar { display: none; }

/* Hero video section */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.home-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://antaraspawellness.com/wp-content/uploads/2025/04/img-background-shadow.jpg") repeat-y;
  background-size: cover;
  mix-blend-mode: multiply;
  z-index: 1;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(76, 74, 69, 0.7);
  opacity: 0.87;
  z-index: 2;
}

.hero-letters {
  position: absolute;
  top: 7vw;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3.5vw;
  animation: letterSpread 1.5s ease forwards 0.3s;
}

@keyframes letterSpread {
  from { gap: 3.5vw; opacity: 0; }
  to { gap: 6vw; opacity: 1; }
}

.hero-letter {
  font-family: var(--fraunces);
  font-style: italic;
  font-weight: 100;
  color: var(--cream);
  line-height: 1;
  opacity: 0;
  animation: letterFadeIn 0.8s ease forwards;
}

.hero-letter:nth-child(1) { font-size: clamp(3rem, 12vw, 9rem); animation-delay: 0.1s; }
.hero-letter:nth-child(2) { font-size: clamp(2.5rem, 8vw, 6rem); animation-delay: 0.2s; }
.hero-letter:nth-child(3) { font-size: clamp(2rem, 5vw, 4rem); animation-delay: 0.3s; }
.hero-letter:nth-child(4) { font-size: clamp(2.5rem, 7vw, 5.5rem); animation-delay: 0.4s; }
.hero-letter:nth-child(5) { font-size: clamp(2rem, 6vw, 5rem); animation-delay: 0.5s; }
.hero-letter:nth-child(6) { font-size: clamp(3rem, 12vw, 9rem); animation-delay: 0.6s; }

@keyframes letterFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Intro overlay on hero */
.intro-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 0 var(--left) 3vw;
}

.intro-navi {
  display: flex;
  align-items: center;
  color: var(--cream);
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  animation: naviLine 1.5s ease forwards 1s;
}

.intro-navi::before {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.5);
  animation: lineExpand 1.5s ease forwards 1s;
}

@keyframes lineExpand { to { width: 100%; } }

.intro-navi .navi-start {
  display: flex;
  align-items: center;
  padding-right: 1.7vw;
  margin-right: 1.7vw;
  border-right: 1px solid var(--cream);
  min-height: 4.5vw;
}

.intro-navi .navi-middle {
  flex: 1;
}

.intro-navi .navi-end {
  margin-left: auto;
  font-size: 0.85em;
  letter-spacing: 0.15em;
}

/* Curved green sanctuary */
.design-wrapper {
  position: relative;
  margin-top: -2vw;
  padding: 18vw var(--left) 8vw;
  overflow: hidden;
}

.curve-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110vw;
  height: 100%;
  background: var(--green);
  border-top-left-radius: var(--curve-radius);
  border-top-right-radius: var(--curve-radius);
  z-index: 0;
}

.design-wrapper .container-inner {
  position: relative;
  z-index: 1;
  color: var(--cream);
}

.intro-title-block {
  text-align: center;
  max-width: 66vw;
  margin: 0 auto 5vw;
}

.intro-title-block h2 {
  font-style: italic;
  font-weight: 100;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.intro-title-block h6 {
  color: rgba(237, 232, 222, 0.8);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Past wisdom / modern experience split cards */
.design-holder {
  display: flex;
  position: relative;
  border-radius: 6vw;
  overflow: hidden;
  min-height: 47vw;
}

.design-col {
  flex: 1;
  position: relative;
  border-radius: 6vw;
  overflow: hidden;
  transition: flex 0.5s ease;
  cursor: pointer;
}

.design-col.active { flex: 1.4; }
.design-col.not-active { flex: 0.6; }

.design-col img {
  width: 80vw;
  max-width: none;
  height: 47vw;
  object-fit: cover;
  display: block;
}

.design-col::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}

.design-txt {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 40vw;
  padding: 3vw 0 4vw;
  z-index: 2;
  text-align: center;
  transition: bottom 0.5s, opacity 0.5s;
}

.design-col.not-active .design-txt {
  bottom: -5vw;
}

.design-col.not-active .hidden-txt {
  opacity: 0;
}

.design-txt h2 {
  margin-bottom: 1rem;
}

.design-txt .hidden-txt {
  transition: opacity 0.5s;
}

/* Antara button */
.btn-antara {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: var(--manrope);
  font-weight: 600;
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  height: 2.8vw;
  min-height: 40px;
  padding: 0;
  transition: color 0.2s;
  position: relative;
}

.btn-antara .btn-dot {
  width: 0.37vw;
  min-width: 5px;
  height: 0.37vw;
  min-height: 5px;
  background: var(--cream);
  border-radius: 50%;
  margin-right: 1vw;
  transition: background 0.2s;
}

.btn-antara .btn-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.btn-antara:hover {
  color: white;
}

.btn-antara:hover .btn-line {
  transform: scaleX(1);
}

.btn-antara.btn-brown { color: var(--brown); }
.btn-antara.btn-brown .btn-dot { background: var(--brown); }
.btn-antara.btn-brown .btn-line { background: var(--brown); }

/* Service section */
.service-section-antara {
  background: var(--brown);
  color: var(--cream);
  padding: 15vw var(--left) 12vw;
  position: relative;
  z-index: 2;
}

.sec-navi {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 4vw;
  min-height: 4.5vw;
}

.sec-navi .navi-start {
  padding-right: 1.7vw;
  margin-right: 1.7vw;
  border-right: 1px solid var(--cream);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sec-navi .navi-end { margin-left: auto; }

.service-title-antara {
  text-align: center;
  margin-bottom: 4vw;
}

.service-title-antara h2 { margin-bottom: 1rem; }
.service-title-antara p {
  max-width: 25vw;
  margin: 0 auto;
  color: var(--cream2);
}

.service-cards-row {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 1vw;
  flex-wrap: wrap;
}

.service-card-antara {
  width: min(27vw, 380px);
  min-height: 38vw;
  max-height: 520px;
  border-radius: 3vw;
  padding: 3vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  transition: transform 0.4s ease, background 0.3s;
  transform: rotate(-2deg);
}

.service-card-antara:nth-child(even) {
  transform: rotate(2deg);
  margin-left: -5vw;
  margin-top: 2vw;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.service-card-antara:nth-child(even) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3vw;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.service-card-antara:hover,
.service-card-antara.in-view {
  transform: rotate(-7deg) translateY(-8px);
}

.service-card-antara:nth-child(even):hover,
.service-card-antara:nth-child(even).in-view {
  transform: rotate(7deg) translateY(-8px);
}

.service-card-antara:nth-child(even):hover img,
.service-card-antara:nth-child(even).in-view img {
  opacity: 1;
}

.service-card-antara .card-icon {
  font-size: 2.5rem;
  margin-bottom: auto;
}

.service-card-antara h3 {
  font-family: var(--fraunces);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.3rem;
  margin: 1rem 0;
}

.service-card-antara p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Door tranquility section */
.door-section {
  position: relative;
  background: var(--cream);
  padding-bottom: 10vw;
  overflow: hidden;
}

.door-wrapper-antara {
  position: relative;
  height: 90vw;
  max-height: 900px;
  overflow: hidden;
}

.door-title {
  position: absolute;
  top: 19vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  color: var(--brown);
  width: 100%;
}

.door-panel {
  position: absolute;
  inset: 0;
  background: var(--darkgreen);
  transform-origin: bottom center;
  transform: perspective(1200px) rotateX(0deg);
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.door-section.door-open .door-panel {
  transform: perspective(1200px) rotateX(-75deg);
}

.door-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.door-title {
  font-family: var(--fraunces);
  font-style: italic;
  font-weight: 100;
  text-transform: uppercase;
}

body.preloader-active { overflow: hidden; }

body.page-home .footer {
  background: var(--darkgreen);
  color: var(--cream);
}

body.page-home .footer,
body.page-home .footer a,
body.page-home .footer h3,
body.page-home .footer h4 {
  color: var(--cream);
}

/* Hide legacy duplicate sections on homepage */
body.page-home .wisdom-experience,
body.page-home .services-section {
  display: none !important;
}

/* Promotions — Antara exclusive treats style */
body.page-home .promotions-offers-section {
  background: var(--darkgreen);
  color: var(--cream);
  padding: 8vw var(--left) 12vw;
}

body.page-home .promotions-offers-section .section-heading {
  font-family: var(--fraunces);
  font-style: italic;
  font-weight: 100;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream);
}

body.page-home .promotion-offers-card {
  border-radius: 3vw;
  overflow: hidden;
  transform: rotate(-3deg);
}

body.page-home .promotion-offers-card:nth-child(even) {
  transform: rotate(3deg);
}

.location-content-antara {
  position: relative;
  z-index: 2;
  padding: 5vw var(--left);
  text-align: center;
}

/* Scroll reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Side nav Antara style when opened from floating menu */
body.page-home .side-nav {
  background: var(--cream);
  width: 15vw;
  min-width: 220px;
  border-radius: 1.7vw 0 0 1.7vw;
  padding: 2vw 0;
  right: calc(var(--left) + 3vw);
  top: 50%;
  transform: translateY(-50%) scale(0.35);
  transform-origin: right center;
  height: auto;
  max-height: 80vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

body.page-home .side-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
  right: calc(var(--left) + 3.5vw);
}

body.page-home .side-nav-header { display: none; }

body.page-home .main-nav-list a {
  font-family: var(--manrope);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  color: var(--brown);
  opacity: 0.5;
  padding: 0.3vw 2vw;
  display: block;
}

body.page-home .main-nav-list a:hover,
body.page-home .main-nav-list a.active {
  opacity: 1;
}

body.page-home .audio-control { display: none; }

/* Mobile */
@media (max-width: 768px) {
  .antara-header-nav { display: none; }
  .antara-header-tag { font-size: 0.6rem; }
  .design-holder { flex-direction: column; min-height: auto; }
  .design-col { min-height: 70vw; }
  .design-col img { width: 100%; height: 70vw; }
  .design-col.active, .design-col.not-active { flex: 1; }
  .intro-title-block { max-width: 100%; }
  .service-title-antara p { max-width: 90%; }
  .service-card-antara { width: 85vw; min-height: 420px; margin: 1rem 0 !important; transform: none !important; }
  .floating-menu { bottom: 5vw; top: auto; right: auto; left: 50%; transform: translateX(-50%); flex-direction: row; }
  .floating-menu .menu-pill { width: 25vw; height: 10vw; flex-direction: row-reverse; border-radius: 8vw; gap: 3vw; }
  .floating-menu .menu-pill span.label { transform: none; }
  body.page-home .side-nav {
    right: 50%;
    top: auto;
    bottom: 18vw;
    transform: translateX(50%) scale(0.35);
    width: 80%;
    min-width: 0;
  }
  body.page-home .side-nav.active {
    transform: translateX(50%) scale(1);
  }
}
