/* ============================================================
   KABIR FOR KIDS — Shared Stylesheet
   kabirforkids.com
   Brand: Not trending. Everlasting.
============================================================ */

/* === GOOGLE FONTS (loaded per page) === */

/* === DESIGN TOKENS === */
:root {
  /* Brand Palette */
  --cream:      #FEFCE9;
  --peach:      #EDB783;
  --teal:       #7DCAD2;
  --warm-grey:  #655E51;
  --orange:     #C56703;
  --dark:       #342D27;
  --gold:       #C1AD58;

  /* Semantic */
  --bg:           #FEFCE9;
  --bg-card:      #FFFFFF;
  --bg-muted:     #F5EDD8;
  --text:         #342D27;
  --text-muted:   #655E51;
  --text-light:   #9B7B52;
  --border:       rgba(52,45,39,0.12);
  --border-light: rgba(52,45,39,0.06);

  /* Effects */
  --shadow-sm: 0 1px 6px rgba(52,45,39,0.07);
  --shadow:    0 4px 20px rgba(52,45,39,0.10);
  --shadow-lg: 0 8px 40px rgba(52,45,39,0.14);

  /* Shape */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* Spacing Scale (audit 3A) */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 88px;

  /* Standardised card padding (audit 2D) */
  --card-pad:    28px 24px;
  --card-pad-lg: 36px 32px;

  /* Standardised section padding (audit 3A) */
  --section-pad:    88px 0;
  --section-pad-sm: 64px 0;
  --hero-pad:       100px 0 80px;

  /* Layout */
  --max-w:   1100px;
  --nav-h:   64px;
  --pad-x:   20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img { max-width: 100%; display: block; height: auto; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: 'Crimson Pro', serif;
  line-height: 1.15;
  color: var(--dark);
}

.devanagari {
  font-family: 'Tiro Devanagari Hindi', serif;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* === SITE NAV === */
.site-nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

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

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-family: 'Crimson Pro', serif;
  font-size: 19px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

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

.nav-links a {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover        { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active       { color: #fff; background: rgba(255,255,255,0.11); }
.nav-links a.nav-yt       { color: rgba(255,255,255,0.55); }

.nav-links .nav-cta a {
  background: var(--orange);
  color: #fff;
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.nav-links .nav-cta a:hover { background: #b05803; }

.nav-cta-mobile {
  display: block;
  background: var(--orange);
  color: #fff !important;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  margin: 8px 16px;
  padding: 10px 16px;
  text-decoration: none;
}
.nav-cta-mobile:hover { background: #b05803; }

/* === NAV DROPDOWN === */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.55;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #2b2320;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 10px 6px 6px; /* top padding bridges the gap so hover doesn't drop */
  min-width: 220px;
  display: none;
  z-index: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.40);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 13px 16px !important;
  border-radius: var(--radius-xs) !important;
  white-space: nowrap;
  background: none !important;
  transition: all 0.15s ease !important;
}

.dropdown-menu li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}

/* Mobile nav sub-item */
.nav-mobile .nav-sub-link {
  padding-left: 32px !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  font-size: 14px !important;
  opacity: 0.9;
  border-bottom: none !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: var(--radius-xs);
  color: #fff;
  transition: background 0.15s;
}

.nav-toggle:hover { background: rgba(255,255,255,0.08); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.22s ease;
}

/* Mobile Nav Drawer */
.nav-mobile {
  display: none;
  background: #2b2320;
  padding: 6px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  font-weight: 500;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.15s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover      { color: #fff; }

/* === SITE-WIDE PAGE LOADER === */
/* why-kabir-for-kids.html has its own inline override (dark + doha animation) */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #FEFCE9; /* cream — matches site bg, seamless feel */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  /* opacity/visibility controlled entirely by JS — starts hidden */
}
.loader-doha {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: #5C4A3A;
  text-align: center;
  line-height: 1.9;
  letter-spacing: 0.01em;
  margin: 0;
  opacity: 0;
  animation: loaderTextFade 0.7s ease 0.15s forwards;
}
@keyframes loaderTextFade {
  to { opacity: 1; }
}
.loader-bar-wrap {
  width: min(320px, 80vw);
  height: 3px;
  background: rgba(52,45,39,0.12); /* subtle track visible on cream */
  border-radius: 999px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C1AD58, #C56703, #7DCAD2);
  border-radius: 999px;
  animation: loaderFill 3s ease-out forwards;
}
@keyframes loaderFill {
  from { width: 0%; }
  to   { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #page-loader { display: none !important; }
}

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 100px 0; }

/* === EYEBROW LABEL === */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.eyebrow-teal  { color: var(--teal); }
.eyebrow-gold  { color: var(--gold); }
.eyebrow-white { color: rgba(255,255,255,0.5); }

/* === SECTION HEAD === */
.section-head {
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

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

.btn-primary:hover {
  background: #b05803;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(197,103,3,0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(52,45,39,0.04);
}

.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.82);
  border: 1.5px solid rgba(255,255,255,0.22);
}

.btn-ghost-white:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}

.btn-teal {
  background: var(--teal);
  color: var(--dark);
}

.btn-teal:hover { background: #69BEC6; transform: translateY(-1px); }

/* === VIDEO EMBED === */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1412;
  box-shadow: var(--shadow);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* === TAG PILL === */
.tag {
  display: inline-block;
  background: var(--bg-muted);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
}

.tag-teal { background: rgba(125,202,210,0.15); color: #2a9da8; }
.tag-gold  { background: rgba(193,173,88,0.15);  color: #8a7530; }

/* === ORNAMENT DIVIDER === */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 10px;
  margin: 48px 0;
  opacity: 0.55;
}

/* === CARD === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* === SITE FOOTER === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 36px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .brand-name {
  font-family: 'Crimson Pro', serif;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-brand .brand-tagline {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 250px;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.58);
  transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-subscribe-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  background: #C56703;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.footer-subscribe-btn:hover {
  background: #a85402 !important;
  color: #fff !important;
}

/* === SOCIAL LINKS === */
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.60) !important;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.footer-social-link:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.06);
}

.footer-social-link.yt  { border-color: rgba(255,70,50,0.28); }
.footer-social-link.yt:hover  { border-color: #ff4632; background: rgba(255,70,50,0.12); color: #ff6b5b !important; }

.footer-social-link.ig  { border-color: rgba(200,60,180,0.28); }
.footer-social-link.ig:hover  { border-color: rgba(200,60,180,0.7); background: rgba(200,60,180,0.10); color: #e879c6 !important; }

.footer-social-link.fb  { border-color: rgba(65,130,220,0.28); }
.footer-social-link.fb:hover  { border-color: rgba(65,130,220,0.7); background: rgba(65,130,220,0.10); color: #6ba3f0 !important; }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  opacity: 0.38;
}

.footer-bottom .devanagari {
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* === MINIMAL FOOTER (2026 redesign) === */
.site-footer-minimal {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
  margin-top: 96px;
  text-align: center;
}

.footer-minimal-inner {
  max-width: 540px;
  margin: 0 auto;
}

.footer-brand-min {
  font-family: 'Crimson Pro', serif;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-tagline-min {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 28px;
}

.footer-nav-min {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-nav-min a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav-min a:hover { color: #fff; }

.footer-contact-min {
  margin-bottom: 16px;
}

.footer-contact-min a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact-min a:hover { color: #fff; }

.footer-social-min {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-social-min a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-social-min a:hover { color: #fff; }

.footer-articles-min {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 24px;
  line-height: 1.8;
}

.footer-articles-min a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-articles-min a:hover { color: rgba(255,255,255,0.65); }

.footer-copy-min {
  font-size: 12px;
  opacity: 0.35;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: var(--dark);
  padding: 56px 0 52px;
}

.page-hero .eyebrow { color: rgba(255,255,255,0.4); letter-spacing: 0.14em; }
.page-hero h1       { color: #fff; font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.page-hero p        { color: rgba(255,255,255,0.55); font-size: 17px; max-width: 520px; line-height: 1.7; }

/* === SECTION CTA === */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* === FOCUS STATES (audit 3C — WCAG 2.1 AA) === */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* === SHARE BUTTON (audit 1G — copy-to-clipboard) === */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'DM Sans', sans-serif;
}
.share-btn:hover {
  color: var(--text);
  background: rgba(193,173,88,0.15);
  border-color: var(--gold);
}
.share-btn svg { width: 14px; height: 14px; }
.share-btn.copied {
  color: var(--orange);
  background: rgba(197,103,3,0.08);
  border-color: var(--orange);
}

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

  .section     { padding: 60px 0; }
  .section-lg  { padding: 72px 0; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .site-footer { margin-top: 72px; }
}

@media (max-width: 520px) {
  :root { --pad-x: 16px; }
  .section     { padding: 48px 0; }
  .section-head { margin-bottom: 36px; }
  .btn         { padding: 12px 22px; font-size: 14px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
}
