/* =========================================================
   KiCK – kicksport.co.uk
   One stylesheet for the whole site.

   Layout is mobile-first: the base styles are for phones,
   then two breakpoints add the tablet and desktop changes:
     @media (min-width: 760px)   tablet and up
     @media (min-width: 1100px)  desktop

   Note: never use text-transform: uppercase on text that
   contains "KiCK" – it turns the lowercase i into a capital.
   ========================================================= */


/* ---------- 1. Colours, fonts and sizes ---------- */
:root {
  /* Brand colours */
  --green-dark: #0E3B22;      /* "Our approach" band, theme colour */
  --charcoal: #1E2522;        /* main text, footer */
  --text-muted: #3A433F;      /* body copy */
  --off-white: #FAF7F0;       /* page background */
  --white: #FFFFFF;
  --border: #E7E1D3;          /* card borders */
  --lavender: #E7DEF8;        /* "Every session is free" band */
  --lavender-text: #2B1640;   /* text on lavender */
  --link-green: #00702A;      /* links and email underline */

  /* Rainbow stripe colours (from the logo) */
  --red: #E40303;
  --orange: #FF8C00;
  --yellow: #FFED00;
  --green: #008026;
  --blue: #004DFF;
  --purple: #750787;

  /* Fonts */
  --font-heading: 'Saira', 'Arial Black', sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;
  --font-languages: 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
  --font-arabic: 'Noto Sans Arabic', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(20px, 5vw, 80px);
  --section-space: clamp(80px, 9vw, 128px);
}


/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

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

h1, h2, h3, p {
  margin: 0;
}

a {
  color: var(--link-green);
}

a:hover {
  color: #00521F;
}

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

/* Hidden "Skip to content" link for keyboard users */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 700;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(800px + 2 * var(--gutter));
}


/* ---------- 3. Rainbow stripe ---------- */
.stripe {
  display: flex;
  width: 108px;
  height: 8px;
  margin-left: 4px;
  transform: skewX(-32deg);
}

.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: var(--orange); }
.stripe span:nth-child(3) { background: var(--yellow); }
.stripe span:nth-child(4) { background: var(--green); }
.stripe span:nth-child(5) { background: var(--blue); }
.stripe span:nth-child(6) { background: var(--purple); }

.stripe--large {
  width: 168px;
  height: 12px;
}


/* ---------- 4. Button ---------- */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--white);
  color: var(--charcoal);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.button:hover {
  color: var(--charcoal);
  background: var(--lavender);
}


/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  color: var(--white);
  /* Dark overlay keeps white text readable on the grass photo */
  background:
    linear-gradient(180deg, rgba(8, 32, 18, 0.64) 0%, rgba(8, 32, 18, 0.44) 50%, rgba(8, 32, 18, 0.72) 100%),
    url('images/grass.webp') center / cover no-repeat,
    var(--green-dark);
}

.hero__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
}

.hero__logo img {
  width: auto;
  height: 44px;
}

/* Menu links are hidden on phones to keep the hero clean */
.hero__nav {
  display: none;
}

.hero__nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__nav a:hover {
  color: var(--lavender);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  /* Bottom padding leaves room for the balls on smaller screens */
  padding-top: 64px;
  padding-bottom: 330px;
}

.hero__content > * {
  max-width: 660px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(54px, 6.4vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero__intro {
  font-size: 18px;
  line-height: 1.55;
  max-width: 560px;
}

/* Balls – phone layout: tennis bottom-left, football cropped bottom-right */
.hero__tennis,
.hero__football {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero__tennis {
  left: 20px;
  bottom: 40px;
  width: 170px;
}

.hero__football {
  right: -70px;
  bottom: -96px;
  width: 300px;
}


/* ---------- 6. "Every session is free" band ---------- */
.free {
  background: var(--lavender);
  color: var(--lavender-text);
  padding: 48px 0;
}

.free__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.free__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
}


/* ---------- 7. Shared section styles ---------- */
.section {
  padding: var(--section-space) 0;
}

.section--flush-top {
  padding-top: 0;
}

.section--white {
  background: var(--white);
}

.section--centred {
  text-align: center;
}

.section--centred .stripe {
  margin-inline: auto;
}

.section__title {
  margin: 24px 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 0.98;
  text-transform: uppercase;
}

.section__title--centred {
  margin-top: 0;
  text-align: center;
}

.section__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
}

.section__lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
}

