/* =========================================================
   VARIABLES
========================================================= */
:root {
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --bgTop: #020617;
  --bgBottom: #0f172a;
  --panel: rgba(2, 6, 23, 0.82);
  --border: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   RESET
========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* =========================================================
   BASE
========================================================= */
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bgTop), var(--bgBottom));
  color: var(--text);
  padding: 2rem;
}

p { line-height: 1.7; }
.muted { color: var(--muted); }

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 64px;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-left {
  width: 260px;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

.nav-right a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0.1rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-right a:hover { color: var(--text); }
.nav-right a:hover {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.35rem;
}


.nav-right a.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.35rem;
}

/* =========================================================
   LOGO
========================================================= */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.logo:hover img { opacity: 0.9; }

/* =========================================================
   HERO
========================================================= */
.hero {
  margin-top: 64px;                 /* skyv ned under navbar */
  height: 70vh;
  min-height: 420px;
  background:
    linear-gradient(rgba(2,6,23,0.65), rgba(2,6,23,0.85)),
    url("katedralen.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: #020617;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================================
   CONTENT LAYOUT
========================================================= */
.wrap {
  max-width: 860px;
  margin: 32px auto 0 auto;
}

main {
  background: var(--panel);
  border-radius: 16px;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.page-header { margin-bottom: 2rem; }

main h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

section { margin-top: 2rem; }

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* =========================================================
   CTA
========================================================= */
.cta { margin-top: 3rem; }

.cta-card {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #020617;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 640px) {
  body { padding: 1rem; }
  .navbar { padding: 0 1rem; }
  .nav-left { width: 180px; }
  .nav-right { gap: 0.85rem; }
  .nav-right a { font-size: 0.9rem; }

  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.05rem; }

  main { padding: 1.75rem; }
  main h1 { font-size: 2rem; }
  .logo img { height: 38px; }
}
