/* ============ Calicut Pedallers — Design System ============ */
:root {
  --yellow: #F4D110;
  --yellow-dark: #d8b90c;
  --black: #111111;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --card: #ffffff;
  --text: #1c1c1c;
  --muted: #5f5f5f;
  --border: #e5e5e5;
  --shadow: 0 8px 30px rgba(0, 0, 0, .07);
  --radius: 14px;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-alt: #141414;
  --card: #181818;
  --text: #ececec;
  --muted: #a0a0a0;
  --border: #282828;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  transition: background .3s, color .3s;
}

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.08;
  color: var(--text)
}

h1 {
  font-size: clamp(40px, 6.5vw, 72px)
}

h2 {
  font-size: clamp(30px, 4.5vw, 46px)
}

h3 {
  font-size: 24px
}

h4 {
  font-size: 19px
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--yellow);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

[data-theme="dark"] .kicker {
  color: #111
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px
}

.center {
  text-align: center
}

.center .lead {
  margin: 0 auto
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 18px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase
}

.brand img {
  height: 48px;
  width: auto
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px
}

nav.main-nav>a {
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 0
}

nav.main-nav>a:hover,
nav.main-nav>a.active {
  color: var(--yellow-dark)
}

nav.main-nav>a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px
}

.dropdown {
  position: relative
}

.dropdown>button {
  background: none;
  border: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown .menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
}

.dropdown.open .menu,
.dropdown:hover .menu {
  display: flex
}

.dropdown .menu a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px
}

.dropdown .menu a:hover {
  background: var(--bg-alt);
  color: var(--yellow-dark)
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text);
  cursor: pointer
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform .15s, box-shadow .15s;
}

[data-theme="dark"] .btn {
  background: var(--yellow);
  color: #111
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22)
}

.btn-yellow {
  background: var(--yellow);
  color: #111
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text)
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13.5px;
  border-radius: 8px
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(17, 17, 17, .85) 30%, rgba(17, 17, 17, .4) 70%, rgba(17, 17, 17, .25)),
    url('hero_bg.png') no-repeat center center / cover;
  color: #fff;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 15s infinite
}

.hero-slide:nth-child(1) {
  animation-delay: 0s
}

.hero-slide:nth-child(2) {
  animation-delay: 5s
}

.hero-slide:nth-child(3) {
  animation-delay: 10s
}

@keyframes heroFade {
  0% {
    opacity: 0
  }

  8% {
    opacity: 1
  }

  33% {
    opacity: 1
  }

  41% {
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 70px;
  padding-bottom: 70px;
  width: 100%
}

.hero h1 {
  color: #fff;
  max-width: 760px
}

.hero h1 span {
  color: var(--yellow)
}

.hero p {
  color: #cfcfcf;
  max-width: 620px;
  margin: 18px 0 30px;
  font-size: 17px
}

.hero .btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(100deg, #161616 40%, #222 75%, rgba(244, 209, 16, .35));
  color: #fff;
  padding: 74px 0 58px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 46px solid rgba(244, 209, 16, .18)
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 44px)
}

.page-hero p {
  color: #c9c9c9;
  max-width: 640px;
  margin-top: 12px
}

.breadcrumb {
  font-size: 11px;
  color: #9a9a9a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em
}

.breadcrumb a:hover {
  color: var(--yellow)
}

/* ---------- Sections ---------- */
section {
  padding: 76px 0
}

section.alt {
  background: var(--bg-alt)
}

.section-head {
  margin-bottom: 44px
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 26px
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr)
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow)
}

.card-body {
  padding: 22px
}

.card h3,
.card h4 {
  margin-bottom: 8px
}

.card p {
  color: var(--muted);
  font-size: 14.5px
}

/* photo placeholder */
.ph {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #1d1d1d, #333 60%, #4a4a4a),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(244, 209, 16, .06) 14px 28px);
  background-blend-mode: overlay;
  color: #8b8b8b;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow: hidden;
}

.ph::before {
  content: "🚴";
  font-size: 40px;
  position: absolute;
  opacity: .5
}

.ph:has(img)::before {
  display: none
}

.ph img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ph span {
  position: relative;
  background: rgba(0, 0, 0, .55);
  color: #bbb;
  padding: 4px 12px;
  border-radius: 6px;
  margin-top: 64px
}

.ph.square {
  aspect-ratio: 1
}

.ph.tall {
  aspect-ratio: 3/4
}

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
}

.chip.yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  font-weight: 600
}

.chip.dark {
  background: var(--black);
  border-color: var(--black);
  color: var(--yellow)
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: center
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 16px
}

