/*
Theme Name:   Thought For Food Archive
Theme URI:    https://thoughtforfood.org
Description:  Divi child theme til Thought For Food-arkivet. Styling til header, forside, undersider, footer og PDF-biblioteket. Alt indhold redigeres i Divi; designet styres af CSS-klasserne herunder.
Author:       Trepunkt
Author URI:   https://trepunkt.dk
Template:     Divi
Version:      1.0.0
Text Domain:  tff-archive
*/

/* =====================================================================
   1. Design-tokens
   Ret farver, fonte og afstande her, så slår det igennem overalt.
   Fonte: skriv fontnavnet i de to font-variabler, når du har lagt
   fontene ind (eller lad dem stå på "inherit" og sæt dem i Divi).
   ===================================================================== */
:root {
  --tff-purple: #651FFF;
  --tff-purple-dark: #4F12D6;
  --tff-navy: #1B2140;
  --tff-cream: #F7E4A6;
  --tff-teal: #2FE0B5;
  --tff-soft: #F3EFFF;
  --tff-line: #E4E2EE;
  --tff-muted: #5E6380;

  --tff-font-heading: inherit;
  --tff-font-body: inherit;

  --tff-narrow: 700px;   /* tekstkolonnen */
  --tff-media: 1060px;   /* video */
  --tff-wrap: 1200px;    /* footer, bibliotek */
  --tff-space: 56px;     /* luft over og under hver indholdssektion */
  --tff-gutter: 24px;    /* sidemargin på mobil */
}
@media (max-width: 980px) { :root { --tff-space: 44px; } }


/* =====================================================================
   2. Sektioner og rækker   (Divi: Avanceret → CSS-klasse)
   tff-section         indholdssektion (hvid)
   tff-row             tekstkolonne 700px
   tff-row--media      video-bredde 1060px
   tff-row--wide       1200px
   tff-row--carousel   billedkarrusel i fuld bredde
   ===================================================================== */
.et_pb_section.tff-section { padding: var(--tff-space) 0 !important; }
.et_pb_section.tff-section--first { padding-top: calc(var(--tff-space) + 64px) !important; }

.et_pb_row.tff-row,
.et_pb_row.tff-row--media,
.et_pb_row.tff-row--wide {
  width: calc(100% - 2 * var(--tff-gutter)) !important;
  max-width: var(--tff-narrow) !important;
  padding: 0 !important;
}
.et_pb_row.tff-row--media { max-width: var(--tff-media) !important; }
.et_pb_row.tff-row--wide  { max-width: var(--tff-wrap) !important; }
.et_pb_row.tff-row + .et_pb_row,
.et_pb_row.tff-row--wide + .et_pb_row { margin-top: 56px; }
.et_pb_row.tff-row--media + .et_pb_row { margin-top: 96px; }


/* =====================================================================
   3. Typografi
   ===================================================================== */
.tff-section,
.tff-section p,
.tff-section li {
  font-family: var(--tff-font-body);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.63;
  color: var(--tff-navy);
}
.tff-section p { padding-bottom: 0; margin: 0 0 31px; }
.tff-section p:last-child { margin-bottom: 0; }

.tff-section h1,
.tff-section h2,
.tff-section h3,
.tff-section h4 {
  font-family: var(--tff-font-heading);
  color: var(--tff-navy);
  font-weight: 800;
  line-height: 1.2;
  padding-bottom: 0;
  margin: 0 0 12px;
}
.tff-section h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin-bottom: 20px; }
.tff-section h2 { font-size: clamp(44px, 5.4vw, 78px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 28px; }
.tff-section h3 { font-size: 22px; }
.tff-section h4 { font-size: 28px; }

.tff-section strong,
.tff-section b { font-weight: 800; }
.tff-section em strong,
.tff-section strong em { font-style: italic; }

/* Links: navy tekst med turkis understregning */
.tff-section a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--tff-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .15s ease;
}
.tff-section a:hover { color: var(--tff-purple); }

