/* Gravesberie FC — site styles
   Club colours: change these two values to match your kit. */
:root {
  --primary: #0f5a2a;      /* deep green (from crest) */
  --green: #1f9a3a;        /* crest ring green */
  --accent: #d4a94f;       /* crest gold */
  --ink: #1d2320;
  --muted: #5d6762;
  --paper: #ffffff;
  --wash: #f4f6f2;
  --line: #dde3dc;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--primary); color: #fff; border-bottom: 4px solid var(--accent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: .75rem; opacity: .8; letter-spacing: .08em; text-transform: uppercase; }

.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.5); color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 1rem; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.12); }
.site-nav a.cta { background: var(--accent); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(15,90,42,.96), rgba(15,90,42,.84)),
    repeating-linear-gradient(90deg, #1a6e36 0 60px, #146331 60px 120px); /* mown-pitch stripes */
  color: #fff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; }
.hero-crest { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 340px; height: 340px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.hero .eyebrow { display: inline-block; background: var(--accent); color: var(--primary); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin: 18px 0 14px; max-width: 14ch; }
.hero p { font-size: 1.15rem; max-width: 52ch; opacity: .92; margin: 0 0 28px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; margin-left: 10px; }
.btn:hover { filter: brightness(1.05); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { font-size: 1.8rem; margin: 0 0 8px; color: var(--primary); }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; color: var(--primary); }
.card p { margin: 0; color: var(--muted); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--wash); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }

/* Quick-info strip under hero */
.info-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.info-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.info-strip div { padding: 20px; border-right: 1px solid var(--line); }
.info-strip div:last-child { border-right: 0; }
.info-strip strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-strip span { font-weight: 700; font-size: 1.05rem; }

/* Safeguarding banner */
.safeguard { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safeguard .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.contact-card { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 24px; }
.contact-card h3 { margin: 0 0 4px; }
.contact-card p { margin: 0 0 12px; opacity: .9; }
.contact-card a { color: var(--accent); font-weight: 700; }
.contact-card .row { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.15); }

/* Teams table */
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--primary); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* Forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
textarea { min-height: 120px; }
button.btn { cursor: pointer; font: inherit; font-weight: 700; }

