/* =========================================================
   Ravi Kumar – Logo + Mobile "App" look
   Ye file site.css ke upar lagti hai. Mobile par neeche tab bar,
   swipe wale cards, aur install-able app ka design yahin hai.
   ========================================================= */

/* ---------- logo ---------- */
.brand__mark {
  background: url(../img/logo-mark.png) center / cover no-repeat;
  border-radius: 11px;
  font-size: 0; color: transparent;
  box-shadow: 0 6px 18px -8px rgba(255, 201, 40, .6);
}
.footer__logo { width: 96px; height: 96px; border-radius: 20px; }

/* ---------- touch polish (all phones/tablets) ---------- */
html { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:hover, .card:hover, .post-card:hover, .social-card:hover { transform: none; }
  .btn:active, .card:active, .post-card:active, .social-card:active, .contact__item:active, .tabbar a:active { transform: scale(.97); }
  .btn, .card, .post-card, .social-card, .contact__item { transition: transform .15s ease; }
}

/* ---------- bottom tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(14, 14, 18, .9);
    backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 54px; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--muted);
    transition: color .2s, background .2s, transform .15s;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.is-active { color: var(--gold-2); background: rgba(216, 178, 110, .1); }
  .tabbar a.tab-cta { color: var(--gold-ink); }
  .tabbar a.tab-cta span.ic {
    width: 42px; height: 30px; border-radius: 999px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
  }
  .tabbar a.tab-cta span.lb { color: var(--gold-2); }
  .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; width: 52px; height: 52px; }
  .wa-float svg { width: 27px; height: 27px; }
}

/* ---------- install app banner ---------- */
.install {
  position: fixed; left: 12px; right: 12px; z-index: 80;
  bottom: calc(80px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  background: rgba(29, 29, 35, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(216, 178, 110, .35); border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  animation: slideUp .4s cubic-bezier(.2, .7, .2, 1);
}
.install.show { display: flex; }
.install img { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.install b { display: block; font-size: 14.5px; }
.install span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; }
.install .btn { height: 38px; padding: 0 14px; font-size: 13px; margin-left: auto; flex: none; }
.install .x { background: none; border: 0; color: var(--muted); font-size: 22px; width: 32px; height: 32px; cursor: pointer; flex: none; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 901px) { .install { left: auto; right: 24px; bottom: 24px; max-width: 380px; } }

/* ---------- mobile layout ---------- */
@media (max-width: 900px) {
  .nav__inner { height: 62px; }
  .brand__mark { width: 36px; height: 36px; }
  .nav.is-open .nav__links { top: 62px; }
  .nav__toggle { width: 40px; height: 40px; }

  .section { padding: 64px 0; }
  .section--tight { padding: 44px 0; }
  .section__head { margin-bottom: 28px; }
  .h2 { font-size: clamp(32px, 9vw, 44px); }
  .lead { font-size: 16.5px; margin-top: 14px; }
  .eyebrow { margin-bottom: 12px; }

  /* hero: photo card first, like a profile screen */
  .hero { padding: 82px 0 36px; }
  .hero__visual { order: -1; max-width: none; margin: 0 0 6px; }
  .hero__photo { aspect-ratio: 4 / 3.6; border-radius: 24px; }
  .hero__photo img { object-position: center 18%; }
  .hero__ring { display: none; }
  .hero__badge { padding: 10px 12px; border-radius: 14px; }
  .hero__badge strong { font-size: 26px; }
  .hero__badge span { font-size: 11.5px; }
  .hero__badge--a { left: 10px; top: 12px; }
  .hero__badge--b { right: 10px; bottom: auto; top: 12px; }
  .hero__caption { left: 16px; bottom: 14px; }
  .hero__kicker { margin: 18px 0 14px; }
  .pill { font-size: 12px; padding: 6px 11px; }
  .display { font-size: clamp(40px, 11.5vw, 56px); }
  .hero__ctas { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__ctas .btn { padding: 0 12px; height: 50px; font-size: 14.5px; }

  .stat { padding: 22px 14px; }
  .stat__num { font-size: 40px; }
  .stat__label { font-size: 12.5px; margin-top: 6px; }
  .marquee { padding: 16px 0; }

  .about__photos { grid-template-columns: 1.1fr 1fr; gap: 10px; }
  .about__sign { font-size: 28px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact { padding: 12px 14px; }

  .tl { padding: 18px 0 18px 36px; }
  .tl__year, .tl:nth-child(even) .tl__year { font-size: 40px; }
  .tl__body h3 { font-size: 19px; }
  .tl__body p { font-size: 15.5px; }

  .social-hero { margin-bottom: 20px; gap: 8px; }
  .social-hero .big { font-size: 96px; }
  .social-card { padding: 14px 16px; }
  .social-card__icon { width: 44px; height: 44px; border-radius: 12px; }

  .faq summary { font-size: 16px; padding: 16px 0; }
  .contact__list { margin-top: 22px; }
  .contact__item { padding: 14px 16px; }
  .form { padding: 20px; border-radius: 20px; }

  .cta-band { padding: 64px 0; }
  .cta-band .hero__ctas { display: flex; }
  .footer { padding: 36px 0 24px; }

  .blog-hero { padding-top: 96px; }
  .post { padding-top: 92px; }
}

/* swipe carousels (cards, blog, proof, gallery) */
.swipe-hint { display: none; }
@media (max-width: 760px) {
  .cards, .page-home .post-grid, .proof, .gallery {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px;
    scroll-padding: 0 var(--gutter);
  }
  .cards::-webkit-scrollbar, .page-home .post-grid::-webkit-scrollbar, .proof::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .cards > *, .page-home .post-grid > *, .proof > * { flex: 0 0 80%; scroll-snap-align: start; }
  .proof > * { flex-basis: 64%; }
  .gallery figure { flex: 0 0 78%; height: 340px; scroll-snap-align: start; }
  .gallery figcaption { opacity: 1; transform: none; }
  .card { padding: 22px 20px; }
  .swipe-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: -16px 0 14px; font-weight: 600; }
  .swipe-hint::after { content: "→"; color: var(--gold); animation: nudge 1.6s ease-in-out infinite; }
}
@keyframes nudge { 50% { transform: translateX(5px); } }

/* when opened as installed app */
.is-standalone .nav { padding-top: env(safe-area-inset-top); }
.is-standalone .hero { padding-top: calc(82px + env(safe-area-inset-top)); }
@media (prefers-reduced-motion: reduce) { .install, .swipe-hint::after { animation: none; } }
