/* === GLOBAL === */
:root {
  --primary: #ef4444;
  --primary-dark: #dc2626;
  --background: #0f2d3f;
  --background-dark: #0d2533;
  --text: #eaf1f7;
  --text-muted: #c7d2de;

  /* Premium accents */
  --accent-1: #ef4444;
  --accent-2: #f59e0b;
  --accent-3: #22d3ee;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-stroke: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(1400px 700px at 80% -10%, rgba(239, 68, 68, 0.08), transparent 40%),
    radial-gradient(1000px 500px at 20% -10%, rgba(34, 211, 238, 0.06), transparent 40%),
    var(--background);
  color: var(--text);
  line-height: 1.6;
}

/* === TOPBAR === */
.topbar {
  background: var(--background-dark);
  padding: 0.6rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-info span { margin-right: 1rem; }

.social-section { display: flex; align-items: center; gap: 0.75rem; }
.social-icons { display: flex; gap: 1.2rem; }
.social-icons a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem;
  transition: color .25s ease, transform .2s ease, text-shadow .2s ease;
}
.social-icons a:hover {
  color: var(--accent-3);
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(34, 211, 238, .45);
}
.social-arrow {
  color: var(--accent-3);
  opacity: .85;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, .4));
  animation: arrowGlow 2s ease-in-out infinite;
}
@keyframes arrowGlow {
  0% { opacity: .4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6px); }
  100% { opacity: .4; transform: translateX(0); }
}

/* === NAVIGATION === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 6rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

/* Logo og tekst — OPDATERET */
.brand img { 
  height: 70px;   /* større logo på desktop */
  width: auto; 
  display: block; 
}

.brand span { 
  font-size: 1.8rem;  /* større tekst */
  font-weight: 700; 
  letter-spacing: .4px; 
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: 4rem;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--accent-3); }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }

/* RESPONSIV LOGO */
@media (max-width: 900px) {
  .brand img {
    height: 45px; /* mindre logo på mobil */
  }

  .brand span {
    font-size: 1.2rem;
  }
}

/* === HERO === */
.hero {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 992px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 4rem;
  }
}
.hero-text { max-width: 600px; }
.hero-text h1 {
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 1rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.hero-text p { color: var(--text-muted); font-size: 1.05rem; }
.hero-buttons { margin-top: 2rem; display: flex; gap: 1rem; }

.btn-primary, .btn-secondary {
  padding: 0.9rem 1.9rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #0b1924;
  box-shadow: 0 10px 24px rgba(239, 68, 68, .25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(239, 68, 68, .3);
}
.btn-secondary {
  border: 1px solid rgba(255, 255, 255, .6);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.hero-image { display:flex; justify-content:center; align-items:center; margin-top:3rem; }
@media (min-width: 768px)  { .hero-image { margin-top: 0; justify-content: flex-end; } }
@media (min-width: 992px)  { .hero-image { justify-self: end; transform: translateX(40px); } }
@media (min-width: 1200px) { .hero-image { transform: translateX(70px); } }
@media (min-width: 1440px) { .hero-image { transform: translateX(100px); } }

.hero-img {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35));
  animation: floatHero 6s ease-in-out infinite;
}
@keyframes floatHero {
  0%, 100% { transform: translateY(0) }
  50%     { transform: translateY(-6px) }
}

/* === FEATURES === */
.features { padding: 4rem 2rem 6rem; }
.features-header { max-width: 900px; margin: 0 auto 2.6rem; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  background: linear-gradient(90deg, #22d3ee 0%, #ef4444 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.features-header h2 {
  margin: 14px 0 6px;
  font-size: 2.1rem;
  font-weight: 700;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.features-header p { margin: 0; color: var(--text-muted); }

.features-grid {
  max-width: 1200px;
  margin: 2.4rem auto 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,255,255,.16);
}
.icon-badge {
  --size: 58px;
  width: var(--size);
  height: var(--size);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 10px 28px rgba(239, 68, 68, .28), inset 0 -8px 14px rgba(0, 0, 0, .18);
}
.icon-badge i {
  font-size: 22px;
  color: #0b1924;
}
.feature-card h3 { margin: 14px 0 8px; font-size: 1.24rem; font-weight: 600; color: var(--text); }
.feature-card p  { margin: 0 0 auto; color: var(--text-muted); line-height: 1.7; }
.meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: rgba(234,241,247,.9);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 6px 10px;
  border-radius: 999px;
  margin-top: 1rem;
}
.meta i { color: #fff; }

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #0b1924;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 12px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08) inset;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: 0 16px 32px rgba(0,0,0,.45);
  transform: translateY(-2px) scale(1.02);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 2px;
}

/* === KONTAKTFORMULAR === */
.page-placeholder {
  padding: 8rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-placeholder h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.page-placeholder p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-wrapper {
  max-width: 650px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}
.contact-wrapper h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}
.form-group {
  flex: 1 1 calc(50% - 1rem);
  display: flex;
  flex-direction: column;
  text-align: left;
}
.form-group.full { flex: 1 1 100%; }
.form-group label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text);
  transition: border 0.3s, background 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--primary);
}
.form-btn {
  width: 100%;
  font-size: 1.05rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 0.5rem;
}
.form-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .form-group { flex: 1 1 100%; }
}

/* === MOBILE NAVIGATION === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    right: 0;
    background: var(--background-dark);
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .navbar {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
  }

  .topbar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0.8rem 1rem;
  }

  .contact-info span {
    display: block;
    margin-right: 0;
  }

  .social-section {
    justify-content: center;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    text-align: center;
  }

  .hero-text p {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-top: 2rem;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* === FOOTER BAR === */
.footer-bar {
  background: var(--background-dark);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.footer-logo img {
  width: 38px;
  height: auto;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.footer-column p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
  color: var(--accent-3);
  transform: translateY(-3px);
}

.footer-column h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.6rem;
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.footer-column ul li a:hover {
  color: var(--accent-3);
}

.contact-list i {
  margin-right: 0.6rem;
  color: var(--accent-3);
}

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === RESPONSIV FOOTER === */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }
}
