/*
Theme Name: Nordic Defence Partner Standalone
Theme URI: https://nordicdefencepartner.dk/
Author: Nordic Defence Partner
Description: Standalone WordPress one-page theme for Nordic Defence Partner. Built for weapon transport, IT systems and reloading equipment with a dark, tactical red/grey visual identity.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ndp
*/

:root {
  --ndp-black: #030405;
  --ndp-black-2: #080a0c;
  --ndp-panel: #111418;
  --ndp-panel-2: #171a1f;
  --ndp-white: #f7f7f7;
  --ndp-muted: #aeb4bb;
  --ndp-muted-2: #747b84;
  --ndp-line: rgba(255, 255, 255, 0.12);
  --ndp-red: #d4111d;
  --ndp-red-dark: #7d0710;
  --ndp-silver: #d4d7db;
  --ndp-max: 1180px;
  --ndp-radius: 24px;
  --ndp-shadow: 0 26px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ndp-white);
  background: var(--ndp-black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 18%, rgba(212, 17, 29, 0.12), transparent 22rem),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.08), transparent 20rem),
    var(--ndp-black);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(115deg, transparent 0 9%, rgba(255,255,255,.12) 9.2%, transparent 9.6% 26%, rgba(255,255,255,.08) 26.2%, transparent 26.8%),
    radial-gradient(ellipse at 12% 20%, transparent 0 12%, rgba(255,255,255,.11) 12.2% 12.6%, transparent 12.8% 100%),
    radial-gradient(ellipse at 88% 60%, transparent 0 14%, rgba(255,255,255,.1) 14.1% 14.5%, transparent 14.7% 100%);
  background-size: 520px 520px, 680px 420px, 760px 560px;
}

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

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

a:hover,
a:focus-visible {
  color: var(--ndp-white);
}

p {
  margin: 0 0 1.1rem;
  color: var(--ndp-muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ndp-white);
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  max-width: 840px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.container {
  width: min(var(--ndp-max), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.section-dark,
.section-light {
  position: relative;
  overflow: hidden;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(3,4,5,0.92), rgba(3,4,5,0.98)),
    radial-gradient(circle at 86% 10%, rgba(212, 17, 29, 0.15), transparent 28rem);
}

.section-light {
  color: #121417;
  background:
    radial-gradient(circle at 90% 10%, rgba(212, 17, 29, 0.08), transparent 28rem),
    linear-gradient(180deg, #f7f7f7, #eceff2);
}

.section-light h1,
.section-light h2,
.section-light h3 {
  color: #111317;
}

.section-light p {
  color: #4e555f;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ndp-red);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 4, 5, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ndp-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  width: min(360px, 62vw);
}

.brand img {
  width: 100%;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.48));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  padding: 0.7rem 0.95rem;
  color: var(--ndp-muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all .2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--ndp-white);
  background: rgba(255,255,255,.08);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ndp-line);
  border-radius: 14px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ndp-white);
}

.hero {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.hero::before {
  content: "";
  position: absolute;
  right: -14rem;
  top: 8rem;
  width: 44rem;
  height: 44rem;
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6rem rgba(255,255,255,.02), inset 0 0 0 16rem rgba(255,255,255,.02);
}

.hero::after {
  content: "+";
  position: absolute;
  right: 11rem;
  top: 19rem;
  color: rgba(255,255,255,.16);
  font-size: 12rem;
  line-height: 1;
  font-weight: 100;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.62fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--ndp-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.75rem;
  height: 2px;
  background: currentColor;
}

.eyebrow.red {
  color: var(--ndp-red);
}

.lead {
  max-width: 730px;
  margin-top: 1.35rem;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  color: #c9ced4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ndp-red), var(--ndp-red-dark));
  box-shadow: 0 18px 42px rgba(212, 17, 29, .26);
}

.button-ghost {
  color: var(--ndp-white);
  border-color: var(--ndp-line);
  background: rgba(255,255,255,.05);
}

.button.wide {
  width: 100%;
}

.hero-panel {
  position: relative;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--ndp-radius);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: var(--ndp-shadow);
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 3.4rem;
  height: 3.4rem;
  border-color: var(--ndp-red);
  border-style: solid;
  opacity: .82;
}

