/* =============================================
   RÅRUP FÆLLESVARME – Stylesheet
   Farver: Teal #2D7A6F (primær), Orange #E8722A (accent)
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:     #2D7A6F;
  --color-primary-dk:  #1E5A52;
  --color-primary-lt:  #3D9A8D;
  --color-accent:      #E8722A;
  --color-accent-dk:   #C45A18;
  --color-dark:        #1C3A36;
  --color-mid:         #EDF4F3;
  --color-light:       #FFFFFF;
  --color-text:        #2C3E3B;
  --color-text-muted:  #5A7470;
  --color-border:      #D0E5E2;

  --font-family:       'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base:    1rem;
  --line-height:       1.65;

  --radius-sm:         6px;
  --radius-md:         12px;
  --radius-lg:         20px;

  --shadow-sm:         0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:         0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:         0 8px 40px rgba(0,0,0,0.18);

  --nav-height:        68px;
  --container-max:     1100px;
  --section-pad:       5rem 1.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-light);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(232,114,42,0.35);
}

.btn-primary:hover {
  background: var(--color-accent-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(232,114,42,0.45);
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(45,122,111,0.10);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-primary-dk);
  white-space: nowrap;
}

.nav-logo-text strong {
  font-weight: 700;
  color: var(--color-primary-dk);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--color-mid);
  color: var(--color-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary-dk);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/raarup-klejstaarn_facebook-cover-2500.webp');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 50, 45, 0.55) 0%,
    rgba(20, 50, 45, 0.70) 60%,
    rgba(20, 50, 45, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + 2rem);
}

.hero-logo {
  width: 220px;
  max-width: 60vw;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.5;
}

/* =============================================
   SECTIONS – General
   ============================================= */
.section {
  padding: var(--section-pad);
}

.section-light {
  background: var(--color-light);
}

.section-mid {
  background: var(--color-mid);
}

.section-dark {
  background: var(--color-dark);
}

.section-accent {
  background: var(--color-primary);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-primary-dk);
  margin-bottom: 1rem;
  text-align: center;
}

.section-title-light {
  color: #fff;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.7;
}

.section-intro-light {
  color: rgba(255,255,255,0.82);
}

/* =============================================
   STATUS BANNER
   ============================================= */
.status-banner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: #FFF8F0;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.status-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-top: 0.2rem;
}

.status-icon svg {
  width: 100%;
  height: 100%;
}

.status-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-dk);
  margin-bottom: 0.75rem;
}

.status-text p {
  color: var(--color-text);
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.status-text p:last-child {
  margin-bottom: 0;
}

.status-note {
  background: rgba(232,114,42,0.1);
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* =============================================
   CARDS (Hvorfor fællesvarme)
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}

.card-dark h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0.75rem 0 0.5rem;
}

.card-dark p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--color-accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

/* =============================================
   TERMONET
   ============================================= */
.termonet-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

/* Diagram */
.termonet-visual {
  display: flex;
  justify-content: center;
}

.termonet-diagram {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.td-houses {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0;
}

.td-house svg {
  width: 60px;
  height: 60px;
}

.td-pipe-horizontal {
  width: 85%;
  height: 10px;
  background: var(--color-primary);
  border-radius: 5px;
  position: relative;
}

.td-label-net {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary-dk);
  letter-spacing: 0.1em;
  margin: 4px 0;
}

.td-pipes-vertical {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 0;
}

.td-pipe-v {
  width: 10px;
  height: 60px;
  background: var(--color-primary-dk);
  border-radius: 5px;
  position: relative;
}

.td-pipe-v::after {
  content: '';
  display: block;
  width: 30px;
  height: 10px;
  border: 3px solid var(--color-primary-dk);
  border-top: none;
  border-radius: 0 0 8px 8px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.td-ground {
  width: 85%;
  background: linear-gradient(to bottom, #c8a96e, #a07840);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 0.6rem;
  text-align: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Steps */
.termonet-steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dk);
  margin-bottom: 0.35rem;
}

.step-content p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* =============================================
   BENEFITS GRID
   ============================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s, transform 0.2s;
}

.benefit-item:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-3px);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  color: #fff;
  opacity: 0.9;
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* =============================================
   OWNERSHIP GRID
   ============================================= */
.ownership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.ownership-item {
  background: var(--color-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ownership-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ownership-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.ownership-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  color: var(--color-primary);
}

.ownership-icon svg {
  width: 100%;
  height: 100%;
}

.ownership-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dk);
  margin-bottom: 0.5rem;
}

.ownership-item p {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =============================================
   BOARD
   ============================================= */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.board-member {
  text-align: center;
  padding: 1.75rem 1rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.board-member:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.board-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  letter-spacing: 0.05em;
}

.board-member h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.board-role {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 500;
}

/* Partners */
.partners-section {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.partners-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.partner-tag {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-mid);
  color: var(--color-text);
  border-top: 2px solid var(--color-border);
  padding: 4rem 1.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

/* Footer logo wrap */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-text {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-primary-dk);
  line-height: 1.2;
}

.footer-logo-text strong {
  font-weight: 700;
  color: var(--color-primary-dk);
}

.footer-brand p,
.footer-contact p,
.footer-info p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.footer-contact h3,
.footer-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dk);
  margin-bottom: 0.75rem;
}

.footer-contact p,
.footer-info p {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--color-accent);
  font-weight: 500;
}

.footer-link:hover {
  color: #f5a06a;
}

.footer-url {
  font-weight: 600;
  color: var(--color-text-muted) !important;
  font-size: 0.85rem !important;
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 900px) {
  :root {
    --section-pad: 4rem 1.25rem;
  }

  .termonet-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .termonet-visual {
    order: 2;
  }

  .termonet-steps {
    order: 1;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --section-pad: 3rem 1rem;
    --nav-height: 60px;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    display: block;
  }

  .nav-logo-text {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero {
    background-attachment: scroll;
    min-height: 100svh;
  }

  .hero-logo {
    width: 180px;
  }

  /* Status */
  .status-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .status-icon {
    width: 36px;
    height: 36px;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Benefits */
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Ownership */
  .ownership-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Board */
  .board-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }
}

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

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

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

/* =============================================
   PRINT
   ============================================= */
@media print {
  .site-header,
  .nav-toggle {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
    background-attachment: scroll;
  }
}
