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

:root {
  --red:        #e32b2b;
  --red-dark:   #b81f1f;
  --red-light:  #f04040;
  --dark:       #1a1a1a;
  --darker:     #111111;
  --white:      #ffffff;
  --gray:       #f5f5f5;
  --text:       #222222;
  --muted:      #666666;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Asap Condensed', sans-serif;
  color: var(--text);
  background: var(--white);
}

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
  background: var(--darker);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-logo span {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.nav-logo small {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--darker);
  min-width: 200px;
  border-top: 3px solid var(--red);
  z-index: 200;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 0.6rem 1.2rem;
  text-transform: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 3px;
  font-weight: 700 !important;
  margin-left: 1rem;
}

.nav-cta:hover { background: var(--red-light) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ── PAGE HERO ─────────────────────────────────────── */
.page-hero {
  background: var(--red);
  padding: 6rem 6vw 3rem;
  margin-top: 68px;
}

.page-hero-content { max-width: 1200px; margin: 0 auto; }

.page-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}

/* ── PAGE MAIN ─────────────────────────────────────── */
.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 6vw;
}

/* ── SECTION TAGS ──────────────────────────────────── */
.section-tag {
  display: inline-block;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-left: 3px solid var(--red);
  padding-left: 0.6rem;
  margin-bottom: 0.75rem;
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Asap Condensed', sans-serif;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}

.btn-outline:hover { border-color: var(--white); }

/* ── NEWS LIST (nyheter.html) ──────────────────────── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-article {
  padding: 2.5rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.news-article:last-child { border-bottom: none; }

.news-article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.news-tag {
  background: rgba(227,43,43,0.1);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.news-date, .news-author {
  color: var(--muted);
  font-size: 0.82rem;
}

.news-author::before { content: '· '; }

.news-article h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.news-article p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

/* ── CONTENT PAGE ──────────────────────────────────── */
.content-body {
  max-width: 760px;
}

.content-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 2rem 0 0.75rem;
}

.content-body h2:first-child { margin-top: 0; }

.content-body p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.content-body ul {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.content-body ul li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.6;
}

.content-body ul li::before {
  content: '▸';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── PERSON CARDS ──────────────────────────────────── */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.person-card {
  background: var(--gray);
  border-radius: 6px;
  padding: 1.5rem;
  border-top: 4px solid var(--red);
}

.person-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.person-card .role {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.person-card a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.person-card a:hover { color: var(--red); }

/* ── TRAINING TABLE ────────────────────────────────── */
.training-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.training-table th {
  background: var(--red);
  color: var(--white);
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.training-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.95rem;
  color: var(--muted);
}

.training-table tr:nth-child(even) td { background: var(--gray); }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--darker);
  color: rgba(255,255,255,0.4);
  padding: 3rem 6vw 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-brand img {
  width: 50px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 300px;
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom strong { color: rgba(255,255,255,0.6); }

/* ── PAGE PHOTO ────────────────────────────────────── */
.page-photo {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin: 2rem 0;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.page-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.photo-grid .page-photo { margin: 0; aspect-ratio: 4/3; }

/* ── SPONSORS ───────────────────────────────────────── */
.sponsors {
  padding: 3rem 6vw;
  background: var(--gray);
  text-align: center;
}

.sponsors-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sponsors h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.sponsors-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.sponsors-logos img {
  width: 140px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1);
  opacity: 0.55;
  transition: all 0.2s;
}

.sponsors-logos img:hover { filter: grayscale(0); opacity: 1; }

.sponsors-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

.sponsors-table td {
  width: 20%;
  text-align: center;
  padding: 1.25rem 0.5rem;
  vertical-align: middle;
}

.sponsors-table img {
  height: 60px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: all 0.2s;
}

.sponsors-table img:hover { filter: grayscale(0); opacity: 1; }

/* ── FOOTER SOCIAL ──────────────────────────────────── */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover { background: rgba(255,255,255,0.15); color: var(--white) !important; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--darker);
    padding: 1rem 1.25rem;
    gap: 0;
    border-top: 2px solid var(--red);
  }
  .nav-links.open a { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links .has-dropdown > a::after { display: none; }
  .dropdown { position: static; display: block; border-top: none; padding-left: 1rem; }
  .page-hero { padding: 5rem 1.25rem 2.5rem; }
  .page-main { padding: 2.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .person-grid { grid-template-columns: 1fr 1fr; }
  .training-table { font-size: 0.85rem; }
  .training-table th, .training-table td { padding: 0.6rem 0.6rem; }
}
