@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap");

:root {
  --bg: #f4f8fb;
  --surface: rgba(18, 76, 102, 0.92);
  --text: #1f2937;
  --muted: #5b6678;
  --primary: #124C66;
  --accent: #A91414;
  --border: #d7e3eb;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(8, 24, 40, 0.08);
  --max: 1140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--page-bg-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
}

body.page-home {
  --page-bg-image: url("/assets/media/coaching/coaching_school_sports_athletics.jpeg");
}

body.page-home::before {
  background-position: top center;
  background-size: 100% auto;
  background-repeat: no-repeat;
}

body.page-about {
  --page-bg-image: url("/assets/media/coaching/coaching_builders_warehouse_5aside_soccer.jpeg");
}

body.page-sports {
  --page-bg-image: url("/assets/media/coaching/coaching_school_sports_tag_rugby.jpeg");
}

body.page-roadsafety {
  --page-bg-image: url("/assets/media/foundation/foundation_imperiel_scholar_patrol.jpeg");
}

@media (min-width: 900px) {
  body::before {
    opacity: 0.5;
  }
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }

.site-header {
  background: #fff;
  color: var(--text);
  border-bottom: 4px solid var(--accent);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { font-weight: 700; letter-spacing: 0.02em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.95rem; }
.nav-links a {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--primary);
}
.nav-links a[aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
}

main {
  padding: 2.5rem 0 3rem;
}

.hero + .panel,
.panel + .panel {
  margin-top: 1rem;
}

.hero, .panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
  text-align: center;
}
.hero {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 980px;
  margin-inline: auto;
}
.panel {
  padding: clamp(1.1rem, 2vw, 1.6rem);
  max-width: 980px;
  margin-inline: auto;
}

h1, h2, h3 {
  color: #ffffff;
  margin: 0 0 0.8rem;
  line-height: 1.15;
  font-family: "Poppins", "Open Sans", "Segoe UI", Arial, sans-serif;
  text-align: center;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
p { margin: 0 0 1rem; color: #ffffff; }
ul {
  margin: 0 0 1rem;
  padding-left: 0;
  color: #ffffff;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

li {
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.45rem;
  text-align: center;
  width: fit-content;
}

li::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  position: static;
  margin-top: 0.22rem;
  flex: 0 0 0.85rem;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23A91414'/%3E%3Cpath d='M7 12.5l3.1 3.1L17 8.7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.hero h1 {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p,
.panel p,
.panel ul {
  max-width: 72ch;
}

.hero p {
  margin-left: auto;
  margin-right: auto;
}

.panel p,
.panel ul {
  margin-left: auto;
  margin-right: auto;
}

.panel > h2 {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 0.9rem;
}

.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.button {
  display: inline-block;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
}
.button.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.button.secondary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }

.grid { display: grid; gap: 1rem; }
@media (min-width: 860px) {
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.media-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .media-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .media-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.media-card {
  margin: 0;
  background: rgba(18, 76, 102, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  overflow: hidden;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.media-card figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  color: #ffffff;
}

.partner-grid {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  align-items: stretch;
}

.partner-grid li::before {
  content: none;
}

.partner-tile {
  background: #ffffff;
  border: 1px solid rgba(18, 76, 102, 0.35);
  border-radius: 10px;
  min-height: 120px;
  width: 100%;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo {
  height: 100%;
  max-height: 108px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 7px;
  padding: 0.25rem 0.4rem;
}

.partner-logo-hyundai {
  max-height: 116px;
}

.partner-logo-motus {
  max-height: 76px;
}

.partner-logo-dp {
  max-height: 128px;
}

.partner-logo-vw {
  max-height: 104px;
}

.partner-tile-pending {
  background: rgba(255, 255, 255, 0.12);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}
.site-footer .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 980px) {
  .nav {
    min-height: unset;
    padding: 0.7rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo img {
    height: 60px;
  }

  .nav-links {
    width: 100%;
    gap: 0.55rem;
  }

  .nav-links a {
    padding: 0.42rem 0.78rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 680px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 0.9rem;
  }

  .brand-logo img {
    height: 52px;
  }

  main {
    padding: 2rem 0 2.5rem;
  }

  .hero,
  .panel {
    padding: 1.2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
