/* Tab & Liv — shared styles
   Colors: deep teal #29444C, sage #A6B8A6, sea mist #BFD6CF,
           warm cream #F4F1EB, text #3A3D3F */

:root {
  --teal: #29444C;
  --sage: #A6B8A6;
  --mist: #BFD6CF;
  --cream: #F4F1EB;
  --text: #3A3D3F;
  --text-muted: #5c6164;
  --white: #ffffff;
  --max-width: 88rem;
  --content-width: 44rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;
  --space-2xl: 6.5rem;
  --font-serif: "Lora", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Inter", system-ui, -apple-system, sans-serif;
  --radius: 0.35rem;
  --shadow-soft: 0 1px 2px rgba(41, 68, 76, 0.04), 0 8px 24px rgba(41, 68, 76, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #1f343a;
}

a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

/* ——— Layout ——— */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(41, 68, 76, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background-color: rgba(244, 241, 235, 0.92);
}

.header-inner,
.footer-inner,
.section-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1.1rem 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--teal);
  opacity: 0.85;
}

.logo span {
  font-weight: 400;
  opacity: 0.7;
}


/* ——— Lang switch ——— */

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.lang-switch a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius);
  border-bottom: none;
  line-height: 1.2;
}

.lang-switch a:hover {
  color: var(--teal);
  background: rgba(166, 184, 166, 0.25);
}

.lang-switch a[aria-current="true"] {
  color: var(--teal);
  background: rgba(191, 214, 207, 0.45);
}

.lang-switch .lang-sep {
  color: rgba(41, 68, 76, 0.35);
  user-select: none;
}

/* Desktop: logo | nav | language */
@media (min-width: 721px) {
  .header-tools {
    order: 3;
    margin-left: 0;
  }

  .site-nav {
    order: 2;
    margin-left: auto;
  }

  .header-tools .nav-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-tools {
    margin-left: auto;
  }

  .header-inner > .site-nav {
    order: 3;
    width: 100%;
  }
}

/* ——— Nav ——— */

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(41, 68, 76, 0.2);
  border-radius: var(--radius);
  color: var(--teal);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--sage);
}

/* ——— Main ——— */

main {
  flex: 1;
}

.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background:
    linear-gradient(180deg, rgba(191, 214, 207, 0.35) 0%, transparent 55%),
    var(--cream);
}

.hero-inner {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  max-width: 52rem;
}

@media (min-width: 960px) {
  .hero-inner {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
    gap: var(--space-xl);
    align-items: end;
  }

  .hero-inner > .hero-aside {
    justify-self: stretch;
  }
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--space-md);
  opacity: 0.75;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--teal);
  margin: 0 0 var(--space-md);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background: rgba(191, 214, 207, 0.22);
}

.section--narrow .section-inner {
  max-width: var(--content-width);
}

.page-header {
  padding: var(--space-xl) 0 var(--space-md);
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 500;
  color: var(--teal);
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.prose {
  max-width: var(--content-width);
}

.prose p {
  margin: 0 0 1.25rem;
}

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

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--teal);
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.35;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.soft-rule {
  border: none;
  border-top: 1px solid rgba(41, 68, 76, 0.12);
  margin: var(--space-lg) 0;
}

/* ——— Cards / CTA ——— */

.card-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: var(--space-md);
}

.card {
  background: var(--white);
  border: 1px solid rgba(41, 68, 76, 0.08);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.card h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--teal);
  margin: 0 0 0.65rem;
}

.card p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

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

.btn--primary:hover {
  background: #1f343a;
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: rgba(41, 68, 76, 0.28);
}

.btn--ghost:hover {
  background: rgba(166, 184, 166, 0.25);
  color: var(--teal);
  border-color: var(--sage);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: var(--space-md);
}

.accent-bar {
  height: 3px;
  width: 3rem;
  background: var(--sage);
  margin: 0 0 var(--space-md);
  border-radius: 2px;
}

/* ——— Session steps (et muligt forløb) ——— */

