/* ══════════════════════════════════════════
   NAMO NARAYANI — shared.css
   Common styles: variables, navbar, footer,
   buttons, reveal animations, utilities
══════════════════════════════════════════ */

:root {
  --crimson: #8B0000;
  --crimson-dark: #5a0000;
  --crimson-light: #b22222;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5e6c0;
  --ivory: #fdf6e3;
  --ivory-dark: #f0e6cc;
  --charcoal: #1a1008;
  --warm-black: #120d06;
  --text-body: #3d2b1f;
  --text-muted: #7a5c45;
  --border-gold: rgba(201,168,76,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans Devanagari', sans-serif;
  background: var(--ivory);
  color: var(--text-body);
  overflow-x: hidden;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ivory-dark); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 3px; }

/* ════════════════════════════
   NAVBAR
════════════════════════════ */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 0 5%;
  transition: all 0.4s ease;
  background: transparent;
}
#navbar.scrolled {
  background: rgba(18, 13, 6, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(139,0,0,0.3);
}
/* On inner pages (non-hero), always dark */
#navbar.always-dark {
  background: rgba(18, 13, 6, 0.96);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 48px; width: auto;
  filter: drop-shadow(0 2px 8px rgba(139,0,0,0.5));
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em; line-height: 1.2;
}
.nav-logo-text span {
  display: block; font-size: 0.68rem;
  color: rgba(201,168,76,0.6);
  letter-spacing: 0.15em; text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 600;
  color: rgba(245,230,192,0.85);
  text-decoration: none; letter-spacing: 0.08em;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active-page { color: var(--gold-light); }
.nav-links a.active-page::after { width: 100%; }

.nav-cta {
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--gold-light) !important;
  border: 1px solid rgba(201,168,76,0.4); border-radius: 2px;
  font-weight: 700 !important; transition: all 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: linear-gradient(135deg, var(--crimson-light), var(--crimson)) !important;
  box-shadow: 0 4px 20px rgba(139,0,0,0.4) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--gold-light); transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { display: none; background: rgba(18,13,6,0.98); padding: 20px 5%; border-top: 1px solid rgba(201,168,76,0.2); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li { border-bottom: 1px solid rgba(201,168,76,0.1); }
.mobile-menu ul a {
  display: block; padding: 14px 0;
  color: var(--gold-pale); text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.05em; transition: color 0.3s;
}
.mobile-menu ul a:hover { color: var(--gold); }

/* ════════════════════════════
   SECTION COMMONS
════════════════════════════ */
section { padding: 90px 5%; }
.section-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--crimson);
  margin-bottom: 12px; display: block; text-align: center;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700;
  color: var(--charcoal); line-height: 1.2; text-align: center; margin-bottom: 16px;
}
.section-title .accent { color: var(--crimson); }
.section-desc {
  text-align: center; font-size: 1rem; line-height: 1.8;
  color: var(--text-muted); max-width: 650px; margin: 0 auto 56px;
}

/* ════════════════════════════
   BUTTONS
════════════════════════════ */
.btn-primary {
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--crimson-light), var(--crimson-dark));
  color: var(--gold-light); border: 1px solid rgba(201,168,76,0.4);
  font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none; display: inline-block; border-radius: 2px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(139,0,0,0.4); }
.btn-outline {
  padding: 14px 36px; background: transparent; color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.4);
  font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none; display: inline-block; border-radius: 2px;
}
.btn-outline:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); transform: translateY(-3px); }

/* ════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  background: var(--warm-black);
  padding: 60px 5% 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px; max-width: 1100px; margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.footer-brand {}
.footer-logo-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-bottom: 16px;
}
.footer-logo-img { height: 44px; width: auto; filter: brightness(1.1); }
.footer-brand p {
  font-size: 0.875rem; line-height: 1.8;
  color: rgba(245,230,192,0.4); margin: 0 0 24px;
  max-width: 280px;
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px; border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: rgba(245,230,192,0.5); text-decoration: none; font-size: 0.9rem; transition: all 0.3s;
}
.social-link:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); color: var(--gold); }

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(245,230,192,0.45); text-decoration: none;
  font-size: 0.875rem; transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--gold-light); }
.footer-address { font-size: 0.875rem; line-height: 1.8; color: rgba(245,230,192,0.4); }
.footer-address strong {
  display: block; color: rgba(245,230,192,0.6); margin-bottom: 4px;
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
}

.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(245,230,192,0.25); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  font-size: 0.8rem; color: rgba(245,230,192,0.25); text-decoration: none; transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ════════════════════════════
   INNER PAGE HERO BANNER
════════════════════════════ */
.page-hero {
  min-height: 38vh; background: var(--warm-black);
  display: flex; align-items: flex-end;
  padding: 100px 5% 56px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(139,0,0,0.2), transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(201,168,76,0.05), transparent 60%),
    repeating-linear-gradient(45deg, rgba(201,168,76,0.02) 0px, rgba(201,168,76,0.02) 1px, transparent 1px, transparent 40px);
}
.page-hero-content { position: relative; z-index: 2; max-width: 900px; }
.page-hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero-eyebrow::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold); opacity: 0.5; }
.page-hero h1 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem); color: var(--ivory);
  font-weight: 400; line-height: 1.2; margin-bottom: 16px;
}
.page-hero-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.meta-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; letter-spacing: 0.1em;
  color: rgba(245,230,192,0.45); display: flex; align-items: center; gap: 6px;
}
.meta-tag::before { content: '◆'; color: var(--crimson); font-size: 0.5rem; }

