/* ==========================================================================
   Hockey Inner City — site styles
   Brand colours and fonts are set once here, at the top.
   ========================================================================== */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffc700;
  --red: #e30102;
  --green: #0bb70d;
  --blue: #3d9be9;
  --grey: #575757;
  --card-grey: #dcdcdc;
  --black: #000;
  --white: #fff;

  --font-heading: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Roboto", Arial, Helvetica, sans-serif;
  --font-text: "Open Sans", Arial, Helvetica, sans-serif;
  --font-brand: "Montserrat", "Arial Black", Arial, sans-serif;

  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
}
.skip-link:focus { top: 8px; }

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.band-yellow { background: var(--yellow); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: 1265px;
  margin: 0 auto;
  padding: 0 30px 0 143px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--black);
  margin-right: auto;
}

/* The logo hangs below the yellow bar, as on the original site */
.brand-logo {
  position: absolute;
  left: 143px;
  top: 0;
  width: 100px;
  height: 115px;
}

.brand-name {
  margin-left: 107px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 14px 12px;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.is-current { color: var(--red); }

.nav-toggle { display: none; }

.social { display: flex; align-items: center; }
.social a { display: block; color: var(--white); transition: opacity 0.2s; }
.social a:hover { opacity: 0.7; }
.social svg { display: block; fill: currentColor; }

.social-header { gap: 10px; }
.social-header svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Hero slideshow
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: clamp(250px, 64.4vw, 815px);
  overflow: hidden;
  background: var(--black);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0s;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-title {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(26px, 4.75vw, 60px);
  line-height: 1.4;
  color: var(--white);
  text-align: center;
}

/* Coloured block behind each line of a slide title */
.hl {
  padding: 0 0.28em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-green { background: var(--green); }
.hl-yellow { background: var(--yellow); }
.hl-red { background: var(--red); }

.pos-top    { top: 6%;  left: 5%; right: 5%; }
.pos-bottom { bottom: 11%; left: 5%; right: 5%; }
.pos-right  { top: 50%; right: 17%; transform: translateY(-50%); }

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 80px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.slide-arrow svg {
  width: 30px;
  height: 59px;
  fill: #d6d4d4;
  transition: fill 0.2s;
}
.slide-arrow:hover svg { fill: var(--white); }
.slide-prev { left: 40px; }
.slide-next { right: 40px; }
.slide-next svg { transform: scaleX(-1); }

.slide-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.slide-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  position: relative;
}
/* Larger invisible tap area around each dot */
.slide-dot::after { content: ""; position: absolute; inset: -8px; }
.slide-dot[aria-current="true"] { background: var(--white); }

/* --------------------------------------------------------------------------
   Shared section headings
   -------------------------------------------------------------------------- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 41px);
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: center;
  color: var(--grey);
}
.section-title-large {
  font-size: clamp(38px, 6.4vw, 56px);
  letter-spacing: 0;
}
.section-title-black {
  color: var(--black);
  text-transform: none;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about { padding: 110px 20px 56px; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 970px;
  margin: 0 auto;
}

.about-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 40px 42px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
}
.about-text h2 {
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
}
.about-text p + p { margin-top: 23px; }
.about-text .about-cta { margin-top: 46px; }

/* --------------------------------------------------------------------------
   What parents say
   -------------------------------------------------------------------------- */
.parents { padding-top: 40px; }
.parents .section-title { margin-bottom: 11px; }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 30px 80px;
  text-align: center;
  border-left: 1px solid var(--black);
}
.quote:last-child { border-right: 1px solid var(--black); }

.quote-mark {
  height: 72px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 190px;
  line-height: 1;
  color: var(--red);
}

.quote figcaption {
  margin-top: 62px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
}

.quote blockquote {
  max-width: 272px;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   6 principles
   -------------------------------------------------------------------------- */
.principles { padding: 120px 20px 100px; }

.principles-inner {
  max-width: 970px;
  margin: 0 auto;
}

.principles-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: stretch;
  min-height: 160px;
  border: 5px solid var(--black);
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;
}

.principles-number {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 5px solid var(--black);
  font-size: 107px;
  line-height: 1;
  color: var(--red);
}

.principles-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  font-size: clamp(26px, 4.4vw, 41px);
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  color: var(--grey);
}