.session-steps {
  list-style: none;
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--content-width);
}

.session-steps > li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  background: var(--white);
  border: 1px solid rgba(41, 68, 76, 0.08);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-soft);
}

.session-steps .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(191, 214, 207, 0.55);
  color: var(--teal);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}

.session-steps .step-body {
  min-width: 0;
}

.session-steps .step-body strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--teal);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.session-steps .step-body p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ——— Contact ——— */

.contact-box {
  background: var(--white);
  border: 1px solid rgba(41, 68, 76, 0.08);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-soft);
  max-width: 32rem;
}

.contact-box dl {
  margin: 0;
}

.contact-box dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0.7;
  margin: 0 0 0.25rem;
}

.contact-box dd {
  margin: 0 0 1.25rem;
  color: var(--text);
}

.contact-box dd:last-child {
  margin-bottom: 0;
}

.placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.note {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(191, 214, 207, 0.35);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.note p {
  margin: 0 0 0.5rem;
}

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

/* ——— Footer ——— */

.site-footer {
  margin-top: auto;
  background: var(--teal);
  color: rgba(244, 241, 235, 0.88);
  padding: var(--space-lg) 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
}

.site-footer a {
  color: var(--mist);
}

.site-footer a:hover {
  color: var(--cream);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.4rem;
}

.footer-note {
  margin: 0;
  max-width: 28rem;
  opacity: 0.9;
}

.footer-meta {
  margin: 0;
  opacity: 0.75;
  font-size: 0.875rem;
  text-align: right;
}

.footer-meta a {
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 214, 207, 0.35);
}

.footer-meta a:hover {
  border-bottom-color: var(--cream);
}

/* ——— Mobile ——— */

/* ——— Mobile-first refinements ——— */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

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

  .header-inner {
    flex-wrap: wrap;
  }

  .header-inner,
  .footer-inner,
  .section-inner,
  .hero-inner {
    width: min(100% - 1.5rem, var(--max-width));
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid rgba(41, 68, 76, 0.1);
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: none;
    min-height: 44px;
  }

  .site-nav a[aria-current="page"] {
    border-bottom: none;
    font-weight: 700;
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero-inner {
    display: block;
    max-width: 40rem;
  }

  .hero-aside {
    display: none !important;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    max-width: none;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.35rem;
  }

  .section {
    padding: var(--space-lg) 0;
  }

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

  .about-layout {
    display: block;
  }

  .about-portrait {
    margin: 0 0 var(--space-md);
    max-width: none;
    position: static;
  }

  .contact-box {
    padding: var(--space-md);
    max-width: none;
  }

  .prose {
    max-width: none;
  }

  .session-steps {
    max-width: none;
  }

  .footer-meta {
    text-align: left;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }
}

/* Tablet: between mobile and wide desktop */
@media (min-width: 721px) and (max-width: 959px) {
  .hero-inner {
    max-width: 44rem;
  }

  .hero-aside {
    display: none !important;
  }

  .about-layout {
    display: block;
  }

  .about-portrait {
    max-width: 28rem;
    margin-bottom: var(--space-md);
  }

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


/* About portrait */
.about-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.about-portrait {
  margin: 0;
  max-width: 36rem;
}

.about-portrait img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-soft);
  filter: saturate(0.95);
  object-fit: cover;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .about-portrait {
    max-width: none;
    position: sticky;
    top: 5.5rem;
  }

  .about-layout .prose {
    max-width: none;
  }
}

/* Desktop: fill wide screens with soft side atmosphere */
@media (min-width: 1100px) {
  /* photo atmosphere handled globally */
  .hero {
    /* keep photo hero from global .hero rule */
  }

  .hero h1 {
    max-width: 18ch;
  }

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

  .section-inner > .prose {
    max-width: 48rem;
  }

  .header-inner,
  .footer-inner,
  .section-inner {
    width: min(100% - 4rem, var(--max-width));
  }

  .hero-inner {
    width: min(100% - 4rem, var(--max-width));
  }
}

