/* ==========================================================================
   KUNDALINI YOGA & SELF-BUILDING DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* HSL Palette */
  --hue-purple: 270;
  --hue-gold: 42;
  --hue-teal: 175;

  --color-primary: hsl(var(--hue-purple), 40%, 18%);
  --color-primary-light: hsl(var(--hue-purple), 35%, 28%);
  --color-primary-accent: hsl(var(--hue-purple), 60%, 55%);

  --color-gold: hsl(var(--hue-gold), 85%, 52%);
  --color-gold-glow: hsl(var(--hue-gold), 95%, 65%);
  --color-gold-bg: hsl(var(--hue-gold), 90%, 96%);

  --color-bg-main: hsl(40, 25%, 97%);
  --color-bg-card: hsl(0, 0%, 100%);
  --color-bg-dark: hsl(265, 45%, 10%);
  
  --color-text-main: hsl(220, 25%, 18%);
  --color-text-muted: hsl(220, 15%, 45%);
  --color-text-light: hsl(0, 0%, 96%);

  --color-border: hsl(40, 15%, 88%);
  --color-success: hsl(150, 70%, 38%);
  --color-warning: hsl(35, 90%, 50%);

  /* Typography */
  --font-heading: 'Cinzel', serif, system-ui;
  --font-body: 'Plus Jakarta Sans', sans-serif, system-ui;

  /* Elevation & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(35, 15, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(35, 15, 50, 0.1);
  --shadow-lg: 0 20px 40px rgba(35, 15, 50, 0.18);
  --shadow-gold: 0 8px 25px rgba(212, 160, 23, 0.3);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--color-text-main); }
a { color: var(--color-primary-accent); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--color-gold); }

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title span.subtitle {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.2);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.5rem 0;
  position: relative;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* AdSense Controls & Cart Button */
.btn-cart {
  position: relative;
  background: var(--color-gold-bg);
  border: 1px solid var(--color-gold);
  color: var(--color-primary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}
.btn-cart:hover {
  background: var(--color-gold);
  color: white;
  box-shadow: var(--shadow-gold);
}
.cart-badge {
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adsense-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), hsl(38, 90%, 45%));
  color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212, 160, 23, 0.45);
}

.btn-secondary {
  background: var(--color-primary);
  color: white;
}
.btn-secondary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

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

/* AdSense Unit Styling (Policy Compliant) */
.adsense-slot {
  margin: 2rem auto;
  text-align: center;
  background: #fdfdfd;
  border: 1px dashed rgba(212, 160, 23, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.adsense-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.adsense-placeholder {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f3f9, #faf8f5);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.adsense-placeholder p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.adsense-leaderboard { max-width: 728px; min-height: 90px; }
.adsense-rectangle { max-width: 300px; min-height: 250px; }
.adsense-banner { max-width: 970px; min-height: 90px; }

/* Dynamic AdSense Demo Ad */
.ads-demo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
  width: 100%;
}
.ads-demo-card img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.ads-demo-info h5 {
  font-size: 0.95rem;
  color: #1a0dab;
  margin-bottom: 0.2rem;
}
.ads-demo-info p {
  font-size: 0.8rem;
  color: #4d5156;
  margin: 0;
}
.ads-demo-badge {
  background: #006621;
  color: white;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 10, 45, 0.85), rgba(45, 15, 60, 0.7)), url('../images/hero.jpg') center/cover no-repeat;
  color: white;
  padding: 6rem 0 7rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.hero-content {
  max-width: 750px;
}

.hero h1 {
  color: white;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero p.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tag {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-gold-glow);
  border: 1px solid rgba(212, 160, 23, 0.3);
}

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

/* Feature Grid Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition-normal);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 160, 23, 0.4);
}

.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.icon-box {
  width: 54px;
  height: 54px;
  background: var(--color-gold-bg);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--color-gold);
}

/* Interactive Chakra Map Component */
.chakra-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--color-bg-dark);
  color: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.chakra-visual {
  position: relative;
  text-align: center;
}
.chakra-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.chakra-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chakra-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chakra-item:hover,
.chakra-item.active {
  background: rgba(212, 160, 23, 0.2);
  border-color: var(--color-gold);
  transform: translateX(6px);
}

.chakra-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.75rem;
}

/* Pranayama Breathwork Timer */
.timer-box {
  background: linear-gradient(135deg, var(--color-primary), hsl(270, 50%, 12%));
  color: white;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}

.breath-circle {
  width: 200px;
  height: 200px;
  border: 4px solid var(--color-gold);
  border-radius: 50%;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(212, 160, 23, 0.4);
  transition: transform 4s ease-in-out, border-color 1s ease;
}

.breath-circle.inhale {
  transform: scale(1.35);
  border-color: var(--color-gold-glow);
  box-shadow: 0 0 70px rgba(255, 215, 0, 0.8);
}
.breath-circle.hold {
  border-color: hsl(180, 80%, 60%);
}
.breath-circle.exhale {
  transform: scale(0.9);
  border-color: hsl(270, 80%, 70%);
}

.breath-phase {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold-glow);
  margin-bottom: 0.25rem;
}

.breath-countdown {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Shop & Pricing Cards */
.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-gold);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 1rem 0;
}
.product-price span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Modal & Payment Checkout */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 30, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  background: var(--color-primary);
  color: white;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { color: white; }
.btn-close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

/* Payment Tabs */
.payment-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

.payment-tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.payment-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-gold);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkout-summary {
  background: var(--color-bg-main);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

/* Community Forum / Fanpage Feed */
.forum-post {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
}

.forum-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.avatar {
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .chakra-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: var(--transition-normal);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
