/*
Theme Name: FTGBU
Theme URI: https://ftgbu.dk
Author: FTGBU
Author URI: https://ftgbu.dk
Description: Moderne tema til Foreningen til Gamle Ballerupdrenges Ungdomsbevarelse
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ftgbu
*/

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

:root {
  --blue-dark: #0C447C;
  --blue-mid: #185FA5;
  --blue-light: #E6F1FB;
  --blue-border: #B5D4F4;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --bg: #ffffff;
  --bg-surface: #f7f7f5;
  --border: rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-lg: 14px;
  --max-width: 1100px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ── TOPBAR ── */
.site-topbar {
  background: var(--blue-dark);
  color: white;
  text-align: center;
  padding: 9px 1.5rem;
  font-size: 13px;
}
.site-topbar a { color: rgba(255,255,255,0.85); }
.site-topbar a:hover { color: white; text-decoration: none; }

/* ── HEADER ── */
.site-header {
  background: white;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark) !important;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.2;
}
.site-logo span { font-weight: 400; color: var(--text-muted); font-size: 0.7rem; display: block; }

/* ── NAVIGATION ── */
.main-nav { display: flex; flex: 1; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav ul li a {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 0 13px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
  text-decoration: none;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-page-ancestor > a { color: var(--blue-mid); }
.main-nav ul li.current-menu-item > a { border-bottom-color: var(--blue-mid); }
.nav-facebook {
  margin-left: auto;
  background: #1877F2 !important;
  color: white !important;
  padding: 7px 14px !important;
  border-radius: 7px !important;
  height: auto !important;
  font-size: 13px !important;
  border-bottom: none !important;
}
.nav-facebook:hover { background: #166FE5 !important; text-decoration: none !important; }

/* ── HERO ── */
.page-hero-full {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: white;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}
.page-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.9);
}
.page-hero-full h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 0.5rem; color: white; }
.page-hero-full p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 1.8rem; }
.hero-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.btn:hover { opacity: 0.9; }
.btn-white { background: white; color: var(--blue-dark) !important; }
.btn-outline { background: transparent; color: white !important; border: 1.5px solid rgba(255,255,255,0.5); }

/* ── PAGE SUBBANNER ── */
.page-subbanner {
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border);
  padding: 1.8rem 1.5rem;
}
.page-subbanner-inner { max-width: var(--max-width); margin: 0 auto; }
.page-subbanner h1 { font-size: 1.8rem; font-weight: 600; margin-bottom: 0.2rem; }
.page-subbanner p { color: var(--text-muted); }

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 0.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue-mid); }
.breadcrumb span::before { content: ' / '; }

/* ── MAIN CONTENT ── */
.site-main { max-width: var(--max-width); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.content-area { width: 100%; }

/* ── CARDS ── */
.card {
  background: white;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  overflow: hidden;
}
.card img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; display: block; }
.card-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

/* ── SECTION ── */
.section { margin-bottom: 3rem; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem;
}
.section h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; }

