/* ================================================================
   MAHADVBOOK.COM – Fresh Design System v2
   Theme: Deep Midnight + Saffron + Electric Teal accents
   Fonts: Rajdhani (display) + DM Sans (body)
   COMPLETELY DIFFERENT from mahadevbooksid.com
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  /* New unique palette - saffron/teal/midnight */
  --saffron:     #FF6B1A;
  --saffron-lt:  #FF8C42;
  --teal:        #00D4AA;
  --teal-dark:   #00A882;
  --midnight:    #070B14;
  --navy:        #0D1525;
  --navy2:       #111E34;
  --navy3:       #162240;
  --card-bg:     rgba(13,21,37,0.9);
  --border:      rgba(255,107,26,0.12);
  --border-teal: rgba(0,212,170,0.15);
  --text:        #E2E8F4;
  --muted:       #7A8BA8;
  --white:       #ffffff;
  --green:       #25D366;
  --green-dk:    #128C7E;
  --r:           10px;
  --max:         1300px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--midnight);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ── HEADER ── */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7,11,20,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--saffron), var(--saffron-lt));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: white;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
}
.logo-text span { color: var(--saffron); }

nav { display: flex; align-items: center; gap: 2px; }
nav a {
  color: var(--muted); font-size: 0.8rem; font-weight: 600;
  padding: 7px 12px; border-radius: 7px;
  letter-spacing: 0.3px; transition: all .2s;
  font-family: 'DM Sans', sans-serif;
}
nav a:hover, nav a.active { color: var(--white); background: rgba(255,107,26,.1); }

.btn-nav-wa {
  background: var(--green) !important; color: white !important;
  border-radius: 50px !important; padding: 8px 18px !important;
  font-size: 0.78rem !important; font-weight: 700 !important;
  box-shadow: 0 2px 16px rgba(37,211,102,.3);
  white-space: nowrap;
}
.btn-nav-wa:hover { background: var(--green-dk) !important; transform: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--saffron); border-radius: 2px; transition: all .3s;
}
.mobile-nav {
  display: none; position: fixed; top: 66px; left: 0; right: 0;
  background: rgba(7,11,20,.99); z-index: 900;
  padding: 16px 24px 24px; flex-direction: column; gap: 2px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.mobile-nav a:last-child { color: var(--green); border: none; margin-top: 8px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer; border: none; transition: all .25s;
  text-decoration: none;
}
.btn-wa {
  background: var(--green); color: white;
  box-shadow: 0 4px 24px rgba(37,211,102,.3);
}
.btn-wa:hover { background: var(--green-dk); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,.4); }

.btn-saffron {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-lt));
  color: white;
  box-shadow: 0 4px 24px rgba(255,107,26,.3);
}
.btn-saffron:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,107,26,.4); }

.btn-outline {
  background: transparent; color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--midnight); }

.btn-ghost {
  background: rgba(255,255,255,.05); color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ── LAYOUT ── */
section { padding: 80px 28px; position: relative; }
.inner { max-width: var(--max); margin: 0 auto; }

.label-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.label-tag::before {
  content: ''; display: block;
  width: 20px; height: 2px;
  background: var(--teal); border-radius: 2px;
}

h1, h2, h3 { font-family: 'Rajdhani', sans-serif; line-height: 1.1; }

.section-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white); margin-bottom: 14px;
  font-weight: 700;
}
.section-heading .hl { color: var(--saffron); }
.section-heading .hl-t { color: var(--teal); }

.section-sub { color: var(--muted); max-width: 580px; font-size: 0.95rem; margin-bottom: 44px; }

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  transition: border-color .25s, transform .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,107,26,.03) 0%, transparent 60%);
  pointer-events: none;
}
.card:hover { border-color: rgba(255,107,26,.35); transform: translateY(-4px); }

.card-teal { border-color: var(--border-teal); }
.card-teal::before { background: linear-gradient(135deg,rgba(0,212,170,.03) 0%,transparent 60%); }
.card-teal:hover { border-color: rgba(0,212,170,.4); }

