/* ═══════════════════════════════════════════════════
   PMpathshala — Global Stylesheet
   Theme: Deep Indigo / Violet / Soft Lavender
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  /* Brand */
  --indigo:      #4f46e5;
  --indigo-d:    #3730a3;
  --indigo-dd:   #1e1b4b;
  --violet:      #7c3aed;
  --violet-lt:   #8b5cf6;
  --purple:      #6d28d9;

  /* Backgrounds */
  --bg:          #f8f7ff;
  --bg2:         #f1f0fe;
  --bg3:         #e8e6fd;
  --surface:     #ffffff;

  /* Gradient stops */
  --grad-start:  #4f46e5;
  --grad-mid:    #7c3aed;
  --grad-end:    #a855f7;

  /* Text */
  --ink:         #0f0e2a;
  --ink2:        #3d3a6b;
  --ink3:        #7b79a8;
  --ink4:        #a9a7cc;

  /* UI */
  --border:      rgba(79,70,229,0.1);
  --border2:     rgba(79,70,229,0.18);
  --border3:     rgba(79,70,229,0.28);

  /* Accents */
  --emerald:     #059669;
  --emerald-lt:  #d1fae5;
  --amber:       #d97706;
  --rose:        #e11d48;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(79,70,229,0.08);
  --shadow-sm:   0 2px 8px rgba(79,70,229,0.1), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(79,70,229,0.15), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 40px rgba(79,70,229,0.2), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY SCALE ── */
.display { font-family: 'DM Serif Display', serif; }

/* ── ANNOUNCEMENT BAR ── */
.announce {
  background: linear-gradient(90deg, var(--indigo-dd) 0%, var(--violet) 100%);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.announce::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0) 0px,
    rgba(255,255,255,0) 60px,
    rgba(255,255,255,0.03) 60px,
    rgba(255,255,255,0.03) 61px
  );
}
.announce a { color: #c4b5fd; font-weight: 600; text-decoration: none; }
.announce a:hover { color: #fff; }
.announce-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  background: #a5f3fc;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ── NAVIGATION ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,247,255,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(79,70,229,0.06);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(99,102,241,0.4);
  flex-shrink: 0;
}
.nav-logo-icon svg { width: 20px; height: 20px; }
.nav-logo-text {
  font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex; align-items: center; gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  display: block; padding: 0.4rem 0.85rem;
  color: var(--ink2); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  border-radius: 8px;
  transition: all 0.18s;
}
.nav-links a:hover { background: var(--bg2); color: var(--indigo); }
.nav-cta {
  background: linear-gradient(135deg, var(--indigo), var(--violet)) !important;
  color: #fff !important;
  padding: 0.48rem 1.2rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 3px 14px rgba(79,70,229,0.4) !important;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(79,70,229,0.5) !important;
  background: linear-gradient(135deg, var(--indigo-d), var(--purple)) !important;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink2); border-radius: 2px; transition: 0.3s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-weight: 600; cursor: pointer; border: none;
  border-radius: 50px; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-lg { font-size: 0.95rem; padding: 0.85rem 2rem; }
.btn-md { font-size: 0.88rem; padding: 0.68rem 1.5rem; }
.btn-sm { font-size: 0.8rem;  padding: 0.45rem 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(79,70,229,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.5);
  filter: brightness(1.06);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border3);
  color: var(--indigo);
}
.btn-outline:hover {
  background: var(--bg2);
  border-color: var(--indigo);
  box-shadow: var(--shadow-sm);
}
.btn-ghost-white {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}
.btn-disabled {
  background: var(--bg3);
  color: var(--ink4);
  cursor: not-allowed;
}

/* ── SECTION FOUNDATIONS ── */
section { padding: 6rem 5%; }
.section-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: block; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  border-radius: 2px;
}
h2.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  color: var(--ink); line-height: 1.18;
  margin-bottom: 0.7rem;
}
.section-sub { color: var(--ink2); font-size: 0.95rem; max-width: 500px; }
.section-head { max-width: 1100px; margin: 0 auto 3.5rem; }

/* ── FOOTER ── */
footer {
  background: var(--indigo-dd);
  padding: 5rem 5% 2.5rem;
  color: rgba(255,255,255,0.55);
}
.footer-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(99,102,241,0.5);
}
.footer-logo-text {
  font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.75; max-width: 260px; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-col a:hover { color: #a5b4fc; }
.footer-bottom {
  max-width: 1140px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.8rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: #a5b4fc; }

/* ── COOKIE BAR ── */
.cookie-bar {
  position: fixed; bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  background: var(--indigo-dd);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 16px; padding: 1rem 1.3rem;
  display: flex; align-items: center; gap: 1.2rem;
  max-width: 520px; width: calc(100% - 2.4rem);
  box-shadow: 0 8px 40px rgba(30,27,75,0.5);
  z-index: 500; font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  transition: opacity 0.35s, transform 0.35s;
}
.cookie-bar.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
.cookie-bar a { color: #a5b4fc; }
.cookie-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-accept { background: var(--indigo); color: #fff; border: none; border-radius: 50px; padding: 0.35rem 0.9rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: 'Sora', sans-serif; }
.cookie-decline { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border: none; border-radius: 50px; padding: 0.35rem 0.9rem; font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: 'Sora', sans-serif; }

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn  { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
@keyframes popIn    { from { transform:scale(0.4); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes shimmer  { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes floatUp  {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: rgba(248,247,255,0.97); backdrop-filter: blur(20px); padding: 1rem 5%; border-bottom: 1px solid var(--border2); box-shadow: var(--shadow-lg); gap: 0.1rem; z-index: 99; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  section { padding: 4rem 5%; }
}
