/* ==========================================================================
   Rotary Cricket League — RCL 2026
   "Live Scoreboard" design direction
   Ink navy #0C1220 · Scoreboard amber #FFB020 · Off-white #F1EFE7
   Field green #1E6E4E · Crimson #C2331B
   ========================================================================== */

:root {
  --ink: #0c1220;
  --ink-soft: #141b2c;
  --amber: #ffb020;
  --amber-deep: #d98d0a;
  --off-white: #f1efe7;
  --paper: #fbfaf5;
  --field: #1e6e4e;
  --crimson: #c2331b;
  --line: rgba(241, 239, 231, 0.12);
  --text-soft: #8891a3;
  --radius: 4px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", "Inter", sans-serif;
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, .display-font {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

img { max-width: 100%; }

/* ---------- Scroll reveal ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-up.delay-1.is-visible { transition-delay: 0.05s; }
.reveal-up.delay-2.is-visible { transition-delay: 0.15s; }
.reveal-up.delay-3.is-visible { transition-delay: 0.25s; }
.reveal-up.delay-4.is-visible { transition-delay: 0.35s; }

/* ---------- Top scoreboard strip ---------- */
.topbar {
  background: var(--ink);
  color: var(--off-white);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
}
.topbar-item i { color: var(--amber); margin-right: 6px; }

/* ---------- Navbar ---------- */
.main-nav {
  background: var(--ink);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.main-nav.scrolled {
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex: none;
}
.brand-text {
  font-family: "Bebas Neue", sans-serif;
  color: #fff;
  line-height: 1.05;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: 0.6px;
  display: flex;
  flex-direction: column;
}
.brand-text small {
  font-family: "Space Mono", monospace;
  text-transform: none;
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.btn-nav-cta {
  background: var(--amber);
  color: var(--ink) !important;
  border-radius: var(--radius);
  padding: 9px 22px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn-nav-cta:hover { background: var(--amber-deep); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero-section { position: relative; background: var(--ink); }
.hero-media { position: relative; width: 100%;  overflow: hidden; }
.banner-img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block; animation: fadeIn 1.2s ease-in-out; filter: saturate(1.05);
}
.hero-fade {
  position: absolute; inset: 0;
}
.hero-content { position: relative; text-align: left; color: #fff; padding: 30px 0 64px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: var(--ink);
  padding: 6px 16px; border-radius: var(--radius);
  font-family: "Space Mono", monospace;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 58px; line-height: 1.02; margin-bottom: 18px; max-width: 780px;
  text-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.hero-content h1 span { color: var(--amber); }
.hero-sub {
  max-width: 560px; margin: 0 0 30px; font-size: 16.5px;
  color: rgba(241,239,231,0.78); line-height: 1.65;
  font-family: "Inter", sans-serif;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.btn-cta.register-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: var(--ink);
  padding: 15px 34px; border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 0 var(--amber-deep);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-cta.register-btn:hover {
  transform: translateY(3px);
  box-shadow: 0 7px 0 var(--amber-deep);
  color: var(--ink);
}
.btn-cta.register-btn.pulse { animation: pulseGlow 2.4s infinite; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px;
  border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 3px;
  font-family: "Inter", sans-serif;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn-ghost:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- Marquee: scoreboard LED ticker ---------- */
.marquee-wrap {
  background: repeating-linear-gradient(45deg, var(--field), var(--field) 10px, #195e41 10px, #195e41 20px);
  color: var(--off-white); overflow: hidden; white-space: nowrap; padding: 11px 0;
  font-family: "Space Mono", monospace; font-size: 13px; letter-spacing: 1.5px;
  border-top: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
}
.marquee-track { display: inline-block; padding-left: 100%; animation: marquee 24s linear infinite; }
.marquee-track span { margin: 0 18px; text-transform: uppercase; }
.marquee-track .dot { color: var(--amber); }

/* ---------- Sections shared ---------- */
.section { padding: 90px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--crimson); font-weight: 700; font-family: "Space Mono", monospace;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--crimson); display: inline-block; }
.eyebrow-light { color: var(--amber); }
.eyebrow-light::before { background: var(--amber); }
.section-title {
  font-size: 40px; color: rgb(0, 0, 0); margin-bottom: 20px; line-height: 1.08;
}
.section-title.text-white { color: #fff; }
.section-text {
  color: #ffffff; font-size: 16px; line-height: 1.8; margin-bottom: 16px;
  font-family: "Inter", sans-serif;
}
.link-arrow {
  color: var(--field); font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Space Mono", monospace; font-size: 13.5px; text-transform: uppercase;
}
.link-arrow:hover { color: var(--crimson); }

/* ---------- About / snapshot: scoreboard tiles ---------- */
.about-section { background: var(--paper); }
.snapshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; }
.snapshot-card {
  background: var(--ink); padding: 30px 22px; text-align: left; transition: background 0.3s ease;
}
.snapshot-card:hover { background: var(--ink-soft); }
.snapshot-card i { font-size: 22px; color: var(--amber); margin-bottom: 14px; display: block; }
.snapshot-card h3 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.snapshot-card p { font-size: 13px; color: var(--text-soft); margin: 0; font-family: "Inter", sans-serif; line-height: 1.5; }

/* ---------- Seam divider -> scoreline rule ---------- */
.seam-divider {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 26px, transparent 26px 40px);
}

/* ---------- Format / feature cards ---------- */
.format-section { background: var(--ink); }
.feature-card {
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 24px; height: 100%; color: #fff;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 24px; width: 34px; height: 3px; background: var(--amber);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--amber); background: var(--ink-soft); }
.feature-icon {
  width: 50px; height: 50px; border-radius: var(--radius); background: rgba(255,176,32,0.1);
  color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 19px; margin: 14px 0 18px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-soft); line-height: 1.65; margin: 0; font-family: "Inter", sans-serif; }

/* ---------- Poster showcase ---------- */
.showcase-section { background: var(--ink-soft); }
.poster-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform 0.35s ease, border-color 0.3s ease; position: relative;
}
.poster-card:hover { transform: translateY(-6px); border-color: var(--amber); }
.poster-card img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Steps ---------- */
.steps-section { background: var(--paper); }
.step-card {
  background: var(--off-white); border-radius: var(--radius-lg); padding: 36px 26px; height: 100%;
  position: relative; border-left: 3px solid var(--field);
}
.step-number {
  font-family: "Bebas Neue", sans-serif; font-size: 50px; color: var(--field); line-height: 1; margin-bottom: 14px;
  opacity: 0.85;
}
.step-card h3 {
  font-size: 17px; color: var(--ink); margin-bottom: 10px; text-transform: none;
  font-family: "Inter", sans-serif; font-weight: 700;
}
.step-card p { color: #52596b; font-size: 14.5px; line-height: 1.65; margin: 0; font-family: "Inter", sans-serif; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--crimson); padding: 58px 0; position: relative; overflow: hidden; }
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 12px, transparent 12px 24px);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; color: #fff; }
.cta-inner h2 { font-size: 32px; margin-bottom: 8px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,0.88); font-size: 15px; font-family: "Inter", sans-serif; }
.cta-inner .register-btn { background: var(--amber); color: var(--ink); box-shadow: 0 10px 0 var(--amber-deep); }
.cta-inner .register-btn:hover { color: var(--ink); }

/* ---------- Organizer strip ---------- */
.organizer-strip { background: var(--paper); padding: 44px 0; border-top: 1px solid rgba(12,18,32,0.08); border-bottom: 1px solid rgba(12,18,32,0.08); }
.organizer-inner { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.organizer-badge { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 14.5px; font-family: "Inter", sans-serif; }
.organizer-badge i { color: var(--field); font-size: 18px; }
.organizer-badge small { display: block; font-weight: 500; color: #7b8394; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; font-family: "Space Mono", monospace; }
.organizer-divider { width: 1px; height: 30px; background: rgba(12,18,32,0.15); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--paper); }
.faq-accordion .accordion-item { border: none; border-bottom: 1px solid rgba(12,18,32,0.12); background: transparent; }
.faq-accordion .accordion-button {
  font-weight: 700; color: var(--ink); background: transparent; box-shadow: none;
  padding: 22px 8px; font-size: 16px; font-family: "Inter", sans-serif;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--crimson); }
.faq-accordion .accordion-button::after { filter: none; }
.faq-accordion .accordion-body { color: #52596b; padding: 0 8px 26px; font-size: 15px; line-height: 1.75; font-family: "Inter", sans-serif; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); position: relative; border-top: 3px solid var(--amber); }
.footer-brand {
  font-family: "Bebas Neue", sans-serif; font-size: 24px; letter-spacing: 0.6px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.footer-links a { font-size: 13.5px; font-family: "Inter", sans-serif; }
.footer-cta { padding: 13px 30px; font-size: 14.5px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; padding: 12px 16px; background: rgba(12,18,32,0.95); backdrop-filter: blur(6px); border-top: 2px solid var(--amber); }
.sticky-cta .register-btn { justify-content: center; padding: 13px 20px; font-size: 14.5px; box-shadow: none; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 90px; width: 46px; height: 46px; border-radius: var(--radius);
  border: none; background: var(--amber); color: var(--ink); font-size: 16px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 997;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber-deep); }

/* ---------- Popup ---------- */
.popup-overlay {
  display: none; position: fixed; inset: 0; background: rgba(12,18,32,0.82); z-index: 1050;
  align-items: center; justify-content: center; padding: 20px;
}
.popup-content {
  background: var(--paper); border-radius: var(--radius-lg); max-width: 420px; width: 100%;
  padding: 36px 30px; text-align: center; position: relative; animation: fadeIn 0.3s ease-in-out;
  border-top: 4px solid var(--amber);
}
.popup-content h2 {
  font-size: 20px; color: var(--ink); margin-bottom: 14px; text-transform: none;
  font-family: "Inter", sans-serif; font-weight: 800;
}
.popup-content h2 i { color: var(--crimson); margin-right: 8px; }
.popup-content p { color: #52596b; font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; font-family: "Inter", sans-serif; }
.popup-content button:not(.close-btn) {
  background: var(--amber); color: var(--ink); border: none; padding: 13px 28px; border-radius: var(--radius);
  font-weight: 800; font-size: 14.5px; text-transform: uppercase; letter-spacing: 0.4px; width: 100%; cursor: pointer;
  box-shadow: 0 8px 0 var(--amber-deep); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.popup-content button:not(.close-btn):hover { transform: translateY(3px); box-shadow: 0 5px 0 var(--amber-deep); }
.close-btn { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: #8891a3; cursor: pointer; }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulseGlow {
  0% { box-shadow: 0 10px 0 var(--amber-deep), 0 0 0 0 rgba(255,176,32,0.5); }
  70% { box-shadow: 0 10px 0 var(--amber-deep), 0 0 0 14px rgba(255,176,32,0); }
  100% { box-shadow: 0 10px 0 var(--amber-deep), 0 0 0 0 rgba(255,176,32,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 40px; }
  .section { padding: 64px 0; }
}
@media (max-width: 768px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .hero-media { max-height: 420px; }
  .hero-content { text-align: left; }
  .hero-content h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .cta-inner { justify-content: center; text-align: center; }
  .snapshot-grid { grid-template-columns: 1fr 1fr; }
  .popup-content { padding: 26px 20px; font-size: 14px; }
  .popup-content h2 { font-size: 17px; }
  .close-btn { font-size: 22px; top: 6px; right: 10px; }
  body { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
