/*
Theme Name: Baby Fokus
Theme URI: https://www.babyfokus.dk/
Author: Baby Fokus
Description: Block-tema til Baby Fokus. Ammevejledning ved Line Edvardsen i Kastrup.
Version: 1.1.29
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: babyfokus
*/

@font-face {
  font-family: Metropolis;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/metropolis-400.woff2") format("woff2");
}
@font-face {
  font-family: Metropolis;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/metropolis-500.woff2") format("woff2");
}
@font-face {
  font-family: Metropolis;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/metropolis-600.woff2") format("woff2");
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/pt-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/pt-serif-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/pt-serif-700.woff2") format("woff2");
}

:root {
  --bf-accent: #6d4c41;
  --bf-ink: #393939;
  --bf-muted: #666666;
  --bf-header: #272727;
  --bf-dark: #412e27;
  --bf-cream: #fdf4cb;
  --bf-blush: #fef2e8;
  --bf-mist: #f9f7fa;
  --bf-white: #ffffff;
  --bf-line: #e6e1e4;
  --bf-card-line: #eee4dc;
  --bf-max: 1200px;
  --bf-wide: 1400px;
  --bf-text: 720px;
  --bf-hero: 900px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bf-white);
  color: var(--bf-ink);
  font-family: Metropolis, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

p { margin: 0 0 18px; }

a {
  color: var(--bf-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--bf-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--bf-white);
  color: var(--bf-header);
  padding: 0.6rem 1rem;
  border-radius: 5px;
}

.skip-link:focus { top: 0.75rem; }

h1, h2, h3, h4 {
  font-family: "PT Serif", Georgia, serif;
  font-weight: 400;
  color: var(--bf-ink);
  margin: 0;
}

h1 { font-size: 32px; line-height: 41.6px; margin-bottom: 30px; }
h2 { font-size: 28px; line-height: 36px; margin-bottom: 24px; }
h3 { font-size: 24px; line-height: 32.4px; margin-bottom: 12px; }

.site-header {
  background-color: var(--bf-header);
  background-image: url("assets/images/header-moenster.png");
  background-size: 220px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header :focus-visible { outline-color: var(--bf-cream); }

.site-header a { color: #fff; text-decoration: none; }

.header-inner {
  max-width: var(--bf-wide);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
}

.brand-name {
  display: block;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 400;
}

.brand-name strong { font-weight: 600; }

.brand-tag {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.nav-desktop { margin-left: auto; }

.nav-list {
  display: flex;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.7rem 0.15rem;
}

.nav-list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.25em; }

.nav-mobile { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6d4c41;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 5px;
  padding: 16px 34px;
  min-height: 60px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid #6d4c41;
  box-sizing: border-box;
}

.btn:hover { background: #5c4036; border-color: #5c4036; }

.btn.header-cta {
  flex: 0 0 auto;
  padding: 7px 14px;
  min-height: 38px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.btn.header-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--bf-header) !important;
  border-color: #fff;
}

.site-main { min-height: 50vh; }

.section { padding: 56px 20px; }

.section.fact-box {
  padding-top: 28px;
  padding-bottom: 32px;
  background: var(--bf-white);
}

.fact-box h2 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.fact-box ul {
  margin: 0;
  padding-left: 1.2rem;
}

.fact-box li {
  margin: 0.4rem 0;
  overflow-wrap: break-word;
}

.section-inner {
  max-width: var(--bf-max);
  margin: 0 auto;
}

.section-inner.wide { max-width: var(--bf-wide); }

.section--cream { background: var(--bf-cream); }
.section--blush { background: var(--bf-blush); }
.section--mist { background: var(--bf-mist); }
.section--white { background: var(--bf-white); }

.section--dark {
  background: var(--bf-dark);
  color: rgba(255, 255, 255, 0.92);
}

.section--dark h2,
.section--dark h3,
.section--dark a { color: #fff; }

.lead { max-width: var(--bf-text); }

.narrow { max-width: var(--bf-text); }

.hero .section-inner { max-width: var(--bf-hero); }

.hero p:not(.kicker) {
  font-size: 18px;
  line-height: 28.8px;
}

.kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bf-accent);
  margin-bottom: 0.75rem;
}

.section--dark .kicker { color: var(--bf-cream); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.service-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.service-card .service-price {
  font-weight: 600;
  margin-bottom: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--bf-line);
}

.service-row img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.card-grid,
.price-grid,
.credential-grid {
  display: grid;
  gap: 24px;
}

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

.credential {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 28px 24px;
}

.credential img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  justify-items: center;
}

.testimonial-card {
  width: 100%;
  max-width: 760px;
  margin: 0;
  background: var(--bf-blush);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 18px rgba(65, 46, 39, 0.06);
  text-align: left;
}