.stat b {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: var(--yellow-dark);
  display: block;
  line-height: 1
}

[data-theme="dark"] .stat b {
  color: var(--yellow)
}

.stat span {
  font-size: 13.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600
}

/* ---------- Event card meta ---------- */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 14px
}

.meta span::before {
  content: "•";
  color: var(--yellow-dark);
  margin-right: 6px;
  font-weight: 700
}

.event-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--yellow);
  color: #111;
  font-family: var(--font-head);
  font-weight: 800;
  text-align: center;
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.05;
  z-index: 2;
}

.event-date b {
  font-size: 24px;
  display: block
}

.event-date small {
  font-size: 11px;
  letter-spacing: .1em;
  font-weight: 700
}

.card .ph {
  border-radius: 0
}

.card {
  position: relative
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px
}

.filter-bar button {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.filter-bar button.active,
.filter-bar button:hover {
  background: var(--black);
  color: var(--yellow);
  border-color: var(--black)
}

/* ---------- Forms ---------- */
form.stack {
  display: grid;
  gap: 16px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

label {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px
}

input,
select,
textarea {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow-dark)
}

.form-note {
  font-size: 13px;
  color: var(--muted)
}

.form-success {
  color: var(--yellow-dark);
  font-weight: 600;
  font-size: 14.5px;
  min-height: 22px
}

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border)
}

th {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  background: var(--bg-alt)
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 28px
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--yellow);
  border-radius: 2px
}

.timeline li {
  list-style: none;
  position: relative;
  padding: 0 0 26px 18px
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--black);
  border: 3px solid var(--yellow)
}

.timeline b {
  font-family: var(--font-head);
  font-size: 19px;
  text-transform: uppercase
}

.timeline p {
  color: var(--muted);
  font-size: 14.5px
}

/* ---------- FAQ / accordion ---------- */
details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  padding: 0 20px;
  margin-bottom: 12px
}

details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center
}

details summary::after {
  content: "+";
  font-size: 22px;
  color: var(--yellow-dark);
  font-weight: 400
}

details[open] summary::after {
  content: "–"
}

details p {
  padding: 0 0 16px;
  color: var(--muted);
  font-size: 14.5px
}

/* ---------- Gallery / lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px
}

.gallery-grid .ph {
  cursor: pointer;
  border-radius: 10px;
  aspect-ratio: 1
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: none;
  place-items: center;
  z-index: 300;
  cursor: zoom-out;
}

.lightbox.open {
  display: grid
}

.lightbox .ph {
  width: min(860px, 90vw);
  aspect-ratio: 16/10;
  border-radius: 12px
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--yellow);
  color: #111;
  text-align: center;
  padding: 64px 22px;
}

.cta-band h2 {
  color: #111;
  margin-bottom: 10px
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: #333
}

.cta-band .btn {
  background: #111;
  color: var(--yellow)
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #111;
  color: #bbb;
  padding: 64px 0 0;
  font-size: 14px
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 44px
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 17px
}

.site-footer a {
  display: block;
  padding: 4px 0;
  color: #bbb
}

.site-footer a:hover {
  color: var(--yellow)
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 12px
}

.site-footer .brand img {
  filter: none
}

.footer-bottom {
  border-top: 1px solid #262626;
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: #777
}

.footer-bottom a {
  display: inline;
  padding: 0
}

/* ---------- Utility ---------- */
.mt-1 {
  margin-top: 10px
}

.mt-2 {
  margin-top: 20px
}

.mt-3 {
  margin-top: 32px
}

.mt-4 {
  margin-top: 48px
}

.mb-2 {
  margin-bottom: 20px
}

.flex {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap
}

.spread {
  justify-content: space-between
}

.hidden {
  display: none !important
}

/* ---------- Responsive ---------- */
@media (max-width:960px) {
  .grid-5 {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:720px) {
  nav.main-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px 26px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow);
  }

  nav.main-nav.open {
    display: flex
  }

  nav.main-nav>a {
    padding: 10px 0;
    font-size: 16px
  }

  .dropdown {
    width: 100%
  }

  .dropdown .menu {
    position: static;
    display: flex;
    border: none;
    box-shadow: none;
    padding: 0 0 0 14px;
    background: transparent
  }

  .hamburger {
    display: block
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .hero {
    min-height: 64vh
  }
}

/* .sponsor-hover-wrapper:hover .sponsor-name { opacity: 1 !important; } */

.required-star {
  color: #ef4444 !important;
  margin-left: 3px;
}