/*
Theme Name: IndoGulf Wellness
Theme URI: https://indogulfwellness.com
Author: IndoGulf Wellness
Author URI: https://indogulfwellness.com
Description: A luxury wellness theme blending the timeless wisdom of Ayurveda with modern therapeutic design. Features an animated parchment map preloader, Three.js WebGL backgrounds, GSAP scroll animations, yoga & wellness service sections, dosha cards, testimonial slider, and a full retreat programs layout.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indogulf-wellness
Tags: wellness, ayurveda, yoga, luxury, one-page, animation, three-js, gsap
*/

/* ══════════════════════════════════════
   IndoGulf Wellness — style.css
   ══════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══ CSS VARIABLES ══ */
:root {
  --cream:      #f0ebe0;
  --cream-dark: #d8cdb4;
  --ink:        #1a3a2e;
  --ink-faded:  #4a7c63;
  --gold:       #b8902a;
  --gold-light: #d4a94a;
  --sage:       #7a9e7e;
  --earth:      #c4956a;
  --deep:       #1a1a12;
  --gold-main:  #d4a843;
  --mist:       #e8ede6;
  --water:      #4a7c95;
  --ivory:      #faf7f0;
  --charcoal:   #2d2d2a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--deep);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}


/* ══════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #0d2218 0%, #050e09 100%);
  transition: opacity 1s ease, visibility 1s ease;
  cursor: pointer;
  user-select: none;
}

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

#preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(45,92,70,0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: shimmerGrid 8s linear infinite;
  pointer-events: none;
}

@keyframes shimmerGrid {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}


/* ══ PARCHMENT ══ */

#map-wrap {
  position: relative;
  width: min(860px, 96vw);
  height: min(600px, 93vh);
  perspective: 1600px;
}

#parchment {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0.3'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.13'/%3E%3C/svg%3E");
  box-shadow:
    0 0 0 2px var(--cream-dark),
    0 0 0 5px #a89060,
    0 0 0 8px #7a6040,
    0 0 80px 30px rgba(0,0,0,0.95),
    inset 0 0 100px rgba(0,0,0,0.12);
  transform-origin: center center;
  animation: unfurl 1.6s cubic-bezier(0.22,1,0.36,1) 0.2s both;
  overflow: hidden;
  position: relative;
}

@keyframes unfurl {
  0%   { transform: rotateX(70deg) scaleY(0.04); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: rotateX(3deg) scaleY(1); opacity: 1; }
}

.fold {
  position: absolute;
  background: rgba(26,58,46,0.1);
  pointer-events: none;
}
.fold.v { top: 0; bottom: 0; width: 1px; }
.fold.h { left: 0; right: 0; height: 1px; }

#map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: fadeIn 1.2s ease 1.5s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

#ftr {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: pulsePrompt 2.4s ease-in-out 2.8s infinite;
}

#ftr span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(10px, 1.6vw, 13px);
  color: var(--ink-faded);
  letter-spacing: 0.16em;
}

@keyframes pulsePrompt {
  0%,100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

.pulse-dot {
  animation: pulseDot 2.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,100% { r: 4; opacity: 0.9; }
  50%      { r: 7; opacity: 0.4; }
}


/* ══════════════════════════════════════
   CUSTOM CURSOR
   ══════════════════════════════════════ */

.cursor {
  width: 8px;
  height: 8px;
  background: var(--gold-main);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212,168,67,0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}


/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.4s;
}

nav.scrolled {
  background: rgba(26,26,18,0.92);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--cream);
  text-decoration: none;
}

.nav-logo span {
  color: var(--gold-main);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold-main);
}

.nav-cta {
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--gold-main);
  color: var(--gold-main);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--gold-main);
  color: var(--deep);
}


/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#three-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.8rem;
  opacity: 0;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-main);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(245,240,232,0.7);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.8rem;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  opacity: 0;
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: var(--gold-main);
  color: var(--deep);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,67,0.3);
}

.btn-outline {
  padding: 1rem 2.5rem;
  border: 1px solid rgba(245,240,232,0.4);
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--cream);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.3; transform: scaleY(0.5); }
}


/* ══════════════════════════════════════
   MARQUEE
   ══════════════════════════════════════ */

.marquee-section {
  padding: 1.5rem 0;
  background: var(--gold-main);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--deep);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.marquee-item::after {
  content: '✦';
  font-style: normal;
  font-size: 0.6rem;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ══════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════ */

section {
  padding: 8rem 4rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
}


/* ══════════════════════════════════════
   SERVICES
   ══════════════════════════════════════ */

#services {
  background: var(--ivory);
  color: var(--deep);
}

#services .section-title {
  color: var(--deep);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 4rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.service-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.23,1,0.32,1);
}

