/*
Theme Name: Webbureau Grundtema
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Et moderne WordPress-grundtema inspireret af et mørkt webbureau-look med hero, highlights, content cards og kontaktsektion.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: webbureau-grundtema
*/

:root {
  --bg-1: #171717;
  --bg-2: #0a0a0a;
  --bg-3: #000000;
  --surface: rgba(201, 200, 198, 0.06);
  --surface-strong: rgba(214, 138, 39, 0.1);
  --call-to-action: rgba(82, 241, 76, 0.5);
  --lnkin: #0A66C2;
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.5);
  --dark-text: #0b0b0b;
  --container: 1200px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.background-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.background-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.12;
}

.glow,
.shape,
.line {
  position: absolute;
}

.glow {
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.12);
}

.glow.one {
  width: 26rem;
  height: 26rem;
  left: -8rem;
  top: -5rem;
}

.glow.two {
  width: 22rem;
  height: 22rem;
  right: -7rem;
  top: 14rem;
}

.glow.three {
  width: 30rem;
  height: 30rem;
  right: 8%;
  bottom: -10rem;
  opacity: 0.2;
}

.shape.square {
  width: 7rem;
  height: 7rem;
  left: 8%;
  top: 24%;
  transform: rotate(12deg);
  border-radius: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.shape.circle {
  width: 10rem;
  height: 10rem;
  right: 14%;
  top: 18%;
  border-radius: 999px;
  border: 1px solid var(--border);
}
/*
.line.one,
.line.two {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.line.one {
  width: 10rem;
  left: 12%;
  top: 52%;
}

.line.two {
  width: 14rem;
  right: 10%;
  top: 58%;
  opacity: 0.7;
}
*/
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.brand-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #bb5a34;
  margin-top: 0.5px;
}

.site-nav {
  display: flex;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #fff;
}

.button,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  margin-top: 1em;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.button-primary {
  background: #fff;
  color: #000;
}

.button-primary:hover {
  background: #f2f2f2;
}

button#wpforms-submit-21 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  margin-top: 1em;
}
.call-to-action {
  background: var(--call-to-action);
  color: #ffffff;
}
.call-to-action:hover {
  background: rgba(82, 241, 76, 0.7);
}

.lnkin {
  background: var(--lnkin);
}
.lnkin:hover {
  background: var(--lnkin, 0.8);
}
.hero {
  padding: 3rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 1.25rem 0 0;
  max-width: 12ch;
}

.hero p {
  max-width: 42rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 1.5rem 0 0;
}

.hero-actions,
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-badges {
  margin-top: 3rem;
}

.badge-card,
.glass-card,
.highlight-card,
.mini-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.badge-card {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  min-width: 220px;
}

.badge-card small,
.section-label,
.preview-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  /*color: var(--soft);*/
  color: #BB5A34;
}

.badge-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.05rem;
}

.hero-preview {
  position: relative;
}

.float-circle,
.float-square {
  position: absolute;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.float-circle {
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  top: -1.5rem;
  right: -1rem;
}

.float-square {
  width: 4rem;
  height: 4rem;
  border-radius: 1.3rem;
  left: -1rem;
  bottom: 4rem;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.glass-card::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(50px);
  right: -1rem;
  top: -1rem;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.preview-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  color: var(--soft);
}

.mini-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.22);
}

.mini-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1.7rem;
}

.mini-card p {
  font-size: 0.97rem;
  margin-top: 1rem;
}

.section {
  padding: 2rem 0 4rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.9rem 0 0;
}

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

.highlight-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.highlight-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.highlight-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.feature-panel::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(65px);
  right: -1rem;
  top: -1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-box {
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
  color: var(--muted);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--dark-text);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.contact-panel .shape-outline {
  position: absolute;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  right: 2rem;
  top: 2rem;
}

.contact-panel .shape-glow {
  position: absolute;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  filter: blur(30px);
  left: 42%;
  bottom: -1rem;
}

.contact-panel p {
  color: rgba(0, 0, 0, 0.65);
}

.site-footer {
  padding: 1rem 0 2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.content-default {
  padding: 3rem 0 5rem;
}

.content-default .entry-title {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

.content-default .entry-content,
.content-default .page-content {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.85;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .site-nav {
    display: none;
  }

  .hero-grid,
  .section-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .hero {
    padding-top: 1.5rem;
  }

  .glass-card,
  .feature-panel,
  .contact-panel {
    padding: 1.25rem;
  }

  .eyebrow {
    letter-spacing: 0.18em;
  }
}

/* --- Burger menu for mobile only --- */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.burger-bar {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.4, 2, .6, 1);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: var(--bg-2);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  gap: 1.5rem;
  animation: slideDown 0.25s cubic-bezier(.4, 2, .6, 1);
}

.mobile-nav a {
  font-size: 1.2rem;
  padding: 0.7rem 0;
  color: #fff;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .button {
  margin-top: 1.5rem;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .burger-menu {
    display: flex;
  }

  .site-nav {
    display: none !important;
  }

  .mobile-nav[hidden] {
    display: none !important;
  }

  .mobile-nav {
    display: flex;
  }
}

/* Ensure burger menu and mobile nav are always on top */
.burger-menu {
  z-index: 12000;
}

.mobile-nav {
  z-index: 11999;
}

/* Force mobile menu and burger button to top of all content */
.burger-menu {
  position: fixed !important;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 99999 !important;
}

.mobile-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99998 !important;
}

/* --- WPForms custom styles --- */
.wpforms-field-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-bottom: 2rem;
}
.wpforms-field {
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
.wpforms-field-label {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.wpforms-required-label {
  color: #e74c3c;
  font-size: 1em;
  margin-left: 0.2em;
}
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field textarea {
  width: 100%;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: none;
  outline: none;
  resize: vertical;
}
.wpforms-field input[type="text"]:focus,
.wpforms-field input[type="email"]:focus,
.wpforms-field textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}
.wpforms-field textarea {
  min-height: 120px;
  max-width: 100%;
}
.wpforms-field input[aria-hidden="true"],
.wpforms-field[style*="z-index: -1000"] {
  display: none !important;
}
.wpforms-error {
  color: #e74c3c;
  font-size: 0.97rem;
  margin-top: 0.2rem;
}
.wpforms-submit-container {
  margin-top: 2rem;
}
.wpforms-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 1.7rem !important;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.wpforms-submit:hover {
  background: #fff;
  color: #000;
}