/*
Theme Name: Doora – Opp og stå
Theme URI: https://doora.no
Author: Doora
Description: Tema for Doora og podkasten «Opp og stå». Ved aktivering opprettes sidene Podkast, Send henvendelse, Kurs og Kontakt, med skjemaer som sender e-post.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doora-opp-og-sta
*/

:root {
  --dark: #171b19;
  --forest: #283b33;
  --cream: #f2efe8;
  --lime: #d7f28d;
  --muted: #a8afa6;
  --line: rgba(255,255,255,.16);
}

* { box-sizing: border-box; } 

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

.container {
  width: min(1360px, 90%);
  margin: auto;
}

/* NAVIGATION */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 22px 0;
  transition: .3s;
}

nav.scrolled {
  background: rgba(23,27,25,.94);
  backdrop-filter: blur(18px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.09em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a:hover { color: var(--lime); }

.nav-cta {
  padding: 13px 23px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 40px;
  font-size: 13px;
  transition: .3s;
}

.nav-cta:hover {
  background: var(--lime);
  color: var(--dark);
  border-color: var(--lime);
}

/* HERO */

.hero {
  position: relative;
  min-height: 850px;
  height: 100svh;
  max-height: 1150px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(15,23,19,.95) 0%,
      rgba(15,23,19,.70) 45%,
      rgba(15,23,19,.12) 100%),
    url('https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=2200&q=85')
    center/cover;
  transform: scale(1.04);
  animation: zoomOut 12s ease forwards;
}

@keyframes zoomOut {
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--lime);
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
}

.hero h1 {
  font-size: clamp(64px, 9.5vw, 155px);
  line-height: .98;
  letter-spacing: -.09em;
  max-width: 1100px;
  margin: 36px 0;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-desc {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: #d2d6cf;
  max-width: 520px;
  margin-bottom: 35px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 19px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .3s, background .3s;
  border: 0;
}

.btn:hover { transform: translateY(-4px); }

.btn-lime {
  background: var(--lime);
  color: var(--dark);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.4);
  background: transparent;
  color: white;
}

.hero-bottom {
  position: absolute;
  bottom: 45px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #c1c8bd;
}

/* MARQUEE */

.marquee {
  overflow: hidden;
  background: var(--lime);
  color: var(--dark);
  padding: 20px 0;
}

.marquee-track {
  display: flex;
  gap: 45px;
  width: max-content;
  animation: move 30s linear infinite;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

@keyframes move {
  to { transform: translateX(-50%); }
}

/* INTRO */

.intro {
  padding: 155px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 100px;
}

.intro h2 {
  font-size: clamp(38px, 5.2vw, 82px);
  line-height: 1.13;
  letter-spacing: -.065em;
  font-weight: 600;
}

.intro h2 span { color: var(--lime); }

.intro p {
  max-width: 570px;
  line-height: 1.9;
  color: var(--muted);
  font-size: 16px;
}

/* CARDS */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 45px;
}

.section-header h2 {
  font-size: clamp(42px, 6vw, 85px);
  line-height: 1;
  letter-spacing: -.075em;
  margin: 22px 0 0;
}

