/*
Theme Name: Grafit Simple Parallax
Theme URI: https://example.com
Author: Grafit
Author URI: https://example.com
Description: Simpelt onepage-parallax theme til Grafit med styrbare baggrunde og tekstblokke.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: grafit-simple-parallax
*/

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
}

a {
  color: inherit;
  text-decoration: none;
}

header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  color: #fff;
}

header .site-title img {
  max-height: 40px;
  width: auto;
  vertical-align: middle;
}

header .site-title {
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

header .nav-links a {
  margin-left: 20px;
  font-size: 0.9rem;
}

main {
  margin-top: 60px; /* plads til header */
}

/* Hero sektion */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.65), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.hero .btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #ffffff;
  color: #111;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Parallax sektioner */

.parallax {
  position: relative;
  min-height: 60vh;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
}

.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.parallax-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

/* Indholdssektioner */

.section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.section p {
  margin-bottom: 10px;
  text-align: center;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  background: #111;
  color: #aaa;
}
