/* ============================================================
   NextTechWaves — Page & Section Specific Styles
   ============================================================ */

/* ---------- Decorative background blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; z-index: 0; pointer-events: none; }
.blob-teal { background: rgba(46,149,121,0.25); }
.blob-gold { background: rgba(217,165,59,0.22); }
.sparkle { position: absolute; color: var(--gold); opacity: .6; pointer-events: none; z-index: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 70px; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy h1 .serif-italic { color: var(--teal); }

/* CoreDrishti product logo in hero */
.cd-hero-logo { width: 250px; max-width: 72%; height: auto; margin-bottom: 24px; }
@media (max-width: 880px) { .cd-hero-logo { margin-left: auto; margin-right: auto; } }
.hero-copy .lead { font-size: 1.2rem; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--bg);
  margin-left: -12px; background: linear-gradient(135deg, var(--teal), var(--gold));
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 0.85rem;
}
.hero-trust .avatars span:first-child { margin-left: 0; }
.hero-trust small { color: var(--ink-soft); font-size: 0.9rem; }
.hero-trust small strong { color: var(--ink); }

/* Hero media (video) + floating cards */
.hero-media { position: relative; }
.hero-media .media-placeholder { box-shadow: var(--shadow-soft); }
.float-card {
  position: absolute; background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow-soft); z-index: 3;
  display: flex; align-items: center; gap: 12px;
}
.float-card .fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; color: #fff; }
.float-card .fc-text strong { display: block; font-size: 1.05rem; color: var(--ink); font-family: var(--font-head); }
.float-card .fc-text small { font-size: 0.76rem; color: var(--ink-soft); }
.float-card.fc-1 { top: 8%; left: -6%; }
.float-card.fc-2 { bottom: 12%; right: -5%; }
.float-card.fc-3 { bottom: -4%; left: 12%; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .float-card.fc-1 { left: 2%; } .float-card.fc-2 { right: 2%; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--teal); color: #fff; padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: #fff; line-height: 1; }
.stat .num .text-gold { color: var(--gold); }
.stat .label { margin-top: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; } }

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logo-strip { background: var(--ink); padding: 26px 0; }
.logo-strip .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.logo-strip .ls-label { color: #8E8980; font-size: 0.85rem; font-weight: 500; }
.logo-strip .ls-items { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.logo-strip .ls-items span { color: #C9C5BD; font-weight: 600; font-size: 1.05rem; opacity: .8; transition: opacity .3s var(--ease); }
.logo-strip .ls-items span:hover { opacity: 1; color: var(--gold); }

/* ============================================================
   PROCESS / HOW IT WORKS
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.process-step { position: relative; padding-top: 20px; }
.process-step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 22px; margin-bottom: 18px;
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; line-height: 1;
  color: #fff; background: linear-gradient(135deg, var(--teal), var(--teal-light));
  box-shadow: 0 14px 30px rgba(31,111,92,0.3); transform: rotate(-4deg);
  transition: transform .4s var(--ease);
}
.process-step:hover .step-num { transform: rotate(0deg) scale(1.05); }
.process-step:nth-child(2) .step-num { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--ink); box-shadow: 0 14px 30px rgba(217,165,59,0.32); }
.process-step h3 { margin-bottom: 10px; }
.process-step .connector { position: absolute; top: 40px; right: -20px; color: var(--gold); opacity: .4; font-size: 1.5rem; }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr; } .process-step .connector { display: none; } }

/* ============================================================
   FEATURE LIST (with check)
   ============================================================ */
.feature-list { display: grid; gap: 16px; margin-top: 26px; }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 1.02rem; color: var(--ink); }
.feature-list .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(31,111,92,0.12); color: var(--teal);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; margin-top: 2px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card { background: var(--bg); border-radius: var(--radius-lg); padding: 38px 32px; box-shadow: var(--shadow-neu); position: relative; display: flex; flex-direction: column; }
.price-card.featured { background: var(--teal); color: #fff; transform: scale(1.04); box-shadow: 0 30px 60px rgba(31,111,92,0.3); }
.price-card.featured h3, .price-card.featured .price { color: #fff; }
.price-card.featured p, .price-card.featured .feature-list li { color: rgba(255,255,255,0.88); }
.price-card.featured .check { background: rgba(255,255,255,0.18); color: #fff; }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; }
.price-card .plan-name { font-size: 1.3rem; margin-bottom: 6px; }
.price-card .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; color: var(--ink); }
.price-card .price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 400; color: inherit; opacity: .7; }
.price-card .plan-desc { font-size: 0.95rem; margin: 4px 0 20px; }
.price-card .feature-list { flex: 1; margin-bottom: 28px; }
.price-card .feature-list li { font-size: 0.95rem; }

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } .price-card.featured { transform: scale(1); } }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 14px; box-shadow: var(--shadow-neu-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq-q .faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(31,111,92,0.1); color: var(--teal); display: grid; place-items: center; font-size: 1.2rem; transition: transform .3s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--teal); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 26px 24px; font-size: 1rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; }
.cta-box {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 84px); text-align: center;
  color: #fff; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(31,111,92,0.3);
}
.cta-box h2 { color: #fff; margin-bottom: 18px; }
.cta-box p { color: rgba(255,255,255,0.88); max-width: 540px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-box .hero-actions { justify-content: center; }
.cta-box .blob { opacity: .3; }

/* ============================================================
   ABOUT — values / timeline / team
   ============================================================ */
.value-card { text-align: left; }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item::before { content: ''; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--teal); }
.tl-item .tl-year { font-family: var(--font-head); color: var(--gold); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.tl-item h4 { margin-bottom: 6px; }

/* Founder block */
.founder-card { background: var(--bg); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-neu); }
.founder-card .media-placeholder, .founder-card img { border-radius: var(--radius); }
.founder-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.founder-badges span { background: rgba(31,111,92,0.08); color: var(--teal); font-size: 0.82rem; font-weight: 600; padding: 7px 14px; border-radius: 100px; }

/* ============================================================
   MASTERCLASS
   ============================================================ */
.mc-card { display: flex; flex-direction: column; }
.mc-card .mc-tag { display: inline-block; align-self: flex-start; font-size: 0.74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 16px; }
.mc-card .mc-tag.t1 { background: rgba(31,111,92,0.12); color: var(--teal); }
.mc-card .mc-tag.t2 { background: rgba(217,165,59,0.16); color: var(--gold-dark); }
.mc-card .mc-tag.t3 { background: rgba(43,39,34,0.08); color: var(--ink); }
.mc-card .mc-meta { display: flex; gap: 18px; margin: 16px 0 20px; font-size: 0.88rem; color: var(--ink-soft); }
.mc-card .mc-meta span { display: flex; align-items: center; gap: 6px; }
.mc-card ul { margin-bottom: 24px; }
.mc-card .feature-list li { font-size: 0.95rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-info .ci-icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: var(--bg); box-shadow: var(--shadow-neu-sm); display: grid; place-items: center; color: var(--teal); font-size: 1.2rem; }
.contact-info .ci-item h4 { margin-bottom: 3px; }
.contact-info .ci-item p { font-size: 0.98rem; }
.contact-info .ci-item a { color: var(--teal); font-weight: 500; }

.contact-form { background: var(--bg); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-neu); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink); background: var(--white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,111,92,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header { padding: 160px 0 70px; text-align: center; position: relative; overflow: hidden; }
.page-header .container { position: relative; z-index: 2; }
.page-header p { max-width: 600px; margin: 18px auto 0; font-size: 1.15rem; }

/* ============================================================
   PROBLEM / SOLUTION compare
   ============================================================ */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.compare-card { border-radius: var(--radius); padding: 34px; }
.compare-card.bad { background: #FBF1EE; border: 1px solid #F2DAD2; }
.compare-card.good { background: #EEF6F2; border: 1px solid #D2E8DF; }
.compare-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.compare-card .cc-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.compare-card.bad .cc-mark { background: #D9694B; }
.compare-card.good .cc-mark { background: var(--teal); }
.compare-card li { display: flex; gap: 12px; padding: 9px 0; color: var(--ink-soft); font-size: 1rem; }
.compare-card.bad li::before { content: '✕'; color: #D9694B; font-weight: 700; }
.compare-card.good li::before { content: '✓'; color: var(--teal); font-weight: 700; }
@media (max-width: 780px) { .compare-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist-box {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px);
  text-align: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px rgba(31,111,92,0.3);
}
.waitlist-box h2 { color: #fff; margin-bottom: 14px; }
.waitlist-box p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 30px; font-size: 1.08rem; }
.waitlist-form {
  display: flex; gap: 12px; max-width: 500px; margin: 0 auto; position: relative; z-index: 2;
  background: #fff; padding: 8px; border-radius: 100px; box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.waitlist-form input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 12px 20px; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.waitlist-form button { white-space: nowrap; padding: 13px 26px; }
.waitlist-note { margin-top: 18px; font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.waitlist-count { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: rgba(255,255,255,0.15); padding: 7px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; }
.waitlist-count .dot { width: 8px; height: 8px; border-radius: 50%; background: #6EE7B7; box-shadow: 0 0 0 4px rgba(110,231,183,0.3); }

/* Footer waitlist */
.footer-waitlist { margin-top: 8px; }
.footer-waitlist form { display: flex; gap: 8px; background: rgba(255,255,255,0.08); padding: 6px; border-radius: 100px; max-width: 320px; }
.footer-waitlist input { flex: 1; border: none; outline: none; background: transparent; color: #fff; padding: 10px 16px; font-family: var(--font-body); font-size: 0.92rem; }
.footer-waitlist input::placeholder { color: #8E8980; }
.footer-waitlist button { background: var(--gold); color: var(--ink); border-radius: 100px; padding: 10px 18px; font-weight: 600; font-size: 0.9rem; transition: all .3s var(--ease); }
.footer-waitlist button:hover { background: var(--gold-dark); }

@media (max-width: 520px) {
  .waitlist-form, .footer-waitlist form { flex-direction: column; border-radius: 20px; }
  .waitlist-form button, .footer-waitlist button { width: 100%; justify-content: center; border-radius: 14px; }
}

/* ── Form success card ───────────────────────────────────── */
.form-success-card {
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 48px);
  text-align: center;
  animation: fsc-in 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.form-success-card--light {
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-neu);
}
.fsc-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(217,165,59,0.22); border: 2px solid var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--gold);
  margin-bottom: 20px;
  animation: fsc-pop 0.6s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}
.fsc-icon--teal {
  background: rgba(31,111,92,0.10); border-color: var(--teal); color: var(--teal);
}
@keyframes fsc-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fsc-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================
   3D FLOATING SHAPES (decorative depth — "3D website" feel)
   ============================================================ */
.shapes-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.shape3d { position: absolute; opacity: 0.85; will-change: transform; }

/* Glassy cube */
.shape3d.cube {
  width: 90px; height: 90px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(46,149,121,0.85), rgba(31,111,92,0.6));
  box-shadow: inset -8px -8px 18px rgba(0,0,0,0.2), inset 8px 8px 18px rgba(255,255,255,0.25), 0 20px 40px rgba(31,111,92,0.25);
}
/* Gold sphere */
.shape3d.sphere {
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #F2D38A, var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 20px 40px rgba(217,165,59,0.35);
}
/* Ring / donut */
.shape3d.ring {
  width: 88px; height: 88px; border-radius: 50%;
  border: 16px solid rgba(31,111,92,0.25); border-top-color: rgba(217,165,59,0.6);
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}
/* Soft pyramid (triangle) */
.shape3d.pyramid {
  width: 0; height: 0; border-left: 42px solid transparent; border-right: 42px solid transparent;
  border-bottom: 72px solid rgba(217,165,59,0.55);
  filter: drop-shadow(0 18px 26px rgba(217,165,59,0.3));
}
@media (max-width: 768px) { .shape3d { opacity: 0.5; } .shape3d.pyramid { display: none; } }

/* Continuous floating — every shape gently roams in its own direction,
   so nothing ever looks frozen in one place. */
@keyframes floatA { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(16px,-28px) rotate(12deg); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-20px,-20px) rotate(-12deg); } }
@keyframes floatC { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(22px,20px) rotate(9deg); } }

.shape3d         { animation: floatA 9s ease-in-out infinite; }
.shape3d.cube    { animation: floatB 11s ease-in-out infinite; }
.shape3d.sphere  { animation: floatC 8.5s ease-in-out infinite; }
.shape3d.ring    { animation: floatA 12s ease-in-out infinite; }
.shape3d.pyramid { animation: floatB 10s ease-in-out infinite; }
.shape3d.delay, .shape3d.auto-float.delay { animation-delay: -4s; }

/* ============================================================
   RESPONSIVE — Tablet & Mobile fixes
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --maxw: 960px; }
  .hero-grid { gap: 36px; }
  .float-card { padding: 11px 14px; }
  .float-card .fc-icon { width: 34px; height: 34px; }
  .stats-grid { gap: 24px; }
}

/* Small tablet / large phone */
@media (max-width: 880px) {
  .hero { min-height: auto; padding: 120px 0 60px; }
  .section { padding: 64px 0; }
  .hero-copy .lead { font-size: 1.08rem; }
  .split { gap: 36px; }
}

/* Phone */
@media (max-width: 600px) {
  :root { --radius: 16px; --radius-lg: 22px; }
  .container { padding: 0 18px; }
  .hero { padding: 108px 0 50px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .section { padding: 54px 0; }
  .section-head { margin-bottom: 40px; }

  /* Hero media + floating cards: keep inside, smaller */
  .hero-media { max-width: 420px; margin: 0 auto; }
  .float-card { padding: 9px 12px; gap: 8px; transform: scale(0.92); }
  .float-card.fc-1 { top: 4%; left: -2%; }
  .float-card.fc-2 { bottom: 6%; right: -2%; }
  .float-card .fc-text strong { font-size: 0.92rem; }
  .float-card .fc-text small { font-size: 0.68rem; }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn { padding: 14px 24px; font-size: 0.96rem; }

  .card { padding: 26px; }
  .price-card { padding: 32px 24px; }
  .contact-form { padding: 26px; }
  .page-header { padding: 130px 0 50px; }
  .stat .num { font-size: 2.2rem; }
  .cta-box { padding: 40px 24px; }
  .nav { padding: 14px 0; }
}

/* Very small phone */
@media (max-width: 380px) {
  .float-card { display: none; } /* avoid clutter on tiny screens */
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   BRAND VISIBILITY + MOBILE POLISH
   Guarantees the NextTechWaves / CoreDrishti branding is always
   legible and never clipped, on every device width.
   ============================================================ */

/* Brand lockup never shrinks or wraps; logo + wordmark stay together */
.nav-logo { flex-shrink: 0; }
.nav-logo span { white-space: nowrap; }
.nav-logo img { flex-shrink: 0; }
.nav-toggle { flex-shrink: 0; }
.nav-inner { gap: 12px; }

/* On phones/tablets the nav is transparent at the top of the hero,
   which can leave the dark wordmark sitting over busy hero artwork.
   Give it a permanent frosted surface so the brand is always clear. */
@media (max-width: 880px) {
  .nav {
    background: rgba(250, 250, 249, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(43, 39, 34, 0.06);
  }
  .nav.scrolled { background: rgba(250, 250, 249, 0.96); }
}

/* Scale the wordmark down gracefully so it can never overflow
   the viewport next to the menu button. */
@media (max-width: 480px) {
  .nav-logo { font-size: 1.12rem; gap: 8px; }
  .nav-logo img { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .nav-logo { font-size: 1rem; }
  .nav-logo img { width: 30px; height: 30px; }
}

/* CoreDrishti product wordmark in the hero: keep it crisp + centered
   on small screens, and ensure it is never hidden behind decoration. */
@media (max-width: 880px) {
  .cd-hero-logo { width: 220px; max-width: 64%; position: relative; z-index: 2; }
}
@media (max-width: 480px) {
  .cd-hero-logo { width: 184px; }
}

/* Chatbot "CoreDrishti AI" header: keep the name fully visible and
   prevent the slogan from pushing the close button off-screen. */
@media (max-width: 480px) {
  .cdai-name { font-size: 0.98rem; }
  .cdai-header { padding: 14px 16px; }
}

/* Tablet (768–1024): make sure the 6-item menu never collides with
   the brand by keeping links on a single non-wrapping row. */
@media (min-width: 881px) and (max-width: 1024px) {
  .nav-links { gap: 2px; }
  .nav-links a { padding: 9px 12px; font-size: 0.9rem; }
}