.page-head { background: var(--primary); color: #fff; padding: 48px 0; }
.page-head h1 { margin: 0; font-size: 2.2rem; }
.page-head p { margin: 6px 0 0; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: #0a3d1d; color: rgba(255,255,255,.8); padding: 40px 0 24px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: .8rem; opacity: .7; }

/* ---------- Sponsors ---------- */
/* A logo slot shows images/sponsors/<file>; if that file is missing, the company name shows instead. */
.logo-slot { display: flex; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-height: 96px; text-decoration: none; color: var(--primary); transition: box-shadow .15s, transform .15s; }
a.logo-slot:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.logo-slot img { max-height: 64px; max-width: 100%; object-fit: contain; }
.logo-slot img + .logo-name { display: none; }
.logo-name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; letter-spacing: .01em; }
.logo-name small { display: block; font-weight: 600; font-size: .75rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }

.sponsor-strip { background: #fff; border-top: 1px solid var(--line); padding: 48px 0; }
.sponsor-strip .head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sponsor-strip .head p { margin: 0; color: var(--muted); }
.sponsor-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sponsor-row .logo-slot { background: var(--wash); }

.sponsor-feature { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.sponsor-feature .logo-slot { border: 0; border-radius: 0; background: var(--wash); min-height: 180px; }
.sponsor-feature .logo-slot img { max-height: 110px; }
.sponsor-feature .logo-name { font-size: 1.5rem; }
.sponsor-feature .body { padding: 28px; }
.sponsor-feature .body h3 { margin: 0 0 4px; color: var(--primary); font-size: 1.3rem; }
.sponsor-feature .body .tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); background: #e8f3ea; padding: 3px 8px; border-radius: 4px; margin-bottom: 10px; }
.sponsor-feature .body p { margin: 0 0 14px; color: var(--muted); }
.sponsor-feature .body a { font-weight: 700; }
.sponsor-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sponsor-cards .sponsor-feature { grid-template-columns: 1fr; margin: 0; }
.sponsor-cards .sponsor-feature .logo-slot { min-height: 130px; }

.become-sponsor { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.become-sponsor h2 { margin: 0 0 6px; }
.become-sponsor p { margin: 0; opacity: .9; max-width: 60ch; }

.footer-sponsors { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.footer-sponsors strong { color: #fff; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.footer-sponsors a { color: rgba(255,255,255,.85); font-weight: 600; }
.footer-sponsors a:hover { color: var(--accent); }

/* ---------- Simplified-site components ---------- */
.card-link { text-decoration: none; transition: box-shadow .15s, transform .15s; }
.card-link:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.btn-fb { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.fb-band { background: var(--primary); color: #fff; padding: 44px 0; }
.fb-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.fb-band h2 { margin: 0 0 6px; font-size: 1.6rem; }
.fb-band p { margin: 0; opacity: .9; max-width: 60ch; }

.story { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.story-text .section-title { margin-top: 8px; }
.story-text p { margin: 0 0 16px; max-width: 65ch; }
.story-text h2 + p { margin-top: 0; }
.story-text h2:not(:first-child) { margin-top: 36px; }
.story-crest { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.story-crest img { width: 100%; max-width: 280px; margin: 0 auto; }
.story-crest p { margin: 16px 0 0; color: var(--muted); font-weight: 600; }
.story-lead { font-size: 1.2rem; line-height: 1.55; color: var(--primary); font-weight: 500; margin-bottom: 28px !important; }
.timeline { list-style: none; padding: 0; margin: 8px 0 8px; border-left: 3px solid var(--accent); }
.timeline li { position: relative; padding: 0 0 24px 26px; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--primary); border: 3px solid var(--accent); }
.timeline .when { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a6d2b; }
.timeline h3 { margin: 2px 0 4px; color: var(--primary); font-size: 1.1rem; }
.timeline p { margin: 0 !important; color: var(--muted); }
.sources { font-size: .8rem; color: var(--muted); margin-top: 32px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.values { padding-left: 0; list-style: none; margin: 0; }
.values li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; }
.values li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.values li:last-child { border-bottom: 0; }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { display: flex; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.person .avatar { position: relative; overflow: hidden; flex: none; width: 96px; height: 96px; border-radius: 50%; background: var(--primary); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; border: 3px solid var(--accent); }
.person .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.people-3 .person .avatar { width: 120px; height: 120px; }
.person h3 { margin: 0; color: var(--primary); font-size: 1.2rem; }
.person .role { margin: 2px 0 8px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #8a6d2b; }
.person p { margin: 0; color: var(--muted); }
.person .mail { margin-top: 8px; font-size: .9rem; }

.policy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.policy-card .values { max-width: 760px; }
.policy-card p { color: var(--muted); max-width: 70ch; }
.hint { font-size: .85rem; color: var(--muted); }
.card p + p { margin-top: 10px; }
.group-title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: #8a6d2b; margin: 8px 0 14px; }
.people + .group-title { margin-top: 36px; }
.people-3 { grid-template-columns: repeat(3, 1fr); }
.people-3 .person { flex-direction: column; gap: 14px; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 82px; background: var(--primary); padding: 10px 20px 20px; z-index: 10; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-header { position: relative; }
  .grid-3, .grid-2, .safeguard .wrap, .site-footer .cols, .info-strip .wrap { grid-template-columns: 1fr; }
  .info-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .btn-ghost { margin: 10px 0 0; }
  .hero-crest { position: static; transform: none; width: 160px; height: 160px; margin: 32px auto 0; }
  .site-nav { top: 88px; }
  .sponsor-row { grid-template-columns: repeat(2, 1fr); }
  .sponsor-feature, .sponsor-cards, .story, .people, .policy-card { grid-template-columns: 1fr; }
  .story-crest { position: static; }
  .person { flex-direction: column; }
}
@media (max-width: 1000px) and (min-width: 821px) { .site-nav a { padding: 8px 9px; font-size: .9rem; } }
