/* ============================================
   TATVAM INSTITUTE OF LEADERSHIP
   Design System v3 — Clean | Professional | Modern
   ============================================ */

:root {
  --gold:        #BC8C37;
  --gold-light:  #D4A84B;
  --gold-dark:   #9E7428;
  --gold-pale:   #F5EDDA;
  --dark:        #1D1D1B;
  --dark-soft:   #2A2A28;
  --grey-dark:   #444444;
  --grey:        #777777;
  --grey-light:  #AAAAAA;
  --grey-pale:   #E5E5E5;
  --white:       #FFFFFF;
  --off-white:   #FAFAF8;
  --bg-light:    #F7F6F2;
  --bg-card:     #FCFCFA;
  --border:      #E8E6E0;
  --border-light:#F0EFEB;

  --serif:  "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:   "JetBrains Mono", "SF Mono", monospace;
  --num:    "DM Sans", "Inter", sans-serif;

  --maxw:   1200px;
  --pad:    clamp(20px, 4vw, 48px);
  --gap:    clamp(32px, 5vw, 64px);
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== DM SANS FOR ALL DIGITS SITE-WIDE ===== */
@font-face {
  font-family: 'Inter';
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJtRSW32.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0030-0039, U+002B; /* 0–9 and + sign */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans); background: var(--white); color: var(--dark);
  line-height: 1.65; overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 var(--pad); height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.04); }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 78px; height: 78px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--grey-dark);
  padding: 6px 0; position: relative; transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--gold); color: var(--white);
  padding: 10px 22px; border-radius: 4px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 1px; transition: transform 0.3s ease; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 88px; left: 0; right: 0;
    background: var(--white); padding: 24px var(--pad); flex-direction: column;
    align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ===== SECTIONS ===== */
.section { padding: clamp(64px, 10vh, 120px) var(--pad); }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--bg-light); }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--dark); }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.08; font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.15; font-weight: 500; letter-spacing: -0.005em; }
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; font-weight: 500; }

.section-desc { font-size: 17px; font-weight: 400; color: var(--grey); line-height: 1.7; max-width: 640px; }

.divider { height: 1px; background: var(--border); margin: 0; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 13px 28px; border-radius: 4px; cursor: pointer;
  transition: all 0.3s var(--ease); border: none;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(188,140,55,0.3); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-soft); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(29,29,27,0.25); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===== HERO ===== */
.hero {
  padding: 120px var(--pad) 80px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap); align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  min-height: 90vh;
}
.hero-content { display: flex; flex-direction: column; gap: 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale); color: var(--gold-dark);
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px;
  width: fit-content;
}
.hero-title { font-family: var(--serif); font-size: clamp(40px, 5.5vw, 68px); font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; }
.hero-sub { font-size: 17px; font-weight: 400; color: var(--grey); line-height: 1.65; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-visual { position: relative; }
.hero-img-wrap { border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.hero-stats { display: flex; gap: 32px; margin-top: 24px; }
.hero-stat h4 { font-family: 'DM Sans', sans-serif; font-size: 28px; font-weight: 600; color: var(--gold); line-height: 1; }
.hero-stat p { font-size: 12px; font-weight: 500; color: var(--grey); margin-top: 4px; }

/* ===== FULL-BLEED HERO BACKGROUND VARIANT ===== */
.hero.hero-bg {
  position: relative;
  background: url('assets/hero-bg.png') center 30% / cover no-repeat;
  max-width: 100%;
  padding: 0;
  display: block;
  min-height: 100vh;
}
.hero.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(12,9,5,0.84) 40%, rgba(12,9,5,0.52) 100%);
  z-index: 0;
}
.hero.hero-bg .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 170px var(--pad) 110px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero.hero-bg .hero-badge {
  background: rgba(188,140,55,0.22);
  color: #D4A84B;
  border: 1px solid rgba(188,140,55,0.45);
}
.hero.hero-bg .hero-title {
  color: var(--white);
  font-weight: 600;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero.hero-bg .hero-sub {
  color: rgba(255,255,255,0.80);
  font-weight: 400;
  max-width: 600px;
  text-align: center;
}
.hero.hero-bg .hero-actions {
  justify-content: center;
}
.hero.hero-bg .hero-stats {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  justify-content: center;
  width: 100%;
}
.hero.hero-bg .hero-stat h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: #D4A84B;
}
.hero.hero-bg .hero-stat p {
  color: rgba(255,255,255,0.65);
}
.hero.hero-bg .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.hero.hero-bg .btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .hero-visual { order: -1; }
  .hero-stats { gap: 20px; }
  .hero.hero-bg .hero-content { padding: 130px var(--pad) 80px; max-width: 100%; }
}

