/* ==========================================================================
   PAGE-SPECIFIC STYLES
   ========================================================================== */

/* ---------- HOME HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 75% 30%, rgba(31,79,209,0.35), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-950));
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--space-6);
  position: relative;
  z-index: 2;
}
.hero__eyebrow { color: var(--gold); }
.hero__title { margin-bottom: var(--space-5); }
.hero__title .line2 { color: var(--gold); }
.hero__lede { font-size: var(--body-lg); max-width: 46ch; opacity: 0.88; margin-bottom: var(--space-3); }
.hero__built { font-family: var(--font-sub); letter-spacing: 0.03em; opacity: 0.7; margin-bottom: var(--space-6); }
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-7); }
.hero__rally { font-family: var(--font-sub); letter-spacing: 0.2em; color: var(--gold); font-size: 0.85rem; }

/* Hero visual: 3-player lineup, cropped at the thigh, fading into navy */
.hero__visual {
  position: absolute;
  top: 0; bottom: 0;
  right: max(0px, calc((100vw - 1440px) / 2));
  width: 50%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 68%, transparent 97%);
}
.hero__glow {
  position: absolute;
  width: 780px; height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,196,0,0.22), rgba(31,79,209,0.18) 45%, transparent 70%);
  top: 4%;
  right: 6%;
  pointer-events: none;
}
.hero__stripes {
  position: absolute;
  inset: 0 -10% 0 8%;
  background:
    linear-gradient(115deg, transparent 38%, rgba(245,196,0,0.9) 38%, rgba(245,196,0,0.9) 41%, transparent 41%),
    linear-gradient(115deg, transparent 44%, rgba(31,79,209,0.85) 44%, rgba(31,79,209,0.85) 52%, transparent 52%),
    linear-gradient(115deg, transparent 55%, rgba(245,196,0,0.35) 55%, rgba(245,196,0,0.35) 56.5%, transparent 56.5%);
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 6%, #000 30%);
          mask-image: linear-gradient(to bottom, transparent 6%, #000 30%);
}
.hero__p {
  position: absolute;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,0.55));
  animation: heroRise 0.9s cubic-bezier(.2,.7,.2,1) both;
}
.hero__p--main {
  height: 135vh;
  min-height: 900px;
  top: max(13vh, 104px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 0 28px rgba(245,196,0,0.18)) drop-shadow(0 30px 40px rgba(0,0,0,0.6));
}
.hero__p--left, .hero__p--right {
  height: 116vh;
  min-height: 770px;
  top: max(19vh, 150px);
  z-index: 2;
  filter: brightness(0.55) saturate(0.85) drop-shadow(0 20px 30px rgba(0,0,0,0.5));
  animation-delay: 0.15s;
}
.hero__p--left  { left: 4%; }
.hero__p--right { right: 2%; }
.hero__script {
  position: absolute;
  top: 16%;
  right: 2%;
  z-index: 1;
  font-family: var(--font-script);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1.05;
  color: var(--gold);
  transform: rotate(-10deg);
  text-align: right;
  opacity: 0.95;
}
@keyframes heroRise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero__p { animation: none; } }

@media (max-width: 1080px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { position: relative; width: 100%; right: auto; height: 78vh; min-height: 520px; order: 2; margin-top: var(--space-4); }
  .hero__p--main { height: 120vh; min-height: 720px; top: 0; }
  .hero__p--left, .hero__p--right { height: 100vh; min-height: 600px; top: 7%; }
  .hero__p--left { left: 2%; } .hero__p--right { right: 0; }
  .hero__script { display: none; }
  .hero__glow { right: 50%; transform: translateX(50%); top: auto; bottom: 0; }
}
@media (max-width: 560px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero__visual { height: 62vh; min-height: 420px; }
  .hero__p--main { height: 100vh; min-height: 600px; }
  .hero__p--left, .hero__p--right { height: 82vh; min-height: 490px; }
  .hero__p--left { left: -14%; } .hero__p--right { right: -14%; }
}

