/* ==========================================================================
   Peanutcraft Lures Tournament Trail — 2026 site refresh
   ========================================================================== */

:root {
  /* Palette matched to the real Peanut Craft Lures logo: royal blue, black, white, gold accent */
  --lake-deep:      #10163a;
  --lake-mid:       #232f8f;
  --lake-bright:    #4361c9;
  --moss:           #22242b;
  --moss-light:     #454851;
  --sunset:         #d4a72c;
  --sunset-deep:    #a87f1f;
  --sand:           #f7f8fa;
  --sand-dark:      #e6e9f2;
  --ink:            #14172b;
  --ink-soft:       #545b6e;
  --white:          #ffffff;
  --line:           #dbe0ec;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(16, 22, 58, 0.35);
  --shadow-sm: 0 4px 14px -6px rgba(16, 22, 58, 0.25);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--lake-deep);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: 0.02em; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--lake-bright); text-decoration: none; }
a:hover { color: var(--sunset-deep); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sunset-deep);
  margin-bottom: 0.6em;
}

section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--white); }

.section-head {
  max-width: 640px;
  margin: 0 auto 2.4rem;
  text-align: center;
}
.section-head p { margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--sunset);
  color: var(--lake-deep);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--sunset-deep); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-line {
  background: transparent;
  border-color: var(--lake-mid);
  color: var(--lake-deep);
}
.btn-line:hover { background: var(--lake-deep); color: var(--white); border-color: var(--lake-deep); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lake-deep);
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--sunset); }
.brand .brand-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
  padding: 4px 0;
}
.brand span { font-size: 1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--sunset);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--lake-deep);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; padding: 8px 20px 18px; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
}

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

.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(20, 31, 17, 0.88) 0%, rgba(32, 47, 28, 0.72) 45%, rgba(32, 47, 28, 0.58) 100%),
    url('../img/lake-hero.jpg') center 62% / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 96px;
  min-height: 480px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-logo {
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 480px);
}
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.5));
}

.hero-copy { max-width: 620px; flex: 1 1 380px; }
.hero h1 { color: var(--white); text-shadow: 0 2px 16px rgba(0,0,0,0.35); }
.hero .lede { color: rgba(255,255,255,0.88); font-size: 1.08rem; max-width: 46ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

@media (max-width: 860px) {
  .hero .container {
    padding-top: 48px;
    padding-bottom: 56px;
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .hero-logo { width: clamp(180px, 52vw, 280px); }
}

/* ---------- Stat / quick facts strip ---------- */

.facts-strip {
  background: var(--sunset);
}
.facts-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 20px;
}
.fact { text-align: center; }
.fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--lake-deep);
}
.fact span { font-size: 0.82rem; color: rgba(20,23,43,0.75); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 700px) {
  .facts-strip .container { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards / grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.division-card { position: relative; overflow: hidden; }
.division-card .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--moss);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.division-card ul { list-style: none; margin: 0; padding: 0; }
.division-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
}
.division-card li:last-child { border-bottom: none; }
.division-card .when { color: var(--ink); font-weight: 600; }
.division-card .where { color: var(--ink-soft); flex: 1; text-align: right; padding-right: 10px; }
.division-card a.results-link {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--sand-dark);
  color: var(--lake-deep);
  padding: 4px 9px;
  border-radius: 6px;
}
.division-card a.results-link:hover { background: var(--sunset); color: var(--lake-deep); }
.division-card .pending {
  font-size: 0.72rem;
  color: #8b96ab;
  font-style: italic;
}

/* ---------- Quotes / testimonial band ---------- */

.quote-band {
  background: var(--moss);
  color: var(--white);
  text-align: center;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-style: italic;
}
.quote-band cite { display: block; margin-top: 10px; font-size: 0.8rem; opacity: 0.75; font-style: normal; }

/* ---------- Sponsor grid ---------- */

.sponsor-featured {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
.sponsor-featured .eyebrow { margin-bottom: 10px; }
.sponsor-featured .logo-tile { width: 220px; height: 130px; margin: 0 auto; }

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

/* Sponsor carousel (home page teaser) */

.sponsor-carousel {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.sponsor-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: sponsor-scroll 32s linear infinite;
}

.sponsor-carousel:hover .sponsor-track,
.sponsor-carousel:focus-within .sponsor-track {
  animation-play-state: paused;
}

.sponsor-track .logo-tile-link {
  flex: 0 0 auto;
  width: 176px;
}

@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sponsor-track { animation: none; overflow-x: auto; }
}

.logo-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
a.logo-tile-link { display: block; }
a.logo-tile-link:hover .logo-tile {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--sunset);
}
.sponsor-name {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Results archive ---------- */

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.results-toolbar button {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.results-toolbar button.active,
.results-toolbar button:hover { background: var(--lake-deep); color: var(--white); border-color: var(--lake-deep); }

.year-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--white);
  overflow: hidden;
}
.year-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--lake-deep);
  text-align: left;
}
.year-toggle .count { font-family: var(--font-body); font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.year-toggle .chev { transition: transform 0.2s ease; color: var(--sunset-deep); font-size: 1rem; }
.year-block.open .year-toggle .chev { transform: rotate(180deg); }

.year-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}
.year-block.open .year-body { padding: 0 24px 22px; }

.division-group { margin-top: 6px; }
.division-group h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin: 18px 0 8px;
}
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.result-list li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--sand);
  font-size: 0.92rem;
  color: var(--ink);
}
.result-list li a:hover { background: var(--sand-dark); color: var(--lake-deep); }
.result-list li a .icon { color: var(--sunset-deep); font-family: var(--font-head); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 20, 26, 0.9);
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(94vw, 900px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #fff;
}
.lightbox .lb-close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox .lb-close:hover { background: var(--sunset); color: var(--lake-deep); }
.lightbox .lb-caption {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* ---------- Rules ---------- */

.rules-list { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.rules-list li {
  counter-increment: rule;
  position: relative;
  padding: 14px 0 14px 46px;
  border-bottom: 1px solid var(--line);
}
.rules-list li:last-child { border-bottom: none; }
.rules-list li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lake-deep);
  color: var(--sunset);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout {
  background: var(--sand);
  border-left: 4px solid var(--sunset-deep);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.contact-card h3 { margin-bottom: 0.2em; }
.contact-card .role { color: var(--sunset-deep); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 1em; display: block; }
.contact-card ul { list-style: none; margin: 0; padding: 0; }
.contact-card li { padding: 5px 0; color: var(--ink-soft); }
.contact-card li strong { color: var(--ink); }

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lake-deep);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
}
.social-btn:hover { background: var(--lake-mid); color: var(--white); }
.social-btn svg { width: 20px; height: 20px; }

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

.site-footer {
  background: #0c0f28;
  color: rgba(255,255,255,0.7);
  padding: 46px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--sunset); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (interior pages) ---------- */

.page-hero {
  background:
    linear-gradient(160deg, rgba(20, 31, 17, 0.90) 0%, rgba(32, 47, 28, 0.82) 100%),
    url('../img/lake-hero.jpg') center 55% / cover no-repeat;
  color: var(--white);
  padding: 64px 0 52px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 60ch; margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sunset);
  color: var(--lake-deep);
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