.section--cream .testimonial-card { background: #fff; }

.testimonial-mark {
  display: block;
  margin: 0 0 8px;
  font-family: "PT Serif", Georgia, serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 0.7;
  color: #6d4c41;
  opacity: 0.25;
  user-select: none;
}

.testimonial-card blockquote {
  margin: 0 0 20px;
  padding: 0;
  quotes: none;
}

.testimonial-card blockquote p {
  margin: 0;
  font-family: "PT Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.6;
  color: #412e27;
}

.testimonial-card blockquote p + p {
  margin-top: 1rem;
}

.testimonial-card.is-excerpt blockquote p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.testimonial-card figcaption {
  margin: 0;
  font-family: Metropolis, "Segoe UI", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d4c41;
}

.testimonial-card .testimonial-more {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

.testimonial-card .testimonial-more a {
  color: #6d4c41;
  font-weight: 500;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--bf-line);
}

.price-list strong { font-weight: 600; white-space: nowrap; }

.price-list + p {
  max-width: 40rem;
  margin-top: 36px;
  text-align: center;
}

#priser .price-list,
#priser .price-list + p {
  margin-left: auto;
  margin-right: auto;
}

.service,
.faq-item {
  scroll-margin-top: 120px;
}

.faq-item {
  border-top: 1px solid var(--bf-line);
  padding: 1.25rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--bf-line); }

.byline {
  color: var(--bf-muted);
  font-size: 16px;
  line-height: 1.5;
  margin: -6px 0 28px;
}

.kort-svar {
  background: var(--bf-white);
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  padding: 24px;
}

.kort-svar p:last-child { margin-bottom: 0; }

.guide-section + .guide-section { margin-top: 40px; }

.guide-section ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.guide-section li { margin: 0.35rem 0; }

.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.guide-card {
  min-width: 0;
  background: var(--bf-white);
  border: 1px solid var(--bf-card-line);
  border-radius: 12px;
  padding: 24px;
}

.guide-card h2,
.guide-card h3 { margin-bottom: 12px; }

.guide-card p:last-child { margin-bottom: 0; }

.guide-link {
  margin: 16px 0 0;
  font-weight: 500;
}

.kort-svar,
.guide-card,
.guide-section,
.faq-item { overflow-wrap: break-word; }

.breadcrumbs {
  max-width: var(--bf-max);
  margin: 0 auto;
  padding: 20px 20px 0;
  font-size: 16px;
  color: var(--bf-muted);
}

.breadcrumbs a { color: var(--bf-accent); }
.breadcrumbs span[aria-hidden="true"] { margin: 0 0.4rem; }

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.nap { list-style: none; margin: 0; padding: 0; }
.nap li { margin: 0 0 0.35rem; }

.map {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bf-mist);
  min-height: 280px;
}

.map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 280px;
  min-height: 280px;
  border: 0;
}

.site-footer {
  background: var(--bf-mist);
  color: var(--bf-ink);
  padding: 56px 20px 32px;
}

.footer-inner {
  max-width: var(--bf-wide);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer-nav a { color: var(--bf-ink); font-weight: 500; }
.legal { color: var(--bf-muted); font-size: 0.92rem; margin: 0; }

.center { text-align: center; }

.link-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 500;
  text-decoration: none;
}

