/* ============================================================
   TRIVSELSPUNKTET.DK – Design System
   ============================================================ */

/* Design tokens */
:root {
  --bg:              #f8f6f1;
  --bg-green:        #ecefe8;
  --card-bg:         #ffffff;
  --card-border:     #e6e2d8;
  --divider-inner:   #ece8de;
  --divider:         #e0ddd2;
  --divider-2:       #ded9ce;
  --header-border:   #e3ded3;

  --heading:         #1c3239;
  --body:            #3d5257;
  --body-muted:      #5c6f74;
  --body-muted-2:    #6b7d80;
  --label:           #8a9a9c;
  --label-green:     #7fa89b;
  --label-italic:    #6f8a80;

  --teal:            #2f7d8c;
  --teal-hover:      #1c5a66;
  --sage:            #7fb39c;

  --footer-bg:       #1c3239;
  --footer-text:     #cfdad9;
  --footer-muted:    #a8bbba;
  --footer-muted-2:  #7f9694;
  --footer-border:   #2c464d;
  --footer-label:    #6f8a84;

  --modal-bg:        #fdfcf9;
  --close-btn-bg:    #efece4;
  --close-btn-hover: #e2ded3;

  --radius-card:     14px;
  --radius-panel:    16px;
  --radius-pill:     999px;
  --radius-img:      4px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Karla, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); text-decoration: underline; }

ul { margin: 0; padding-left: 1.15em; }
li { margin: 0 0 9px 0; }
p { text-wrap: pretty; margin: 0; }
img { max-width: 100%; display: block; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,246,241,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }

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

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-name {
  font-family: Newsreader, Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: 0.01em;
}

.site-tagline {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7c8b8e;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 15px;
  padding: 7px 12px;
  color: var(--heading);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--teal);
  text-decoration: none;
}

.nav-link.active {
  border-bottom-color: var(--teal);
}

/* Burger (hidden on desktop) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: Karla, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
  cursor: pointer;
  border: none;
  min-height: 44px;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-hover);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  border: 1px solid #c9cfc7;
  color: var(--heading);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   Modal triggers (inline text)
   ============================================================ */
.modal-trigger {
  background: none;
  border: none;
  font: inherit;
  font-weight: 500;
  color: var(--teal);
  border-bottom: 1px dotted var(--sage);
  padding: 0;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}

.modal-trigger:hover {
  color: var(--teal-hover);
  border-bottom-color: var(--teal);
}

/* ============================================================
   HOME – Hero
   ============================================================ */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 76px 28px 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label-green);
  margin: 0 0 20px;
  font-weight: 600;
}

.hero h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: 48px;
  line-height: 1.12;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 26px;
  letter-spacing: -0.01em;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ============================================================
   HOME – Quote section
   ============================================================ */
.quote-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 28px 20px;
}

.quote-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--body);
  max-width: 860px;
  margin: 0;
  border-left: 2px solid var(--sage);
  padding-left: 26px;
}

/* ============================================================
   HOME – Theme cards
   ============================================================ */
.themes-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 62px 28px 90px;
}

.themes-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.themes-header h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  color: var(--heading);
  margin: 0;
}

.themes-all-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}

.themes-all-link:hover { color: var(--teal-hover); text-decoration: none; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.theme-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 30px 26px 26px;
  text-decoration: none;
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.theme-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(28,50,57,0.09);
  text-decoration: none;
}

.theme-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 20px;
}

.theme-card h3 {
  font-family: Newsreader, Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 10px;
}

.theme-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body-muted);
  margin: 0;
}

/* ============================================================
   HOME – Om mig teaser
   ============================================================ */
.about-teaser {
  background: var(--bg-green);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.about-teaser-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 28px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.portrait-round {
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e5dc;
}

.portrait-round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.about-teaser-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label-italic);
  margin: 0 0 18px;
  font-weight: 600;
}

.about-teaser h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: 33px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 20px;
}

.text-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
}

.text-link:hover { color: var(--teal-hover); text-decoration: none; }

/* ============================================================
   Page layout (Om, Behandling, Temaer, Praktisk)
   ============================================================ */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 76px 28px 90px;
}

.page-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--label-green);
  margin: 0 0 18px;
  font-weight: 600;
}

.page-h1 {
  font-family: Newsreader, Georgia, serif;
  font-size: 42px;
  line-height: 1.18;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 30px;
}

.page-h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: 29px;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 16px;
}

.page-h2--lg {
  font-size: 33px;
  line-height: 1.24;
  margin: 0 0 26px;
}

.page-h2--sm {
  font-size: 25px;
  margin: 0 0 16px;
}

.page-h2--green {
  font-size: 27px;
  margin: 0 0 16px;
}

.body-lg {
  font-size: 18.5px;
  line-height: 1.7;
  color: var(--body);
}

.body-md {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body);
}

.body-list {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.divider-line {
  height: 1px;
  background: var(--divider);
  margin: 60px 0;
}

/* ============================================================
   OM PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.portrait-rect {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-img);
  overflow: hidden;
  background: #eceae2;
}

.portrait-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

/* ============================================================
   BEHANDLING PAGE – Cards
   ============================================================ */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 32px 30px;
}

