/* ==========================================================
   Starter site styles
   Change the colours and fonts here and every page updates.
   ========================================================== */

:root {
  --ink: #1d2a33;        /* main text */
  --deep: #59689D;       /* header, headings, buttons */
  --water: #dfeaef;      /* soft section backgrounds */
  --paper: #fbfcfc;      /* page background */
  --amber: #d9a03f;      /* small highlights */
  --line: #c9d7de;       /* borders */

  --font-head: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --width: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  font-family: var(--font-head);
  color: #59689D;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; color: var(--amber);}

.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  background: #fff; padding: 0.5rem 1rem; z-index: 10;
}

/* ---------- Header and navigation ---------- */

.site-header {
  background: #59689D;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0; padding: 0;
}
.nav-list a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { border-bottom-color: rgba(255,255,255,0.5); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 0.4rem 0.8rem;
  font: inherit;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--deep);
    padding: 0.5rem 1.5rem 1rem;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 14ch;
  margin: 0;
}
.hero-bar {
  width: 6rem; height: 6px;
  background: var(--amber);
  margin-top: 2rem;
}

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-tinted { background: var(--water); }
.section p { max-width: none; text-align: justify; hyphens: auto;}

.page-title {
  padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
}
.page-title h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* Two feature links with pictures */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.feature {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.feature .feature-label {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--deep);
  border-bottom: 2px solid var(--amber);
}
.feature:hover .feature-label { color: var(--ink); }

/* Image placeholder: swap each one for an <img> once you have photos */
.img-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--water);
  border: 1px dashed var(--deep);
  display: grid;
  place-items: center;
  color: var(--deep);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}
.feature img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}
.button:hover { background: var(--ink); }
.button-outline {
  background: transparent;
  color: var(--deep);
  border: 2px solid var(--deep);
}
.button-outline:hover { background: var(--deep); color: #fff; }

/* Sponsor / partner logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.logo-grid .img-placeholder { aspect-ratio: 3 / 2; font-size: 0.85rem; background: #fff; }
.logo-grid img { aspect-ratio: 3 / 2; object-fit: contain; background: #fff; padding: 1rem; }

/* People (team page) */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.person .img-placeholder { aspect-ratio: 1; border-radius: 50%; }
.person img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.person h3 { margin: 1rem 0 0.2rem; }
.person p { margin: 0; color: #4a5b66; }


.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 4rem;
  margin-top: 1rem;
}

.sponsor {
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sponsor:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sponsor .img-placeholder { aspect-ratio: 1; width: 200px; margin: 0 auto; }
.sponsor img { aspect-ratio: 1; object-fit: contain; width: 200px; margin: 0 auto; }
.sponsor h3 { margin: 1rem 0 0.2rem; text-align: center; }
.sponsor p { margin: 0; text-align: justify; }

.tier-gold     { color: #d9a03f; }
.tier-silver   { color: #8a949b; }
.tier-bronze   { color: #a8693a; }
.tier-dinner   { color: #3A86A8; }


/* Events list */
.event-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.event {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.event-date {
  font-family: var(--font-head);
  color: var(--deep);
  font-size: 1.1rem;
}
.event h3 { margin-bottom: 0.3rem; }
.event p { margin: 0; }
@media (max-width: 520px) {
  .event { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #59689D;
  color: #dfe7eb;
  padding: 2rem 0;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer a { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; }

.hero-image {
  padding: 0;
  border-bottom: none;
}
.hero-image img {
  width: 100%;
  height: auto;
}

td { vertical-align: top; }

html { overflow-y: scroll; }

.welcome {
  display: flex;
  align-items: center;
  gap: 48px;
}

.welcome-text {
  flex: 1;
}

.welcome-logo {
  width: 280px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .welcome {
    flex-direction: column;
  }
  .welcome-logo {
    width: 200px;
  }
}

.wrap-wide {
  max-width: 1500px;
}

.welcome-text p {
  max-width: none;
}