/* ===== CARDS GRID ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 36px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); border-color: var(--gold-pale); }
.card-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--gold);
}
.card-icon svg {
  width: 24px; height: 24px;
  flex-shrink: 0;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--grey); line-height: 1.65; margin-bottom: 20px; }
.card-meta { font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; }

/* ===== COURSE CARDS ===== */
.course-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.07); }
.course-card-img {
  width: 100%; height: 230px; display: block;
  object-fit: contain; background: var(--bg-light);
}
.course-card-body { padding: 28px 24px; }
.course-card-body h3 { margin-bottom: 8px; }
.course-card-body p { font-size: 14px; color: var(--grey); line-height: 1.6; margin-bottom: 16px; }
.course-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-top: 1px solid var(--border-light);
}
.course-duration { font-size: 12px; font-weight: 600; color: var(--gold); }
.course-mode { font-size: 12px; color: var(--grey); }

/* ===== WHO IS IT FOR ===== */
.audience-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.audience-tag {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: 6px; padding: 16px 14px; text-align: center;
  font-size: 13px; font-weight: 500; color: var(--dark);
  transition: all 0.25s ease;
}
.audience-tag:hover { border-color: var(--gold); background: var(--gold-pale); color: var(--gold-dark); }

@media (max-width: 900px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px 28px;
}
.testimonial-card q {
  font-family: var(--serif); font-size: 18px; font-style: italic;
  line-height: 1.5; color: var(--dark); quotes: none; display: block; margin-bottom: 20px;
}
.testimonial-card cite { font-size: 13px; font-weight: 600; color: var(--gold); font-style: normal; }
.testimonial-card cite span { display: block; font-weight: 400; font-size: 12px; color: var(--grey); margin-top: 2px; }

/* ===== MENTOR CARDS ===== */
.mentor-card {
  text-align: center; padding: 28px 20px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  transition: transform 0.3s ease;
}
.mentor-card:hover { transform: translateY(-3px); }
.mentor-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  background: var(--bg-light);
}
.mentor-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.mentor-card p { font-size: 13px; color: var(--grey); }

/* ===== BLOG CARDS ===== */
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px 20px; }
.blog-card-body h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.blog-card-body p { font-size: 14px; color: var(--grey); line-height: 1.6; }
.blog-card-footer { padding: 14px 20px; border-top: 1px solid var(--border-light); font-size: 12px; color: var(--gold); font-weight: 600; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--dark); padding: clamp(64px, 10vh, 100px) var(--pad);
  text-align: center; color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 32px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--gap); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  font-family: var(--sans); font-size: 15px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--white); color: var(--dark); outline: none;
  transition: border-color 0.25s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--gold); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { align-self: flex-start; }
.contact-info h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.contact-info p, .contact-info a, .contact-info .footer-soon { font-size: 15px; color: var(--grey); line-height: 1.7; margin-bottom: 24px; display: block; }
.contact-info a:hover { color: var(--gold); }
.contact-info .footer-soon { color: rgba(80,80,80,0.75); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark); padding: 56px var(--pad) 32px;
  color: rgba(255,255,255,0.6);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: var(--maxw); margin: 0 auto; }
.footer h5 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer a, .footer p { font-size: 13px; line-height: 2; display: block; color: rgba(255,255,255,0.5); transition: color 0.2s ease; }
.footer a:hover { color: var(--gold); }
.footer .footer-soon { font-size: 13px; line-height: 2; display: block; color: rgba(255,255,255,0.35); }
.footer-bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-row img { width: 72px; height: 72px; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== GALLERY ===== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.gallery-filter {
  font-size: 12px; font-weight: 500; padding: 8px 18px;
  border: 1.5px solid var(--border); border-radius: 20px;
  background: var(--white); color: var(--grey-dark); cursor: pointer;
  transition: all 0.25s ease;
}
.gallery-filter:hover, .gallery-filter.active { background: var(--gold); color: var(--white); border-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 6px;
  aspect-ratio: 4/3; cursor: pointer; background: var(--bg-light);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 14px 12px; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  font-size: 12px; color: var(--white); opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 22px; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background 0.25s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===== ABOUT PAGE ===== */
.about-hero { padding-top: 120px; text-align: center; }
.about-hero h1 { max-width: 800px; margin: 0 auto 20px; }
.about-hero p { font-size: 18px; color: var(--grey); max-width: 600px; margin: 0 auto; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
