/* =========================================================
   R Story – stylesheet
   Direkte rådgivning, kommunikation og bestyrelsesarbejde
   ========================================================= */

:root {
  /* Farver fra design 3 oplæg */
  --burgundy:    #4F1D17;        /* Den dybe oxblood baggrundsfarve */
  --burgundy-dark: #3a130e;
  --teal:        #2D3942;        /* Mørk teal/blågrå – brugt på overskrifter inde i lyse områder */
  --teal-soft:   #4a5660;
  --taupe:       #D8CBB6;        /* Den dustede warm taupe – pillar section baggrund */
  --taupe-deep:  #C9BBA3;
  --cream:       #F5EFE3;        /* Lys cream – kort, indhold */
  --cream-warm:  #ECE3D0;
  --ink:         #1f2329;
  --ink-soft:    #4a5660;
  --muted:       #777b82;
  --line:        #e0d8c8;

  /* Aliases brugt af eksisterende komponenter */
  --accent:      var(--burgundy);
  --accent-dark: var(--burgundy-dark);
  --accent-soft: #efe4e0;
  --accent-mid:  #6e2e25;

  --max:        1180px;
  --gap:        clamp(1.25rem, 2vw, 2rem);
  --radius:     4px;
  --shadow-sm:  0 1px 2px rgba(20,20,30,.04);
  --shadow-md:  0 12px 40px -16px rgba(60,20,20,.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--teal);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  display: inline-block;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,247,241,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.brand__name { display: block; }
.brand__sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .15rem;
}
.brand:hover { color: var(--burgundy); }

/* Brand color overrides on burgundy backgrounds */
.hero--burgundy .brand { color: var(--cream); }
.hero--burgundy .brand .brand__sub { color: rgba(245,239,227,.7); }
.hero--burgundy .brand:hover { color: #fff; }
.footer--burgundy .brand { color: var(--cream); }
.footer--burgundy .brand .brand__sub { color: rgba(245,239,227,.6); }

.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent-dark); }

.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .2s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--small { padding: .6rem 1.1rem; font-size: .88rem; }

/* mobile nav: simple stacked when very small */
@media (max-width: 720px) {
  .nav { gap: 1rem; font-size: .9rem; }
  .nav a:not(.btn) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 {
  max-width: 18ch;
}
.hero__lede {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 56ch;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.hero__ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { text-align: center; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
}
.hero__portrait {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--accent-soft);
  aspect-ratio: 4/5;
  max-width: 380px;
  justify-self: center;
  box-shadow: var(--shadow-md);
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0%);
}

/* ---------- PORTRAIT (about page) ---------- */
.portrait-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 700px) { .portrait-block { grid-template-columns: 1fr; max-width: 220px; } }
.portrait-block img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow-sm);
}
.portrait-block__cap {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .6rem;
  font-style: italic;
}

/* ---------- SECTIONS ---------- */
section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--alt { background: var(--cream-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 60ch; margin-bottom: 2.5rem; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- SERVICE CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.card__num {
  font-family: 'Source Serif 4', serif;
  font-size: .95rem;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.card__more {
  margin-top: 1.2rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent-dark);
}

/* ---------- TWO COLUMN ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- ARTICLE BODY ---------- */
.article {
  max-width: 70ch;
  margin: 0 auto;
}
.article h2 { margin-top: 2.4rem; }
.article h3 { margin-top: 1.8rem; font-family: 'Source Serif 4', serif; font-size: 1.35rem; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: .55rem; }

.article__lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.5rem 0 2.5rem;
}

/* ---------- QUOTE ---------- */
.quote {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 70ch;
  margin: 0 auto;
}
.quote blockquote {
  margin: 0 0 1.4rem;
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink);
}
.quote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-dark);
  font-size: .95rem;
}
.quote cite span { color: var(--muted); font-weight: 400; display: block; font-size: .88rem; margin-top: .15rem; }

/* ---------- CALLOUT ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #fff;
  padding: 1.4rem 1.6rem;
  border-radius: 6px;
  margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- LIST FEATURES ---------- */
.features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: .9rem;
}
.features li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--ink-soft);
}
.features li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- CTA BLOCK ---------- */
.cta-block {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 14px;
  margin: 4rem auto 0;
  max-width: var(--max);
  text-align: center;
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(250,247,241,.78); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-block .btn {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.cta-block .btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--cream-warm);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  font-size: .92rem;
  color: var(--ink-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
  margin-bottom: .9rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .4rem; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--accent-dark); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ---------- ARTICLE PAGE HEAD ---------- */
.page-head {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--taupe);
  position: relative;
  overflow: hidden;
}
.page-head .container {
  position: relative;
  z-index: 2;
}