/* ════════════════════════════
   INNER PAGE LAYOUT
════════════════════════════ */
.content-wrap {
  max-width: 1060px; margin: 0 auto;
  padding: 64px 5% 80px;
  display: grid; grid-template-columns: 240px 1fr;
  gap: 56px; align-items: start;
}
.toc { position: sticky; top: 90px; }
.toc-label {
  font-family: 'Cormorant Garamond', serif; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--crimson);
  margin-bottom: 16px; display: block;
}
.toc ul { list-style: none; }
.toc ul li { border-bottom: 1px solid var(--border-gold); }
.toc ul a {
  display: block; padding: 10px 0 10px 14px;
  font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none; letter-spacing: 0.03em;
  transition: all 0.25s; position: relative;
}
.toc ul a::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--border-gold); transition: background 0.25s;
}
.toc ul a:hover, .toc ul a.active { color: var(--crimson); }
.toc ul a:hover::before, .toc ul a.active::before { background: var(--crimson); }
.toc-box {
  margin-top: 24px; padding: 16px;
  background: linear-gradient(135deg, rgba(139,0,0,0.06), rgba(139,0,0,0.1));
  border: 1px solid var(--border-gold); border-radius: 4px;
}
.toc-box p { font-size: 0.8rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 8px; }
.toc-box strong { color: var(--crimson); }
.toc-box a {
  font-family: 'Cormorant Garamond', serif; font-size: 0.85rem; font-weight: 700;
  color: var(--crimson); text-decoration: none; letter-spacing: 0.05em;
}

.policy-intro {
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(139,0,0,0.05), rgba(201,168,76,0.04));
  border-left: 3px solid var(--crimson); border-radius: 0 4px 4px 0; margin-bottom: 48px;
}
.policy-intro p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  font-style: italic; line-height: 1.8; color: var(--text-body);
}
.policy-section {
  margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border-gold); scroll-margin-top: 90px;
}
.policy-section:last-child { border-bottom: none; }
.section-num {
  font-family: 'Cinzel Decorative', cursive; font-size: 0.65rem;
  letter-spacing: 0.3em; color: var(--gold); text-transform: uppercase; display: block; margin-bottom: 8px;
}
.policy-section h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 700;
  color: var(--charcoal); margin-bottom: 20px; line-height: 1.2;
}
.policy-section h2 .accent { color: var(--crimson); }
.policy-section p { font-size: 0.95rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 16px; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul, .policy-section ol { margin: 16px 0 16px 20px; }
.policy-section li { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 8px; padding-left: 8px; }
.policy-section ul li::marker { color: var(--crimson); }
.policy-section ol li::marker { color: var(--crimson); font-weight: 700; font-family: 'Cormorant Garamond', serif; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.info-card {
  padding: 20px; background: #fff; border: 1px solid var(--border-gold);
  border-radius: 4px; position: relative; overflow: hidden;
}
.info-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--crimson); }
.info-card strong {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--charcoal); margin-bottom: 6px;
}
.info-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

.highlight-box {
  padding: 24px 28px; background: rgba(139,0,0,0.04);
  border: 1px solid rgba(139,0,0,0.12); border-radius: 4px; margin: 20px 0;
}
.highlight-box p { margin: 0; font-size: 0.9rem; }

.warning-box {
  padding: 20px 24px; background: rgba(139,0,0,0.05);
  border: 1px solid rgba(139,0,0,0.2); border-radius: 4px; margin: 20px 0;
  display: flex; gap: 14px;
}
.warning-box .icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.warning-box p { margin: 0; font-size: 0.9rem; color: var(--text-body); line-height: 1.7; }
.warning-box strong { color: var(--crimson); }

.terms-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.terms-table th {
  background: var(--crimson-dark); color: var(--gold-light); padding: 12px 16px;
  text-align: left; font-family: 'Cormorant Garamond', serif; font-weight: 700;
  letter-spacing: 0.08em; font-size: 0.85rem;
}
.terms-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-gold); color: var(--text-muted); vertical-align: top; line-height: 1.6; }
.terms-table tr:nth-child(even) td { background: rgba(201,168,76,0.04); }
.terms-table tr:last-child td { border-bottom: none; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .content-wrap { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; display: none; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .terms-table { font-size: 0.8rem; }
  .terms-table th, .terms-table td { padding: 10px 12px; }
}