.content-card--green {
  background: var(--bg-green);
  border-radius: var(--radius-card);
  padding: 34px 30px;
}

/* ============================================================
   TEMAER PAGE – Sections
   ============================================================ */
.theme-section {
  scroll-margin-top: 110px;
  padding: 34px 0 0;
  border-top: 1px solid var(--divider-2);
  margin-bottom: 50px;
}

.theme-h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 6px;
}

.theme-h2.no-sub {
  margin-bottom: 20px;
}

.theme-h3 {
  font-family: Newsreader, Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 10px;
}

.theme-sub {
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--label-italic);
  margin: 0 0 20px;
}

.theme-footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--divider-2);
  margin-top: 30px;
}

/* ============================================================
   PRAKTISK PAGE
   ============================================================ */
.price-number {
  font-family: Newsreader, Georgia, serif;
  font-size: 34px;
  color: var(--teal);
  margin: 0 0 18px;
}

/* ============================================================
   KONTAKT PAGE
   ============================================================ */
.contact-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-panel);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr;
  overflow: hidden;
}

.contact-col {
  padding: 34px 30px;
}

.contact-col + .contact-col {
  border-left: 1px solid var(--divider-inner);
}

.contact-col-label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 12px;
  font-weight: 600;
}

.contact-value {
  font-family: Newsreader, Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
  color: var(--heading);
  margin: 0;
}

.contact-value a {
  color: var(--heading);
}

.contact-value a:hover {
  color: var(--teal);
  text-decoration: none;
}

.contact-address-postnr {
  font-size: 16.5px;
  color: var(--body-muted);
  margin: 0;
}

.contact-note {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--body-muted-2);
  margin: 14px 0 0;
}

.contact-map-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  margin: 14px 0 0;
}

.contact-map-link:hover {
  color: var(--teal-hover);
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 62px 28px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 46px;
}

.footer-name {
  font-family: Newsreader, Georgia, serif;
  font-size: 24px;
  color: #fff;
  margin: 0 0 10px;
}

.footer-tagline {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 22px;
}

.footer-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--footer-muted);
  margin: 0;
  max-width: 340px;
}

.footer-col-label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--footer-label);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 16px;
  color: var(--footer-text);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a {
  font-size: 16px;
  color: var(--footer-text);
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-cvr {
  font-size: 16px;
  color: var(--footer-muted);
  margin: 0;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px 40px;
  border-top: 1px solid var(--footer-border);
}

.footer-copyright {
  font-size: 14px;
  color: var(--footer-muted-2);
  margin: 0;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20,36,41,0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.modal-overlay[hidden] { display: none; }

.modal-content {
  background: var(--modal-bg);
  border-radius: var(--radius-panel);
  max-width: 720px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  padding: 44px 46px 46px;
  box-shadow: 0 30px 70px rgba(20,36,41,0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--body-muted);
  background: var(--close-btn-bg);
  border: none;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.modal-close:hover {
  background: var(--close-btn-hover);
  color: var(--heading);
}

.modal-panel { display: none; }
.modal-panel.active { display: block; }

.modal-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label-green);
  margin: 0 0 12px;
  font-weight: 600;
}

.modal-panel h2 {
  font-family: Newsreader, Georgia, serif;
  font-size: 31px;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 20px;
}

.modal-panel h4 {
  font-family: Newsreader, Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--heading);
  margin: 26px 0 12px;
}

/* ============================================================
   RESPONSIVE – Mobile (<= 900px)
   ============================================================ */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248,246,241,0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--header-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
  }

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

  .nav-link {
    padding: 12px 28px;
    border-bottom: none;
    border-left: 3px solid transparent;
    min-height: 44px;
  }

  .nav-link.active {
    border-left-color: var(--teal);
    border-bottom-color: transparent;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 20px 30px;
    gap: 30px;
  }

  .hero h1 { font-size: 34px; }

  .hero-image {
    order: -1;
    padding: 0;
  }

  .hero-image img {
    max-width: 160px;
    margin: 0 auto;
  }

  /* Quote */
  .quote-section { padding: 30px 20px; }

  /* Theme cards */
  .themes-section { padding: 40px 20px 60px; }

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

  /* About teaser */
  .about-teaser-inner {
    grid-template-columns: 1fr;
    padding: 50px 20px;
    gap: 32px;
  }

  .portrait-round {
    max-width: 220px;
    margin: 0 auto;
  }

  /* Page wrap */
  .page-wrap {
    padding: 40px 20px 60px;
  }

  .page-h1 { font-size: 34px; }

  /* Om grid */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait-rect {
    aspect-ratio: 1 / 1;
    order: -1;
  }

  .portrait-rect img {
    object-position: 50% 40%;
  }

  /* Contact panel */
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-col + .contact-col {
    border-left: none;
    border-top: 1px solid var(--divider-inner);
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 30px;
  }

  .footer-desc { max-width: none; }

  /* Modal */
  .modal-content {
    padding: 36px 24px 32px;
    max-height: 90vh;
  }
}
