/* =================================================================
   GBSCA e.V. — Shared Stylesheet
   Used by all inner pages. index.html has its own embedded styles
   but also loads this via components.js for the header/footer.
================================================================= */

:root {
  --burgundy:      #861f2d;
  --burgundy-dark: #641521;
  --gold:          #c79a45;
  --cream:         #faf7f1;
  --cream-dark:    #f2ece1;
  --white:         #ffffff;
  --ink:           #191817;
  --muted:         #6d6862;
  --border:        #e8e0d4;
  --max-width:     1180px;
  --radius:        22px;
  --shadow:        0 18px 50px rgba(34, 25, 20, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---- Layout -------------------------------------------------- */

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

/* ---- Header -------------------------------------------------- */

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 224, 212, 0.8);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: white;
  box-shadow: 0 0 0 2px rgba(199, 154, 69, 0.45), 0 3px 12px rgba(134, 31, 45, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Shown when logo image fails to load */
.brand-mark-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--burgundy);
  color: white;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a { transition: color 0.2s ease; }

.nav-links a:hover,
.nav-links a.active { color: var(--burgundy); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

/* Mobile nav drawer */
.nav-links.mobile-open {
  display: flex !important;
  position: absolute;
  top: 82px;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: var(--cream);
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ---- Buttons ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 50px;
  padding: 13px 21px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { color: white; background: var(--burgundy); }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-light { background: white; color: var(--ink); }
.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--cream-dark); }

/* ---- Eyebrow label ------------------------------------------- */

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ---- Inner page layout --------------------------------------- */

.page {
  padding: 140px 0 100px;
  min-height: 75vh;
}

.page h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(45px, 7vw, 78px);
  line-height: 1;
  font-weight: 600;
  max-width: 800px;
  letter-spacing: -0.04em;
}

.page-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  margin: 25px 0 40px;
}

/* ---- Card grid ----------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 45px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
}

.card h2 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  margin-bottom: 12px;
}

.card p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---- Event cards --------------------------------------------- */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.event-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-dark);
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card:hover .event-image img { transform: scale(1.05); }

.event-content {
  padding: 26px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-status {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.event-status.confirmed { background: #d4f7e3; color: #1a7a40; }
.event-status.upcoming  { background: #fef3cd; color: #856404; }
.event-status.past      { background: var(--cream-dark); color: var(--muted); }

.event-content h3 {
  margin: 10px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 26px;
  line-height: 1.1;
}

.event-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.event-location {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event-tag {
  background: var(--cream-dark);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.no-events {
  color: var(--muted);
  font-size: 16px;
  padding: 60px 0;
  text-align: center;
}

/* ---- Gallery grid -------------------------------------------- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 45px;
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.photo-gallery img:hover { transform: scale(1.02); }

/* ---- Bank / legal block -------------------------------------- */

.info-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px;
  max-width: 680px;
  margin-top: 45px;
}

.info-block h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin-bottom: 18px;
}

.info-block p { color: var(--muted); font-size: 15px; margin-top: 10px; line-height: 1.8; }

/* ---- Footer -------------------------------------------------- */

footer {
  background: #171514;
  color: white;
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  margin-bottom: 16px;
  color: white;
}

footer p,
footer a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.9;
}

footer a:hover { color: var(--gold); }

.footer-links { display: grid; gap: 9px; }

.footer-bottom {
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
}

/* ---- Responsive ---------------------------------------------- */

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-actions .btn-primary { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
}

@media (max-width: 700px) {
  .nav { height: 70px; }
  .brand-text span { display: none; }
  .nav-links.mobile-open { top: 70px; }
  .page { padding: 110px 0 75px; }
  .card-grid,
  .events-grid { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .info-block { padding: 28px 24px; }
}