.hero-aside {
  display: none;
}

@media (min-width: 960px) {
  .hero-aside {
    display: block;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(41, 68, 76, 0.08);
    border-radius: calc(var(--radius) * 2);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
  }

  .hero-aside h2 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--teal);
    margin: 0 0 0.65rem;
  }

  .hero-aside p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
  }

  .hero-aside .hero-aside-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(41, 68, 76, 0.1);
    font-size: 0.95rem;
  }
}


/* Under construction banner */
.site-banner {
  background: var(--teal);
  color: var(--cream);
  text-align: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.site-banner strong {
  font-weight: 600;
}

.site-banner a {
  color: var(--mist);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-banner a:hover {
  color: var(--cream);
}



.about-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-creds {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(41, 68, 76, 0.08);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-soft);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.about-creds li {
  position: relative;
  padding-left: 1rem;
  margin: 0 0 0.55rem;
}

.about-creds li:last-child {
  margin-bottom: 0;
}

.about-creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--sage);
}

@media (min-width: 900px) {
  .about-side {
    position: sticky;
    top: 5.5rem;
  }

  .about-portrait {
    position: static;
  }
}


/* Pull quote */
.pull-quote {
  margin: var(--space-lg) 0 0;
  padding: var(--space-md) var(--space-md) var(--space-md) 1.25rem;
  max-width: 40rem;
  border-left: 3px solid var(--sage);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0 calc(var(--radius) * 2) calc(var(--radius) * 2) 0;
}

.pull-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--teal);
}

.pull-quote footer {
  margin-top: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pull-quote cite {
  font-style: normal;
}


/* Testimonial */
.testimonial + .testimonial {
  margin-top: var(--space-md);
}

.testimonial {
  margin: var(--space-lg) 0 0;
  padding: var(--space-md);
  max-width: 42rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(41, 68, 76, 0.08);
  border-radius: calc(var(--radius) * 2);
  box-shadow: var(--shadow-soft);
}

.testimonial p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--teal);
}

.testimonial footer {
  margin-top: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Atmospheric background + mood images */
body {
  background-color: var(--cream);
  background-image:
    linear-gradient(180deg, rgba(244, 241, 235, 0.88) 0%, rgba(244, 241, 235, 0.94) 40%, rgba(244, 241, 235, 0.97) 100%),
    url("images/baggrund-taage.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

@media (min-width: 900px) {
  body {
    background-attachment: fixed;
  }
}

.hero {
  background:
    linear-gradient(105deg, rgba(244, 241, 235, 0.92) 0%, rgba(244, 241, 235, 0.78) 48%, rgba(191, 214, 207, 0.35) 100%),
    url("images/baggrund-taage.jpg");
  background-size: cover;
  background-position: center;
}

.mood-strip {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-lg) 0 0;
}

.mood-strip figure {
  margin: 0;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
}

.mood-strip img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  filter: saturate(0.92);
}

/* mood-strip: images only, no captions */


@media (min-width: 800px) {
  .mood-strip {
    grid-template-columns: 1fr 1fr;
  }

  .mood-strip img {
    height: 16rem;
  }
}

.therapy-visual {
  margin: 0 0 var(--space-lg);
  max-width: 36rem;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.therapy-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92);
}

@media (min-width: 900px) {
  .therapy-with-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(14rem, 0.9fr);
    gap: var(--space-xl);
    align-items: start;
  }

  .therapy-visual {
    margin: 0;
    max-width: none;
    position: sticky;
    top: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}


/* ——— GIS trainee badge ——— */

.badge {
  margin: 0;
  display: flex;
  justify-content: center;
}

.badge img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(41, 68, 76, 0.10));
}

.badge--small {
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(41, 68, 76, 0.08);
}

.badge--small picture {
  flex: 0 0 150px;
}

.badge--small img {
  max-width: 150px;
  filter: drop-shadow(0 2px 6px rgba(41, 68, 76, 0.08));
}

.badge--small figcaption {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 28rem;
}
