/* Saibaba TVS Jupiter Lucky Draw — event / Independence Day theme.
   Grounded editorial layout + festive accents. Mobile-first. */

:root {
  --red: #ec1c24;
  --blue: #002a8f;
  --blue-deep: #001a5c;
  --ink: #12131a;
  --paper: #f6f4ee;
  --paper-2: #ffffff;
  --line: #e4dfd3;
  --saffron: #ff8f1c;
  --green: #0f8a2f;
  --gold: #f5b820;
  --muted: #5b6070;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Archivo", var(--sans);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink);
  background: var(--paper); line-height: 1.55; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
a { color: inherit; }

.tricolor {
  height: 6px;
  background: linear-gradient(90deg, var(--saffron) 0 33.3%, #fff 33.3% 66.6%, var(--green) 66.6% 100%);
}

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 800;
  font-size: .95rem; padding: .85rem 1.5rem; text-decoration: none;
  border: 2px solid var(--ink); text-align: center; cursor: pointer;
  transition: transform .12s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-call {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 4px 0 var(--blue-deep);
}
.btn-call:hover { background: #002370; box-shadow: 0 6px 0 var(--blue-deep); }
.btn-call:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--blue-deep); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---- header ---- */
.site-head {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.3rem; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { font-family: var(--display); font-weight: 900; letter-spacing: .04em; color: var(--blue); font-size: 1.05rem; }
.brand-tvs { height: 13px; width: auto; }
.head-cta { padding: .55rem 1.1rem; font-size: .88rem; box-shadow: 0 3px 0 var(--ink); }

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; position: relative; z-index: 2;
  padding: 1.5rem 1.3rem 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
  min-height: 62vh;
}

/* festive backdrop — grounded, subtle, not floating spam */
.festive { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.festive::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(0,42,143,.10), transparent 70%),
    repeating-linear-gradient(135deg, rgba(0,42,143,.035) 0 2px, transparent 2px 22px);
}
.kite { position: absolute; width: 26px; height: 26px; transform: rotate(45deg); border-radius: 3px; opacity: .9; }
.kite::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 1px; height: 22px; background: rgba(0,0,0,.15); }
.kite-1 { top: 8%; left: 6%; background: var(--saffron); animation: sway 5s ease-in-out infinite; }
.kite-2 { top: 14%; right: 9%; background: var(--green); animation: sway 6s ease-in-out infinite reverse; }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: .8; }
.s1 { top: 22%; left: 18%; animation: twinkle 2.4s infinite; }
.s2 { top: 40%; right: 16%; animation: twinkle 3s .5s infinite; }
.s3 { bottom: 30%; left: 40%; animation: twinkle 2.7s .9s infinite; }
@keyframes sway { 0%,100% { transform: rotate(42deg) translateY(0); } 50% { transform: rotate(48deg) translateY(-8px); } }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .8rem; color: var(--blue); margin: 0 0 1.1rem;
}
.flag-chip {
  background: linear-gradient(180deg, var(--saffron) 0 33%, #fff 33% 66%, var(--green) 66% 100%);
  color: var(--ink); font-weight: 900; padding: .3rem .55rem; border: 1.5px solid var(--ink);
  letter-spacing: .02em; border-radius: 4px; text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; text-transform: uppercase; }
.hero h1 .line-1 { display: block; color: var(--blue); }
.hero h1 .line-2 { display: block; color: var(--ink); }
.hero h1 em {
  font-style: normal; color: #fff; background: var(--red);
  padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transform: rotate(-1.5deg); display: inline-block;
}
.tagline { font-size: 1.1rem; color: var(--muted); max-width: 42ch; margin: 1.3rem 0 1.8rem; }
.tagline strong { color: var(--ink); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* prize stage */
.hero-stage { position: relative; text-align: center; }
.prize-badge {
  position: absolute; top: 4%; right: 2%; z-index: 3;
  width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--gold), #e29a00);
  border: 3px solid var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--ink); font-family: var(--display);
  transform: rotate(-8deg); box-shadow: 0 6px 0 rgba(0,0,0,.18);
  animation: badgePulse 2.6s ease-in-out infinite;
}
.pb-top { font-size: .5rem; font-weight: 800; letter-spacing: .1em; }
.pb-main { font-size: .82rem; font-weight: 900; line-height: 1; margin: .15rem 0; }
.pb-free { font-size: 1rem; font-weight: 900; color: var(--red); }
@keyframes badgePulse { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.06); } }
.hero-bike { position: relative; z-index: 2; width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 18px 22px rgba(0,0,0,.22)); }
.stage-floor {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  width: 74%; height: 26px; z-index: 1;
  background: radial-gradient(50% 100% at 50% 0, rgba(0,0,0,.22), transparent 75%);
}

/* countdown band */
.countdown-band {
  position: relative; z-index: 2; margin-top: 1.5rem;
  background: var(--blue-deep); color: #fff; text-align: center;
  padding: 1.6rem 1.3rem 1.8rem;
  border-top: 4px solid var(--gold);
}
.cb-label {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .8rem; color: var(--gold);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(236,28,36,.7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(236,28,36,.7); } 70% { box-shadow: 0 0 0 10px rgba(236,28,36,0); } 100% { box-shadow: 0 0 0 0 rgba(236,28,36,0); } }
.countdown { display: inline-flex; align-items: flex-start; gap: .8rem; }
.cd-cell { min-width: 68px; }

