/* =====================================================================
   gradvis.dk — site styles
   --------------------------------------------------------------------
   Same editorial structure as before, with more color committed to its
   role: saturated logo orange as the action color (CTAs, links), logo
   blue as the structural color (testimonial blocks, active nav, quote
   bars), dusty mustard as the decorative accent (book categories,
   small flourishes). Pastel block tints — pale blue, pale mustard —
   carry larger sections without shouting. Backgrounds stay
   warm-near-white to keep an editorial feel. No JS, no frameworks.
   ===================================================================== */

:root {
  --bg:        #faf8f3;         /* warm off-white */
  --bg-soft:   #f1ece1;         /* warm soft */
  --card:      #ffffff;
  --ink:       #1c1a17;
  --ink-soft:  #4a463f;
  --muted:     #6b6660;
  --line:      #e4dfd0;         /* warm hairline */

  /* Action — saturated logo orange */
  --accent:    #ef7a26;
  --accent-d:  #c45e10;

  /* Structural — logo blue, used boldly */
  --blue:      #2c6da5;
  --blue-soft: #5e9abf;          /* the literal logo sky */
  --blue-pale: #e6eef4;          /* pastel block bg */

  /* Decorative — dusty mustard (less saturated than logo amber) */
  --mustard:      #d4a02e;
  --mustard-pale: #f5ead0;       /* pastel block bg */

  --serif:    "Lora", Georgia, "Times New Roman", serif;
  --sans:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
              system-ui, sans-serif;

  --radius:   14px;
  --radius-l: 20px;

  --container: 70rem;
  --container-narrow: 44rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { border-bottom-color: currentColor; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 1rem + 3vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 1rem + 1vw, 2rem);  line-height: 1.25; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1em; }

.page { display: flex; flex-direction: column; min-height: 100vh; }
main  { flex: 1; }

/* ========== header / nav ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  border: 0;
}
.site-header__logo { height: 44px; width: auto; }
.site-nav__list {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
  border: 0;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}
.site-nav__link:hover::after,
.site-nav__link--active::after { width: 100%; }
.site-nav__link--active { color: var(--accent-d); }

/* ========== generic page header ========== */

.page-header {
  max-width: var(--container);
  margin: 4rem auto 2.5rem;
  padding: 0 1.5rem;
}
.section-banner + .page-header,
.detail-hero + .page-header {
  margin-top: 2.5rem;
}
.page-header__back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  border: 0;
}
.page-header__back:hover { color: var(--accent); }
.page-header__title {
  margin-bottom: 0.5rem;
}
.page-header__byline {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.page-header__summary {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 38em;
}

/* ========== home / hero ========== */

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 14 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero {
  padding: 4rem 1.5rem 5rem;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg-soft) 100%
  );
}

.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.hero__title {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1.5rem;
}
.hero__body {
  max-width: 48ch;
  font-size: 1.13rem;
  color: var(--ink-soft);
}

.home-cards {
  padding: 4rem 1.5rem;
}
.home-cards__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.big-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.big-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px -18px rgba(28, 26, 23, 0.18);
}
.big-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.big-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}
.big-card:hover .big-card__img { transform: scale(1.03); }
.big-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.8rem;
  flex: 1;
}
.big-card__title   { margin: 0; font-size: 1.6rem; }
.big-card__summary { color: var(--ink-soft); margin: 0; }
.big-card__cta {
  margin-top: auto;
  font-weight: 500;
  color: var(--accent);
  font-size: 0.95rem;
}

.our-books {
  padding: 0 1.5rem 5rem;
}
.our-books__inner {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--mustard-pale);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.our-books__photo-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.our-books__text {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.our-books__title { margin-top: 0; }
.our-books__lede {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 32em;
}
.our-books__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}
.our-books__book-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0;
}
.our-books__byline {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.15rem 0 0;
}
.our-books__blurb {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0.2rem 0 0;
}

@media (max-width: 720px) {
  .our-books__inner { grid-template-columns: 1fr; }
  .our-books__photo-img { height: auto; }
  .our-books__text { padding: 1.5rem; }
}

/* ========== section banner ========== */

.section-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 14 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.section-banner__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ========== section index (cases / ydelser) ========== */

