/* ============ ASJI — Association of Sports Journalists in Ireland ============ */
:root {
  --green-deep: #0a2f24;
  --green: #0e3d2e;
  --green-mid: #1a5741;
  --gold: #c9a227;
  --gold-soft: #e3c463;
  --cream: #f7f2e6;
  --paper: #fdfbf5;
  --ink: #1d241f;
  --muted: #5c665f;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #b9b09a var(--paper); }
html, body { overflow-x: hidden; }
[id] { scroll-margin-top: 84px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #b9b09a; border-radius: 5px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--green-mid); }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 10px 0 18px; color: var(--green-deep); }
.section-dark h2 { color: var(--cream); }

.kicker {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.section-intro { max-width: 620px; color: var(--muted); margin-bottom: 34px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 47, 36, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
  font-family: var(--sans); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em;
  color: #fff; background: var(--green-mid); border: 1.5px solid var(--gold);
  padding: 2px 10px 5px; border-radius: 6px; line-height: 1;
}
.logo-word { color: var(--cream); font-size: 0.82rem; line-height: 1.25; max-width: 150px; }
.logo-word b { color: var(--gold-soft); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--cream); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-soft); }
.nav-cta {
  background: var(--gold); color: var(--green-deep) !important; padding: 9px 18px;
  border-radius: 4px; font-weight: 600;
}
.nav-cta:hover { background: var(--gold-soft); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../assets/img/hero.png") center/cover no-repeat;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,47,36,0.55) 0%, rgba(10,47,36,0.35) 40%, rgba(10,47,36,0.88) 100%);
}
.hero-content { position: relative; padding-top: 160px; padding-bottom: 90px; max-width: 1140px; }
.hero h1 {
  color: #fff; font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 600; max-width: 720px; margin: 14px 0 20px;
}
.hero h1 em { color: var(--gold-soft); font-style: italic; }
.hero p { color: rgba(247,242,230,0.9); max-width: 560px; font-size: 1.1rem; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 4px; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; transition: all 0.2s; border: 1.5px solid transparent; cursor: pointer;
}
.btn-solid { background: var(--gold); color: var(--green-deep); }
.btn-solid:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(247,242,230,0.6); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-full { width: 100%; border: none; font-family: var(--sans); }

.hero-strip { position: relative; background: var(--green-deep); border-top: 1px solid rgba(201,162,39,0.35); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 24px; }
.strip-item { text-align: center; color: var(--cream); }
.strip-item strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold-soft); line-height: 1.1; }
.strip-item span { font-size: 0.85rem; opacity: 0.85; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--cream); }
.section-dark { background: var(--green-deep); color: rgba(247,242,230,0.88); }
.section-dark .kicker { color: var(--gold-soft); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; margin-top: 36px; }
.news-card {
  background: #fff; border: 1px solid #e8e2d2; border-radius: 8px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10,47,36,0.12); }
.news-card.featured { grid-row: span 2; }
.news-img { height: 260px; background-size: cover; background-position: center; }
.news-body { padding: 26px 28px 30px; }
.news-date { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.news-body h3 { font-size: 1.35rem; margin: 10px 0 12px; color: var(--green-deep); }
.news-body h3 a { color: inherit; text-decoration: none; }
.news-body h3 a:hover { color: var(--green-mid); }
.news-body p { color: var(--muted); font-size: 0.97rem; }
.news-more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.92rem; color: var(--gold); text-decoration: none; }
.news-more:hover { color: var(--green-mid); }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split-text p { margin-bottom: 16px; }
.split-text .btn { margin-top: 10px; }
.split-img img { border-radius: 8px; box-shadow: 0 18px 44px rgba(10,47,36,0.22); }
.img-caption { font-size: 0.85rem; color: var(--muted); margin-top: 12px; font-style: italic; }
.section-dark .img-caption { color: rgba(247,242,230,0.6); }

/* ---------- Roll of honour ---------- */
.honour-timeline { margin-top: 30px; border-left: 2px solid rgba(201,162,39,0.5); padding-left: 0; }
.honour-item {
  display: grid; grid-template-columns: 86px 1fr; gap: 18px; align-items: baseline;
  padding: 13px 0 13px 26px; position: relative; border-bottom: 1px solid #eee8d8;
}
.honour-item::before {
  content: ""; position: absolute; left: -5px; top: 24px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold);
}
.honour-item .year { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--green-mid); }
.honour-item p { color: var(--ink); font-size: 0.97rem; }
.honour-item.highlight { background: linear-gradient(90deg, rgba(201,162,39,0.12), transparent); }
.honour-item.highlight .year { color: var(--gold); }

/* ---------- Committee ---------- */
.committee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.member {
  background: #fff; border: 1px solid #e8e2d2; border-top: 3px solid var(--gold);
  border-radius: 6px; padding: 26px 24px 22px; text-align: center;
}
.member h3 { font-size: 1.25rem; color: var(--green-deep); }
.member span { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Updates form ---------- */
.updates-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.updates-text p { margin-top: 6px; color: var(--muted); }
.updates-form {
  background: #fff; border: 1px solid #e8e2d2; border-radius: 8px; padding: 32px;
  box-shadow: 0 10px 30px rgba(10,47,36,0.08);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-row .optional { font-weight: 400; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d8d2c0; border-radius: 5px;
  font-family: var(--sans); font-size: 0.98rem; background: var(--paper); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-note { margin-top: 14px; font-size: 0.92rem; color: var(--green-mid); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); padding: 54px 0 40px; text-align: center; }
.footer .nav-logo { justify-content: center; margin-bottom: 18px; }
.footer p { color: rgba(247,242,230,0.75); font-size: 0.92rem; }
.footer-fine { margin-top: 10px; font-size: 0.8rem; opacity: 0.6; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Absolute (not fixed): backdrop-filter on .nav makes it the containing
     block for fixed descendants, which collapsed the drawer onto the bar. */
  .nav-links {
    position: absolute; top: 100%; right: 0; width: min(320px, 85vw);
    height: calc(100vh - 72px); height: calc(100dvh - 72px);
    background: var(--green-deep); flex-direction: column; align-items: flex-start;
    padding: 34px 30px; gap: 22px; transform: translateX(100%);
    transition: transform 0.3s, visibility 0.3s; visibility: hidden; overflow-y: auto;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-burger { display: block; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .split, .updates-wrap, .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-row: auto; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .committee-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .hero-content { padding-top: 130px; padding-bottom: 60px; }
}
@media (max-width: 540px) {
  .committee-grid { grid-template-columns: 1fr; }
  .honour-item { grid-template-columns: 64px 1fr; gap: 12px; }
  .logo-word { display: none; }
}

.credit-link {
  color: inherit;
  text-decoration: none;
}

.credit-link:hover {
  color: var(--gold);
  text-decoration: underline;
}
