/*
Theme Name: Webnivo
Theme URI: https://webnivo.dk
Author: Webnivo
Description: Dansk virksomhedssite for webdesign, tilbud og kundehenvendelser.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: webnivo
*/

:root {
  --paper: #f3efe7;
  --paper-2: #e7e1d6;
  --card: #fffdf9;
  --ink: #171614;
  --ink-soft: #3c3832;
  --muted: #5e584e;
  --line: rgba(23, 22, 20, 0.12);
  --pine: #16302a;
  --pine-2: #21443a;
  --accent: #c4471e;
  --accent-dark: #8d3014;
  --cream: #f7f1e6;
  --shadow: 0 24px 60px rgba(22, 48, 42, 0.16);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body > main,
body > .wn-main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

::selection {
  background: #efc7b6;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wn-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.wn-skip:focus {
  top: 1rem;
}

.wn-wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wn-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

body.admin-bar .wn-header {
  top: 32px;
}

.wn-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wn-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.wn-mark {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}

.wn-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.wn-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wn-menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.wn-menu a:hover,
.wn-menu .current-menu-item > a,
.wn-menu .current_page_item > a {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.wn-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.wn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.wn-btn-accent {
  background: var(--accent);
  color: #fffaf6;
}

.wn-btn-accent:hover {
  background: var(--accent-dark);
}

.wn-btn-light {
  background: var(--cream);
  color: var(--pine);
}

.wn-btn-light:hover {
  background: #fff;
}

.wn-btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 241, 230, 0.35);
}

.wn-btn-ghost:hover {
  border-color: var(--cream);
}

.wn-btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.wn-btn-line:hover {
  border-color: var(--ink);
}

.wn-hero {
  background-color: var(--pine);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--cream);
  padding: 4.5rem 0 4rem;
}

.wn-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.wn-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e4b5a2;
}

.wn-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  max-width: 11ch;
  color: #f8f3ea;
}

.wn-lead {
  max-width: 38rem;
  font-size: 1.15rem;
  color: rgba(247, 241, 230, 0.86);
  margin-bottom: 1.6rem;
}

.wn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wn-mock {
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wn-mock-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.9rem;
  background: #efeae1;
  color: var(--muted);
  font-size: 0.78rem;
}

.wn-mock-top span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d7cfc2;
}

.wn-mock-top span:first-child {
  background: #e07a55;
}

.wn-mock-top em {
  margin-left: 0.4rem;
  font-style: normal;
}

.wn-mock-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0;
  font-size: 0.82rem;
}

.wn-mock-nav b {
  font-family: var(--serif);
}

.wn-mock-nav i {
  font-style: normal;
  color: var(--muted);
  margin-left: 0.7rem;
}

.wn-mock-hero {
  margin: 0.9rem 1rem 0;
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--pine);
  color: var(--cream);
}

.wn-mock-hero strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.wn-mock-hero em {
  display: inline-flex;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--cream);
  color: var(--pine);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.wn-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0.9rem 1rem 1.1rem;
}

.wn-mock-grid div {
  height: 4.2rem;
  border-radius: 10px;
  background: linear-gradient(#f7f3ec, #efe8dc);
  border: 1px solid var(--line);
}

.wn-mock-note {
  margin: 0.8rem 0 0;
  color: rgba(247, 241, 230, 0.62);
  font-size: 0.85rem;
}

.wn-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.wn-band article {
  background: var(--paper);
  padding: 1.4rem 1.3rem 1.5rem;
}

.wn-band strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  margin-bottom: 0.3rem;
}

.wn-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.wn-section {
  padding: 5rem 0;
}

.wn-section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.wn-section-head h2,
.wn-page-hero h1,
.wn-cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0;
}

.wn-section-head p,
.wn-page-hero p {
  max-width: 34rem;
  color: var(--muted);
  margin: 0;
}

.wn-kicker {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wn-service-list {
  display: grid;
  gap: 0.8rem;
}

.wn-service {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
}

.wn-service:hover {
  border-color: rgba(196, 71, 30, 0.45);
}

.wn-service b {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 560;
}

.wn-service strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.wn-service span {
  display: block;
  color: var(--muted);
}

.wn-service i {
  font-style: normal;
  color: var(--accent-dark);
  font-weight: 600;
}

.wn-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.wn-steps article {
  padding: 1.2rem;
  border-top: 2px solid var(--pine);
}

.wn-steps span {
  display: block;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}

.wn-steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.wn-steps p {
  margin: 0;
  color: var(--muted);
}

.wn-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wn-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
}

