:root {
  --yellow: #ffd400;
  --yellow-deep: #f0b900;
  --charcoal: #3a3a3a;
  --ink: #222222;
  --muted: #6a6a6a;
  --soft: #f6f6f6;
  --white: #ffffff;
  --tomato: #d94a2b;
  --leaf: #1f7a4d;
  --line: rgba(34, 34, 34, 0.12);
  --shadow: 0 20px 55px rgba(34, 34, 34, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Nunito", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

body.loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; display: block; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--charcoal);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: min(220px, 60vw);
  filter: drop-shadow(0 18px 30px rgba(34, 34, 34, 0.18));
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1100;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--tomato), var(--leaf));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.navbar { min-height: 76px; }

.navbar-brand img {
  width: 132px;
  height: auto;
  background: var(--charcoal);
  border-radius: 6px;
  padding: 8px 10px;
}

.navbar-nav .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.93rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--tomato); }

.dropdown-menu {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.mega-menu {
  min-width: min(680px, 92vw);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dropdown-item {
  border-radius: 6px;
  font-weight: 600;
  padding: 10px 12px;
}

.dropdown-item:hover { background: #fff6bf; }

.btn-brand,
.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 8px;
  border: 2px solid var(--yellow);
  padding: 10px 18px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-brand {
  background: var(--yellow);
  color: var(--charcoal);
}

.btn-outline-brand {
  background: transparent;
  color: var(--charcoal);
}

.btn-brand:hover,
.btn-outline-brand:hover {
  transform: translateY(-2px);
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--yellow);
}

.hero-sequence {
  position: relative;
  min-height: 185vh;
  background: #111;
}

.hero-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.3) 46%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--white);
  padding-top: 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.82rem;
}

.hero-content h1 {
  width: min(840px, 100%);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  line-height: 0.96;
  margin: 0;
}

.hero-content p {
  width: min(680px, 100%);
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-weight: 600;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section.soft { background: var(--soft); }

.section.dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title h1,
.section-title h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  margin: 0 0 14px;
}

.section-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
}

.section-title p,
.lead-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.dark .section-title p,
.dark .lead-copy { color: rgba(255, 255, 255, 0.72); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 145px 0 82px;
  background:
    linear-gradient(110deg, rgba(58, 58, 58, 0.94), rgba(58, 58, 58, 0.72)),
    url("../assets/images/products/panipuri.jpg") center/cover;
  color: var(--white);
}

.page-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1;
}

.breadcrumb {
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 600;
}

.feature-grid,
.product-grid,
.stats-grid,
.journey-grid,
.values-grid,
.branch-grid,
.testimonial-grid,
.video-grid {
  display: grid;
  gap: 22px;
}

.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.branch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-lite,
.product-card,
.stat-card,
.timeline-card,
.branch-card,
.testimonial-card,
.video-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(34, 34, 34, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-lite:hover,
.product-card:hover,
.timeline-card:hover,
.branch-card:hover,
.testimonial-card:hover,
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-lite {
  padding: 26px;
}

.icon-bubble {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--charcoal);
  font-size: 1.3rem;
}

.card-lite h3,
.timeline-card h3,
.branch-card h3,
.testimonial-card h3 {
  margin: 0 0 9px;
  font-size: 1.1rem;
  font-weight: 700;
}

.card-lite p,
.timeline-card p,
.branch-card p,
.testimonial-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.product-card {
  overflow: hidden;
}

.product-card img,
.video-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body,
.video-body {
  padding: 18px;
}

.product-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #fff3a6;
  color: var(--charcoal);
  font-weight: 700;
}

.franchise-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--charcoal), #111);
  color: var(--white);
  padding: clamp(28px, 5vw, 56px);
}

.franchise-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(45deg, transparent 48%, var(--yellow) 49%, var(--yellow) 51%, transparent 52%);
  background-size: 28px 28px;
}

.franchise-band > * { position: relative; z-index: 1; }

.stat-card {
  padding: 28px 18px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--tomato);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  font-weight: 700;
}

.stat-card span {
  color: var(--muted);
  font-weight: 600;
}

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: translateX(-50%);
}

.timeline-card {
  position: relative;
  width: calc(50% - 30px);
  padding: 22px;
  margin-bottom: 24px;
}

.timeline-card:nth-child(even) { margin-left: calc(50% + 30px); }

.timeline-card .year {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: var(--yellow);
  font-weight: 700;
}

.media-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.phone-video {
  width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: #111;
}

.spec-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.spec-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.spec-list i { color: var(--leaf); margin-top: 4px; }

.contact-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
}

.form-control,
.form-select {
  min-height: 50px;
  border-radius: 8px;
  border-color: rgba(34, 34, 34, 0.18);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 0.22rem rgba(255, 212, 0, 0.24);
}

.map-frame {
  width: 100%;
  min-height: 390px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 58px 0 28px;
  background: #242424;
  color: var(--white);
}

.footer-logo {
  width: 150px;
  background: var(--charcoal);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a { color: rgba(255, 255, 255, 0.75); }
.footer-links a:hover { color: var(--yellow); }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.socials a,
.float-action,
.back-to-top {
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
}

.socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}

.float-stack {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 950;
  display: grid;
  gap: 10px;
}

.float-action,
.back-to-top {
  width: 48px;
  height: 48px;
  box-shadow: 0 12px 26px rgba(34, 34, 34, 0.22);
}

.float-action.whatsapp { background: #25d366; color: var(--white); }
.float-action.call { background: var(--yellow); color: var(--charcoal); }
.back-to-top { background: var(--charcoal); color: var(--yellow); border: 0; opacity: 0; pointer-events: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 940;
  transform: translateX(-50%);
  box-shadow: 0 14px 30px rgba(34, 34, 34, 0.2);
}

.stars { color: var(--yellow-deep); letter-spacing: 0; }

.modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

@media (max-width: 1199px) {
  .feature-grid,
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .feature-grid,
  .product-grid,
  .stats-grid,
  .journey-grid,
  .values-grid,
  .branch-grid,
  .testimonial-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-split { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: none; }
}

@media (max-width: 767px) {
  .hero-content {
    padding-top: 76px;
  }

  .hero-sequence { min-height: 155vh; }

  .feature-grid,
  .product-grid,
  .stats-grid,
  .journey-grid,
  .values-grid,
  .branch-grid,
  .testimonial-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before { left: 12px; }
  .timeline-card,
  .timeline-card:nth-child(even) {
    width: calc(100% - 34px);
    margin-left: 34px;
  }

  .navbar-brand img { width: 112px; }
  .page-hero { padding-top: 122px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
