/* =============================================
   PHUFC – Perth Hills United FC
   Stylesheet
   ============================================= */

/* ── Self-hosted fonts ────────────────────── */
/* Files are in the /fonts/ folder alongside the HTML files */

@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/bebas-neue-v16-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:    #1a3d2b;
  --green-bright:  #2ecc71;
  --green-text:    #1f9d55;
  --green-mid:     #27ae60;
  --amber:         #f0a500;
  --dark:          #111a14;
  --off-white:     #f7f9f6;
  --white:         #ffffff;
  --muted:         #5a7060;
  --border:        #d4e0d7;
  --shadow:        0 4px 24px rgba(26,61,43,0.12);

  --font-display:  'Bebas Neue', sans-serif;
  --font-body:     'Inter', sans-serif;

  --nav-h:         68px;
  --radius:        8px;
  --radius-lg:     16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--off-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-text); }
ul { list-style: none; }

/* ── Accessible keyboard focus ────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Typography ───────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; letter-spacing: 0.06em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-text);
  display: block;
  margin-bottom: 0.5rem;
}

.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.7; }

/* ── Layout ───────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section--tight { padding: 3rem 0; }
.section--dark {
  background: var(--green-deep);
  color: var(--white);
}
.section--dark .eyebrow { color: var(--amber); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,0.85); }

.section--mid {
  background: var(--dark);
  color: var(--white);
}
.section--mid .eyebrow { color: var(--green-text); }

.section--accent {
  background: var(--green-bright);
  color: var(--dark);
}
.section--accent .eyebrow { color: var(--green-deep); }
.section--accent h2 { color: var(--dark); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* ── Navigation ───────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--dark);
  height: var(--nav-h);
  border-bottom: 3px solid var(--green-bright);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--green-deep);
  padding: 3px;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}
.nav__logo-text span { color: var(--green-text); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover, .nav__links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav__cta {
  background: var(--green-bright) !important;
  color: var(--dark) !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
}
.nav__cta:hover { background: var(--green-mid) !important; color: var(--white) !important; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--dark);
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
  z-index: 99;
  overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a.active, .nav__mobile a:hover { color: var(--green-text); }
.nav__mobile .nav__cta-mobile {
  margin-top: 1.5rem;
  background: var(--green-bright);
  color: var(--dark) !important;
  text-align: center;
  border-radius: var(--radius);
  padding: 1rem !important;
  font-weight: 700;
  border: none;
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* Hamburger open state */
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-bright);
  color: var(--dark);
  border-color: var(--green-bright);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-amber {
  background: var(--amber);
  color: var(--dark);
  border-color: var(--amber);
}
.btn-amber:hover { background: #d4920a; border-color: #d4920a; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ── Cards ────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(26,61,43,0.18); }

.card--green {
  background: var(--green-deep);
  color: var(--white);
}
.card--green h3, .card--green h4 { color: var(--white); }
.card--green .eyebrow { color: var(--green-text); }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.card--green .card__icon { background: rgba(46,204,113,0.15); }

/* ── Hero (shared base) ───────────────────── */
.hero {
  position: relative;
  background: var(--green-deep);
  color: var(--white);
  overflow: hidden;
  padding: 5rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(46,204,113,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Diagonal stripe accent */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green-bright) 0%, var(--amber) 50%, var(--green-bright) 100%);
}

.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { color: var(--green-text); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 0.75rem; }
.hero__title { color: var(--white); margin-bottom: 1.25rem; }
.hero__subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 600px; margin-bottom: 2rem; line-height: 1.7; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page hero (for inner pages) */
.page-hero {
  background: var(--green-deep);
  padding: 4rem 0 3rem;
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green-bright), var(--amber), var(--green-bright));
}
.page-hero__eyebrow { color: var(--green-text); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 0.5rem; margin-top: 1rem;}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.05rem; max-width: 580px; }

/* ── Divider stripe ───────────────────────── */
.stripe-divider {
  height: 5px;
  background: linear-gradient(90deg, var(--green-bright) 0%, var(--amber) 50%, var(--green-bright) 100%);
}

/* ── Stats bar ────────────────────────────── */
.stats-bar {
  background: var(--dark);
  padding: 2rem 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stats-bar__item {
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--green-text);
  line-height: 1;
  display: block;
}
.stats-bar__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 0.3rem;
}
@media (max-width: 640px) {
  .stats-bar__grid { grid-template-columns: 1fr 1fr; }
  .stats-bar__item:nth-child(2) { border-right: none; }
  .stats-bar__item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stats-bar__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── Fee table ────────────────────────────── */
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table thead tr {
  background: var(--green-deep);
  color: var(--white);
}
.fee-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.fee-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.fee-table tbody tr:hover { background: rgba(46,204,113,0.06); }
.fee-table tbody td {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}
.fee-table tbody td:last-child {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 1.05rem;
  text-align: right;
}
.fee-table__wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Mobile fee table */
@media (max-width: 600px) {
  .fee-table thead { display: none; }
  .fee-table tbody tr { display: block; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
  .fee-table tbody td { display: block; padding: 0.25rem 0; border: none; }
  .fee-table tbody td:last-child { text-align: left; color: var(--green-text); }
  .fee-table tbody td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.1rem;
  }
}

/* ── Team cards ───────────────────────────── */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(26,61,43,0.2); }