.wn-panel h3 {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.wn-panel p,
.wn-prose li {
  color: var(--ink-soft);
}

.wn-cta {
  background: var(--pine);
  color: var(--cream);
  padding: 4.5rem 0;
}

.wn-cta .wn-wrap {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.wn-cta p {
  max-width: 36rem;
  color: rgba(247, 241, 230, 0.8);
  margin: 0.8rem 0 0;
}

.wn-page-hero {
  padding: 4rem 0 1rem;
}

.wn-page-hero h1 {
  max-width: 14ch;
}

.wn-page-hero .wn-actions {
  margin-top: 1.25rem;
}

.wn-panel h2 {
  font-size: 1.7rem;
  margin: 0 0 0.55rem;
}

.wn-page-body {
  padding-bottom: 4.5rem;
}

.wn-prose {
  max-width: 44rem;
}

.wn-prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 2.2rem 0 0.6rem;
}

.wn-prose p,
.wn-prose li {
  font-size: 1.05rem;
}

.wn-prose ul,
.wn-prose ol {
  padding-left: 1.15rem;
}

.wn-prose a {
  color: var(--accent-dark);
}

.wn-updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.wn-offer {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.wn-offer article {
  padding: 1.3rem 1.3rem 1.4rem;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.wn-offer h2 {
  margin: 0 0 0.45rem;
}

.wn-check {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.wn-check li {
  position: relative;
  padding-left: 1.3rem;
  margin: 0.35rem 0;
}

.wn-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.wn-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.wn-facts li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.wn-form {
  display: grid;
  gap: 0.9rem;
  max-width: 40rem;
  margin-top: 1.4rem;
}

.wn-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.wn-form input,
.wn-form select,
.wn-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 22, 20, 0.18);
  background: var(--card);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  font-weight: 400;
}

.wn-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.wn-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.wn-notice {
  max-width: 40rem;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.wn-notice-ok {
  background: #e5f0ea;
  color: #16302a;
}

.wn-notice-bad {
  background: #fde8e1;
  color: #6d2612;
}

.wn-footer {
  background: var(--ink);
  color: #ece7de;
  padding: 3rem 0 1.4rem;
}

.wn-footer a {
  text-decoration: none;
}

.wn-footer a:hover {
  text-decoration: underline;
}

.wn-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.wn-footer p,
.wn-footer li {
  color: rgba(236, 231, 222, 0.78);
}

.wn-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wn-footer li + li {
  margin-top: 0.35rem;
}

.wn-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.wn-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(236, 231, 222, 0.6);
  font-size: 0.9rem;
}

.wn-cookie {
  position: fixed;
  z-index: 40;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--cream);
  border-radius: 16px;
  padding: 1rem 1rem 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.wn-cookie[hidden] {
  display: none !important;
}

.wn-cookie p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
}

.wn-cookie a {
  color: #f0c2b2;
}

@media (max-width: 900px) {
  .wn-hero-grid,
  .wn-band,
  .wn-steps,
  .wn-split,
  .wn-footer-grid,
  .wn-cta .wn-wrap,
  .wn-section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .wn-service {
    grid-template-columns: 3rem 1fr;
  }

  .wn-service i {
    grid-column: 2;
  }

  .wn-cta .wn-wrap {
    align-items: start;
  }

  .wn-hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 760px) {
  .wn-nav-toggle {
    display: none;
  }

  .wn-js .wn-nav-toggle {
    display: inline-flex;
  }

  .wn-js .wn-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.8rem 1.25rem 1rem;
    background: rgba(243, 239, 231, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .wn-js .wn-nav.is-open {
    display: flex;
  }

  .wn-js .wn-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  body.admin-bar .wn-js .wn-nav {
    top: calc(var(--header) + 46px);
  }
}

@media (max-width: 782px) {
  body.admin-bar .wn-header {
    top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
