/* ============================================
   Ananda Yantra - Shared Styles
   Color scheme inspired by divinerituals.in
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-saffron: #E8820C;
  --color-saffron-light: #F5A623;
  --color-saffron-dark: #C56A00;
  --color-maroon: #6B1D2A;
  --color-maroon-deep: #4A0E1C;
  --color-gold: #D4A843;
  --color-gold-light: #F0D78C;
  --color-cream: #FDF8F0;
  --color-cream-dark: #F5EDE0;
  --color-warm-white: #FFFAF3;
  --color-text: #2C1810;
  --color-text-light: #5A4234;
  --color-text-muted: #8B7355;
  --color-border: #E8DDD0;
  --color-white: #FFFFFF;

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-devanagari: 'Noto Sans Devanagari', sans-serif;

  --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.1);
  --shadow-lg: 0 8px 30px rgba(44, 24, 16, 0.12);
  --shadow-xl: 0 16px 50px rgba(44, 24, 16, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-maroon);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.sanskrit {
  font-family: var(--font-devanagari);
  color: var(--color-saffron);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-saffron);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.8;
}

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

.section {
  padding: 5rem 0;
}

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

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Decorative Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.divider::before,
.divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.divider .divider-symbol {
  font-family: var(--font-devanagari);
  font-size: 1.4rem;
  color: var(--color-saffron);
}

/* ---------- Header / Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__logo-symbol {
  font-family: var(--font-devanagari);
  font-size: 1.6rem;
  color: var(--color-saffron);
  line-height: 1;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-maroon);
  letter-spacing: 0.02em;
}

.header__logo-text span {
  font-weight: 400;
  color: var(--color-saffron-dark);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-saffron);
  transition: width var(--transition);
}

.header__nav a:hover {
  color: var(--color-saffron-dark);
}

.header__nav a:hover::after {
  width: 100%;
}

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-maroon);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-saffron), var(--color-saffron-dark));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(232, 130, 12, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 130, 12, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--color-maroon);
  border: 2px solid var(--color-maroon);
}

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

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background: linear-gradient(170deg, var(--color-cream) 0%, var(--color-warm-white) 50%, var(--color-cream-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 130, 12, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 29, 42, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__sanskrit {
  font-family: var(--font-devanagari);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--color-saffron);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--color-saffron);
}

.hero__description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(232, 130, 12, 0.1), rgba(212, 168, 67, 0.1));
  color: var(--color-saffron);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.feature-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-saffron);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}

.feature-card__link:hover {
  gap: 0.6rem;
}

/* ---------- Feature Page Hero ---------- */
.feature-hero {
  padding: 10rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(170deg, var(--color-maroon-deep) 0%, var(--color-maroon) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.feature-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.feature-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.feature-hero .section-label {
  color: var(--color-gold-light);
}

.feature-hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.feature-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ---------- Feature Detail Sections ---------- */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-detail--reverse {
  direction: rtl;
}

.feature-detail--reverse > * {
  direction: ltr;
}

.feature-detail__visual {
  background: linear-gradient(135deg, var(--color-cream), var(--color-cream-dark));
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 1px solid var(--color-border);
}

.feature-detail__visual-icon {
  font-size: 5rem;
  opacity: 0.6;
}

.feature-detail__content h2 {
  margin-bottom: 1rem;
}

.feature-detail__content p {
  margin-bottom: 1.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.feature-list li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232, 130, 12, 0.12), rgba(212, 168, 67, 0.12));
  color: var(--color-saffron);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- Stats / Highlights ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.highlight-item {
  text-align: center;
  padding: 2rem 1rem;
}

.highlight-item__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.highlight-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.highlight-item p {
  font-size: 0.9rem;
}

/* ---------- CTA Section ---------- */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-maroon-deep), var(--color-maroon));
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 130, 12, 0.1), transparent 70%);
  pointer-events: none;
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta .btn--primary {
  background: linear-gradient(135deg, var(--color-saffron), var(--color-gold));
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 0 2rem;
}

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

.footer__brand p {
  font-size: 0.9rem;
  max-width: 280px;
  margin-top: 0.75rem;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-maroon);
  margin-bottom: 1rem;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-saffron);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Mobile Navigation ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(253, 248, 240, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-maroon);
  font-weight: 600;
}

.mobile-nav__close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-maroon);
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: flex;
  }

  .feature-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-detail--reverse {
    direction: ltr;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    min-height: auto;
  }

  .feature-hero {
    padding: 8rem 1.5rem 3.5rem;
  }

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

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
  }
}
