/* ==========================================================================
   Blacktown Spartans Football Club — shared stylesheet
   Brand orange #FF6600 taken directly from the crest SVG.
   Change a value here and every page updates at once.
   ========================================================================== */

/* --------------------------------------------------------------------------
   LICENSED WEBFONTS -- uncomment once the club holds web licences and the
   files are in assets/fonts/. Everything else picks them up automatically.

@font-face {
  font-family: 'Geometric 415 Blk BT';
  src: url('fonts/geometric-415-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gill Sans MT';
  src: url('fonts/gill-sans-mt.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gill Sans MT';
  src: url('fonts/gill-sans-mt-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
-------------------------------------------------------------------------- */

:root {
  --orange:      #FF6600;
  --orange-dark: #D95400;
  --black:       #0E0E0E;
  --off-black:   #171717;
  --charcoal:    #2A2A2A;
  --grey:        #6E6E6E;
  --light-grey:  #EFEFED;
  --white:       #FFFFFF;

  /* --- CLUB TYPEFACES -----------------------------------------------
     Titles:  Geometric 415 Black  (Bitstream cut of Dwiggins' Metro)
     Body:    Gill Sans MT         (Monotype)

     Both are commercial licences. The stacks below use the real font
     whenever a visitor has it installed locally -- which covers most
     Windows/Office desktops for Gill Sans MT -- and fall back to the
     closest free web-served faces otherwise. To serve the genuine
     fonts to every visitor the club needs WEBFONT licences; drop the
     files into assets/fonts/ and uncomment the @font-face block below.
     ------------------------------------------------------------------ */
  --font-display: 'Geometric 415 Blk BT', 'Geometr415 Blk BT', 'Geometric 415', 'Metro Nova', 'Poppins', 'Futura', 'Century Gothic', sans-serif;
  --font-body: 'Gill Sans MT', 'Gill Sans', 'GillSans', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--off-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.4em;
  font-weight: 900;
}
h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--grey { background: var(--light-grey); }

.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; max-width: 62ch; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  margin: 0 0 0.75em;
}

.rule-heading { position: relative; padding-bottom: 0.35em; }
.rule-heading::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 68px; height: 5px; background: var(--orange);
}
.rule-heading--center::after { left: 50%; transform: translateX(-50%); }
.center { text-align: center; }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 30px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--white); color: var(--black); }
.btn--dark { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--charcoal); border-color: var(--charcoal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* -------------------------------------------------------------- header */

.skip-link {
  position: absolute; left: -9999px;
  background: var(--orange); color: var(--black);
  padding: 10px 18px; z-index: 200;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
}
.skip-link:focus { left: 12px; top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black); color: var(--white);
  border-bottom: 3px solid var(--orange);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px; position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 52px; height: 52px; }
.brand__name {
  font-family: var(--font-display); text-transform: uppercase;
  font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: .02em;
}
.brand__name span {
  display: block; font-size: .76rem; letter-spacing: .22em;
  color: var(--orange); font-weight: 600; margin-top: 3px;
}

.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .09em; font-size: 1.02rem; font-weight: 600;
  text-decoration: none; padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] {
  border-bottom-color: var(--orange); color: var(--orange);
}
.nav-toggle {
  display: none; background: none; border: 2px solid rgba(255,255,255,.35);
  color: var(--white); font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .12em; font-size: .95rem;
  padding: 9px 16px; cursor: pointer;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; min-height: clamp(460px, 72vh, 720px);
  display: flex; align-items: flex-end;
  background: var(--black); color: var(--white); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; background: linear-gradient(135deg, var(--charcoal) 0%, var(--black) 100%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 45%, rgba(0,0,0,.2) 100%);
}
.hero__inner { position: relative; padding-bottom: clamp(40px, 7vw, 78px); padding-top: 80px; width: 100%; }
.hero h1 { margin-bottom: .15em; }
.hero h1 em { font-style: normal; color: var(--orange); display: block; }
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 54ch;
  margin-bottom: 1.6em; color: rgba(255,255,255,.9);
}
.hero--inner { min-height: clamp(280px, 40vh, 400px); }
.hero--inner h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
.hero--inner .hero__inner { padding-top: 60px; }

/* --------------------------------------------------------- placeholders
   Each .placeholder is a slot waiting on a real photograph. Replace the
   div with an <img> and the layout holds. The label says what belongs. */

.placeholder {
  position: relative;
  background: repeating-linear-gradient(45deg, var(--charcoal) 0 14px, #232323 14px 28px);
  display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.72);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .14em; font-size: .85rem;
  padding: 24px; min-height: 220px;
  border: 1px dashed rgba(255,255,255,.22);
}
.placeholder::before {
  content: 'Photo'; position: absolute; top: 10px; left: 10px;
  background: var(--orange); color: var(--black);
  font-size: .65rem; letter-spacing: .16em; padding: 3px 8px;
}
.placeholder--hero { min-height: 100%; height: 100%; border: none; }

/* -------------------------------------------------------------- photos
   Crops live in assets/img/photos. Each <img> carries an inline
   object-position (its focal point) so players stay in frame when the
   browser trims the picture to fit a wide desktop or a narrow phone. */