.programs { padding-bottom: 150px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.program-card {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 35px;
  isolation: isolate;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: brightness(.62);
  transition: transform .7s;
}
  
.program-card:hover::before {
  transform: scale(1.08);
}

.program-card:nth-child(1)::before {
  background-image: url('https://images.unsplash.com/photo-1472396961693-142e6e269027?auto=format&fit=crop&w=1000&q=85');
}

.program-card:nth-child(2)::before {
  background-image: url('https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=1000&q=85');
}

.program-card:nth-child(3)::before {
  background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1000&q=85');
}

.card-number {
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 700;
}

.program-card h3 {
  font-size: clamp(30px, 3vw, 45px);
  letter-spacing: -.06em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.program-card p {
  color: #e1e3dd;
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.card-arrow {
  margin-top: 25px;
  display: inline-flex;
  width: 48px;
  height: 48px;
  border: 1px solid white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* QUOTE */

.quote-section {
  background: var(--cream);
  color: var(--dark);
  padding: 155px 0;
  text-align: center;
}

.quote-section h2 {
  max-width: 1100px;
  margin: 30px auto;
  font-size: clamp(44px, 7.2vw, 105px);
  line-height: 1.12;
  letter-spacing: -.075em;
  font-weight: 600;
}

.quote-section h2 span { color: #7d9872; }

/* PODCAST */

.podcast {
  padding: 155px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.podcast-art {
  aspect-ratio: 1;
  background: var(--lime);
  color: var(--dark);
  border-radius: 5px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.podcast-art::after {
  content: "";
  width: 70%;
  aspect-ratio: 1;
  border: 55px solid rgba(23,27,25,.13);
  border-radius: 50%;
  position: absolute;
  right: -25%;
  top: 15%;
}

.podcast-art .mini {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

.podcast-art strong {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(65px, 9vw, 135px);
  line-height: .85;
  letter-spacing: -.1em;
  position: relative;
  z-index: 1;
}

.podcast-copy h2 {
  font-size: clamp(48px, 6vw, 90px);
  letter-spacing: -.075em;
  line-height: 1;
  margin: 25px 0;
}

.podcast-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
  max-width: 450px;
  margin-bottom: 35px;
}

.podcast-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.podcast-copy p.podcast-platforms {
  font-size: 14px;
  margin: 0;
}

.podcast-platforms a { color: var(--lime); }

/* CTA */

.cta {
  padding: 120px 0;
  background: var(--forest);
  text-align: center;
}

.cta h2 {
  font-size: clamp(55px, 9vw, 130px);
  line-height: 1.05;
  letter-spacing: -.085em;
  margin: 30px 0 40px;
}

.cta h2 span { color: var(--lime); }

/* FOOTER */

footer {
  padding: 70px 0 25px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 75px;
}

.footer-logo {
  font-size: clamp(85px, 17vw, 260px);
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  letter-spacing: -.11em;
  line-height: 1;
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 35px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 25px;
  color: var(--muted);
  font-size: 12px;
}

/* REVEAL ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero {
    min-height: 720px;
    max-height: none;
  }

  .hero-image {
    background:
      linear-gradient(90deg, rgba(15,23,19,.9), rgba(15,23,19,.4)),
      url('https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=1200&q=85')
      center/cover;
  }

  .intro, .podcast {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 100px;
    padding-bottom: 100px;
  }

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

  .program-card { min-height: 420px; }

  .programs { padding-bottom: 100px; }

  .quote-section { padding: 100px 0; }

  .podcast-art { max-width: 600px; }

  .section-header { align-items: start; }

  .footer-top { flex-direction: column; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 63px; }
  .hero-bottom { font-size: 9px; }
  .hero-bottom span:last-child { display: none; }
  .nav-cta { padding: 11px 16px; }
  .footer-bottom { flex-direction: column; }
  .podcast-art { padding: 25px; }
  .podcast-art strong { font-size: 75px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- PODKASTSIDE ---------- */

body.subpage nav { background: rgba(23,27,25,.94); border-bottom: 1px solid var(--line); }

.pod-hero {
  background: var(--forest);
  padding: 190px 0 120px;
}

.pod-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  align-items: center;
}

.pod-hero h1 {
  font-size: clamp(64px, 9vw, 150px);
  line-height: .92;
  letter-spacing: -.09em;
  font-weight: 700;
  margin: 30px 0;
}

.pod-hero h1 em { font-style: normal; color: var(--lime); }

.pod-hero .hero-desc { margin-bottom: 30px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pod-section { padding: 130px 0; }

.pod-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px 60px;
  margin-bottom: 50px;
}

.pod-section h2 {
  font-size: clamp(42px, 6vw, 85px);
  line-height: 1;
  letter-spacing: -.075em;
  margin: 22px 0 0;
}

.pod-section-header p { color: var(--muted); max-width: 440px; line-height: 1.8; margin: 0; }

.episodes { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.episode {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.episode-nr { font-family: 'Manrope', sans-serif; font-size: 40px; font-weight: 700; letter-spacing: -.06em; color: var(--lime); }

.episode h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.04em; margin: 0 0 6px; }

.episode p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.6; }

.play {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--lime); color: var(--dark);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
}

.hosts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.host {
  background: var(--forest);
  border-radius: 8px;
  padding: 35px;
  display: flex;
  gap: 28px;
  align-items: center;
}

.host-photo {
  flex: 0 0 120px; height: 120px; border-radius: 50%;
  background: #3a5248; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; text-align: center;
}

.host h3 { font-size: 30px; letter-spacing: -.05em; margin: 0 0 8px; }

.host p { color: #d2d6cf; margin: 0; line-height: 1.7; font-size: 15px; }

.form-section { background: var(--cream); color: var(--dark); padding: 130px 0; }

.form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; align-items: start; }

.form-section h2 { font-size: clamp(42px, 6vw, 85px); line-height: 1; letter-spacing: -.075em; margin: 22px 0 25px; }

.form-section h2 em { font-style: normal; color: #4e6a44; }

.form-section .intro-text { line-height: 1.8; max-width: 420px; color: #3d423f; }

.form-section .eyebrow::before { background: var(--dark); }

.doora-form { display: flex; flex-direction: column; gap: 20px; }

.doora-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label { font-weight: 600; font-size: 14px; }

.field input, .field select, .field textarea {
  font: inherit; color: var(--dark);
  background: #fff; border: 1px solid #cfc8bb; border-radius: 10px;
  padding: 14px 16px; min-height: 52px; width: 100%;
}

.field textarea { min-height: 160px; resize: vertical; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; }

.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--forest); }

.btn-dark { background: var(--dark); color: var(--cream); align-self: flex-start; }

.spotify-embed { border-radius: 12px; overflow: hidden; background: #282828; }

.spotify-embed iframe { display: block; border: 0; }

@media (max-width: 900px) {
  .pod-hero { padding: 140px 0 80px; }
  .pod-hero-inner, .form-wrap { grid-template-columns: 1fr; gap: 50px; }
  .hosts { grid-template-columns: 1fr; }
  .pod-section, .form-section { padding: 90px 0; }
}

@media (max-width: 600px) {
  .episode { grid-template-columns: 1fr auto; }
  .episode-nr { display: none; }
  .host { flex-direction: column; align-items: flex-start; }
  .doora-form .row { grid-template-columns: 1fr; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.step { background: var(--forest); border-radius: 8px; padding: 35px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }

.step-nr { font-family: 'Manrope', sans-serif; font-size: 56px; font-weight: 700; letter-spacing: -.06em; color: var(--lime); line-height: 1; }

.step h3 { font-size: 28px; letter-spacing: -.05em; margin: 30px 0 10px; }

.step p { color: #d2d6cf; margin: 0; line-height: 1.7; font-size: 15px; }

.tonje { display: grid; grid-template-columns: 1fr 1.4fr; gap: 90px; align-items: center; }

.tonje-name { font-family: 'Manrope', sans-serif; font-size: clamp(56px, 7vw, 110px); font-weight: 700; letter-spacing: -.08em; line-height: .95; }

.tonje-name em { font-style: normal; color: var(--lime); }

.tonje p { color: var(--muted); line-height: 1.9; margin: 0 0 18px; max-width: 560px; }

.prices { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

.price-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }

.price-row h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.04em; margin: 0 0 6px; }

.price-row p { color: var(--muted); margin: 0; font-size: 15px; }

.price { font-family: 'Manrope', sans-serif; font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -.05em; color: var(--lime); white-space: nowrap; }

.price-note { color: var(--muted); font-size: 14px; margin: 24px 0 0; }

.note { font-size: 14px; line-height: 1.6; color: #3d423f; border-top: 1px solid #cfc8bb; padding-top: 18px; margin-top: 10px; }

@media (max-width: 900px) {
  .steps, .tonje { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- WORDPRESS-TILLEGG ---------- */

body.admin-bar nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar nav { top: 46px; } }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4); background: transparent; color: var(--cream);
  }
  .nav-right { display: flex; align-items: center; gap: 12px; }
  nav.nav-open { background: rgba(23,27,25,.98); }
  nav.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 28px 5% 36px; background: rgba(23,27,25,.98);
    border-bottom: 1px solid var(--line); font-size: 20px;
  }
}

@media (min-width: 901px) { .nav-right { display: contents; } }

.doora-honning { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.doora-melding { border-radius: 12px; padding: 22px 24px; line-height: 1.6; font-weight: 500; }
.doora-melding--ok { background: var(--forest); color: var(--cream); }
.doora-melding--ok::before { content: "✓ "; color: var(--lime); font-weight: 800; }
.doora-melding--feil { background: #f6dcd6; color: #7a1f12; border: 1px solid #e3a99c; margin-bottom: 20px; }

.page-content { width: min(760px, 90%); margin: 0 auto; padding: 90px 0 140px; }
.page-content > * + * { margin-top: 22px; }
.page-content p, .page-content li { color: #d2d6cf; line-height: 1.85; }
.page-content a { color: var(--lime); text-decoration: underline; }
.page-content h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.06em; line-height: 1.1; margin-top: 60px; }
.page-content img { max-width: 100%; height: auto; }

.tonje .tonje-name { line-height: .95; color: var(--cream); max-width: none; margin: 22px 0 0; }

.episode h3 a { color: var(--cream); text-decoration: none; }
.episode h3 a:hover { color: var(--lime); }
.episode .episode-nr { font-size: 18px; letter-spacing: .02em; line-height: 1.2; }
.episode p + p.episode-meta { margin-top: 8px; font-size: 13px; color: #8f978d; }
.episode .play { font-size: 18px; text-decoration: none; }
@media (max-width: 600px) { .episode { grid-template-columns: 1fr auto; } .episode .episode-nr { display: none; } }
