/* =========================================================
   SMKPL T10 LEAGUE — STYLE SHEET
   Palette pulled from the club's own crest (orange/red/charcoal)
   rather than a generic yellow theme, with cricket-pitch green accents.
   ========================================================= */

:root{
  /* CUSTOMIZE COLORS HERE ------------------------------------------- */
  --clr-primary: #E8621A;      /* SMKPL crest orange */
  --clr-primary-dark: #C24E10; /* hover / pressed state */
  --clr-accent-red: #C0272D;   /* crest red, used sparingly */
  --clr-ink: #201C18;          /* near-black charcoal, main text */
  --clr-ink-soft: #55504A;     /* secondary text */
  --clr-bg: #FBF7F1;           /* warm off-white background */
  --clr-panel: #FFFFFF;
  --clr-line: #E7DFD3;
  --clr-pitch-green: #2F6B45;  /* subtle cricket-ground green accent */
  --clr-cream-badge: #FCEFDD;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;

  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 10px 30px rgba(32,28,24,0.10);
  --shadow-tight: 0 4px 14px rgba(32,28,24,0.08);
  --header-h: 74px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--clr-ink);
  background: var(--clr-bg);
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
h1,h2,h3{ font-family: var(--font-display); text-transform: uppercase; margin:0; letter-spacing:0.02em; }
p{ margin:0; line-height:1.6; color: var(--clr-ink-soft); }
button{ font-family: inherit; cursor:pointer; border:none; }

.section-eyebrow{
  display:inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 10px;
}
.section-eyebrow.light{ color:#FFD9B8; }

/* =============== HEADER =============== */
.site-header{
  position: fixed;
  left:0; right:0; top:0;
  z-index: 500;
  width: 100%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-line);
  height: var(--header-h);
  box-shadow: 0 8px 24px rgba(32,28,24,0.06);
}
.header-inner{
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.brand{ display:flex; align-items:center; gap:12px; line-height:1; }
.brand-logo{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(232,98,26,0.16);
}
.brand-text{ display:flex; flex-direction:column; gap:2px; }
.brand-mark{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight:700;
  color: var(--clr-primary);
  letter-spacing: 0.03em;
}
.brand-sub{
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clr-ink-soft);
}
.main-nav{ display:flex; align-items:center; gap: 32px; }
.main-nav a{
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-ink);
  position:relative;
  padding: 6px 0;
}
.main-nav a:not(.nav-cta)::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .2s ease;
}
.main-nav a:not(.nav-cta):hover::after{ transform: scaleX(1); }

.nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: var(--clr-primary);
  color:#fff !important;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight:600;
  min-width: 150px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 22px rgba(232,98,26,0.24);
}
.nav-cta:hover{ background: var(--clr-primary-dark); transform: translateY(-1px); }