.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media img { width: 100%; height: auto; }
.team-card__media, .feature__media { position: relative; }
.photo-credit {
  position: absolute; right: 10px; bottom: 8px; z-index: 2;
  font-size: .7rem; letter-spacing: .04em; color: rgba(255,255,255,.8);
  text-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none;
}

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

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.team-card {
  position: relative; background: var(--off-black); color: var(--white);
  display: flex; flex-direction: column; overflow: hidden;
}
.team-card__media { position: relative; aspect-ratio: 4 / 3; }
.team-card__media .placeholder { min-height: 100%; height: 100%; }
.team-card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.team-card__comp {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .16em; font-size: .82rem; color: var(--orange); margin-bottom: 8px;
}
.team-card h3 { margin-bottom: .5em; }
.team-card p { color: rgba(255,255,255,.78); font-size: .97rem; }
.team-card .btn-row { margin-top: auto; padding-top: 14px; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.feature__media .placeholder { min-height: 380px; }
.feature--flip .feature__media { order: 2; }

.info-card {
  background: var(--white); padding: 30px;
  border-top: 5px solid var(--orange);
  box-shadow: 0 2px 18px rgba(0,0,0,.07); height: 100%;
}
.section--dark .info-card { background: var(--off-black); color: var(--white); box-shadow: none; }
.info-card h3 { margin-bottom: .45em; }
.info-card p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- social */

.social-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px; padding: 32px; text-decoration: none;
  color: var(--white); background: var(--off-black);
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .18s ease, border-color .18s ease;
}
.social-tile:hover, .social-tile:focus-visible { transform: translateY(-4px); border-color: var(--orange); }
.social-tile__label {
  font-family: var(--font-display); letter-spacing: .18em;
  font-size: .82rem; color: var(--orange); text-transform: uppercase;
}
.social-tile__handle {
  font-family: var(--font-display); font-size: 1.6rem;
  text-transform: uppercase; letter-spacing: .04em; margin: 10px 0;
}
.social-tile__cta {
  font-family: var(--font-display); letter-spacing: .12em;
  font-size: .9rem; text-transform: uppercase;
}
.feed-slot {
  border: 1px dashed rgba(255,255,255,.28); padding: 44px 24px; text-align: center;
  color: rgba(255,255,255,.6); font-family: var(--font-display);
  letter-spacing: .12em; text-transform: uppercase; font-size: .85rem;
}

/* ------------------------------------------------------------- partners */

.partner-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.partner-slot {
  flex: 0 1 calc((100% - 6 * 16px) / 7); min-width: 140px;
  aspect-ratio: 3 / 2; min-height: 0; overflow: hidden; display: block;
  background: var(--white); border: 1px solid #DDD; color: var(--grey);
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; padding: 12px 14px; text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.partner-slot img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 720px) {
  .partner-slot { flex-basis: calc((100% - 16px) / 2); }
}
a.partner-slot:hover, a.partner-slot:focus-visible {
  border-color: var(--orange); box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* ------------------------------------------------------------------ CTA */

.cta-band { background: var(--orange); color: var(--black); padding: clamp(48px, 7vw, 82px) 0; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { max-width: 60ch; font-size: 1.08rem; }

/* -------------------------------------------------------------- contact */

.detail-list { list-style: none; margin: 0; padding: 0; }
.detail-list li { margin-bottom: 22px; }
.detail-list strong {
  display: block; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .82rem; color: var(--orange); margin-bottom: 3px;
}
.map-slot {
  min-height: 340px; background: var(--light-grey); display: grid; place-items: center;
  color: var(--grey); font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .14em; font-size: .85rem; border: 1px dashed #C4C4C4;
  text-align: center; padding: 20px;
}

/* ---------------------------------------------------- social feeds + map */

.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.feed__label {
  font-family: var(--font-display); letter-spacing: .16em; font-size: .8rem;
  text-transform: uppercase; color: var(--orange); margin: 0 0 12px;
}
.feed__frame { background: var(--white); overflow: hidden; border-top: 5px solid var(--orange); }
.feed__frame iframe { display: block; width: 100%; border: 0; }
.feed__frame--ig iframe { height: 640px; }
.feed__frame--fb { display: flex; justify-content: center; }
.feed__frame--fb iframe { max-width: 500px; height: 640px; }

.map-embed { position: relative; min-height: 380px; border-top: 5px solid var(--orange); background: var(--light-grey); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .feeds { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .feed__frame--ig iframe, .feed__frame--fb iframe { height: 560px; }
  .map-embed { min-height: 320px; }
}

/* --------------------------------------------------------------- footer */

.site-footer { background: var(--black); color: rgba(255,255,255,.82); padding: 64px 0 28px; font-size: .95rem; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; letter-spacing: .14em; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .feature, .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1); background: var(--black);
    border-bottom: 3px solid var(--orange); padding: 8px 0 20px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-top: 1px solid rgba(255,255,255,.12); }
  .nav a { display: block; padding: 14px var(--gutter); border-bottom: none; }
  .nav a:hover, .nav a[aria-current="page"] { background: var(--charcoal); border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  body { font-size: 16px; }
  .brand__name { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
