/* ─────────────────────────────────────────────────────
   Barefoot Bandits FC — Ireland Green & White Theme
   ───────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:wght@700;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --ink:        #040e07;
  --ink-soft:   #071408;
  --parchment:  #e8f0ec;
  --cream:      #d4e4da;
  --green:      #009B55;
  --green-dim:  #007A3D;
  --green-pale: #00c96e;
  --gold:       #7fcfa0;
  --white:      #ffffff;
  --muted:      #6b8878;
  --rule:       rgba(0,155,85,0.12);
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--parchment);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.032;
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(4,14,7,0.98) 0%, rgba(4,14,7,0) 100%);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(4,14,7,0.97);
  border-bottom: 1px solid var(--rule);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--green);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand-badge {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.08) saturate(1.15) brightness(1.05);
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  color: rgba(232,240,236,0.6);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.85rem;
  right: 0.85rem;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--parchment); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(0,155,85,0.3);
  color: var(--parchment);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════
   HERO (index.html only — canvas-based hero)
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(30%) contrast(1.05);
}

.hero-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(4,14,7,0.88) 0%, rgba(4,14,7,0.3) 60%, rgba(4,14,7,0.1) 100%),
    linear-gradient(to top, rgba(4,14,7,0.95) 0%, rgba(4,14,7,0.0) 50%);
}

.hero-bg-number {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: var(--font-display);
  font-size: clamp(18rem, 35vw, 38rem);
  line-height: 1;
  color: rgba(0,155,85,0.06);
  pointer-events: none;
  user-select: none;
  letter-spacing: -5px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2.5rem 4rem;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--green);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--parchment);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--green);
  display: block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-style: italic;
  color: rgba(232,240,236,0.55);
  line-height: 1.6;
  max-width: 420px;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.8rem 1.8rem;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dim);
  border-color: var(--green-dim);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(232,240,236,0.3);
  color: var(--parchment);
}

.btn-ghost:hover {
  border-color: var(--parchment);
}

/* ═══════════════════════════════════════════════
   QUICK LINKS STRIP
═══════════════════════════════════════════════ */
.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.75rem 2rem;
  border-right: 1px solid var(--rule);
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.strip-item:last-child { border-right: none; }

.strip-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.strip-item:hover { background: rgba(0,155,85,0.04); }
.strip-item:hover::before { transform: scaleX(1); }

.strip-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
}

.strip-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--parchment);
}

.strip-arrow {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  transition: transform 0.2s, color 0.2s;
}

.strip-item:hover .strip-arrow {
  transform: translateX(4px);
  color: var(--green);
}

/* ═══════════════════════════════════════════════
   PAGE SHELL (interior pages)
═══════════════════════════════════════════════ */
.page-shell {
  flex: 1;
  padding-top: 100px;
}

.page-banner {
  padding: 4rem 2.5rem 3rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: attr(data-title);
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 14rem);
  line-height: 1;
  color: rgba(0,155,85,0.04);
  pointer-events: none;
  user-select: none;
  letter-spacing: 2px;
}

.page-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--green);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 2px;
  color: var(--parchment);
  text-transform: uppercase;
  line-height: 1;
}

.page-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2.5rem 5rem;
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.about-photo-wrap {
  margin-bottom: 3rem;
  overflow: hidden;
}

.about-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center center;
  display: block;
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0 3rem;
  align-items: start;
}

.about-divider {
  background: var(--rule);
  align-self: stretch;
}

.about-lead {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--parchment);
  font-weight: 700;
}

.about-lead em {
  color: var(--green);
  font-style: italic;
}

.about-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(232,240,236,0.72);
  margin-bottom: 1.25rem;
}

.about-body p:last-child { margin-bottom: 0; }

.about-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(0,155,85,0.2);
  color: rgba(232,240,236,0.5);
}

/* ═══════════════════════════════════════════════
   SCHEDULE
═══════════════════════════════════════════════ */
.schedule-section {
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--green);
}

.section-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--parchment);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.iframe-card {
  background: var(--ink-soft);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.iframe-card iframe {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}

.iframe-note {
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════ */
.stats-season {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.table-scroll {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.stats-table thead tr {
  border-bottom: 1px solid var(--green);
}

.stats-table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.stats-table th.sortable:hover {
  color: var(--green-pale);
}

.stats-table th.sort-asc,
.stats-table th.sort-desc {
  color: #ffffff;
}

.sort-icon {
  font-size: 0.6rem;
  opacity: 0.5;
  margin-left: 3px;
}

.stats-table th.sort-asc .sort-icon,
.stats-table th.sort-desc .sort-icon {
  opacity: 1;
  color: var(--green-pale);
}

.stats-table th {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.stats-table th:not(:first-child):not(:nth-child(2)) {
  text-align: center;
}

.stats-table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: rgba(232,240,236,0.8);
}

.stats-table td:not(:first-child):not(:nth-child(2)) {
  text-align: center;
}

.stats-table tbody tr:hover td {
  background: rgba(0,155,85,0.04);
  color: var(--parchment);
}

.stats-table td:first-child {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(232,240,236,0.2);
  width: 40px;
}

.stats-table td:nth-child(2) {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--parchment);
}

.stats-table td.stat-goals {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--green);
}

.stats-table td.stat-pts {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--green-pale);
}

/* Standings table — highlight our team row */
.standings-table td:first-child {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(232,240,236,0.8);
  width: auto;
  text-align: left;
}

.standings-table th:not(:first-child),
.standings-table td:not(:first-child) {
  text-align: center;
}

.standings-us td {
  color: var(--white) !important;
  background: rgba(0,155,85,0.1);
}

.standings-us td:first-child {
  color: var(--green-pale) !important;
  font-weight: 600;
}

.standings-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.standings-link:hover {
  color: var(--green-pale);
}

.table-legend {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.25rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--green);
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow  { animation: fadeUp 0.6s ease both; animation-delay: 0.1s; }
.hero-title    { animation: fadeUp 0.7s ease both; animation-delay: 0.2s; }
.hero-subtitle { animation: fadeUp 0.7s ease both; animation-delay: 0.35s; }
.hero-cta-row  { animation: fadeUp 0.7s ease both; animation-delay: 0.5s; }

/* ═══════════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(4,14,7,0.98);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; }
  .nav-links a::after { display: none; }

  .nav-toggle { display: block; }

  .hero-content { padding: 0 1.5rem 3rem; }

  .quick-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip-item:nth-child(2) { border-right: none; }
  .strip-item:nth-child(3) { border-top: 1px solid var(--rule); }
  .strip-item:nth-child(4) { border-top: 1px solid var(--rule); border-right: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem 0;
  }

  .about-divider { display: none; }

  .page-banner { padding: 3rem 1.5rem 2rem; }
  .page-body   { padding: 2rem 1.5rem 4rem; }

  .iframe-card iframe { height: 420px; }

  .footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .quick-strip { grid-template-columns: 1fr; }
  .strip-item { border-right: none !important; border-top: 1px solid var(--rule); }
  .strip-item:first-child { border-top: none; }
}