.team-card__header {
  background: var(--green-deep);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.team-card__badge {
  width: 44px; height: 44px;
  background: var(--green-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.team-card__title { color: var(--white); font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.04em; }
.team-card__subtitle { color: rgba(255,255,255,0.85); font-size: 0.8rem; margin-top: 0.1rem; }

.team-card__body { padding: 1.25rem 1.5rem; flex: 1; }
.team-card__body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }

.team-card__links { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.team-card__links a {
  font-size: 0.85rem;
  color: var(--green-mid);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, padding-left 0.2s;
}
.team-card__links a:hover { color: var(--green-deep); padding-left: 0.4rem; }
.team-card__links a::before { content: '→'; font-size: 0.8rem; }

/* ── Sponsor grid ─────────────────────────── */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.sponsor-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.sponsor-item:hover { transform: translateY(-3px); }
.sponsor-item img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(0.3); transition: filter 0.2s; }
.sponsor-item:hover img { filter: grayscale(0); }
.sponsor-item--name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) { .sponsor-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px) { .sponsor-grid { grid-template-columns: repeat(2,1fr); } }

/* ── Contact ──────────────────────────────── */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: var(--green-bright);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text { flex: 1; }
.contact-info-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.contact-info-value { font-size: 0.95rem; color: var(--dark); }
.contact-info-value a { color: var(--dark); }
.contact-info-value a:hover { color: var(--green-mid); }

/* Simple contact form */
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--muted);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.18);
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* ── Kit list ─────────────────────────────── */
.kit-list { list-style: none; }
.kit-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.kit-list li:last-child { border-bottom: none; }
.kit-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--green-bright);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Info banner ──────────────────────────── */
.info-banner {
  background: rgba(240,165,0,0.12);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-banner__icon { font-size: 1.4rem; flex-shrink: 0; }
.info-banner__text { font-size: 0.9rem; color: var(--dark); }
.info-banner__text strong { color: var(--green-deep); }

/* ── Footer ───────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand { }
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.footer__logo span { color: var(--green-text); }
.footer__tagline { font-size: 0.88rem; line-height: 1.6; }

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--green-text); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.8rem; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.footer__social a:hover { color: var(--white); border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Map embed ────────────────────────────── */
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 300px;
}
.map-embed iframe { width: 100%; height: 100%; border: none; }

/* ── Photo placeholders ───────────────────── */
/*
  Replace each placeholder with a real <img> or CSS background-image.
  Filename suggestions are printed inside each placeholder as a guide.
*/
.photo-placeholder {
  background: linear-gradient(135deg, #1a3d2b 0%, #0d2318 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(46,204,113,0.04) 10px,
    rgba(46,204,113,0.04) 11px
  );
}
.photo-placeholder__icon {
  font-size: 2.5rem;
  opacity: 0.5;
  position: relative;
}
.photo-placeholder__label {
  position: relative;
  line-height: 1.5;
}
.photo-placeholder__filename {
  position: relative;
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(46,204,113,0.15);
  color: var(--green-text);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(46,204,113,0.25);
}

/* Hero with background photo */
.hero--photo {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
}
@media (max-width: 640px) {
  .hero--photo {
    min-height: 420px;
    background-position: center center;
  }
}
.hero--photo .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17,26,20,0.88) 0%,
    rgba(26,61,43,0.72) 50%,
    rgba(17,26,20,0.55) 100%
  );
  z-index: 0;
}
.hero--photo .hero__content { position: relative; z-index: 1; }

/* Photo beside text */
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photo strip (3-up) */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* ── Content link underlines ──────────────── */
/* Standard prose/content links get an underline so they don't rely on
   colour alone. Navigation, buttons, and card-style links keep their
   own explicit styling (set inline or via .btn/.card etc). */