/* Fede linjer med emoji ("Read our Founder Christine's letter …") */
.tff-section p.tff-callout,
.tff-callout p { font-size: 21px; font-weight: 800; line-height: 1.4; }

.tff-lead,
.tff-lead p { font-size: 22px; line-height: 1.55; }


/* =====================================================================
   4. Knapper   (Knap-modul → CSS-klasse: tff-btn  eller  tff-btn tff-btn--cream)
   ===================================================================== */
body #page-container .et_pb_button.tff-btn,
.et_pb_button.tff-btn {
  display: inline-block;
  background-color: var(--tff-purple);
  color: #fff !important;
  border: 2px solid var(--tff-purple) !important;
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-family: var(--tff-font-heading);
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
body #page-container .et_pb_button.tff-btn:hover,
.et_pb_button.tff-btn:hover {
  background-color: var(--tff-purple-dark);
  border-color: var(--tff-purple-dark) !important;
  padding: 14px 24px !important;
}
.et_pb_button.tff-btn:after,
.et_pb_button.tff-btn:before { display: none !important; }

body #page-container .et_pb_button.tff-btn--cream,
.et_pb_button.tff-btn--cream {
  background-color: var(--tff-cream);
  border-color: var(--tff-cream) !important;
  color: var(--tff-purple) !important;
}
body #page-container .et_pb_button.tff-btn--cream:hover,
.et_pb_button.tff-btn--cream:hover {
  background-color: #fff;
  border-color: #fff !important;
}
.et_pb_button_module_wrapper:has(.tff-btn) { margin-top: 36px !important; }


/* =====================================================================
   5. Header   (Theme Builder → Global header)
   Gennemsigtig og fastlåst i toppen. Over hero-billedet vises det
   hvide logo og en hvid burger; resten af siden det lilla ikon.
   Sektion: tff-header · Billeder: tff-logo-light / tff-logo-icon
   Menu-modul: tff-menu (vises altid som burger)
   ===================================================================== */
.et_pb_section.tff-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9990;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none;
}
body.admin-bar .et_pb_section.tff-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .et_pb_section.tff-header { top: 46px; } }

.tff-header .et_pb_row {
  width: 100% !important;
  max-width: none !important;
  padding: 24px 30px !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tff-header .et_pb_row::after { display: none; }
.tff-header .et_pb_column { width: auto !important; margin: 0 !important; float: none; pointer-events: auto; }
.tff-header .et_pb_module { margin-bottom: 0 !important; }

.tff-logo-light img { width: 146px; height: auto; }
.tff-logo-icon img  { width: 38px; height: auto; }
.tff-logo-light,
.tff-logo-icon { transition: opacity .25s ease; }
.tff-logo-icon { position: absolute !important; top: 0; left: 0; opacity: 0; pointer-events: none; }
body.tff-solid .tff-logo-light { opacity: 0; pointer-events: none; }
body.tff-solid .tff-logo-icon  { opacity: 1; pointer-events: auto; }
.tff-header .et_pb_column:first-child { position: relative; }

/* Menu: Divis egen menu skjules. tff-site.js laver en burger og et
   lilla panel, der glider ind fra højre og skubber siden til venstre.
   Punkterne hentes fra den menu, du har valgt i menu-modulet. */
.et_pb_menu.tff-menu,
.et_pb_menu.tff-menu .et_pb_menu_inner_container { background: transparent !important; }
.tff-menu .et_pb_menu__menu,
.tff-menu .et_mobile_nav_menu,
.tff-menu .et_pb_menu__icon { display: none !important; }

.tff-burger {
  width: 48px;
  height: 48px;
  margin: -6px -6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .25s ease;
}
.tff-burger span,
.tff-burger span::before,
.tff-burger span::after {
  content: "";
  display: block;
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: currentColor;
}
.tff-burger span { position: relative; }
.tff-burger span::before { position: absolute; top: -10px; left: 0; }
.tff-burger span::after  { position: absolute; top: 10px; left: 0; }
body.tff-solid .tff-burger { color: var(--tff-purple); }
.tff-burger:focus-visible,
.tff-panel-close:focus-visible,
.tff-panel a:focus-visible { outline: 2px solid var(--tff-cream); outline-offset: 4px; }

:root { --tff-panel-w: min(400px, 100vw); --tff-panel-ease: cubic-bezier(.7, 0, .2, 1); }

.tff-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--tff-panel-w);
  z-index: 10000;
  background: var(--tff-purple);
  color: #fff;
  padding: 26px 36px 44px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .45s var(--tff-panel-ease), visibility 0s linear .45s;
}
body.admin-bar .tff-panel { top: 32px; }
body.tff-menu-open .tff-panel {
  transform: none;
  visibility: visible;
  transition: transform .45s var(--tff-panel-ease), visibility 0s;
}

