/* ============================================
   Beha.dk — fælles stylesheet
   Cremedesign · Playfair Display + Lato
   ============================================ */

:root {
  --cream: #FAF7F2;
  --cream-warm: #F4ECD8;
  --sand: #B8956A;
  --sand-light: #E8DFD0;
  --cocoa: #3D2E1F;
  --cocoa-soft: #6B5847;
  --brown: #6B4423;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--cocoa);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--sand-light);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 2px;
  text-decoration: none;
}

.logo span {
  color: var(--sand);
}

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.main-nav a {
  font-size: 14px;
  color: var(--cocoa-soft);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: all 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--brown);
  border-bottom-color: var(--sand);
}

/* ---------- Main container ---------- */

main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 80px 28px 70px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  margin: 0 -28px 60px;
}

.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--cocoa);
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero p {
  font-size: 16px;
  color: var(--cocoa-soft);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Page header (for undersider) ---------- */

.page-header {
  text-align: center;
  padding: 60px 0 40px;
}

.page-header .eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}

.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--cocoa);
  margin-bottom: 14px;
  line-height: 1.2;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--sand);
  margin: 24px auto;
}

/* ---------- Section overskrifter ---------- */

.section-title {
  text-align: center;
  margin: 0 0 40px;
}

.section-title h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cocoa);
  margin-bottom: 8px;
}

.section-title .divider {
  margin: 16px auto 0;
}

/* ---------- Familie-kort ---------- */

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.family-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--sand-light);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: block;
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(184, 149, 106, 0.15);
  border-color: var(--sand);
}

.family-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--cream-warm);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--brown);
  font-size: 32px;
  border: 1px solid var(--sand-light);
}

.family-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.family-card .name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--cocoa);
  margin-bottom: 6px;
}

.family-card .role {
  font-size: 11px;
  color: var(--sand);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- Personside ---------- */

.person-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.person-hero {
  text-align: center;
  margin-bottom: 50px;
}

.person-hero .portrait {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 24px;
  overflow: hidden;
  background: var(--cream-warm);
  border: 1px solid var(--sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-hero .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--cocoa);
  margin-bottom: 8px;
}

.person-hero .subtitle {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sand);
}

.person-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--cocoa-soft);
}

.person-content p {
  margin-bottom: 20px;
}

.person-content p:first-letter {
  /* lille editorial detalje på første afsnit */
}

.person-content .lead {
  font-size: 18px;
  color: var(--cocoa);
  font-style: italic;
  text-align: center;
  margin-bottom: 32px;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---------- Historie / lang tekstside ---------- */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0 60px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--cocoa-soft);
}

.article p {
  margin-bottom: 20px;
}

.article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--cocoa);
  margin: 50px 0 18px;
}

.article h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--brown);
  margin: 36px 0 14px;
}

.article blockquote {
  border-left: 3px solid var(--sand);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  color: var(--cocoa);
}

.article figure {
  margin: 36px 0;
  text-align: center;
}

.article figure img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--sand-light);
}

.article figcaption {
  font-size: 13px;
  color: var(--sand);
  margin-top: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fact-box {
  background: var(--cream-warm);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 28px 0;
  border-left: 4px solid var(--sand);
}

.fact-box h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 8px;
  font-weight: 500;
}

.fact-box p {
  margin-bottom: 8px;
  font-size: 15px;
}

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

/* ---------- Galleri ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--sand-light);
  background: var(--white);
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Video / embed ---------- */

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 0;
  border: 1px solid var(--sand-light);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--sand-light);
  padding: 30px 28px;
  text-align: center;
  margin-top: 60px;
  background: var(--cream);
}

footer.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

footer.site-footer a {
  color: var(--sand);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

footer.site-footer .copyright {
  font-size: 12px;
  color: var(--cocoa-soft);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* ---------- Tilbage-link ---------- */

.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--sand);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 30px 0 0;
}

.back-link:hover {
  color: var(--brown);
}

.back-link::before {
  content: "← ";
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }

  nav.main-nav {
    gap: 16px;
    font-size: 12px;
    justify-content: center;
  }

  .hero {
    padding: 50px 20px;
    margin: 0 -20px 40px;
  }

  main {
    padding: 0 20px;
  }

  .person-hero h1 {
    font-size: 30px;
  }

  .article h2 {
    font-size: 22px;
  }
}
