/* =========================================
   AVERAGE INDIAN — style.css
   Typography-first, warm editorial design
   ========================================= */

/* — Variables — */
:root {
  --white:   #FAFAF8;
  --cream:   #F4F0EB;
  --dark:    #1A1814;
  --mid:     #3D3830;
  --muted:   #8C8478;
  --accent:  #C8511A;
  --accent2: #E8692A;
  --dark-bg: #141210;
  --dark-card: #1E1B18;
  --border:  rgba(0,0,0,0.08);
  --border-light: rgba(255,255,255,0.1);

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'DM Sans', -apple-system, sans-serif;

  --nav-h: 68px;
  --container: 1120px;
  --section-pad: 100px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* — Container — */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand — logo image + text side by side */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  /* The logo has a white bg — blend it smoothly with site bg */
  background: var(--white);
  box-shadow: 0 0 0 2px var(--cream), 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-logo-text::after {
  content: '';
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.1s !important;
}

.nav-cta:hover {
  background: var(--accent2) !important;
  transform: translateY(-1px);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(12px);
  padding: 16px 32px 24px;
  border-top: 1px solid var(--border);
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 81, 26, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(0,0,0,0.2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-yt {
  background: #FF0000;
  color: white;
  font-size: 0.875rem;
  padding: 12px 24px;
}

.btn-yt:hover {
  background: #CC0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

.btn-full { width: 100%; justify-content: center; }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 32px 60px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.hero-ghost {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-55%);
  font-family: var(--font-serif);
  font-size: clamp(180px, 22vw, 320px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(200, 81, 26, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: 28px;
  max-width: 760px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 28px 36px;
  background: var(--cream);
  border-radius: 12px;
  width: fit-content;
  border: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}

.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }

.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-wrap {
  background: var(--accent);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: 0 20px;
}

.marquee-track .dot {
  color: rgba(255,255,255,0.5);
  padding: 0 4px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================
   MANIFESTO
   ========================================= */
.manifesto {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.manifesto-header {
  margin-bottom: 56px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label.light { color: rgba(255,255,255,0.6); }

.manifesto-header h2,
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.manifesto-body {
  max-width: 720px;
}

.manifesto-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 24px;
}

.manifesto-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 20px;
}

.hindi-quote {
  margin: 40px 0;
  padding: 32px 40px;
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.hindi-quote span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.hindi-quote cite {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: normal;
}

.highlight-block {
  background: var(--dark);
  color: var(--white);
  padding: 32px 40px;
  border-radius: 8px;
  margin: 32px 0;
}

.highlight-block p {
  color: rgba(250, 250, 248, 0.85);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0;
}

.highlight-block strong {
  color: var(--white);
  font-weight: 600;
}

/* =========================================
   TOPICS
   ========================================= */
.topics {
  padding: var(--section-pad) 0;
  background: var(--cream);
}

.section-header {
  margin-bottom: 56px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.topic-card:hover { 
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  border-color: transparent;
}

.topic-card:hover::before { transform: scaleX(1); }

.topic-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.topic-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.topic-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 20px;
}

.topic-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}

.topic-link:hover { opacity: 0.75; }

/* =========================================
   YOUTUBE SECTION
   ========================================= */
.youtube-section {
  background: var(--dark-bg);
  padding: var(--section-pad) 0;
  color: var(--white);
}

.yt-header {
  margin-bottom: 40px;
}

.yt-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.yt-header p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
}

.yt-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pill {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
}

.yt-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.video-card {
  background: var(--dark-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.video-card:hover { 
  transform: translateY(-4px);
  border-color: rgba(200, 81, 26, 0.4);
}

.video-thumb {
  height: 160px;
  background: linear-gradient(135deg, #2A1F18 0%, #3D2A1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.thumb-2 { background: linear-gradient(135deg, #1A1F2A 0%, #1A2E3D 100%); }
.thumb-3 { background: linear-gradient(135deg, #1A2A1A 0%, #1E3D1E 100%); }

.play-btn {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.2s;
  padding-left: 4px;
}

.video-card:hover .play-btn {
  background: var(--accent);
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background: rgba(0,0,0,0.7);
  padding: 2px 7px;
  border-radius: 4px;
}

.video-meta {
  padding: 20px;
}

.video-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.video-meta h4 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  margin-bottom: 8px;
}

.video-meta p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.yt-channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--dark-card);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  /* White background logo on dark card — add a ring */
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.channel-info strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.channel-info span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.newsletter-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--dark);
}

.newsletter-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 28px;
}

.newsletter-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-perks li {
  font-size: 0.9375rem;
  color: var(--mid);
  font-weight: 500;
}

.newsletter-form-wrap {
  position: relative;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-transform: uppercase;
}

.form-group input {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 81, 26, 0.1);
}

.form-group input::placeholder { color: var(--muted); }

.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.active { display: block; }

.success-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  max-width: 260px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.footer-logo span {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================
   REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

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

  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 36px; }
  
  .hero-ghost { display: none; }
  
  .hero-stats {
    flex-wrap: wrap;
    padding: 20px 24px;
    gap: 16px;
  }

  .stat { padding: 0 20px; }
  .stat-divider { display: none; }

  .yt-channel-card { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 600px) {
  :root { --section-pad: 64px; }

  .container { padding: 0 20px; }
  .hero { padding: calc(var(--nav-h) + 40px) 20px 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

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

  .mobile-menu.open { display: flex; }

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

  .hindi-quote { padding: 24px 24px; }
  .highlight-block { padding: 24px 24px; }
}