.instagram-link:hover { text-decoration: none; color: #5c4036; }

.contact-hero { text-align: center; padding: 56px 20px 48px; }
.contact-hero .section-inner { max-width: 720px; }
.contact-hero .breadcrumbs {
  max-width: none;
  margin: 0 0 20px;
  padding: 0;
  font-size: 14px;
  text-align: center;
}
.contact-hero h1 { margin-bottom: 24px; }
.contact-hero .lead {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: none;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--bf-card-line);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.contact-card h2 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.contact-card a { color: #6d4c41; font-weight: 500; }
.contact-card .hint { font-size: 15px; line-height: 1.5; color: var(--bf-muted); margin-bottom: 0; }
.contact-card p:last-child { margin-bottom: 0; }

.contact-icon {
  display: block;
  margin: 0 auto 16px;
  color: #6d4c41;
}

.clinic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.clinic-grid .narrow { max-width: none; }

@media (min-width: 800px) {
  p { margin-bottom: 28px; }
  h1 { font-size: 40px; line-height: 52px; }
  h2 { font-size: 36px; line-height: 46.8px; }
  .section { padding: 96px 40px; }
  .header-inner, .site-footer { padding-left: 40px; padding-right: 40px; }
  .breadcrumbs { padding: 24px 40px 0; font-size: 16px; }
  .hero p:not(.kicker) { font-size: 20px; line-height: 32px; }
  .service-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .guide-grid--3 { grid-template-columns: 1fr 1fr; }
  .credential-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .contact-card { padding: 36px 28px; }
  .testimonial-card { padding: 40px 36px; }
  .testimonial-card blockquote p { font-size: 22px; }
  .contact-hero { padding: 96px 40px 80px; }
  .contact-hero .breadcrumbs { font-size: 14px; }
  .clinic-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
  .map { border-radius: 12px; }
  .map iframe { height: 400px; min-height: 400px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer { padding-top: 72px; padding-bottom: 40px; }
}

@media (min-width: 1100px) {
  .service-row {
    grid-template-columns: minmax(420px, 480px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
}

@media (min-width: 1300px) {
  .service-grid { grid-template-columns: repeat(3, minmax(380px, 1fr)); gap: 40px; }
  .guide-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .nav-desktop { display: none; }
  .brand img { width: 48px; height: 48px; }
  .header-inner { position: relative; gap: 0.6rem; flex-wrap: nowrap; }
  .btn.header-cta {
    display: inline-flex;
    order: 2;
    margin-left: auto;
    padding: 8px 14px;
    min-height: 40px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.72);
  }
  .nav-mobile { display: block; order: 3; margin-left: 0.6rem; }
  .nav-mobile summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 0.15rem;
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile .menu-close-label { display: none; }
  .nav-mobile[open] .menu-open-label { display: none; }
  .nav-mobile[open] .menu-close-label { display: inline; }
  .nav-mobile[open] summary {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    padding: 0 12px;
  }
  .menu-close {
    align-self: flex-end;
    margin: 0 0 12px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .nav-mobile nav {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    background-color: var(--bf-header);
    background-image: url("assets/images/header-moenster.png");
    background-size: 220px;
    padding: 20px 28px 32px;
    overflow: auto;
  }
  .nav-mobile .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: transparent;
    padding: 0;
  }
  .nav-mobile .nav-list a {
    font-size: 1.35rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .menu-book { margin-top: auto; width: 100%; }
}

html:has(.nav-mobile[open]) { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.section.bf-ig {
  padding: 20px 20px 24px;
}

.bf-ig-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.bf-ig-inner:has(.bf-ig-media) {
  gap: 32px;
}

.bf-ig-copy { max-width: 38rem; }

.bf-ig h3 { margin-bottom: 8px; }

.bf-ig p { margin: 0 0 12px; }

.bf-ig p:last-child { margin-bottom: 0; }

.bf-ig .btn { gap: 10px; }

.bf-ig .btn svg { display: block; flex: 0 0 auto; }

.bf-ig a:focus-visible {
  outline: 2px solid #272727;
  outline-offset: 3px;
}

.bf-ig-media,
.bf-ig-media #sb_instagram,
.bf-ig-media #sbi_images {
  overflow: visible !important;
}

.bf-ig-media #sb_instagram,
.bf-ig-media .sbi {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  float: none !important;
}

.bf-ig-media #sbi_images {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  padding: 6px 2px 18px !important;
  margin: 0 !important;
}

.bf-ig-media .sbi_item {
  position: relative;
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #f3e6c4 !important;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(62, 39, 35, .08), 0 6px 18px rgba(62, 39, 35, .12);
}

.bf-ig-media .sbi_photo_wrap,
.bf-ig-media .sbi_photo {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.bf-ig-media img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: transparent !important;
}

.bf-ig .sbi_playbtn {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%);
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(62, 39, 35, .45);
  z-index: 2;
}

.bf-ig-media .sbi_item:focus-within {
  outline: 2px solid #272727;
  outline-offset: 3px;
}

.bf-ig #sb_instagram .sbi_lightbox_carousel_icon,
.bf-ig .sbi_header,
.bf-ig .sbi_follow_btn,
.bf-ig .sbi_load_btn,
.bf-ig .sbi_caption,
.bf-ig #sbi_load,
.bf-ig .sbi_footer,
.bf-ig .sbi_resized_image_data {
  display: none !important;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bf-ig-media .sbi_item {
    transition: transform .2s, box-shadow .2s;
  }
  .bf-ig-media .sbi_item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(62, 39, 35, .10), 0 10px 24px rgba(62, 39, 35, .16);
  }
}

@media (min-width: 960px) {
  .section.bf-ig { padding: 24px 40px; }
  .bf-ig-inner:has(.bf-ig-media) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .bf-ig-media #sbi_images {
    grid-template-columns: repeat(3, 220px) !important;
    width: 676px !important;
  }
  .bf-ig-media .sbi_item {
    width: 220px !important;
    max-width: 220px !important;
  }
  .bf-ig-media .sbi_photo_wrap,
  .bf-ig-media .sbi_photo,
  .bf-ig-media img {
    width: 220px !important;
    max-width: 220px !important;
  }
}