.section-index { padding-bottom: 5rem; }
.card-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -16px rgba(28, 26, 23, 0.18);
}
.card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}
.card:hover .card__img { transform: scale(1.03); }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.4rem 1.6rem 1.6rem;
  flex: 1;
}
.card:not(.card--has-image) .card__body { padding: 1.6rem; }
.card__title    { margin: 0; font-size: 1.25rem; }
.card__summary  { margin: 0; color: var(--ink-soft); }
.card__cta {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== inspiration / book cards ========== */

.card-grid--inspiration {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.book-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease;
}
.book-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -16px rgba(28, 26, 23, 0.18);
}
.book-card__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.book-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem 1.6rem 1.6rem;
  flex: 1;
}
.book-card__cover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.book-card__category {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mustard);
  font-size: 0.95rem;
}
.book-card__title  {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}
.book-card__author {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.book-card__cta {
  margin-top: 0.6rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== detail hero / cover ========== */

.detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 14 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.detail-hero__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.detail-cover {
  max-width: var(--container-narrow);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.detail-cover__img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ========== detail / prose ========== */

.detail .prose,
.section-index__body {
  max-width: var(--container-narrow);
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.section-index__body { margin-bottom: 3rem; }
.prose img {
  display: block;
  max-width: min(100%, 460px);
  margin: 1.5em auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ========== 2-up grid (.duo / .cell) ==========
   Used on /om-os/ for the "Hvorfor Gradvis / Når ambitioner" pair in
   the markdown body. On wide viewports the duo escapes the narrow
   .prose container to span the same horizontal extent as the home-cards
   / section card-grid. */

.prose .duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
}
.prose .cell h2:first-child { margin-top: 0; }
.prose .cell img {
  max-width: 100%;
  margin: 0.8em 0;
}

@media (min-width: 70rem) {
  .prose .duo {
    margin-left:  calc(0px - (var(--container) - var(--container-narrow)) / 2);
    margin-right: calc(0px - (var(--container) - var(--container-narrow)) / 2);
  }
}

.prose {
  font-size: 1.06rem;
  color: var(--ink);
}
.prose h2 {
  margin-top: 2.5em;
  font-size: 1.5rem;
}
.prose h3 {
  margin-top: 2em;
  font-size: 1.2rem;
}
.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.4em 1.2em;
  border-left: 3px solid var(--blue);
  color: var(--ink-soft);
  font-style: italic;
}
.prose strong { font-weight: 600; }
.prose a { font-weight: 500; }

/* ========== testimonial ========== */

.testimonial {
  padding: 4rem 1.5rem;
  background: var(--blue-pale);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.testimonial__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}
.testimonial__quote {
  margin: 0 0 1rem;
  border: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
}
.testimonial__by {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}
.testimonial--inline {
  max-width: var(--container-narrow);
  margin: 2.5rem auto;
  padding: 1.5rem 2rem;
  background: var(--blue-pale);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.testimonial--inline blockquote {
  margin: 0 0 0.5rem;
  border: 0;
  padding: 0;
  font-style: normal;
  color: var(--ink);
}

/* ========== reach-out CTA ==========
   "Nysgerrig?"-style call-to-action at the bottom of a section index
   page (currently used on /om-os/). Pulls the partner contact info
   from SiteConfig so it stays in sync with the footer. */

.reach-out {
  padding: 4rem 1.5rem;
  background: var(--blue-pale);
  border-top: 1px solid var(--line);
}
.reach-out__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
}
.reach-out__title { margin: 0 0 0.5rem; }
.reach-out__lede {
  color: var(--ink-soft);
  margin: 0 auto 2rem;
  max-width: 36em;
}
.reach-out__people {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.reach-out__person {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.reach-out__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}
.reach-out__contact {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ========== footer ========== */

.site-footer {
  margin-top: 2rem;
  background: var(--bg-soft);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.site-footer a {
  color: var(--accent);
  border-bottom-color: rgba(28, 26, 23, 0.18);
}
.site-footer a:hover { border-bottom-color: var(--accent); color: var(--accent-d); }

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}
.site-footer__logo {
  width: 200px;
  margin-bottom: 1rem;
}
.site-footer__address {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.site-footer__contact h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.site-footer__lede {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 38em;
}
.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}
.person__name {
  font-weight: 600;
  margin: 0 0 0.15rem;
  font-size: 1rem;
  color: var(--ink);
}
.person__contact {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer__bottom p { margin: 0; }

/* ========== responsive ========== */

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.6rem 1rem;
  }
  .site-header__logo { height: 38px; }
  .site-nav__list    { gap: 1rem; justify-content: center; }
  .site-footer__inner {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem 2rem;
    gap: 2rem;
  }
  .hero { padding: 3rem 1.25rem 4rem; }
  .home-cards { padding: 3rem 1.25rem; }
  .page-header { margin-top: 2.5rem; padding: 0 1.25rem; }
}
