/* ============================================================
   Drenge.dk — Stylesheet
   Rediger farverne i :root herunder for at ændre hele sitet
   ============================================================ */

:root {
  /* Farver — primær + accent */
  --green:        #2d6a2d;
  --green-dark:   #1e4d1e;
  --green-light:  #a8e063;
  --green-bg:     #f5f9f0;
  --green-card:   #eaf5da;

  /* Tekst */
  --text:         #1a2e1a;
  --text-muted:   #5a7a5a;

  /* Øvrige */
  --white:        #ffffff;
  --radius:       14px;
  --shadow:       0 4px 24px rgba(45, 106, 45, 0.12);
  --shadow-lg:    0 8px 40px rgba(45, 106, 45, 0.18);

  /* Typografi */
  --font-head:    'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --max-w:        1140px;
  --section-py:   5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Hjælpeklasser ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--section-py);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ── Knapper ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ────────────────────────────
   NAVIGATION
──────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 1rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(45, 106, 45, 0.1);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--green); }

.cta-nav {
  background: var(--green);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.cta-nav:hover { background: var(--green-dark); transform: translateY(-1px); }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ────────────────────────────
   HERO
──────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(150deg, var(--green-dark) 0%, var(--green) 60%, #3d8a3d 100%);
  padding-top: 5rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
  padding-block: 4rem;
  color: var(--white);
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 1rem;
}

.hero-heading {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero .btn-primary {
  background: var(--green-light);
  color: var(--green-dark);
  border-color: var(--green-light);
  font-size: 1.05rem;
}
.hero .btn-primary:hover {
  background: #c8f08f;
  border-color: #c8f08f;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ────────────────────────────
   YDELSER
──────────────────────────── */
.services {
  background: var(--green-bg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  color: var(--green);
}
.card-icon svg { width: 100%; height: 100%; }

.card-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
}

.card-desc { color: var(--text-muted); font-size: 0.97rem; }

.card-price {
  font-size: 1rem;
  color: var(--text);
}
.card-price strong { color: var(--green); font-size: 1.1rem; }

.card .btn { margin-top: auto; align-self: flex-start; }

/* ────────────────────────────
   OM OS
──────────────────────────── */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text { display: flex; flex-direction: column; gap: 1rem; }

.about-text p { color: var(--text-muted); font-size: 1.02rem; }

.img-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.img-placeholder svg { width: 100%; height: auto; }

/* ────────────────────────────
   GALLERI
──────────────────────────── */
.gallery { background: var(--green-bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.gallery-item svg,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ────────────────────────────
   KONTAKT
──────────────────────────── */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text { display: flex; flex-direction: column; gap: 1rem; }
.contact-text p { color: var(--text-muted); }

.contact-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}
.contact-list svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.contact-list a { color: var(--green); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

/* Formular */
.contact-form {
  background: var(--green-bg);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #d4e8c2;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 106, 45, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aac89a; }

.hidden { display: none; }

/* ────────────────────────────
   FOOTER
──────────────────────────── */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-light);
}

.footer-copy { font-size: 0.88rem; }

.footer-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.footer-nav a { transition: color 0.2s; }
.footer-nav a:hover { color: var(--green-light); }

/* ────────────────────────────
   RESPONSIV — tablet
──────────────────────────── */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-img { order: -1; }
}

/* ────────────────────────────
   RESPONSIV — mobil
──────────────────────────── */
@media (max-width: 640px) {
  :root { --section-py: 3.5rem; }

  .cards { grid-template-columns: 1fr; }

  /* Vis hamburger, skjul menu som standard */
  .burger { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.3rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav-menu.open { transform: translateX(0); }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