.lead a,
.info-banner__text a,
.kit-list a,
.contact-info-value a,
p a,
li a:not(.footer__links a):not(.nav__links a):not(.nav__mobile a):not(.team-card__links a) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* ── Utility ──────────────────────────────── */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-green { color: var(--green-text) !important; }
.text-amber { color: var(--amber) !important; }
.text-muted { color: var(--muted) !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-row { display: flex; flex-direction: column; gap: 1rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header p { margin-top: 0.75rem; max-width: 620px; }
.section-header--center p { margin-left: auto; margin-right: auto; }

/* ── Animations ───────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .fade-up.visible { opacity: 1; transform: none; }
}
/* ── Animation fix ────────────────────────── */
/*
  Override: fade-up elements must always be visible by default.
  The .js-loaded class (added by main.js) gates the animation,
  so if JS is slow or blocked, content is still readable.
*/
.fade-up {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: no-preference) {
  .js-loaded .fade-up {
    opacity: 0 !important;
    transform: translateY(24px) !important;
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js-loaded .fade-up.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Hero background crossfade ────────────── */
.hero--photo {
  transition: background-image 0s;  /* JS handles timing; this just keeps it smooth */
}
/* The actual fade is done via a pseudo-element overlay that fades in/out */
.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}
.hero--photo.fading::before {
  opacity: 1;
}

/* ── Sponsor item overrides ───────────────── */
.sponsor-item {
  padding: 1.25rem;
  min-height: 130px;
}
.sponsor-item img {
  max-height: none;
  width: 100%;
  height: 90px;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.2s, transform 0.2s;
}
.sponsor-item:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}
/* Wrap the whole card in an <a> tag */
a.sponsor-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
a.sponsor-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,61,43,0.18);
}

/* ── Kit carousel ─────────────────────────── */
.kit-carousel {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}
/* Fade edges */
.kit-carousel::before,
.kit-carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.kit-carousel::before {
  left: 0;
  background: linear-gradient(to right, #111a14, transparent);
}
.kit-carousel::after {
  right: 0;
  background: linear-gradient(to left, #111a14, transparent);
}

.kit-carousel__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: kit-scroll 30s linear infinite;
}
.kit-carousel:hover .kit-carousel__track {
  animation-play-state: paused;
}

.kit-carousel__item {
  flex-shrink: 0;
  width: 180px;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.kit-carousel__item:hover {
  transform: scale(1.04);
}
.kit-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes kit-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .kit-carousel__item { width: 140px; height: 170px; }
}

/* ── team carousel ─────────────────────────── */
.team-carousel {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}
/* Fade edges */
.team-carousel::before,
.team-carousel::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.team-carousel::before {
  left: 0;
  background: linear-gradient(to right, #111a14, transparent);
}
.team-carousel::after {
  right: 0;
  background: linear-gradient(to left, #111a14, transparent);
}

.team-carousel__track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: team-scroll 30s linear infinite;
}
.team-carousel:hover .team-carousel__track {
  animation-play-state: paused;
}

.team-carousel__item {
  flex-shrink: 0;
  width: 100%;
  max-width: 800px;
  height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.team-carousel__item:hover {
  transform: scale(1.04);
}
.team-carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes team-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .team-carousel__item { width: 140px; height: 170px; }
}

/* ── H&A registration links hover ────────── */
.btn-register {
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.btn-register:hover {
  border-color: #2ecc71 !important;
  color: #1a3d2b !important;
  background: rgba(46,204,113,0.08) !important;
  transform: translateY(-2px);
}
.btn-register:hover span {
  color: #1a3d2b !important;
}

/* ── Nav responsive overrides ─────────────── */
/* Tighten links at mid-sizes before hamburger kicks in */
@media (max-width: 1200px) {
  .nav__links { gap: 0; }
  .nav__links a { padding: 0.45rem 0.55rem; font-size: 0.75rem; letter-spacing: 0.06em; }
  .nav__cta { padding: 0.45rem 0.85rem !important; font-size: 0.75rem !important; }
}

/* Switch to hamburger at 1024px — enough room for 7 items to breathe above this */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* Override the old 820px rule since we've moved it up */
@media (min-width: 1025px) {
  .nav__links { display: flex; }
  .nav__hamburger { display: none; }
}

/* ── Page hero with action image ──────────── */
.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.page-hero__image {
  position: relative;
  width: 260px;
  height: 220px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.page-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 2s ease-in-out;
}
.page-hero__image img.hero-img-back  { opacity: 1; }
.page-hero__image img.hero-img-front { opacity: 0; }
.page-hero__image img.hero-img-front.visible { opacity: 1; }

@media (max-width: 768px) {
  .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero__image { display: none; }
}

/* ── Page hero full background image ─────── */
.page-hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
  position: relative;
}
.page-hero--photo .page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17,26,20,0.88) 0%,
    rgba(26,61,43,0.72) 50%,
    rgba(17,26,20,0.45) 100%
  );
  z-index: 0;
}
.page-hero--photo .container {
  position: relative;
  z-index: 1;
}
/* Crossfade overlay div */
.page-hero--photo .page-hero__crossfade {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

/* ── Page hero with full background photo ── */
.page-hero--photo {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 4rem 0 3.5rem;
}
.page-hero--photo .page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17,26,20,0.88) 0%,
    rgba(26,61,43,0.75) 50%,
    rgba(17,26,20,0.55) 100%
  );
  z-index: 0;
}
.page-hero--photo .container {
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .page-hero--photo { min-height: 260px; background-position: center center; }
}