/* --- true split-flap --- */
.flap {
  --h: 70px;
  position: relative; height: var(--h); width: 100%; perspective: 340px;
  font-family: var(--display); font-weight: 900; font-size: 2.4rem;
  font-variant-numeric: tabular-nums; color: #101116;
}
.flap-top, .flap-bottom, .flap-fold {
  position: absolute; left: 0; right: 0; height: 50%; overflow: hidden;
  background: #fff; border: 1px solid #d4d4d8; backface-visibility: hidden;
}
/* each half renders the FULL digit at var(--h) line-height, then clips */
.flap-top, .flap-bottom, .flap-fold { text-align: center; line-height: var(--h); }
.flap-top {
  top: 0; border-radius: 9px 9px 0 0; border-bottom: none;
  background: linear-gradient(#fff, #f4f4f6);
}
.flap-bottom {
  bottom: 0; border-radius: 0 0 9px 9px; border-top: none;
  background: linear-gradient(#eeeef1, #e4e4e8);
  box-shadow: 0 7px 0 #b8bbc1, 0 12px 18px rgba(0,0,0,.32);
}
/* bottom half must show the LOWER portion of the glyph: pull text up by 50% */
.flap-bottom { line-height: 0; }
.flap-bottom > span { display: block; line-height: var(--h); margin-top: calc(var(--h) / -2); }
.flap-top > span, .flap-fold > span { display: block; line-height: var(--h); }
.flap-fold {
  top: 0; z-index: 3; transform-origin: bottom center; border-radius: 9px 9px 0 0;
  background: linear-gradient(#fff, #ececef);
}
/* center seam */
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(0,0,0,.2); z-index: 4; }
/* side hinges */
.flap::before {
  content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 12px; margin-top: -6px; z-index: 5;
  background:
    linear-gradient(#8e9299,#656970) left / 8px 100% no-repeat,
    linear-gradient(#8e9299,#656970) right / 8px 100% no-repeat;
}
.flap.flipping .flap-fold { animation: foldDown .5s cubic-bezier(.36,0,.3,1) forwards; }
@keyframes foldDown {
  0% { transform: rotateX(0); }
  100% { transform: rotateX(-90deg); }
}
.cd-lbl { display: block; margin-top: .85rem; font-family: var(--display); font-weight: 900; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.cd-sep { display: none; }
.cb-foot { margin: 1.2rem 0 0; font-family: var(--display); font-weight: 700; letter-spacing: .04em; }

/* section shared */
.section-kicker { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--red); margin: 0 0 .6rem; }

/* ================= WINNER ================= */
.winner {
  background: #0b0d15; color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
/* stage vignette + gold spotlight cone behind the card */
.winner::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(245,184,32,.28), rgba(245,184,32,0) 55%),
    radial-gradient(90% 60% at 50% 120%, rgba(0,42,143,.35), rgba(0,42,143,0) 60%),
    #0b0d15;
}
/* soft faint dot grid for texture */
.winner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%);
}
/* falling tricolor confetti */
.stage-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.confetti-bit { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; opacity: .9; animation: fall linear infinite; }
.confetti-bit:nth-child(3n+1) { background: var(--saffron); }
.confetti-bit:nth-child(3n+2) { background: #fff; }
.confetti-bit:nth-child(3n+3) { background: var(--green); }
.confetti-bit:nth-child(1)  { left: 6%;  animation-duration: 7s;  animation-delay: 0s;   }
.confetti-bit:nth-child(2)  { left: 15%; animation-duration: 9s;  animation-delay: 1.4s; }
.confetti-bit:nth-child(3)  { left: 24%; animation-duration: 6.5s;animation-delay: .6s;  }
.confetti-bit:nth-child(4)  { left: 33%; animation-duration: 8.5s;animation-delay: 2.2s; }
.confetti-bit:nth-child(5)  { left: 42%; animation-duration: 7.5s;animation-delay: .9s;  }
.confetti-bit:nth-child(6)  { left: 51%; animation-duration: 10s; animation-delay: 3s;   }
.confetti-bit:nth-child(7)  { left: 60%; animation-duration: 6.8s;animation-delay: 1.1s; }
.confetti-bit:nth-child(8)  { left: 69%; animation-duration: 9.5s;animation-delay: 2.6s; }
.confetti-bit:nth-child(9)  { left: 78%; animation-duration: 7.2s;animation-delay: .3s;  }
.confetti-bit:nth-child(10) { left: 86%; animation-duration: 8.8s;animation-delay: 1.8s; }
.confetti-bit:nth-child(11) { left: 92%; animation-duration: 6.6s;animation-delay: 3.4s; }
.confetti-bit:nth-child(12) { left: 48%; animation-duration: 11s; animation-delay: 4s;   }
@keyframes fall {
  0%   { transform: translateY(0) rotate(0); opacity: 0; }
  10%  { opacity: .9; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: .3; }
}
.winner-inner { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.3rem; text-align: center; position: relative; z-index: 1; }
.winner .section-kicker { color: var(--gold); }
.winner h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; margin-bottom: 2.4rem; }

.reveal-box {
  max-width: 600px; margin: 0 auto; position: relative;
  background: var(--paper-2); color: var(--ink);
  border-radius: 14px; padding: 2.6rem 1.8rem;
  border: 2px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
/* ticket motif for pending */
.ticket {
  position: relative; width: 210px; margin: 0 auto 1.4rem;
  background: var(--blue); color: #fff; border-radius: 10px;
  padding: 1.1rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.ticket img { filter: brightness(0) invert(1); }
.ticket-q { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--gold); }
.ticket-hole { position: absolute; top: 50%; width: 20px; height: 20px; background: var(--paper-2); border-radius: 50%; transform: translateY(-50%); }
.ticket-hole.l { left: -10px; } .ticket-hole.r { right: -10px; }
.rb-status { font-family: var(--display); font-weight: 900; font-size: 1.35rem; text-transform: uppercase; margin: 0 0 .7rem; color: var(--blue); }
.rb-sub { color: var(--muted); margin: .6rem 0 0; }
.rb-sub strong { color: var(--ink); }
.mini-countdown { margin: 1.4rem 0 0; font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--red); font-size: 1.1rem; }
/* revealed */
.reveal-box.is-revealed { border-color: var(--gold); }
.rb-congrats { font-family: var(--display); font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--green); margin: 0 0 .8rem; font-size: 1.1rem; }
.rb-name { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 6vw, 2.8rem); text-transform: uppercase; margin: 0 0 1.2rem; color: var(--blue); }
.rb-meta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.3rem; }
.rb-chip { background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; padding: .5rem .9rem; font-size: .85rem; font-family: var(--display); font-weight: 600; }
.rb-chip strong { font-weight: 900; margin-left: .3rem; }
.reveal-box .btn { margin-top: 1.4rem; }
.is-revealed { animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* ================= SHOWROOM ================= */
.showroom { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.3rem; text-align: center; }
.show-head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.show-lede { color: var(--muted); max-width: 54ch; margin: 1rem auto 0; }
.branch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 2rem; }
.branch-card {
  display: block; text-align: left; text-decoration: none;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 12px;
  padding: 1.5rem 1.4rem; position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.branch-card:hover { transform: translateY(-4px); box-shadow: 0 12px 0 rgba(0,42,143,.12); }
.bc-pin { font-size: 1.4rem; }
.branch-card h3 { font-size: 1.5rem; text-transform: uppercase; margin: .5rem 0 .2rem; color: var(--blue); }
.branch-card p { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; }
.bc-link { font-family: var(--display); font-weight: 800; color: var(--red); font-size: .9rem; }
.show-cta { margin-top: .5rem; }

/* ================= FAQ ================= */
.faq { max-width: 820px; margin: 0 auto; padding: 3.5rem 1.3rem 5rem; }
.faq-head { text-align: center; margin-bottom: 2rem; }
.faq h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.faq-item { border: 2px solid var(--line); border-radius: 10px; background: var(--paper-2); margin-bottom: .7rem; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.3rem; font-family: var(--display); font-weight: 700; color: var(--blue); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--red); transition: transform .2s ease; }
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); }
.faq-item[open] summary { color: var(--red); }
.faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); max-width: 62ch; }