/* The signature giant word - recurring across pages */
.bigword {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: clamp(3rem, 14vw, 11rem);
  letter-spacing: -.04em;
  line-height: .82;
  color: var(--burgundy);
  text-transform: capitalize;
  margin: 0;
  pointer-events: none;
  user-select: none;
  word-break: break-word;
  hyphens: auto;
}
.page-head .bigword {
  margin: 0 0 1.5rem -.06em;
  display: block;
}
.page-head h1 {
  max-width: 28ch;
  margin-top: .8rem;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
}
.page-head .eyebrow { color: var(--burgundy); }
@media (max-width: 520px) {
  .bigword { font-size: clamp(2.6rem, 14vw, 4.5rem); line-height: .9; }
  .page-head { padding: clamp(2rem, 5vw, 3rem) 0 1.5rem; }
}

/* ---------- UTILITY ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* =========================================================
   EDITORIAL ELEMENTS (design 3 inspired)
   ========================================================= */

/* Burgundy hero used on forsiden */
.hero--burgundy {
  background: var(--accent);
  color: var(--cream);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.hero--burgundy .site-header__inner { padding: 1.2rem 0; }
.hero--burgundy h1 { color: var(--cream); }
.hero--burgundy .eyebrow { color: rgba(250,246,236,.7); }
.hero--burgundy .hero__lede { color: rgba(250,246,236,.85); }

.hero-card {
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin: 0 auto;
  max-width: var(--max);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.25);
}
@media (max-width: 800px) {
  .hero-card {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "text";
  }
  .hero-card__image { grid-area: image; min-height: 280px; }
  .hero-card__text { grid-area: text; }
}
.hero-card__text {
  padding: clamp(1.6rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-card__text h1 {
  color: var(--teal);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  max-width: 14ch;
}
.hero-card__text .hero__lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 1.6rem;
}
.hero-card__image {
  background: var(--cream-deep);
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.hero-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Pillar list (design 3's signature element) */
.pillars-section {
  background: var(--taupe);
  padding: clamp(4rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.pillars-section__inner {
  display: grid;
  grid-template-columns: minmax(80px, 130px) 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  position: relative;
}
@media (max-width: 700px) { .pillars-section__inner { grid-template-columns: 1fr; } }

.pillars-section__label {
  font-family: 'Source Serif 4', serif;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--burgundy);
  line-height: 1;
  margin: 0;
  align-self: stretch;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .pillars-section__label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pillar {
  border-bottom: 1px solid rgba(92,32,32,.18);
}
.pillar:first-child { border-top: 1px solid rgba(92,32,32,.18); }
.pillar { border-bottom-color: rgba(45,57,66,.2); }
.pillar:first-child { border-top-color: rgba(45,57,66,.2); }
.pillar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  text-decoration: none;
  color: var(--teal);
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.25rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.01em;
  transition: padding .25s ease, color .25s ease;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .pillar a { padding: 1.1rem 0; }
  .pillar__desc { font-size: .82rem; }
}
.pillar a:hover {
  padding-left: 1rem;
  color: var(--burgundy);
}
.pillar__arrow {
  font-size: 1.8rem;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.pillar a:hover .pillar__arrow { transform: translateX(.4rem); }

.pillar__desc {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: .25rem;
  letter-spacing: 0;
}

/* Signature element */
.signature {
  font-family: 'Caveat', 'Source Serif 4', cursive;
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--burgundy);
  margin-top: -.25rem;
}

/* Burgundy CTA */
.cta-burgundy {
  background: var(--accent);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  margin-top: 0;
}
.cta-burgundy h2 { color: var(--cream); }
.cta-burgundy p { color: rgba(250,246,236,.82); }
.cta-burgundy .btn {
  background: var(--cream);
  color: var(--accent);
  border-color: var(--cream);
}
.cta-burgundy .btn:hover {
  background: var(--accent-dark);
  color: var(--cream);
  border-color: var(--accent-dark);
}

/* Adjust footer to deep burgundy */
.footer--burgundy {
  background: var(--accent-dark);
  color: rgba(250,246,236,.75);
  border-top: none;
}
.footer--burgundy h4 { color: var(--cream); }
.footer--burgundy a { color: rgba(250,246,236,.75); }
.footer--burgundy a:hover { color: var(--cream); }
.footer--burgundy .footer__bottom { border-top-color: rgba(250,246,236,.15); color: rgba(250,246,236,.55); }
.footer--burgundy .brand { color: var(--cream); }
.footer--burgundy .brand img { filter: invert(1) brightness(2); }
