/* Import Serene Typography from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap");

/* Clean CSS Reset & Design Tokens */
:root {
  /* HSL Tailored Serene Color Palette */
  --bg-cream: hsl(36, 30%, 97%);
  --bg-white: hsl(0, 0%, 100%);
  --text-dark: hsl(280, 25%, 15%);
  --text-muted: hsl(280, 10%, 45%);

  --primary-purple: hsl(280, 56%, 22%);
  --primary-light: hsl(280, 40%, 35%);
  --primary-bg-light: hsl(280, 50%, 96%);

  --accent-gold: hsl(46, 65%, 52%);
  --accent-gold-light: hsl(46, 45%, 75%);
  --accent-gold-bg: hsl(46, 60%, 96%);

  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(87, 28, 147, 0.06);

  /* Fonts */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Border Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(87, 28, 147, 0.05);
  --shadow-lg: 0 20px 40px rgba(87, 28, 147, 0.08);

  /* Animations */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

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

ul {
  list-style: none;
}

/* Typography Rules */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  color: var(--primary-purple);
}

h2 {
  font-size: 2rem;
  color: var(--primary-purple);
  position: relative;
  padding-bottom: 0.75rem;
}

h2.decorated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

h2.decorated.center::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-light);
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: var(--text-dark);
}

/* Helper Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--primary-bg-light);
}

/* Sticky Header with Glassmorphism */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.02);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-purple);
  font-weight: 600;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1010;
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--primary-purple);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}
.hamburger span:nth-child(2) {
  top: 10px;
}
.hamburger span:nth-child(3) {
  top: 20px;
}

.hamburger.open span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Premium Buttons & Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-purple);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(74, 21, 75, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 21, 75, 0.3);
  color: var(--bg-white);
}

.btn-accent {
  background-color: var(--accent-gold);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.btn-accent:hover {
  background-color: hsl(46, 75%, 45%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.btn-outline:hover {
  background-color: var(--primary-purple);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Glassmorphic Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(87, 28, 147, 0.05);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold-light);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Hero Section - Split View (Full-bleed right image) */
.hero {
  --hero-content-top: calc(var(--header-height) + 4rem);
  min-height: auto;
  display: flex;
  align-items: stretch; /* Force columns to stretch to full vertical height */
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, var(--primary-bg-light) 0%, var(--bg-cream) 75%);
  padding-bottom: 3rem;
}

.hero-left {
  flex: 1.3; /* Give the text section more breathing room */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--hero-content-top) 4rem 4rem 1.5rem;
  z-index: 10;
}

.hero-left-content {
  width: 100%;
  max-width: 620px;
}

.hero-subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-right {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background-color: transparent;
  position: relative;
  height: auto;
  padding-top: 0; /* Full-bleed layout */
}

.hero-image-wrapper-full {
  width: 100%;
  height: 100%;
  min-height: 550px;
  position: relative;
  overflow: hidden;
}

.hero-image-wrapper-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;  /* ← was 0%, now 30% pulls face DOWN into view */
  display: block;
}

.hero-image-fade-overlay {
  display: none;
}

@media (min-width: 1600px) {
  .hero-image-wrapper-full {
    max-height: 80vh;
  }
}

/* Hero Left Caption under buttons */
.hero-left-caption {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(87, 28, 147, 0.08);
  padding-top: 1.5rem;
}

.hero-caption-free {
  font-family: var(--font-serif);
  color: var(--primary-purple);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.hero-caption-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

@media (min-width: 1200px) {
  .hero-left {
    /* Limit left padding to max 250px so text doesn't squish inwards on 2K/4K monitors */
    padding-left: min(calc((100vw - 1200px) / 2 + 1.5rem), 250px);
  }
}

@media (min-width: 993px) {
  .hero-image-fade-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: -1px; /* Prevents a 1px white line gap */
    width: 100%; /* Stretch full width to cover top, left, and bottom boundaries */
    height: 100%;
    /* Combine left-to-right fade, top-to-bottom fade, and bottom-to-top fade */
    background: linear-gradient(to right, var(--bg-cream) 0%, transparent 25%),
      linear-gradient(to bottom, var(--bg-cream) 0%, transparent 15%),
      linear-gradient(to top, var(--bg-cream) 0%, transparent 15%);
    pointer-events: none;
    z-index: 2;
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column-reverse;
    padding-bottom: 2rem;
  }
  .hero-left {
    padding: 2rem 1.5rem 2rem 1.5rem;
  }
  .hero-right {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: transparent;
    position: relative;
    height: auto;
    padding-top: var(--header-height);
  }
  .hero-image-wrapper-full {
    width: 100%;
    height: 350px;
    min-height: auto;
    max-height: 350px;
    position: relative;
    overflow: hidden;
  }
  .hero-left-caption {
    text-align: center;
    margin-top: 2rem;
  }
}

