/* ==========================================================================
   Oulun Power Team — styles.css
   Palette derived from the club logo: a bold black-line badge on white.
   Kept black/white as the dominant scheme (matching the mark) with a single
   red accent — the classic iron/competition-plate red — for CTAs and
   highlights so the site still has some pop. Swap the variables below if
   you'd rather go pure monochrome or a different accent.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f3f1;
  --color-surface: #f7f6f4;
  --color-text: #17171a;
  --color-text-muted: #5b5b60;
  --color-accent: #c8102e;      /* primary accent — competition-plate red */
  --color-accent-dark: #9c0c23;
  --color-on-light: #17171a;
  --color-border: #e2e0dc;

  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container-width: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-bottom: 0.75em;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 0.9em 1.8em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--color-text);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  color: var(--color-text);
}

.brand .logo-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand .brand-name {
  white-space: nowrap;
}

.brand .brand-name span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Narrow desktop widths (nav still inline, but tight before the 860px
   mobile breakpoint) — drop the tagline and tighten nav spacing so the
   header stays on one line instead of wrapping or overflowing. */
@media (min-width: 861px) and (max-width: 1060px) {
  .site-header .container {
    padding: 0 8px;
    gap: 4px;
  }

  .brand .brand-name span {
    display: none;
  }

  .brand .logo-badge {
    width: 34px;
    height: 34px;
  }

  .brand {
    gap: 8px;
    font-size: 0.9rem;
  }

  .main-nav {
    gap: 0;
  }

  .main-nav a {
    padding: 8px 5px;
    font-size: 0.74rem;
  }

  .nav-social {
    padding-left: 5px;
    margin-left: 0;
    gap: 4px;
  }

  .nav-social a {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.92rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav-social {
  display: flex;
  gap: 10px;
  margin-left: 8px;
  padding-left: 14px;
  border-left: 1px solid var(--color-border);
}

.nav-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

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

.hero {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse at top right, rgba(200, 16, 46, 0.07), transparent 55%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

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

.hero-watermark {
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .hero-watermark {
    display: none;
  }
}

.hero-content {
  max-width: 760px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 1.75em;
  flex-wrap: wrap;
}

/* Stats bar */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat {
  background: var(--color-bg);
  padding: 32px 24px;
  text-align: center;
}

.stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--color-accent);
  display: block;
}

.stat .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.5em;
  text-align: center;
}

.section-head p {
  color: var(--color-text-muted);
}

/* Discipline cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card h3 {
  color: var(--color-accent);
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.card .card-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* Instagram callout */

.social-callout {
  text-align: center;
}

.social-callout .btn {
  margin-top: 1em;
}

/* Membership fee box */

.fee-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.fee-box .fee-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent);
  display: block;
}

.fee-box .fee-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

/* FAQ */

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.faq-item h3 {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}

.faq-item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.faq-item p a {
  color: var(--color-accent);
  text-decoration: underline;
}

.faq-item p a:hover {
  color: var(--color-accent-dark);
}

/* Contact / board */

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.board-member {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.board-member .role {
  color: var(--color-accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.board-member a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.board-member a:hover {
  color: var(--color-accent);
}

.org-details {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.org-details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 0;
}

.org-details dt {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.org-details dd {
  margin: 0;
}

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

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--color-text-muted);
  max-width: 320px;
  margin-top: 0.75em;
}

.footer-col h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.9em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5em;
}

.footer-col a {
  text-decoration: none;
  color: var(--color-text);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px 12px;
    font-size: 1.05rem;
  }

  .nav-social {
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: flex;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .org-details dl {
    grid-template-columns: 1fr;
  }
}