.principles-list {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 32px 20px;
  margin: 62px 0 0 160px;
  padding: 50px 30px;
  border: 5px solid var(--black);
  background: var(--white);
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Meet the team
   -------------------------------------------------------------------------- */
.team { padding: 80px 11px 48px; }

.rule {
  display: block;
  width: 30px;
  height: 3px;
  margin: 4px auto 0;
  background: var(--black);
}

.team-quote {
  margin: 50px 0 72px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 18px;
  text-align: center;
}

.members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
  max-width: 1243px;
  margin: 0 auto;
}

.member { background: var(--card-grey); }

.member img {
  width: 100%;
  aspect-ratio: 400 / 431;
  object-fit: cover;
  background: #c8c8c8;
}

.member-caption { padding: 28px 31px 30px; }

.member-role {
  font-size: 16px;
  line-height: 1.3;
}

.member-name {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Contact + map
   -------------------------------------------------------------------------- */
.contact {
  padding: 50px 20px 22px;
  background: var(--red);
  color: var(--white);
  text-align: center;
  letter-spacing: 0.05em;
}

.contact h2 {
  margin-bottom: 30px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 41px);
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.contact p { margin-bottom: 14px; }
.contact p:last-child { margin-bottom: 0; }
.contact a { overflow-wrap: anywhere; }
.contact a.plain { text-decoration: none; letter-spacing: 0; }
.contact a.plain:hover { text-decoration: underline; }

.contact address {
  margin-bottom: 14px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.35;
}
.address-label { display: block; }

.map iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  background: #e8e8e8;
}

/* --------------------------------------------------------------------------
   What happens next
   -------------------------------------------------------------------------- */
.next { padding: 62px 20px 30px; }

.next-intro {
  margin-top: 22px;
  font-size: 18px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1010px;
  margin: 72px auto 0;
}

.step { text-align: center; }

.step-icon {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-icon-red { color: var(--red); }
.step-icon-blue { color: var(--blue); }
.step-icon-green { color: var(--green); }

.step h3 {
  margin-top: 22px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
}

.step p {
  max-width: 225px;
  margin: 20px auto 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 18px 20px 26px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  max-width: 910px;
  margin: 0 auto;
  color: var(--white);
  letter-spacing: 0.03em;
}
.footer-inner a { overflow-wrap: anywhere; }

.social-footer { gap: 12px; }
.social-footer svg { width: 34px; height: 34px; }

/* --------------------------------------------------------------------------
   Smaller screens
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .header-inner { padding-left: 30px; gap: 16px; }
  .brand-logo { left: 30px; }
  .slide-prev { left: 10px; }
  .slide-next { right: 10px; }
}

@media (max-width: 1040px) {
  .brand-name { font-size: 21px; }
  .site-nav a { padding: 14px 8px; font-size: 16px; }
  .social-header { display: none; }
}

@media (max-width: 860px) {
  :root { --header-height: 64px; }

  .header-inner { padding: 0 16px; }
  .brand-logo { left: 16px; width: 70px; height: 80px; }
  .brand-name { margin-left: 78px; font-size: 18px; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--black);
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -8px; }
  .nav-toggle-bars::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 0 12px;
    background: var(--yellow);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 20px; font-size: 18px; text-align: right; }

  .pos-right { right: 6%; }
  .slide-arrow { width: 40px; height: 60px; padding: 6px; }
  .slide-arrow svg { width: 20px; height: 40px; }

  .about { padding: 80px 20px 40px; }
  .about-inner { grid-template-columns: 1fr; max-width: 485px; }
  .about-text { padding: 36px 28px 40px; }
  .about-text h2 { font-size: 28px; }

  .quotes { grid-template-columns: 1fr; }
  .quote { padding: 50px 24px 56px; border-right: 1px solid var(--black); }
  .quote + .quote { border-top: 1px solid var(--black); }
  .quote figcaption { margin-top: 44px; }

  .principles { padding: 70px 20px 60px; }
  .principles-head { grid-template-columns: 110px 1fr; min-height: 120px; }
  .principles-number { font-size: 80px; }
  .principles-list {
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
    margin: 36px 0 0;
    padding: 36px 16px;
  }

  .team { padding-top: 60px; }
  .team-quote { margin: 36px 0 44px; }
  .members { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .member-caption { padding: 18px 16px 20px; }

  .map iframe { height: 380px; }

  .steps { grid-template-columns: 1fr; gap: 44px; margin-top: 48px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 13px; letter-spacing: 0.06em; }
  .members { grid-template-columns: 1fr; max-width: 400px; }
  .principles-list { font-size: 17px; }
  .quote blockquote { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .slide.is-active { transition: none; }
}