/* ── STAT PILLS ── */
.stat-pill {
  background: rgba(255,107,26,.08);
  border: 1px solid rgba(255,107,26,.2);
  border-radius: 50px; padding: 10px 22px;
  display: inline-flex; flex-direction: column; align-items: center;
}
.stat-pill .num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem; font-weight: 700; color: var(--saffron); line-height: 1;
}
.stat-pill .lbl { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 2px; }

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: linear-gradient(135deg,var(--saffron),var(--saffron-lt));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.1rem; color: white;
}
.step h4 { font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 700; color: white; margin-bottom: 5px; }
.step p { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

/* ── TESTIMONIALS ── */
.testi {
  background: var(--card-bg);
  border: 1px solid var(--border-teal);
  border-radius: 14px; padding: 28px;
  position: relative;
}
.testi-quote {
  font-family: 'Rajdhani', sans-serif; font-size: 5rem;
  color: rgba(0,212,170,.1); position: absolute;
  top: 10px; right: 18px; line-height: 1;
}
.testi-stars { color: var(--saffron); font-size: 0.82rem; letter-spacing: 3px; margin-bottom: 10px; }
.testi-text { font-size: 0.88rem; color: var(--muted); font-style: italic; line-height: 1.7; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); flex-shrink: 0; }
.testi-name { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; color: white; }
.testi-loc { font-size: 0.73rem; color: var(--muted); }

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(0,212,170,.3); }
.faq-item summary {
  padding: 18px 22px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 1rem; color: white; background: var(--card-bg);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--teal);
  flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body { padding: 0 22px 18px; background: var(--card-bg); font-size: 0.88rem; color: var(--muted); line-height: 1.75; }

/* ── FORMS ── */
.form-panel {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .6px; }
.fg input, .fg select, .fg textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  padding: 12px 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--text); outline: none;
  transition: border-color .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); }
.fg select option { background: var(--navy); }
.fg textarea { min-height: 90px; resize: vertical; }
.form-ok { display: none; text-align: center; padding: 18px; background: rgba(37,211,102,.08); border: 1px solid rgba(37,211,102,.25); border-radius: 10px; color: #4ade80; font-weight: 700; margin-top: 12px; }

/* ── FLOATING WA ── */
.wa-float {
  position: fixed; bottom: 22px; right: 18px; z-index: 999;
  display: flex; align-items: center; gap: 9px;
  background: var(--green); color: white;
  padding: 12px 20px; border-radius: 50px;
  font-weight: 700; font-size: 0.86rem;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  transition: all .25s;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) .6s both;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(37,211,102,.55); }
@keyframes popIn { from{opacity:0;transform:scale(.7)} to{opacity:1;transform:scale(1)} }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--navy);
  padding: 68px 28px 56px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,26,.07), transparent 70%);
  top: -100px; right: -80px; pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); color: white; margin-bottom: 14px; }
.page-hero h1 span { color: var(--saffron); }
.page-hero p { color: var(--muted); max-width: 620px; font-size: 1rem; margin-bottom: 26px; }
.breadcrumb { font-size: 0.75rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--teal); }

/* ── SEO TEXT BLOCK ── */
.seo-prose {
  background: var(--navy);
  border-top: 3px solid var(--saffron);
  padding: 52px 28px;
}
.seo-prose .inner h2 { font-size: 1.6rem; color: white; margin-bottom: 12px; }
.seo-prose .inner p { color: var(--muted); font-size: 0.9rem; line-height: 1.85; margin-bottom: 12px; }
.seo-prose .inner strong { color: var(--text); }
.seo-prose .inner a { color: var(--teal); }

/* ── KEYWORD CLOUD ── */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kw-cloud span {
  background: rgba(0,212,170,.07);
  border: 1px solid rgba(0,212,170,.2);
  color: var(--teal); padding: 4px 13px;
  border-radius: 50px; font-size: 0.73rem; font-weight: 600;
}

/* ── BLOG CARDS ── */
.blog-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; display: block;
  transition: border-color .25s, transform .25s;
}
.blog-card:hover { border-color: rgba(255,107,26,.35); transform: translateY(-4px); }
.blog-card img { width: 100%; height: 185px; object-fit: cover; }
.blog-body { padding: 20px; }
.blog-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--saffron); margin-bottom: 8px; }
.blog-body h3 { font-size: 1rem; color: white; line-height: 1.4; margin-bottom: 8px; }
.blog-body p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }
.blog-meta { font-size: 0.72rem; color: var(--muted); margin-top: 12px; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
}
.trust-bar-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.trust-item span { font-size: 1.1rem; }

/* ── FOOTER ── */
footer { background: #040710; border-top: 1px solid var(--border); padding: 60px 28px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; max-width: var(--max); margin-left: auto; margin-right: auto; }
.footer-brand p { color: var(--muted); font-size: 0.84rem; margin: 14px 0 22px; line-height: 1.7; max-width: 270px; }
.footer-col h5 { font-family: 'Rajdhani', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--saffron); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--muted); font-size: 0.84rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--teal); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--muted); font-size: 0.76rem; }
.footer-bottom a { color: var(--saffron); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .g2 { grid-template-columns: 1fr; gap: 36px; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 52px 16px; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float span.wa-label { display: none; }
  .wa-float { padding: 11px 14px; }
  .stat-pills-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