.service-card:hover .service-bg {
  transform: scale(1.06);
}

.s1 .service-bg { background: linear-gradient(160deg, #4a7246 0%, #1a3318 100%); }
.s2 .service-bg { background: linear-gradient(160deg, #3d6b80 0%, #1a2e38 100%); }
.s3 .service-bg { background: linear-gradient(160deg, #8b5a3c 0%, #3d2218 100%); }
.s4 .service-bg { background: linear-gradient(160deg, #7a6b4a 0%, #32280f 100%); }
.s5 .service-bg { background: linear-gradient(160deg, #6b4a7a 0%, #28183d 100%); }
.s6 .service-bg { background: linear-gradient(160deg, #4a7a6b 0%, #182e28 100%); }

.service-icon {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  transform: translateY(2rem);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
}

.service-card:hover .service-content {
  transform: translateY(0);
  opacity: 1;
}

.service-num {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.1);
  line-height: 1;
}

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}


/* ══════════════════════════════════════
   AYURVEDA
   ══════════════════════════════════════ */

#ayurveda {
  background: var(--deep);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.dosha-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dosha-card {
  padding: 2rem;
  border: 1px solid rgba(245,240,232,0.1);
  transition: border-color 0.3s, transform 0.3s;
  cursor: default;
}

.dosha-card:hover {
  border-color: var(--gold-main);
  transform: translateY(-4px);
}

.dosha-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dosha-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-main);
  margin-bottom: 0.4rem;
}

.dosha-elem {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.4);
  margin-bottom: 0.8rem;
}

.dosha-text {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.7;
}


/* ══════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════ */

.stats-bar {
  background: var(--charcoal);
  padding: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold-main);
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-top: 0.3rem;
}


/* ══════════════════════════════════════
   PROGRAMS / RETREATS
   ══════════════════════════════════════ */

#programs {
  background: var(--mist);
  color: var(--deep);
}

#programs .section-title {
  color: var(--deep);
}

.programs-list {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.program-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(26,26,18,0.15);
  cursor: pointer;
  transition: padding 0.3s;
  position: relative;
  overflow: hidden;
}

.program-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--deep);
  transition: width 0.5s cubic-bezier(0.23,1,0.32,1);
  z-index: 0;
}

.program-item:hover::before {
  width: 100%;
}

.program-item:hover {
  padding-left: 1.5rem;
  color: var(--cream);
}

.program-item * {
  position: relative;
  z-index: 1;
}

.prog-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: rgba(26,26,18,0.2);
  transition: color 0.3s;
}

.program-item:hover .prog-num {
  color: rgba(245,240,232,0.3);
}

.prog-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.prog-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26,26,18,0.4);
  transition: color 0.3s;
}

.program-item:hover .prog-tag {
  color: rgba(245,240,232,0.5);
}

.prog-arrow {
  font-size: 1.5rem;
  transform: rotate(-45deg);
  transition: transform 0.3s;
}

.program-item:hover .prog-arrow {
  transform: rotate(0deg);
}

.program-item:last-child {
  border-bottom: 1px solid rgba(26,26,18,0.15);
}


/* ══════════════════════════════════════
   MINDFULNESS
   ══════════════════════════════════════ */

#mindfulness {
  background: var(--deep);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

#mind-canvas {
  width: 100%;
  aspect-ratio: 1;
}

.mind-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mind-feat {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-left: 2px solid transparent;
  transition: border-color 0.3s;
}

.mind-feat:hover {
  border-color: var(--gold-main);
}

.mind-feat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(212,168,67,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mind-feat-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.mind-feat-text {
  font-size: 0.83rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.7;
}


/* ══════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════ */

#testimonials {
  background: var(--earth);
  overflow: hidden;
}

#testimonials .section-title {
  color: var(--ivory);
}

.testi-slider {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  overflow: hidden;
}

.testi-card {
  flex: 0 0 400px;
  padding: 2.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.testi-stars {
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  margin-bottom: 1.2rem;
}

.testi-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.testi-author {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.6);
}


/* ══════════════════════════════════════
   CTA
   ══════════════════════════════════════ */

#cta {
  background: var(--deep);
  text-align: center;
  padding: 10rem 4rem;
}

#cta .section-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  max-width: 900px;
  margin: 0 auto 2rem;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(245,240,232,0.6);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}


/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

footer {
  background: var(--charcoal);
  padding: 4rem;
  border-top: 1px solid rgba(245,240,232,0.08);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--gold-main);
}

.footer-desc {
  font-size: 0.83rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(245,240,232,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,232,0.08);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
}


/* ══════════════════════════════════════
   SCROLL REVEAL UTILITIES
   ══════════════════════════════════════ */

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 900px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 5rem 1.5rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  #ayurveda, #mindfulness { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 0 1.5rem; }
}