/* Siden skubbes til venstre (ikke på mobil, hvor panelet fylder hele skærmen) */
#et-main-area,
.et-l--footer,
.et_pb_section.tff-header { transition: transform .45s var(--tff-panel-ease); }
@media (min-width: 601px) {
  body.tff-menu-open #et-main-area,
  body.tff-menu-open .et-l--footer:not(#et-main-area *),
  body.tff-menu-open .et_pb_section.tff-header { transform: translateX(calc(-1 * var(--tff-panel-w))); }
}
html.tff-lock { overflow: hidden; }

.tff-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: none;
  cursor: pointer;
}
body.tff-menu-open .tff-panel-overlay { display: block; }

.tff-panel-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: #D9CCFF;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.tff-panel-close:hover { color: #fff; }

.tff-panel-menu,
.tff-panel-sub { list-style: none !important; margin: 0; padding: 0 !important; }
.tff-panel-menu > li:first-child { padding-right: 56px; } /* plads til krydset */
.tff-panel-menu li { margin: 0; padding: 0; }
.tff-panel-menu a {
  display: inline-block;
  color: #fff !important;
  text-decoration: none;
  font-family: var(--tff-font-body);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.46;
  transition: color .15s ease;
}
.tff-panel-menu a:hover { color: var(--tff-cream) !important; }
.tff-panel-menu > li:first-child > a {
  font-family: var(--tff-font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 2px 0 28px;
}
/* Aktiv side: samme størrelse, bare fed og cremefarvet */
.tff-panel-menu li.is-current > a { color: var(--tff-cream) !important; font-weight: 800; }
.tff-panel-sub { padding-left: 18px !important; }
.tff-panel-sub a { font-size: 20px; }

.tff-panel-follow { margin-top: auto; padding-top: 48px; }
.tff-panel-label {
  font-family: var(--tff-font-heading);
  color: var(--tff-cream);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding: 0;
}
.tff-panel .et_pb_social_media_follow { margin: 0 !important; padding: 0 !important; }
.tff-panel .et_pb_social_media_follow li { margin: 0 10px 0 0 !important; }

@media (max-width: 600px) {
  .tff-panel { padding: 22px 24px 36px; }
  .tff-panel-close { right: 14px; }
  .tff-panel-menu > li:first-child > a { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .tff-panel, #et-main-area, .et-l--footer, .et_pb_section.tff-header { transition: none !important; }
}


/* =====================================================================
   6. Forside
   ===================================================================== */

/* Hero: billede eller video sættes som sektionens baggrund i Divi */
.et_pb_section.tff-hero {
  min-height: 90vh;
  padding: 0 !important;
  background-size: cover;
  background-position: center;
}
@media (max-width: 980px) { .et_pb_section.tff-hero { min-height: 62vh; } }
@media (max-width: 600px) { .et_pb_section.tff-hero { min-height: 48vh; } }

/* Video (Vimeo) */
.et_pb_video.tff-video { margin-bottom: 0 !important; }

/* Karrusel: række med billedmoduler i én kolonne, scroller vandret */
.et_pb_row.tff-row--carousel {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  position: relative;
}
.tff-row--carousel .et_pb_column {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 35px;
  padding: 0 35px !important;
  scrollbar-width: none;
}
.tff-row--carousel .et_pb_column::-webkit-scrollbar { display: none; }
.tff-row--carousel .et_pb_image {
  flex: 0 0 auto;
  margin: 0 !important;
  scroll-snap-align: start;
  width: auto !important;
  max-width: none !important;
}
.tff-row--carousel .et_pb_image_wrap { display: block; max-width: none !important; }
.tff-row--carousel img {
  height: 420px;
  width: auto;
  max-width: none;
  display: block;
}
@media (max-width: 980px) { .tff-row--carousel img { height: 300px; } }
@media (max-width: 600px) {
  .tff-row--carousel .et_pb_column { padding: 0 var(--tff-gutter) !important; scroll-padding-left: var(--tff-gutter); }
  .tff-row--carousel img { height: 240px; }
}
.tff-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--tff-navy);
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity .2s ease;
}
.tff-carousel-btn--next { right: 36px; }
.tff-carousel-btn--prev { left: 36px; }
.tff-carousel-btn[hidden] { display: none; }

