/* Middleton & Overton Sports FC — retail-inspired palette (claret / sky blue on black & light grey) */

:root {
  /* Core — similar energy to WHU shop: black chrome, claret, electric blue */
  --ink: #0a0a0a;
  --ink-soft: #161616;
  --ink-mid: #2a2a2a;
  --claret: #7a1028;
  --claret-bright: #9e1535;
  --claret-deep: #5c0c1e;
  --blue: #00a8e6;
  --blue-bright: #33c4ff;
  --blue-deep: #0086b8;
  --blue-muted: #7cd3f5;
  --surface: #ffffff;
  --surface-shop: #f4f4f4;
  --surface-card: #fafafa;
  --border: #d9d9d9;
  --border-strong: #c4c4c4;
  --text: #1a1a1a;
  --text-muted: #4d4d4d;
  --white: #fff;
  --facebook: #1877f2;
  --instagram: #e4405f;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 8px 28px rgba(0, 0, 0, 0.18);
  --font-heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface-shop);
}

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

a {
  color: var(--claret-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-deep);
}

.wrap {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

/* Header — flat black bar, uppercase condensed nav */
.site-header {
  background: var(--ink);
  color: var(--white);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--claret);
  box-shadow: var(--shadow-deep);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--blue-muted);
}

/* Crest — explicit dimensions override global img { height: auto } */
.brand-badge {
  width: 50px;
  height: 50px;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.hero-badge {
  width: clamp(112px, 26vw, 160px);
  height: clamp(112px, 26vw, 160px);
  max-width: none;
  margin: 0 auto 1.1rem;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.nav-main a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover {
  color: var(--blue-bright);
  border-bottom-color: var(--blue);
}

.nav-main a[aria-current="page"] {
  color: var(--blue-bright);
  border-bottom-color: var(--blue);
}

/* Inner pages (e.g. about.html) */
.page-about-head {
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
}

.page-back {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.page-back a {
  font-weight: 600;
  text-decoration: none;
  color: var(--claret-bright);
}

.page-back a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-about-head .section-title {
  margin-bottom: 1rem;
}

.social-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-header a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--ink-mid);
  border: 1px solid #3a3a3a;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.social-header a:hover {
  background: var(--claret);
  border-color: var(--claret-bright);
  transform: translateY(-1px);
}

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

/* Hero — dark retail banner + blue accent */
.hero {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(2.75rem, 7vw, 4.25rem);
  background: var(--ink-soft);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  border-bottom: 4px solid var(--blue);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(122, 16, 40, 0.35) 0%, transparent 45%),
    linear-gradient(90deg, var(--ink) 0%, var(--ink-soft) 50%, var(--ink) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--claret) 0%, var(--claret-bright) 35%, var(--blue) 65%, var(--blue-bright) 100%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-location {
  margin: 0.75rem 0 1.5rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--blue-muted);
  max-width: 42ch;
  margin-inline: auto;
}

.hero-location .postcode {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s, color 0.12s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--claret);
  color: var(--white);
  border-color: var(--claret-bright);
  box-shadow: 0 4px 14px rgba(122, 16, 40, 0.45);
}

.btn-primary:hover {
  background: var(--claret-bright);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(158, 21, 53, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* Sections */
section {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.section-intro {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* Sponsors */
.sponsors-section {
  background: var(--surface-shop);
  border-bottom: 1px solid var(--border);
}

.sponsors-section .section-lead {
  margin-bottom: 0.25rem;
}

.sponsors-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .sponsors-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.sponsor-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7.75rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sponsor-card:hover {
  border-color: var(--claret);
  box-shadow: 0 4px 20px rgba(122, 16, 40, 0.12);
}

.sponsor-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Uniform logo footprint in every sponsor cell */
.sponsor-logo-area {
  width: 100%;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* MN Coaching — text lockup scaled to same slot height */
.mn-coaching-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: system-ui, "Segoe UI", sans-serif;
  max-height: 100%;
}

.mn-coaching-lockup__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
  background: #111827;
  border-radius: 8px;
}

.mn-coaching-lockup__word {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.sponsor-card--mn:hover .mn-coaching-lockup__mark {
  background: var(--claret);
}

.sponsor-card--mn:hover .mn-coaching-lockup__word {
  color: var(--claret-bright);
}

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

.section-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-lead {
  margin: 0;
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.about-body {
  max-width: 42rem;
  margin: 0 0 1.25rem;
}

.about-standfirst {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--ink);
}

.about-text {
  margin: 0 0 1rem;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-text:last-of-type {
  margin-bottom: 0;
}

.section-lead.about-follow {
  margin-top: 1.35rem;
}

.section-lead.club-address {
  margin-top: 1.15rem;
}

.fa-fulltime-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.35rem;
}

@media (min-width: 900px) {
  .fa-fulltime-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.fa-fulltime-grid .embed-panel {
  margin-top: 0;
}

.embed-panel {
  margin-top: 1.35rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.embed-panel header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: var(--ink);
  color: var(--white);
  border-bottom: 2px solid var(--claret);
}

.embed-panel header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.embed-panel .embed-note {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.9;
}

.embed-frame-wrap {
  position: relative;
  background: var(--surface);
  min-height: 200px;
}

.fa-league-host {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.25rem 1rem 1.5rem;
  overflow-x: auto;
}

.fa-league-host [id^="lrep"] {
  max-width: 100%;
}

.fa-league-host a {
  color: var(--claret-bright);
  font-weight: 600;
}

.fa-league-host a:hover {
  color: var(--blue-deep);
}

.link-external {
  color: var(--blue-bright);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: none;
}

.link-external:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Instagram */
.instagram-block {
  background: var(--surface-shop);
}

.instagram-embed-wrap {
  margin-top: 1.35rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 480px;
}

.instagram-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
}

.instagram-fallback {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Contact */
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-ground {
  margin-top: 1.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 28rem;
}

.contact-ground-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact-ground-address {
  margin: 0 0 0.75rem;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
}

.contact-map-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--claret-bright);
}

.contact-map-link:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Google Maps — iframe matches place behind maps.app.goo.gl/3gbqwsfaDoRmBNLVA */
.map-embed {
  margin-top: 1.15rem;
  max-width: 56rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--border);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: min(380px, 50vh);
  border: 0;
}

.map-embed--about {
  margin-top: 1.25rem;
}

.section-lead.map-embed-link {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.35rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--surface-card);
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.contact-card h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 0.3rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue-deep);
}

.form-group textarea {
  min-height: 132px;
  resize: vertical;
}

.form-hint {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.btn-submit {
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  width: 100%;
  margin-top: 0.2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.btn-submit:hover:not(:disabled) {
  background: var(--claret);
  border-color: var(--claret-bright);
  box-shadow: 0 4px 16px rgba(122, 16, 40, 0.35);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.social-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.social-row a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.social-row a:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.social-row svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #b0b0b0;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.88rem;
  border-top: 3px solid var(--claret);
}

.site-footer a {
  color: var(--blue-muted);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-address {
  margin: 0 0 1rem;
  color: #d0d0d0;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 36ch;
  margin-inline: auto;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--ink-mid);
  border: 1px solid #3a3a3a;
}

.footer-social a:hover {
  background: var(--claret);
  border-color: var(--claret-bright);
}

.footer-social svg {
  width: 22px;
  height: 22px;
}