.hero-panel::before {
  left: -0.7rem;
  top: -0.7rem;
  border-width: 2px 0 0 2px;
}

.hero-panel::after {
  right: -0.7rem;
  bottom: -0.7rem;
  border-width: 0 2px 2px 0;
}

.hero-panel img {
  border-radius: calc(var(--ndp-radius) - 8px);
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.intro {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.intro-grid p:last-child {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.services,
.process,
.contact {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.timeline-item,
.contact-panel,
.entry {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ndp-radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    var(--ndp-panel);
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
}

.service-card {
  min-height: 420px;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--ndp-red), transparent);
  opacity: .72;
}

.card-number {
  display: inline-flex;
  margin-bottom: 5rem;
  color: rgba(255,255,255,.12);
  font-size: 4.5rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card ul {
  display: grid;
  gap: .72rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ndp-silver);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7rem;
  width: .42rem;
  height: .42rem;
  background: var(--ndp-red);
  border-radius: 50%;
}

.brand-split,
.compliance {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

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

.brand-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid rgba(10, 10, 10, .12);
  border-radius: var(--ndp-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(212,17,29,.13), transparent 18rem),
    linear-gradient(145deg, #ffffff, #e4e8ec);
  box-shadow: 0 26px 80px rgba(14, 18, 24, .15);
}

.brand-card::after {
  content: "NDP";
  position: absolute;
  right: -1.2rem;
  bottom: -1.2rem;
  color: rgba(17, 19, 23, .055);
  font-size: clamp(7rem, 14vw, 11rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.09em;
}

.brand-card h2,
.brand-card p,
.brand-card a {
  position: relative;
  z-index: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  color: #111317;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}

.text-link::after {
  content: "→";
  margin-left: .6rem;
  color: var(--ndp-red);
  transition: transform .2s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(4px);
}

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

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212,17,29,.45);
  border-radius: 50%;
  color: var(--ndp-red);
  font-weight: 950;
}

.timeline-item h3 {
  margin-bottom: .9rem;
}

.compliance-box {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(10, 10, 10, .12);
  border-radius: var(--ndp-radius);
  background: rgba(255,255,255,.58);
  box-shadow: 0 22px 70px rgba(14, 18, 24, .12);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .48fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.contact-grid p {
  font-size: 1.06rem;
}

.contact-panel h3 {
  margin-bottom: 1rem;
}

.contact-panel a:not(.button) {
  color: var(--ndp-white);
  border-bottom: 1px solid rgba(212,17,29,.7);
}

.site-footer {
  background: #020303;
  border-top: 1px solid var(--ndp-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr);
  gap: 2rem;
  padding: 3rem 0;
}

.footer-logo {
  width: min(430px, 100%);
  margin-bottom: 1rem;
}

.site-footer h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-footer span {
  color: var(--ndp-red);
  padding: 0 .35rem;
}

.footer-note {
  font-size: .92rem;
}

.footer-bottom {
  padding: 1rem 0;
  color: var(--ndp-muted-2);
  border-top: 1px solid rgba(255,255,255,.07);
}

.content-page {
  padding: clamp(5rem, 9vw, 8rem) 0;
  min-height: 66vh;
}

.entry {
  color: var(--ndp-white);
}

.entry h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  margin-bottom: 1.5rem;
}

.entry-content a {
  color: var(--ndp-red);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .intro-grid,
  .contact-grid,
  .compliance-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    max-width: 520px;
  }

  .card-grid.three,
  .timeline,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 2.8rem;
  }
}

@media (max-width: 780px) {
  .header-inner {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 1rem 20px 1.2rem;
    background: rgba(3,4,5,.98);
    border-bottom: 1px solid var(--ndp-line);
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu a {
    width: 100%;
    justify-content: center;
    padding: .95rem;
  }

  .brand {
    width: min(270px, 62vw);
  }

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

@media (max-width: 540px) {
  .container {
    width: min(var(--ndp-max), calc(100% - 28px));
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero::before,
  .hero::after {
    display: none;
  }
}