/* ================= FOOTER ================= */
.site-foot { background: var(--blue-deep); color: #fff; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.3rem; text-align: center; }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1rem; }
.foot-brand .brand-mark { color: #fff; }
.foot-brand img { filter: brightness(0) invert(1); }
.site-foot p { margin: .3rem 0; font-size: .9rem; opacity: .9; }
.site-foot .fine { font-size: .76rem; opacity: .6; max-width: 60ch; margin: .6rem auto 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-top: 1rem; gap: 1rem; }
  .hero-copy { order: 2; }
  .hero-stage { order: 1; }
  .eyebrow, .hero-actions { justify-content: center; }
  .tagline { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .prize-badge { width: 88px; height: 88px; right: 4%; }
  .hero-bike { max-width: 380px; }
  .branch-cards { grid-template-columns: 1fr; }
  .kite, .spark { display: none; }
}
@media (max-width: 520px) {
  .btn { display: block; }
  .hero-actions .btn { width: 100%; }
  .countdown-band { padding: 1.4rem 1rem 1.6rem; }
  .cb-label { font-size: .72rem; letter-spacing: .08em; }
  /* even 4-up grid so all cells match width */
  .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; width: 100%; max-width: 340px; margin: 0 auto; }
  .cd-cell { min-width: 0; }
  .flap { --h: 66px; font-size: 2.15rem; }
  .flap-bottom { box-shadow: 0 5px 0 #b8bbc1, 0 9px 14px rgba(0,0,0,.3); }
  .cd-lbl { margin-top: .7rem; font-size: .58rem; }
  .cd-sep { display: none; }
  .reveal-box { padding: 2rem 1.2rem; }
  .rb-meta { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .btn:hover, .branch-card:hover { transform: none; }
}