.emphasis {
  font-weight: 700;
  color: var(--charcoal);
}


/* ---------- 8. What we do cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.card__icon {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.card__icon svg {
  width: 50%;
  height: 50%;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__icon--blue   { background: var(--blue); }
.card__icon--green  { background: var(--green); }
.card__icon--purple { background: var(--purple); }
.card__icon--red    { background: var(--red); }

.card__title {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
  text-transform: uppercase;
}

.card p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
}


/* ---------- 9. Our approach ---------- */
.approach {
  padding: var(--section-space) 0;
  background: var(--green-dark);
  color: var(--white);
}

.approach__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 80px;
}

.approach__heading,
.approach__body {
  flex: 1 1 420px;
}

.approach__heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.approach__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
}

.approach__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #E6EFE9;
}


/* ---------- 10. Languages ---------- */
.languages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.languages li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 18px 10px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.languages__native {
  font-family: var(--font-languages);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--charcoal);
}

.languages__native--arabic {
  font-family: var(--font-arabic);
}

.languages__english {
  font-size: 15px;
  color: #4A524E;
}


/* ---------- 11. Contact ---------- */
.contact__email {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 48px);
  line-height: 1.2;
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--link-green);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}

.contact__email:hover {
  color: var(--link-green);
}


/* ---------- 12. Footer ---------- */
.footer {
  padding: 40px 0;
  background: var(--charcoal);
  color: #C9D0CC;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer__logo {
  width: auto;
  height: 36px;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: var(--white);
  text-transform: uppercase;
}

.footer__copyright {
  font-size: 15px;
}


/* =========================================================
   Tablet and up (760px+)
   ========================================================= */
@media (min-width: 760px) {

  .hero__logo img {
    height: 56px;
  }

  .hero__bar {
    padding-top: 32px;
  }

  .hero__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
  }

  .hero__content {
    gap: 28px;
    padding-top: 96px;
    padding-bottom: 400px;
  }

  .stripe {
    width: 132px;
    height: 10px;
  }

  .stripe--large {
    width: 216px;
    height: 14px;
  }

  .hero__intro {
    font-size: 21px;
  }

  .button {
    min-height: 56px;
    padding: 0 32px;
    font-size: 18px;
  }

  .hero__tennis {
    left: auto;
    right: 380px;
    bottom: 120px;
    width: 220px;
  }

  .hero__football {
    right: -100px;
    bottom: -140px;
    width: 460px;
  }

  .free {
    padding: 64px 0;
  }

  .free__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 64px;
  }

  .free__title {
    flex: 1 1 480px;
  }

  .free__text {
    flex: 1 1 320px;
    font-size: 21px;
    line-height: 1.55;
  }

  .section__body,
  .section__lead,
  .approach__body {
    font-size: 21px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .languages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .footer__logo {
    height: 40px;
  }

  .footer__tagline {
    font-size: 22px;
  }
}


/* =========================================================
   Desktop (1100px+)
   ========================================================= */
@media (min-width: 1100px) {

  /* Text sits on the left; the balls sit beside it on the right */
  .hero__content {
    padding-bottom: 140px;
  }

  .hero__tennis {
    right: 278px;
    bottom: 210px;
    width: 255px;
  }

  .hero__football {
    right: -120px;
    bottom: -170px;
    width: 580px;
  }

  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card {
    flex-direction: column;
    gap: 16px;
    padding: 32px 28px;
    border-radius: 20px;
  }

  .card__icon {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .card__title {
    margin-bottom: 10px;
    font-size: 26px;
  }

  .card p {
    font-size: 18px;
    line-height: 1.55;
  }

  .languages {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .languages li {
    min-height: 112px;
    padding: 24px 12px;
    border-radius: 16px;
  }

  .languages__native {
    font-size: 24px;
  }

  .languages__english {
    font-size: 16px;
  }
}
