/* ================================================================
   EAST COAST CRICKET CLUB — css/about.css
   Styles for about.html
   ================================================================ */

/* ── PAGE HERO ───────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  height: clamp(200px, 28vh, 320px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.page-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 70%, transparent 100%);
}
.page-hero__title {
  position: relative;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: clamp(1.2rem, 3vw, 2.5rem);
  animation: fadeUp .7s ease both;
}
.page-hero__title span { color: var(--gold); }

/* ── BREADCRUMB ──────────────────────────────────────────────────── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--light);
  padding: .6rem 0;
  font-family: 'Oswald', sans-serif;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mid);
}
.breadcrumb a          { color: var(--green); }
.breadcrumb a:hover    { text-decoration: underline; }
.breadcrumb__sep       { margin: 0 .5rem; color: var(--light); }

/* ── ABOUT INTRO ─────────────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-intro__text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700;
  color: var(--green-d); text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 1.2rem;
}
.about-intro__text h2 span { color: var(--gold); }
.about-intro__text p   { font-size: 1rem; line-height: 1.75; color: var(--mid); margin-bottom: 1rem; }
.about-intro__text p:last-child { margin-bottom: 0; }
.about-intro__text a   { color: var(--green); text-decoration: underline; }
.about-intro__img      { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-intro__img img  { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.about-intro__img:hover img { transform: scale(1.03); }

/* ── COMPACT MANAGEMENT ──────────────────────────────────────────── */
.mgmt-label {
  font-family: 'Oswald', sans-serif;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid);
  margin: 1.4rem 0 .8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--light);
}
.mgmt-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.mgmt-item {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.mgmt-item img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--light);
  flex-shrink: 0;
}
.mgmt-name {
  font-family: 'Oswald', sans-serif;
  font-size: .88rem; font-weight: 600;
  color: var(--dark);
  margin-right: .4rem;
}
.mgmt-role {
  font-family: 'Oswald', sans-serif;
  font-size: .75rem; color: var(--mid);
  letter-spacing: .04em;
}
.mgmt-role::before { content: '· '; }

/* ── HISTORY SECTION ─────────────────────────────────────────────── */
.history { background: var(--white); }

/* ── YEAR NAVIGATOR ──────────────────────────────────────────────── */
.year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.year-nav__arrow {
  background: none;
  border: 2px solid var(--light);
  color: var(--mid);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--trans), color var(--trans), background var(--trans);
  flex-shrink: 0;
}
.year-nav__arrow:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.year-nav__arrow:disabled             { opacity: .3; cursor: default; }

/* Year pill tabs */
.year-tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.year-tab {
  font-family: 'Oswald', sans-serif;
  font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .45rem 1.2rem;
  border: 2px solid var(--light);
  color: var(--mid); background: none;
  cursor: pointer; border-radius: 2px;
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.year-tab:hover  { border-color: var(--green); color: var(--green); }
.year-tab.active { border-color: var(--gold); background: var(--gold); color: var(--dark); }

/* ── SEASON PANEL ────────────────────────────────────────────────── */
.season-panel { display: none; animation: fadeUp .4s ease both; }
.season-panel.active { display: block; }

.season-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

/* Summary */
.season-summary h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem; font-weight: 600; color: var(--green-d);
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: .8rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--gold);
}
.season-summary p { font-size: .97rem; line-height: 1.75; color: var(--mid); margin-bottom: 1rem; }

/* Highlights */
.highlights        { margin-top: 1.5rem; }
.highlights h3     {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--green-d);
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: .8rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--gold);
}
.highlight-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .6rem 0; border-bottom: 1px solid var(--light);
  font-size: .9rem; line-height: 1.5; color: var(--mid);
}
.highlight-item::before { content: '🏏'; flex-shrink: 0; margin-top: .1rem; }

/* Stat cards */
.stat-cards        { display: flex; flex-direction: column; gap: 1.2rem; min-width: 220px; }
.stat-card         { background: var(--cream); border: 1px solid var(--light); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.stat-card__title  { font-family: 'Oswald', sans-serif; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: .8rem; }
.stat-card table   { font-size: .85rem; }
.stat-card tbody tr           { border-bottom: 1px solid var(--light); }
.stat-card tbody td           { padding: .35rem .5rem; white-space: nowrap; }
.stat-card tbody td:first-child { color: var(--mid); }
.stat-card tbody td:last-child  { font-weight: 600; color: var(--dark); text-align: right; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .about-intro        { grid-template-columns: 1fr; }
  .about-intro__img   { order: -1; aspect-ratio: 16/9; }
  .season-layout      { grid-template-columns: 1fr; }
  .stat-cards         { flex-direction: row; flex-wrap: wrap; }
  .stat-card          { flex: 1; min-width: 160px; }
}
@media (max-width: 480px) {
  .stat-cards { flex-direction: column; }
}
