/* ==========================================================================
   Inner City Club Football — site styles
   Mobile-first, no framework dependency. Palette derived from the club crest.
   ========================================================================== */

:root {
  --ink: #16150f;
  --ink-muted: #4a473d;
  --gold: #c9a227;
  --gold-deep: #8a6d1a;
  --black: #0d0d0c;
  --white: #ffffff;
  --bg: #ffffff;
  --surface: #ffffff;
  --border: rgba(201, 162, 39, 0.3);
  --input-border: #8c887a;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1140px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(13, 13, 12, 0.08), 0 8px 24px rgba(13, 13, 12, 0.06);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}

/* ---- Reset / base ------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 var(--space-2);
}

ul,
ol {
  margin: 0 0 var(--space-2);
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

strong {
  color: var(--ink);
}

/* ---- Focus states (WCAG 2.4.7) ----------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Utilities ----------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-2);
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: var(--space-2);
  background: var(--gold);
  color: var(--black);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---- Buttons -------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
  min-height: 44px;
}

.button--gold {
  background: var(--gold);
  color: var(--black);
}

.button--gold:hover {
  background: #b6911e;
  color: var(--black);
}

.button--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button--outline:hover {
  background: rgba(22, 21, 15, 0.08);
  color: var(--ink);
}

.button--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.button--dark:hover {
  background: var(--ink);
  color: var(--white);
}

/* ---- Skip target / layout -------------------------------------------------- */

main {
  display: block;
}

.section {
  padding-block: var(--space-5);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-heading {
  position: relative;
  max-width: 46rem;
  margin-bottom: var(--space-4);
  padding-top: 1.1rem;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

.section-heading p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  color: var(--gold-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

/* ---- Site header / navigation --------------------------------------------- */

.site-header {
  background: var(--white);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold-deep);
  box-shadow: 0 1px 4px rgba(13, 13, 12, 0.06);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--gold-deep);
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--gold-deep);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.has-js .nav-toggle {
  display: inline-flex;
}

.nav-toggle__icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="false"] .icon-close {
  display: none;
}

.primary-nav[hidden] {
  display: none;
}

.primary-nav {
  width: 100%;
  padding-block: var(--space-2);
}

.primary-nav__list {
  list-style: none;
  margin: 0 0 var(--space-2);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.primary-nav__list > li > a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.75rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}

.primary-nav__list > li > a:hover,
.dropdown-toggle:hover {
  color: var(--gold-deep);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dropdown-toggle__caret {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.15s ease;
}

.dropdown-toggle[aria-expanded="true"] .dropdown-toggle__caret {
  transform: rotate(180deg);
}

.dropdown-menu[hidden] {
  display: none;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--space-2);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.5rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
}

.dropdown-menu a:hover {
  color: var(--gold-deep);
}

.nav-cta {
  display: inline-flex;
}

@media (min-width: 900px) {
  .site-header__bar {
    padding-block: 0.75rem;
  }

  .has-js .nav-toggle {
    display: none;
  }

  .primary-nav,
  .primary-nav[hidden] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    width: auto;
    padding-block: 0;
  }

  .primary-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
  }

  .has-dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem;
    box-shadow: var(--shadow);
  }

  .dropdown-menu a {
    border-radius: 6px;
  }

  .dropdown-menu a:hover {
    background: rgba(201, 162, 39, 0.15);
  }
}

/* ---- Hero ------------------------------------------------------------------ */

.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  color: var(--ink);
  padding-block: var(--space-5);
  text-align: center;
}

.hero::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: var(--space-3) auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}

.hero + .section {
  padding-top: var(--space-2);
}

.hero__crest {
  width: 152px;
  height: 152px;
  margin: 0 auto var(--space-3);
  border-radius: 0;
}

.hero h1 {
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.hero__lede {
  max-width: 40rem;
  margin: 0 auto var(--space-4);
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

/* ---- About / media-text split ---------------------------------------------- */

.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse .split__media {
    order: 2;
  }
}

/* ---- Cards / grids ----------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 4px 8px rgba(13, 13, 12, 0.1), 0 14px 28px rgba(13, 13, 12, 0.1);
}

.card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
}

.card__icon-wrap img {
  max-height: 90px;
  width: auto;
  margin-inline: auto;
}

.card h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.card p {
  color: var(--ink-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card a.card__link {
  text-decoration: none;
  font-weight: 700;
  color: var(--gold-deep);
}

.card a.card__link::after {
  content: "";
}

.card--link-wrap {
  color: inherit;
  text-decoration: none;
}

/* ---- Timeline (achievements) -------------------------------------------------- */

.timeline-tablist {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.timeline-tab {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.timeline-tab:hover {
  border-color: var(--gold-deep);
  color: var(--ink);
}

.timeline-tab[aria-selected="true"] {
  background: var(--black);
  border-color: var(--black);
  color: var(--gold);
}

.timeline-panels {
  margin-top: var(--space-2);
}

.timeline-panel[hidden] {
  display: none;
}

.timeline-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3);
}

.timeline-panel h3 {
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}

.timeline-panel p {
  color: var(--ink-muted);
}

.timeline-panel p:last-child {
  margin-bottom: 0;
}

/* ---- Address / embeds -------------------------------------------------------- */

.address-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-3);
}

.address-card address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
}

.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-form[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
}

.field .required {
  color: var(--gold-deep);
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__status {
  margin: 0;
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status--success {
  color: #1e5f3a;
  font-weight: 700;
}

.contact-form__status--error {
  color: #8a1f1f;
  font-weight: 700;
}

/* ---- Accordion (COVID team) --------------------------------------------------- */

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) 0.25rem;
  background: transparent;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

.accordion-trigger__caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 0.15s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-trigger__caret {
  transform: rotate(180deg);
}

.accordion-panel[hidden] {
  display: none;
}

.accordion-panel {
  padding: 0 0.25rem var(--space-2);
  color: var(--ink-muted);
}

/* ---- Social links -------------------------------------------------------------- */

.social-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(22, 21, 15, 0.06);
  color: var(--ink);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--black);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---- Footer ---------------------------------------------------------------------- */

.site-footer {
  background: var(--white);
  color: var(--ink-muted);
  padding-block: var(--space-4);
  border-top: 3px solid var(--gold-deep);
}

.site-footer a {
  color: var(--ink);
}

.site-footer a:hover {
  color: var(--gold-deep);
}

.footer-grid {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-grid h2 {
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Policies list ---------------------------------------------------------------- */

.policy-card {
  align-items: center;
}

.policy-card .card__meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Misc content pages ------------------------------------------------------------ */

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: var(--space-2);
}

.prose h2 {
  margin-top: var(--space-4);
}

.prose h3 {
  margin-top: var(--space-3);
}

.legal ol {
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: 0.9rem;
}

.legal ol ol,
.legal ol ul {
  margin-top: 0.6rem;
}