/* Responsive YouTube Video Container */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Interactive Tabs for Chakras */
.tabs-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tab-button {
  background: var(--bg-white);
  border: 1px solid rgba(87, 28, 147, 0.05);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  text-align: left;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-button:hover {
  background-color: var(--primary-bg-light);
  border-color: var(--primary-light);
}

.tab-button.active {
  background-color: var(--primary-purple);
  color: var(--bg-white);
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-sm);
}

.tab-button .chakra-num {
  font-size: 0.8rem;
  opacity: 0.6;
}

.tab-button.active .chakra-num {
  color: var(--accent-gold);
  opacity: 1;
}

.tab-content {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(87, 28, 147, 0.05);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.tab-panel.active {
  display: block;
}

.chakra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* Language Grid on Self Realisation page */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.lang-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(87, 28, 147, 0.03);
  transition: var(--transition);
  cursor: pointer;
}

.lang-card:hover {
  background-color: var(--primary-purple);
  color: var(--bg-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-purple);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(87, 28, 147, 0.03);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.5rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-purple);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--primary-bg-light);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background-color: var(--bg-white);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-dark);
}

/* Footer Section */
.footer {
  background-color: var(--primary-purple);
  color: var(--bg-white);
  padding: 4rem 0 2rem 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.footer-links h4 {
  font-size: 1.1rem;
  color: var(--bg-white);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 5px;
}

.footer-links h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--bg-white);
}

.social-icon:hover {
  background-color: var(--accent-gold);
  color: var(--primary-purple);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Overlay for Videos */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(74, 21, 75, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 800px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--bg-white);
  font-size: 1.75rem;
  cursor: pointer;
  font-weight: bold;
}

/* Mobile responsive media queries */
@media (max-width: 992px) {
  .tabs-container {
    grid-template-columns: 1fr;
  }
  .tab-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .tab-button {
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hamburger {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    gap: 2.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open {
    left: 0;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .chakra-grid {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Zoomable Images */
.zoomable-img {
  cursor: pointer;
  transition: var(--transition);
}

.zoomable-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

/* Serene Quote Section */
.quote-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, var(--bg-white) 0%, var(--bg-cream) 100%);
}

.quote-card {
  background-color: var(--primary-purple);
  border-radius: var(--radius-lg);
  padding: 4rem 5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.quote-card::after {
  content: '';
  position: absolute;
  top: -2px; bottom: -2px; left: -2px; right: -2px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ff5e3a 50%, var(--primary-light) 100%);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  pointer-events: none;
}

.quote-text {
  color: var(--bg-white);
  font-family: var(--font-sans);
  font-size: 1.35rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 2;
  text-align: left;
}

.quote-author {
  color: var(--accent-gold);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  text-align: left;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 9rem;
  position: absolute;
  line-height: 1;
  background: linear-gradient(135deg, #ff9f43 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  z-index: 3;
  pointer-events: none;
}

.quote-mark-open {
  top: -3.5rem;
  left: 2rem;
}

.quote-mark-close {
  bottom: -6.5rem;
  right: 2rem;
}

@media (max-width: 768px) {
  .quote-section {
    padding: 4rem 0;
  }
  .quote-card {
    padding: 3rem 2rem;
    margin: 0 1rem;
  }
  .quote-text {
    font-size: 1.15rem;
    line-height: 1.6;
  }
  .quote-mark {
    font-size: 6rem;
  }
  .quote-mark-open {
    top: -2.5rem;
    left: 1rem;
  }
  .quote-mark-close {
    bottom: -4.5rem;
    right: 1rem;
  }
}

/* Hero Caption Fade Slider */
.fade-slider {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.fade-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.fade-slide.active {
  opacity: 1;
  visibility: visible;
}