/* ── STATS ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 2.5rem; }
.stat-card { background: var(--bg-surface); border-radius: var(--radius); padding: 1.1rem 1rem; text-align: center; }
.stat-card .num { font-size: 2rem; font-weight: 700; color: var(--blue-mid); line-height: 1.2; }
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── INFO BOX ── */
.info-box {
  background: var(--blue-light);
  border: 0.5px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.info-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--blue-mid);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white;
}
.info-box h3 { font-size: 1rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 6px; }
.info-box p { font-size: 0.875rem; color: #1e4a7a; line-height: 1.7; margin: 0; }

/* ── CONTACT GRID ── */
.contact-grid { display: grid; gap: 10px; }
.contact-row {
  display: flex; align-items: center; gap: 1rem;
  background: white; border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.contact-avatar {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 50%; background: var(--blue-light);
  color: var(--blue-dark); display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 700;
}
.contact-role { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-name { font-size: 15px; font-weight: 600; }
.contact-info { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.contact-info a { color: var(--blue-mid); }

/* ── EVENTS ── */
.event-list { display: grid; gap: 10px; }
.event-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: white; border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.event-date { min-width: 52px; text-align: center; background: var(--blue-light); border-radius: 8px; padding: 6px 4px; }
.event-date .day { font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); line-height: 1; }
.event-date .mon { font-size: 11px; text-transform: uppercase; color: var(--blue-mid); font-weight: 600; }
.event-title { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.event-desc { font-size: 13px; color: var(--text-muted); }

/* ── ACTIVITY ── */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.activity-card {
  background: white; border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.2rem 1rem;
  text-align: center; transition: background 0.15s; text-decoration: none !important; color: inherit !important; display: block;
}
.activity-card:hover { background: var(--bg-surface); text-decoration: none !important; }
.activity-card .icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; font-size: 22px;
}
.activity-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.activity-card p { font-size: 12px; color: var(--text-muted); }
.ic-blue  { background: #E6F1FB; color: #185FA5; }
.ic-green { background: #EAF3DE; color: #3B6D11; }
.ic-amber { background: #FAEEDA; color: #854F0B; }
.ic-teal  { background: #E1F5EE; color: #0F6E56; }
.ic-coral { background: #FAECE7; color: #993C1D; }
.ic-pink  { background: #FBEAF0; color: #993556; }

/* ── PROSE ── */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.3rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text); }
.prose p { margin-bottom: 1rem; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { font-weight: 600; }

/* ── DIVIDER ── */
.divider { height: 0.5px; background: var(--border); margin: 2.5rem 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-surface);
  border-top: 0.5px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 0.8rem; }
.footer-col p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-muted); margin-bottom: 6px; text-decoration: none; }
.footer-col a:hover { color: var(--blue-mid); }
.footer-bottom {
  max-width: var(--max-width); margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 0.5px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 13px; color: var(--text-muted);
}

/* ── WP defaults ── */
.wp-block-image img { border-radius: var(--radius); }
.alignwide { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .page-hero-full h1 { font-size: 2rem; }
}


/* ── NAVIGATION DROPDOWN ── */
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 0 13px;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
  text-decoration: none;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a { color: var(--blue-mid); }
.nav-list > li.current-menu-item > a { border-bottom-color: var(--blue-mid); }

.nav-list ul {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  background: white;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  min-width: 200px;
  z-index: 9999;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  list-style: none;
}
.nav-list ul li a {
  display: block;
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: none;
  height: auto;
  line-height: 1.5;
}
.nav-list ul li a:hover {
  background: var(--bg-surface);
  color: var(--blue-mid);
}
.nav-list ul ul {
  top: 0;
  left: 200px;
}
.nav-facebook {
  margin-left: 8px;
  background: #1877F2 !important;
  color: white !important;
  padding: 7px 14px !important;
  border-radius: 7px !important;
  height: auto !important;
  font-size: 13px !important;
  border-bottom: none !important;
  align-self: center;
}
.nav-facebook:hover { opacity: 0.9; text-decoration: none !important; }

/* ── HERO TITLE SIZE ── */
.page-hero-full h1 {
  font-size: 3.5rem;
}


/* ── MOBILMENU ── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  z-index: 200;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: white;
  z-index: 9998;
  overflow-y: auto;
  padding: 0;
}
.mobile-nav.open { display: block; }

.mobile-nav-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}
.mobile-nav-close {
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mobile-nav .nav-list {
  flex-direction: column;
  padding: 8px 0;
}
.mobile-nav .nav-list > li {
  border-bottom: 0.5px solid var(--border);
  position: static;
}
.mobile-nav .nav-list > li > a {
  height: auto !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
  color: var(--text) !important;
  border-bottom: none !important;
  display: block !important;
  font-weight: 500;
}
.mobile-nav .nav-list > li > a:hover {
  background: var(--bg-surface);
  color: var(--blue-mid) !important;
}
.mobile-nav .nav-list ul {
  display: block !important;
  position: static !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 0 8px 0 !important;
  background: var(--bg-surface) !important;
  min-width: auto !important;
}
.mobile-nav .nav-list ul li a {
  padding: 9px 20px 9px 36px !important;
  font-size: 14px !important;
  color: var(--text-muted) !important;
  border-bottom: none !important;
  height: auto !important;
}
.mobile-nav .nav-list ul li a:hover {
  color: var(--blue-mid) !important;
  background: none !important;
}

@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
  .site-topbar { font-size: 11px; padding: 7px 1rem; }
}
