/* ==========================================================================
   Psykolog Maria Kivikoski — style.css
   Design matcher det oprindelige site 1:1 (farver, skrifttyper, layout).
   ========================================================================== */

@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/cardo-v21-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Cardo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/cardo-v21-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-v20-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-v20-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-v20-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-v20-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-v20-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-v20-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02FF, U+1E00-1EFF, U+2020, U+2113;
}

/* ---- Design tokens ---- */
:root {
  --color-base: #f9f9f9;
  --color-base-2: #ffffff;
  --color-contrast: #111111;
  --color-contrast-2: #636363;
  --color-hero: #bec2cf;      /* forside + terapi */
  --color-method: #cda08b;    /* metode + priser + forside/målgruppe */
  --color-soft: #f8e8d7;      /* om mig + praktisk info + forside/metode-tekst */
  --color-overlay: #7083a4;   /* dæmpning på forsidens banner */

  --font-heading: "Cardo", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-width: 620px;
  --wide-width: 1280px;
  --radius-image: clamp(1rem, 2vw, 1.5rem);
  --radius-button: 0.33rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-padding-y: clamp(2.75rem, 6vw, 5.5rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--color-base);
  color: var(--color-contrast);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.5rem, 2.5rem + 1.3vw, 3.27rem); line-height: 1.15; }
h2 { font-size: clamp(1.85rem, 1.85rem + 1.1vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 1.5rem + 0.6vw, 1.85rem); }
h4 { font-size: 1.25rem; font-weight: 700; font-family: var(--font-body); }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* ---- Utility ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-contrast);
  color: var(--color-base);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 var(--radius-button) 0;
}
.skip-link:focus { left: 0; }

.wide {
  max-width: var(--wide-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.narrow {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.lead {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 1.85rem + 1.1vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.btn {
  display: inline-block;
  background-color: var(--color-contrast);
  color: var(--color-base) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-button);
  border: none;
}
.btn:hover, .btn:focus { background-color: var(--color-contrast-2); }

/* ---- Header / Navigation ---- */
.site-header {
  background-color: var(--color-base);
  padding: 20px 0;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0;
}
.site-title a { text-decoration: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle svg { width: 24px; height: 24px; fill: var(--color-contrast); }

.main-nav__list {
  display: flex;
  gap: 0.5rem;
}
.main-nav__list a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  transition: border-color 0.15s ease;
}
.main-nav__list a:hover,
.main-nav__list a:focus-visible,
.main-nav__list a[aria-current="page"] {
  border-color: var(--color-contrast-2);
}

@media (max-width: 781px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--color-base);
    z-index: 90;
    display: none;
    flex-direction: column;
    padding: 1.5rem var(--gutter);
  }
  .main-nav.is-open { display: flex; }
  .main-nav__header {
    display: flex;
    justify-content: flex-end;
  }
  .main-nav__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .main-nav__close svg { width: 24px; height: 24px; fill: var(--color-contrast); }
  .main-nav__list {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
  }
  .main-nav__list a { font-size: 1.4rem; }
}
@media (min-width: 782px) {
  .nav-toggle { display: none; }
  .main-nav__header { display: none; }
  .main-nav { display: block !important; }
}

/* ---- Hero (forside + undersider) ---- */
.hero {
  padding: var(--section-padding-y) 0;
}
.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero__media { text-align: center; }
.hero__media img {
  border-radius: var(--radius-image);
  margin: 0 auto;
}
.hero__portrait {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-image);
}
.hero__portrait--tall {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-image);
}
.hero__note { margin-top: 1.5rem; }

@media (min-width: 782px) {
  .hero__grid { flex-direction: row; align-items: flex-start; }
  .hero__text, .hero__media { flex-basis: 50%; }
  .hero__portrait { max-width: 82%; }
}

/* ---- Full-bleed banner med overlay (kun forside) ---- */
.banner {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--gutter) 0;
}
.banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 27% 42%;
  filter: url(#duotone-banner);
  z-index: 0;
}
.banner__dim {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay);
  opacity: 0.2;
  z-index: 1;
}
.banner__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.banner__heading {
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(2.17rem, 2.17rem + 2.9vw, 3.94rem);
  line-height: 1;
  max-width: 14ch;
  margin: 0;
}

/* ---- Tonede sektioner ---- */
.section {
  padding: var(--section-padding-y) 0;
}
.section__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 782px) {
  .section__grid { flex-direction: row; align-items: flex-start; }
}
.section__grid > * { flex: 1; }
.section__media img { border-radius: var(--radius-image); width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.section__col { max-width: 820px; }

.split-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .split-text { flex-direction: row; }
  .split-text > * { flex: 1; }
}

/* ---- Sideindhold (undersider med lang tekst) ---- */
.page {
  padding: var(--section-padding-y) 0;
}
.page__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 782px) {
  .page__grid { flex-direction: row; align-items: flex-start; }
  .page__grid > .page__text { flex-basis: 55%; }
  .page__grid > .page__media { flex-basis: 45%; }
}
.page__text h2 { font-size: 1.4rem; font-family: var(--font-body); font-weight: 700; margin-top: 1.6em; }
.page__text h2:first-child { margin-top: 0; }

/* ---- Priser: kort-layout ---- */
.pricing {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 782px) {
  .pricing { flex-direction: row; align-items: flex-start; }
  .pricing__card { flex-basis: 38%; }
  .pricing__info { flex-basis: 62%; }
}
.pricing__card {
  background-color: var(--color-base-2);
  border-radius: 14px;
  padding: 1.5rem;
}
.pricing__price { font-size: 1.05rem; }

/* ---- Footer ---- */
.site-footer {
  background-color: var(--color-base);
  padding: var(--gutter) 0;
}
.site-footer address { font-style: normal; }
.site-footer p { margin: 0 0 0.75em; }
.site-footer .site-title { margin-bottom: 0.5em; }
.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.site-footer__links .field-heading {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-contrast-2);
  margin: 0 0 0.75em;
}
.site-footer__links ul { display: flex; flex-direction: column; gap: 0.5em; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
@media (min-width: 600px) {
  .site-footer__grid { flex-direction: row; justify-content: space-between; }
}

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2rem; }
.faq-item {
  background-color: var(--color-base-2);
  border-radius: 12px;
  padding: 0.3rem 1.3rem;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  padding: 1rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1.1rem; }

/* ---- Screen-reader only ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
