/* ═══════════════════════════════════════
   VYOMA CONSTITUTION — DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  --orange: #e8622a;
  --orange-hover: #d4561f;
  --bg: #f8f6f2;
  --bg-card: #f0ece6;
  --bg-dark: #0f0e0c;
  --text: #1a1714;
  --text-muted: #6b6560;
  --text-light: #f0ece6;
  --border: #e0ddd8;
  --border-dark: #2a2722;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --content-width: 720px;
  --radius-card: 16px;
  --radius-btn: 10px;
  --section-pad: 100px;
  --nav-height: 72px;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

img, svg { display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-anim {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(248, 246, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.04);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-back:hover {
  background: rgba(26, 23, 20, 0.05);
  color: var(--text);
}

.nav-back svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon svg {
  width: 100%;
  height: 100%;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ═══════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
}

/* ═══════════════════════════════════════
   PROSE — Long-form editorial content
   ═══════════════════════════════════════ */
.prose-section {
  padding: var(--section-pad) 0;
}

.prose {
  max-width: var(--content-width);
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
  margin-top: 72px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
}

.prose p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.prose p.muted {
  color: var(--text-muted);
}

.prose strong {
  font-weight: 600;
  color: var(--text);
}

.prose em {
  font-style: italic;
}

.prose blockquote {
  border-left: 3px solid var(--orange);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(232, 98, 42, 0.04);
  border-radius: 0 12px 12px 0;
}

.prose blockquote p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0;
  font-style: italic;
}

/* ═══════════════════════════════════════
   SECTION LABEL
   ═══════════════════════════════════════ */
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════
   PRINCIPLES CARDS
   ═══════════════════════════════════════ */
.principles-section {
  padding: var(--section-pad) 0;
}

.principles-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 48px;
  max-width: 560px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.principle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.principle-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
}

.principle-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.principle-card:hover .principle-icon img {
  transform: scale(1.08);
}

.principle-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.principle-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   ORDERED PRIORITIES
   ═══════════════════════════════════════ */
.priorities-section {
  padding: var(--section-pad) 0;
}

.priorities-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.priorities-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 36px;
}

.priority-list {
  list-style: none;
  counter-reset: priority;
}

.priority-item {
  counter-increment: priority;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.priority-item:last-child {
  border-bottom: none;
}

.priority-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232, 98, 42, 0.08);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.priority-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.priority-text p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   DETAILED SECTIONS
   ═══════════════════════════════════════ */
.detail-section {
  padding: var(--section-pad) 0;
}

.detail-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.detail-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

.detail-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.detail-content p:last-child {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner-section {
  padding: 0 0 var(--section-pad);
}

.cta-banner {
  background: var(--bg-dark);
  border-radius: var(--radius-card);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.2;
}

.cta-banner-text p {
  font-size: 0.95rem;
  color: rgba(240,236,230,0.5);
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-orange:hover {
  background: var(--orange-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(240,236,230,0.2);
}

.btn-ghost:hover {
  border-color: rgba(240,236,230,0.5);
  background: rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.82rem;
  color: rgba(240,236,230,0.35);
}

.footer-heart {
  color: var(--orange);
}

.footer-india {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.india-map {
  width: 60px;
  height: auto;
  opacity: 0.7;
  display: inline-block;
  vertical-align: middle;
}

/* ═══════════════════════════════════════
   RESPONSIVE — 900px
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  :root {
    --section-pad: 72px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 56px);
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-banner-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 480px
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --section-pad: 56px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .principle-card {
    padding: 28px 24px;
  }

  .principles-heading {
    font-size: 1.4rem;
    margin-bottom: 32px;
  }

  .priority-item {
    gap: 14px;
    padding: 20px 0;
  }

  .prose h2 {
    font-size: 1.4rem;
    margin-top: 48px;
  }

  .prose h3 {
    font-size: 1.15rem;
    margin-top: 36px;
  }

  .prose p {
    font-size: 0.95rem;
  }

  .detail-content h2 {
    font-size: 1.4rem;
  }

  .detail-content p {
    font-size: 0.95rem;
  }

  .cta-banner {
    padding: 36px 24px;
  }

  .india-map {
    width: 40px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
