@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/Nunito-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Aalborg Power Group — navy / mint palette */
:root {
  /* Official APG screen palette (Brand Manager) — navy #07263F, green #00E386 only */
  --navy: #07263F;
  --mint: #00E386;
  --mint-soft: #e6faf2;
  --white: #ffffff;
  --off-white: #f7fafc;
  --text: #07263F;
  --text-muted: #5a6b7c;
  --border: #d0dde8;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(7, 38, 63, 0.08);
  --max-width: 1100px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--mint);
}

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

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--mint);
}

.logo:hover {
  color: var(--white);
}

.logo:hover span {
  color: var(--mint-soft);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(0, 227, 134, 0.2);
  color: var(--mint);
}

/* Main */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy) 60%, var(--navy) 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--mint);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--mint);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--mint);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--mint);
}

.btn-outline:hover {
  background: rgba(0, 227, 134, 0.15);
  color: var(--mint);
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--mint);
  display: inline-block;
}

.section h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
}

.section p,
.section li {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--mint);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.12);
}

.card h3 {
  color: var(--navy);
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.card .card-link {
  font-weight: 600;
  color: var(--mint);
  font-size: 0.9rem;
}

.card .card-link:hover {
  color: var(--navy);
}

/* Specs table */
.specs {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.specs th,
.specs td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  width: 40%;
}

.specs tr:last-child td {
  border-bottom: none;
}

.specs tr:nth-child(even) td {
  background: var(--mint-soft);
}

/* Badge / notice */
.notice {
  background: var(--mint-soft);
  border-left: 4px solid var(--mint);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
  color: var(--navy);
}

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 520px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mint);
  background: var(--white);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-inner h3 {
  color: var(--mint);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-inner p,
.footer-inner a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.35rem;
}

.footer-inner a:hover {
  color: var(--mint);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Utility */
.muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .hero {
    padding: 2.5rem 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .specs th,
  .specs td {
    display: block;
    width: 100%;
  }

  .specs th {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .specs td {
    padding-top: 0.25rem;
  }
}

/* Footer contact form — light labels on navy */
.site-footer .form-group label {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .form-group input,
.site-footer .form-group textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.site-footer .form-group input:focus,
.site-footer .form-group textarea:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--mint);
}

.site-footer .form-group input::placeholder,
.site-footer .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* How we build — product imagery */
.build-media {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.build-media figure {
  margin: 0;
  max-width: 520px;
  justify-self: center;
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

.build-media img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.build-media figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

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


/* Official logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

.logo-img--header {
  width: 180px;
  height: auto;
}

.logo-img--footer {
  width: 160px;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}


/* About bio */
.bio-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.bio-photo {
  aspect-ratio: 1;
  width: 180px;
  border-radius: var(--radius);
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.bio-role {
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bio-copy h3 {
  margin-bottom: 0.25rem;
  color: var(--navy);
}

@media (max-width: 640px) {
  .bio-card {
    grid-template-columns: 1fr;
  }
}


.card-photo {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: calc(var(--radius) - 2px);
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}


.card-photo--img {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.card-photo--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


.card-figure {
  margin: 1rem 0 0;
}

.card-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.card-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}


.feature-expand {
  cursor: pointer;
  grid-column: auto;
}

.feature-expand[open] {
  grid-column: 1 / -1;
  width: 100%;
}

.feature-expand summary {
  list-style: none;
}

.feature-expand summary::-webkit-details-marker {
  display: none;
}

.feature-expand summary h3 {
  margin-bottom: 0.5rem;
}

.feature-expand-hint {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.feature-expand[open] .feature-expand-hint {
  display: none;
}

.feature-expand-panel {
  overflow: hidden;
}

.feature-expand-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}

.feature-expand .card-figure {
  margin: 0;
}

.feature-expand .card-figure img {
  max-width: 100%;
  width: 100%;
}

.feature-expand-copy h4 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .feature-expand-body {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-expand-panel {
    transition: none !important;
  }
}



.contact-form--page {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-page-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

@media (max-width: 768px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}


.footer-legal-address {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.45;
}


.module-media--pair {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
}

.module-media--pair figure {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.module-media--pair img {
  display: block;
  width: 100%;
  height: auto;
}

.build-media-figure--cutout {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.build-media-figure--cutout img {
  max-width: 100%;
}

@media (max-width: 768px) {
  .module-media--pair {
    grid-template-columns: 1fr;
  }
}


.product-hero-figure {
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  text-align: center;
}

.product-hero-figure img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}


.card-photo--cutout {
  background: transparent;
  border: none;
  box-shadow: none;
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
}

.card-photo--cutout img {
  width: 100%;
  height: auto;
  object-fit: contain;
}


.card--link {
  padding: 0;
  overflow: hidden;
}

.card-hit {
  display: block;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-hit:hover h3,
.card-hit:focus-visible h3 {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-hit .card-link {
  display: inline-block;
  margin-top: 0.75rem;
}


.build-media-link {
  display: block;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.build-media-link figcaption {
  text-align: center;
  margin-top: 0.75rem;
}

.build-media-link:hover figcaption,
.build-media-link:focus-visible figcaption {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* HDX series label and note */
.card-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.series-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.series-note--left {
  text-align: left;
}

/* Partner/project logo (About: HDPower) */
.partner-logo-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.partner-logo {
  display: block;
  width: 200px;
  height: auto;
}

/* About: repeatable project cards */
.project-list {
  display: grid;
  gap: 1.25rem;
}

.project-card h3 {
  margin-bottom: 0.25rem;
}

.project-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.project-partners-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.project-partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-partners-logos img {
  display: block;
  height: 30px;
  width: auto;
}

.project-partners--funders {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

/* Partner rows: override .section ul/li spacing so logos line up with the label */
.section .project-partners-logos {
  padding: 0;
  margin: 0;
}

.section .project-partners-logos li {
  margin: 0;
  line-height: 0;
}

/* Same label width in every row so logos start in one column */
.project-partners .project-partners-label {
  min-width: 6.5rem;
}