/* "Let's keep in touch": lilla sektion med lyse former */
.et_pb_section.tff-purple {
  background-color: var(--tff-purple);
  padding: 110px 0 120px !important;
  position: relative;
  overflow: hidden;
}
.et_pb_section.tff-shapes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1920px;
  height: 402px;
  transform: translateX(-50%);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1920' height='402' viewBox='0 0 1920 402'%3E%3Cg fill='%23fff' fill-opacity='.1'%3E%3Ccircle cx='381' cy='153' r='79'/%3E%3Ccircle cx='1066' cy='283' r='79'/%3E%3Cpath d='M590 -20 L840 120 Q910 160 880 210 Q850 250 790 225 L540 85 Q480 50 510 0 Z'/%3E%3Cpath d='M75 282 Q75 225 140 215 Q170 210 205 228 L380 322 L560 228 Q610 205 645 240 Q680 290 625 330 L560 402 L200 402 L120 350 Q75 320 75 282 Z'/%3E%3Cpath d='M760 402 Q770 360 805 345 Q840 335 870 352 L970 402 Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat top center;
}
.tff-purple .et_pb_row { position: relative; z-index: 1; }
.tff-purple,
.tff-purple p,
.tff-purple h1,
.tff-purple h2,
.tff-purple h3,
.tff-purple h4 { color: #fff !important; }
.tff-purple h2 {
  font-family: var(--tff-font-heading);
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  padding-bottom: 0;
  margin: 0 0 36px;
}
.tff-purple p { font-family: var(--tff-font-body); font-size: 26px; font-weight: 300; line-height: 1.4; padding-bottom: 0; }
.tff-purple a { color: #fff; }


/* =====================================================================
   7. Undersider
   ===================================================================== */

/* Lilla banner øverst på undersider: sektion "tff-page-hero tff-shapes" */
.et_pb_section.tff-page-hero {
  background-color: var(--tff-purple);
  padding: 190px 0 36px !important;
  position: relative;
  overflow: hidden;
}
.et_pb_section.tff-page-hero.tff-shapes::before { top: -57px; }
.tff-page-hero .et_pb_row { position: relative; z-index: 1; }
.tff-page-hero p.tff-eyebrow,
.tff-page-hero .tff-eyebrow {
  font-family: var(--tff-font-heading);
  color: var(--tff-cream);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 0;
  margin: 0 0 14px;
}
.tff-page-hero h1 {
  font-family: var(--tff-font-heading);
  color: #fff;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.005em;
  padding: 0;
  margin: 0;
}
@media (max-width: 980px) {
  .et_pb_section.tff-page-hero { padding: 140px 0 32px !important; }
}

/* Breadcrumbs lige under banneret: [tff_breadcrumbs] i et tekstmodul */
.et_pb_section.tff-section--after-hero { padding-top: 14px !important; }
.et_pb_row.tff-row--crumbs + .et_pb_row { margin-top: 96px; }
@media (max-width: 980px) { .et_pb_row.tff-row--crumbs + .et_pb_row { margin-top: 56px; } }
.tff-breadcrumbs {
  font-family: var(--tff-font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #A3A7BA;
}
.tff-section .tff-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.tff-section .tff-breadcrumbs a:hover { color: var(--tff-purple); }
.tff-breadcrumbs .tff-sep { margin: 0 4px; }

/* Transition Committee: én kolonne med Team-medlem-moduler (klasse tff-person),
   som lægges i et gitter. Tilføj en person ved at duplikere et modul. */
.et_pb_row.tff-row--people { max-width: 1130px !important; }
.tff-row--people .et_pb_column {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 20px;
}
.tff-row--people .et_pb_column > .et_pb_module { margin: 0 !important; width: auto !important; }
@media (max-width: 980px) { .tff-row--people .et_pb_column { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tff-row--people .et_pb_column { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }

.tff-person .et_pb_team_member_image {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 14px !important;
  float: none !important;
  display: block !important;
}
.tff-person .et_pb_team_member_image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
}
.tff-person .et_pb_team_member_description { padding: 0 !important; text-align: left; }
.tff-person h4,
.tff-person .et_pb_module_header {
  font-family: var(--tff-font-heading);
  font-size: clamp(20px, 2vw, 28px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--tff-navy) !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
}
.tff-person .et_pb_member_position {
  font-family: var(--tff-font-heading);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--tff-purple);
  padding: 0 !important;
}
@media (max-width: 600px) { .tff-person .et_pb_member_position { font-size: 12px; } }

.tff-declaration img { width: 100%; height: auto; }


/* =====================================================================
   8. Footer   (Theme Builder → Global footer, sektion: tff-footer)
   ===================================================================== */
.et_pb_section.tff-footer {
  background-color: var(--tff-purple);
  padding: 100px 0 100px !important;
}
.tff-footer .et_pb_row {
  width: calc(100% - 2 * var(--tff-gutter)) !important;
  max-width: var(--tff-wrap) !important;
  padding: 0 !important;
}
.tff-footer,
.tff-footer p,
.tff-footer li { color: #fff; font-family: var(--tff-font-body); font-size: 14px; line-height: 1.4; }
.tff-footer p { padding-bottom: 0; margin: 0 0 22px; }
.tff-footer p:last-child { margin-bottom: 0; }
.tff-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tff-footer a:hover { color: var(--tff-cream); }
.tff-footer h4 {
  font-family: var(--tff-font-heading);
  color: var(--tff-cream);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 0;
  margin: 0 0 14px;
}
.tff-footer-logo img { width: 146px; height: auto; }
.tff-footer-links ul { list-style: none !important; padding: 0 !important; margin: 0 0 40px; }
.tff-footer-links li { margin: 0 0 6px; font-size: 18px !important; font-weight: 300; }
.tff-footer-links li a { font-size: 18px; }

/* Sociale ikoner: hvide cirkler med lilla ikon */
.tff-social.et_pb_social_media_follow li { margin: 0 10px 0 0 !important; }
.tff-social.et_pb_social_media_follow li a.icon {
  width: 40px !important;
  height: 40px !important;
  background-color: #fff !important;
  border-radius: 50% !important;
}
.tff-social.et_pb_social_media_follow li a.icon:before {
  color: var(--tff-purple) !important;
  font-size: 20px !important;
  line-height: 40px !important;
  width: 40px !important;
  height: 40px !important;
}
.tff-social.et_pb_social_media_follow li a.icon:hover { background-color: var(--tff-cream) !important; }

@media (max-width: 980px) {
  .tff-footer .et_pb_column { margin-bottom: 40px !important; }
}