.hamburger{
  display:none;
  width:40px; height:40px;
  background:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.hamburger span{
  width:24px; height:2px; background: var(--clr-ink); border-radius:2px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  top:0; right:0;
  width: min(78vw, 320px);
  height:100vh;
  background: var(--clr-panel);
  z-index: 900;
  padding: 28px 24px 28px;
  display:flex;
  flex-direction:column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -12px 0 30px rgba(0,0,0,0.15);
}
.mobile-menu.open{ transform: translateX(0); }
.mobile-menu-head{
  display:flex;
  align-items:center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--clr-line);
}
.mobile-menu-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.mobile-menu-head span{
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-ink);
}
.mobile-menu a{
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mobile-menu .nav-cta{ text-align:center; }
.menu-backdrop{
  position: fixed; inset:0; background: rgba(20,16,12,0.45);
  z-index: 850; opacity:0; pointer-events:none; transition: opacity .3s ease;
}
.menu-backdrop.open{ opacity:1; pointer-events:auto; }

/* =============== HERO =============== */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding: calc(120px + var(--header-h)) 24px 0;
  color:#fff;
  /* CUSTOMIZE: swap this background image for your own club hero photo */
  background-image:
    linear-gradient(180deg, rgba(20,16,12,0.35), rgba(20,16,12,0.75)),
    url('https://images.unsplash.com/photo-1531415074968-036ba1b575da?q=80&w=1800&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}
.hero-overlay{ display:none; } /* overlay handled via gradient above */

.hero-content{
  max-width: 780px;
  width: min(100%, 780px);
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero-logo-wrap{
  display:flex;
  justify-content:center;
  margin-bottom: 22px;
}
.hero-logo{
  width: clamp(180px, 24vw, 260px);
  height: auto;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,0.22));
}
.hero-eyebrow{
  display:inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #FFD9B8;
  margin-bottom: 18px;
}
.hero h1{
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight:700;
  line-height: 1.02;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.hero-tagline{
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: #FFE3C8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  width: min(100%, 620px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.hero-desc{
  color: #EFE7DC;
  font-size: 1.02rem;
  max-width: 600px;
  width: min(100%, 600px);
  margin: 0 auto 24px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.hero-marquee{
  max-width: 760px;
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
}
.hero-marquee-track{
  display:flex;
  width:max-content;
  gap: 40px;
  animation: marqueeScroll 12s linear infinite;
}
.hero-marquee-track span{
  white-space: nowrap;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFF7ED;
}
@keyframes marqueeScroll{
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom: 60px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  min-width: 176px;
}
.btn-primary{
  background: var(--clr-primary);
  color:#fff;
  box-shadow: 0 8px 22px rgba(232,98,26,0.35);
}
.btn-primary:hover{ background: var(--clr-primary-dark); transform: translateY(-2px); }
.btn-ghost{
  background: rgba(255,255,255,0.08);
  color:#fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-large{ padding: 18px 44px; font-size: 1.05rem; min-width: 220px; }

.hero-stat-strip{
  width:100%;
  max-width: 900px;
  background: rgba(20,16,12,0.55);
  border-top: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px 24px;
  border-radius: 14px 14px 0 0;
  flex-wrap: wrap;
  gap: 8px 0;
}
.stat{ display:flex; flex-direction:column; align-items:center; padding: 0 22px; }
.stat-num{ font-family: var(--font-display); font-size: 1.3rem; font-weight:700; color: #FFD9B8; }
.stat-label{ font-size: 0.7rem; letter-spacing:0.1em; text-transform:uppercase; color:#D8CFC3; margin-top:2px; }
.stat-divider{ width:1px; height:34px; background: rgba(255,255,255,0.2); }

/* =============== SECTION HEAD (shared) =============== */
.section-head{ text-align:center; max-width: 620px; margin: 0 auto 44px; padding: 0 24px; }
.section-head h2, .gallery-panel-head h3{ font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-head p{ font-size: 1rem; }

/* =============== GALLERY =============== */
.gallery-section{ padding: 96px 0 110px; max-width: 1280px; margin: 0 auto; }
.gallery-layout{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 0 24px;
  align-items: start;
}

.year-nav{
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display:flex;
  flex-direction:column;
  gap: 4px;
  background: var(--clr-panel);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-tight);
}
.year-btn{
  background:transparent;
  text-align:left;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--clr-ink-soft);
  transition: background .15s ease, color .15s ease;
}
.year-btn:hover{ background: var(--clr-cream-badge); color: var(--clr-ink); }
.year-btn.active{
  background: var(--clr-primary);
  color:#fff;
  font-weight:600;
}

.gallery-panel-head{ margin-bottom: 26px; }
.gallery-panel-head h3{ color: var(--clr-ink); }
.gallery-panel-head p{ margin-top:6px; }

.photo-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}
.photo-item{
  position: relative;
  border-radius: var(--radius-md);
  overflow:hidden;
  cursor:pointer;
  box-shadow: var(--shadow-tight);
  background: var(--clr-line);
}
.photo-item img{
  width:100%; height:100%; object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}
.photo-item:hover img{ transform: scale(1.06); }
.photo-item::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.45) 100%);
  opacity:0;
  transition: opacity .3s ease;
}
.photo-item:hover::after{ opacity:1; }

/* varied aspect ratios so the grid feels natural, not a boring uniform block */
.photo-item.tall{ grid-row: span 2; }
.photo-item.wide{ grid-column: span 2; }
.photo-item.big{ grid-column: span 2; grid-row: span 2; }

/* =============== LIGHTBOX =============== */
.lightbox{
  position: fixed; inset:0;
  background: rgba(10,8,6,0.94);
  z-index: 1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 30px;
}
.lightbox.open{ display:flex; }
.lb-stage{
  max-width: 90vw;
  max-height: 82vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lb-stage img{
  max-width: 90vw;
  max-height: 82vh;
  width:auto; height:auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lbFade .2s ease;
}
@keyframes lbFade{ from{ opacity:0; transform: scale(0.97);} to{ opacity:1; transform:scale(1);} }

.lb-close{
  position: absolute; top: 22px; right: 26px;
  background: rgba(255,255,255,0.1);
  color:#fff;
  width:44px; height:44px;
  border-radius:50%;
  font-size: 1.6rem;
  line-height:1;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease;
}
.lb-close:hover{ background: rgba(255,255,255,0.22); }

.lb-nav{
  background: rgba(255,255,255,0.1);
  color:#fff;
  width:52px; height:52px;
  border-radius:50%;
  font-size: 1.1rem;
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease;
  flex-shrink:0;
  margin: 0 18px;
}
.lb-nav:hover{ background: rgba(255,255,255,0.22); }

.lb-counter{
  position:absolute;
  bottom: 26px; left:50%; transform: translateX(-50%);
  color: #EFE7DC;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.08);
  padding: 8px 18px;
  border-radius: 999px;
}

/* =============== REGISTER =============== */
.register-section{
  background:
    linear-gradient(160deg, var(--clr-ink) 0%, #33261C 100%);
  padding: 100px 24px;
  text-align:center;
  position: relative;
  overflow:hidden;
}
.register-section::before{
  content:'';
  position:absolute;
  top:-80px; right:-80px;
  width: 320px; height:320px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(232,98,26,0.28), transparent 70%);
}
.register-inner{ max-width: 620px; margin:0 auto; position:relative; z-index:1; }
.register-section h2{ color:#fff; font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: 18px; }
.register-section p{ color:#E4D9CB; font-size: 1.05rem; margin-bottom: 34px; }
.register-note{
  display:block;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #C7B8A6;
  letter-spacing: 0.03em;
}

/* =============== ABOUT =============== */
.about-section{ padding: 100px 24px; background: var(--clr-bg); }
.about-inner{
  max-width: 1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items:center;
}
.about-text h2{ margin-bottom: 20px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.about-text p{ font-size: 1.05rem; }
.about-stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-stat-card{
  background: var(--clr-panel);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align:center;
  box-shadow: var(--shadow-tight);
  border-top: 3px solid var(--clr-pitch-green);
}
.about-stat-card .num{
  display:block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--clr-primary);
}
.about-stat-card .label{
  display:block;
  margin-top: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-ink-soft);
}

/* =============== FOOTER =============== */
.site-footer{ background: var(--clr-ink); color: #D8CFC3; }
.footer-inner{
  max-width: 1180px;
  margin:0 auto;
  padding: 64px 24px 40px;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-mark{ color: var(--clr-primary); }
.footer-brand .brand-sub{ color: #B7ACA0; }
.footer-brand p{ margin-top: 12px; color: #B7ACA0; font-size: 0.9rem; }
.footer-links h4, .footer-social h4{
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-links a, .footer-social a{
  display:block;
  padding: 5px 0;
  color: #C7BCAE;
  font-size: 0.92rem;
  transition: color .2s ease;
}
.footer-links a:hover, .footer-social a:hover{ color: var(--clr-primary); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align:center;
  padding: 20px;
  font-size: 0.82rem;
  color: #9C9184;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 900px){
  .header-inner{ padding: 0 16px; }
  .main-nav{ display:none; }
  .hamburger{ display:flex; }
  .gallery-layout{ grid-template-columns: 1fr; }
  .year-nav{
    position: sticky;
    top: var(--header-h);
    flex-direction: row;
    overflow-x: auto;
    z-index: 50;
    -webkit-overflow-scrolling: touch;
    padding: 8px 6px;
  }
  .year-nav::-webkit-scrollbar{ display:none; }
  .year-btn{ white-space:nowrap; }
  .about-inner{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px){
  .photo-grid{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .photo-item.big{ grid-column: span 2; grid-row: span 2; }
  .photo-item.wide{ grid-column: span 2; }
  .hero{ padding-top: calc(var(--header-h) + 16px); min-height: 100vh; }
  .hero-actions{ flex-direction: column; gap: 14px; align-items: center; }
  .hero-actions .btn{ min-width: 0; width: auto; max-width: 260px; padding-left: 24px; padding-right: 24px; }
  .hero-marquee{ max-width: 100%; padding: 10px 14px; }
  .hero-marquee-track{ gap: 24px; }
  .hero-marquee-track span{ font-size: 0.85rem; }
  .register-section{ padding: 80px 18px; }
  .register-inner{ padding: 0 4px; }
  .about-section{ padding: 80px 18px; }
  .footer-inner{ padding: 48px 18px 24px; }
  .mobile-menu{ width: min(94vw, 320px); }
  .photo-grid{ margin: 0 -10px; }
  .stat{ padding: 0 10px; }
  .lb-nav{ width:42px; height:42px; margin:0 8px; }
}