/* ---------- Next match strip ---------- */
.next-match {
  background: linear-gradient(100deg, var(--navy-900), var(--royal-600));
  color: var(--white);
  padding: var(--space-7) 0;
}
.next-match__head { text-align: center; margin-bottom: var(--space-6); }
.next-match__head .eyebrow { justify-content: center; }
.next-match__card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  flex-wrap: wrap;
  text-align: center;
}
.next-match__team { display: flex; flex-direction: column; align-items: center; gap: 0.6em; }
.next-match__team img { height: 64px; }
.next-match__team-name { font-family: var(--font-sub); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.next-match__vs { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.next-match__opponent-shield {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sub); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.next-match__details { font-family: var(--font-sub); }
.next-match__details .dt { font-size: 1.1rem; margin-bottom: 0.2em; }
.next-match__details .venue { opacity: 0.75; font-size: 0.9rem; }
.next-match__cta { display: flex; flex-direction: column; gap: 0.6em; align-items: center; }
.next-match__believe { font-family: var(--font-sub); letter-spacing: 0.12em; font-size: 0.78rem; color: var(--gold); }

/* ---------- About preview / two-col image sections ---------- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split-section__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.split-section__media img { width: 100%; height: 100%; object-fit: cover; }
.split-section--reverse { direction: rtl; }
.split-section--reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .split-section--reverse { direction: ltr; }
}

/* ---------- Brand philosophy ---------- */
.philosophy { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: var(--space-8); align-items: center; }
.philosophy__eagle { display: flex; justify-content: center; }
.philosophy__eagle img { width: 100%; max-width: 340px; opacity: 0.92; }
.philosophy__script { font-family: var(--font-script); font-size: 2rem; color: var(--gold); text-align: right; margin-bottom: var(--space-6); }
@media (max-width: 900px) {
  .philosophy { grid-template-columns: 1fr; }
  .philosophy__script { text-align: center; }
}

/* ---------- Squad carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; width: 240px; }
.carousel__arrows { display: flex; gap: var(--space-3); justify-content: flex-end; margin-bottom: var(--space-4); }
.carousel__arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: all var(--transition-fast);
}
.section--white .carousel__arrow, .section--mist .carousel__arrow { border-color: var(--line-dark); color: var(--ink); }
.carousel__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@media (max-width: 720px) { .carousel__arrows { display: none; } }

/* ---------- Movement / stand-with-punjab ---------- */
.movement { text-align: center; }
.movement__lines { max-width: 640px; margin: 0 auto var(--space-6); font-size: var(--body-lg); opacity: 0.85; }
.movement__lines p { margin-bottom: 0.4em; }

/* ---------- Team page ---------- */
.captain-feature {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-8);
  align-items: center;
}
.captain-feature__media {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-sub);
  text-align: center;
  padding: var(--space-5);
}
@media (max-width: 900px) { .captain-feature { grid-template-columns: 1fr; } }

/* Jersey hotspot graphic (sponsors page) */
.hotspot-jersey { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.hotspot-jersey img { width: 100%; display: block; }
.hotspot {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(245,196,0,0.3);
  cursor: pointer;
}
.hotspot__label {
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sub);
  font-size: 0.75rem;
  padding: 0.3em 0.7em;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.hotspot:hover .hotspot__label, .hotspot:focus .hotspot__label { opacity: 1; }

/* Gallery masonry */
.masonry {
  columns: 4 220px;
  column-gap: var(--space-4);
}
.masonry__item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.masonry__item img { width: 100%; display: block; transition: transform var(--transition-slow); }
.masonry__item:hover img { transform: scale(1.05); }
.masonry__item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(7,15,36,0.85), transparent);
  color: var(--white);
  font-size: 0.8rem;
  padding: 1.4em 0.8em 0.6em;
  font-family: var(--font-sub);
}
@media (max-width: 720px) { .masonry { columns: 2 160px; } }

/* Product placeholder SVG cards */
.product-placeholder { width: 100%; height: 100%; }

/* News featured */
.news-featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
}
.news-featured__media { aspect-ratio: 4/3; }
.news-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.news-featured__body { padding: var(--space-7); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .news-featured { grid-template-columns: 1fr; } }

/* Contact hero + form section */
.contact-form-section { padding: var(--space-8) 0; }
.map-placeholder {
  border-radius: var(--radius-md);
  background: var(--mist);
  border: 1.5px dashed var(--line-dark);
  padding: var(--space-8);
  text-align: center;
  color: rgba(11,26,58,0.6);
  font-family: var(--font-sub);
}

/* Owners grid */
.owners-grid { display: flex; justify-content: center; gap: var(--space-8); flex-wrap: wrap; }

/* Responsive base helpers */
@media (max-width: 720px) {
  .container { padding: 0 1rem; }
}
