/*
Theme Name: Cohera
Theme URI: https://praktijkcohera.nl/
Author: Cohera
Description: Licht maatwerkthema voor Praktijk Cohera met Gutenberg-ondersteuning.
Version: 1.3.7
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: cohera
*/

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #4c4a46;
  --muted: #858179;
  --line: #d8d4cd;
  --soft: #f5f3ef;
  --max: 1280px;
  --reading: 820px;
  --nav-height: 86px;
  --body-font: "Manrope", Arial, sans-serif;
  --body-size: 16px;
  --body-leading: 1.65;
  --page-title-size: 3.6rem;
  --section-title-size: 1.45rem;
  --chair-width: 520px;
  --chair-x: 0px;
  --chair-y: 0px;
  --label-x: 0px;
  --label-y: 0px;
  --chair-mobile-width: 360px;
  --chair-mobile-x: 0px;
  --chair-mobile-y: 0px;
  --home-brand-x: 0px;
  --home-brand-y: 0px;
  --home-brand-scale: 1;
  --home-brand-mobile-x: 0px;
  --home-brand-mobile-y: 0px;
  --home-brand-mobile-scale: 1;
  --home-mobile-brand-chair-gap: 72px;
  --home-mobile-chair-tagline-gap: 105px;
  --nav-brand-overlap-opacity: 0;
  --nav-motion-duration: 180ms;
  --mobile-nav-position: 0%;
  --mobile-nav-font-size: 15px;
}

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

html {
  scroll-behavior: smooth;
}

@view-transition {
  navigation: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  -webkit-font-smoothing: antialiased;
}

.cohera-coming-soon {
  overflow: hidden;
}

.cohera-coming-soon .hero {
  min-height: 100svh;
  padding-top: 34px;
}

.chairs,
.page-chairs {
  view-transition-name: cohera-chairs;
}

::view-transition-group(cohera-chairs) {
  animation-duration: 720ms;
  animation-timing-function: cubic-bezier(.22, .72, .22, 1);
}

::view-transition-old(cohera-chairs),
::view-transition-new(cohera-chairs) {
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(calc(100% - 72px), var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 500;
}

.site-header {
  min-height: var(--nav-height);
  background: var(--paper);
}

.nav {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  position: relative;
}

.nav-list .sub-menu {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity var(--nav-motion-duration) ease,
    visibility var(--nav-motion-duration) ease,
    transform var(--nav-motion-duration) ease;
}

.nav-list .menu-item-has-children:hover > .sub-menu,
.nav-list .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-list .sub-menu li + li {
  border-top: 0;
}

.nav-list a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 500;
}

.nav-list .submenu-parent-label {
  cursor: default;
}

.nav-list .menu-item-has-children > a::before {
  display: none;
  content: none;
}

.nav-list .sub-menu a {
  display: inline-block;
  padding: 11px 0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 500;
  line-height: inherit;
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list .current-menu-item > a::after,
.nav-list .current_page_item > a::after,
.nav-list .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.submenu-toggle {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: .16em;
  cursor: pointer;
}

.menu-icon {
  width: 28px;
  display: grid;
  gap: 7px;
}

.menu-icon i {
  display: block;
  height: 1px;
  background: currentColor;
}

.hero {
  min-height: calc(100svh - var(--nav-height));
  padding: 18px 0 34px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
}

.brand {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  text-align: center;
  opacity: 1;
  transform: translate(var(--home-brand-x), var(--home-brand-y)) scale(var(--home-brand-scale));
  transform-origin: center;
  transition: opacity var(--nav-motion-duration) ease;
}

.brand.is-nav-overlapped {
  opacity: var(--nav-brand-overlap-opacity);
}

.brand-name {
  font-size: clamp(2.55rem, 4.1vw, 4.65rem);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1;
}

.chairs {
  position: relative;
  z-index: 1;
  display: block;
  width: min(76vw, 980px);
  height: auto;
  align-self: center;
  margin-top: -18px;
}

.intro-line {
  margin: -4px 0 0;
  padding-bottom: 20px;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(.88rem, 1.15vw, 1.04rem);
  line-height: 1.4;
}

.home-intro {
  padding: 112px 0 120px;
  border-top: 1px solid var(--line);
}

.home-intro .wp-block-heading,
.home-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.015em;
}

.home-intro p:not(.eyebrow) {
  max-width: 620px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.home-links {
  border-top: 1px solid var(--line);
}

.home-link {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(280px, 1.15fr) auto;
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.home-link span {
  display: flex;
  align-items: baseline;
}

.home-link strong {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 400;
}

.home-link p {
  margin: 0;
  color: var(--muted);
}

.home-link i {
  font-size: 1.45rem;
  font-style: normal;
  transition: transform .2s ease;
}

.home-link:hover i {
  transform: translateX(7px);
}

.page-main {
  padding-bottom: 120px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: start;
  gap: clamp(48px, 8vw, 120px);
  padding: 92px 0 104px;
}

.page-hero--no-intro {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  column-gap: clamp(64px, 7vw, 100px);
  padding: 64px 0 24px;
}

.page-hero--no-intro .page-chairs {
  width: min(100%, var(--chair-width), 300px);
}

.page-hero--no-intro + .entry-content > :first-child {
  margin: 0;
}

.page-hero--no-intro + .entry-content > :first-child + * {
  margin-top: 32px;
}

.page-hero-copy {
  min-width: 0;
}

.page-hero .eyebrow {
  transform: translate(var(--label-x), var(--label-y));
}

.page-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(2.2rem, 3.8vw, var(--page-title-size));
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.page-lead {
  max-width: 680px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.page-chairs {
  display: block;
  width: min(100%, var(--chair-width));
  max-width: none;
  height: auto;
  justify-self: end;
  transform: translate(var(--chair-x), var(--chair-y));
}

.entry-content {
  width: min(calc(100% - 72px), var(--max));
  margin-inline: auto;
}

.entry-content > * {
  max-width: var(--reading);
}

.entry-content > * + * {
  margin-top: 1.25em;
}

.entry-content p,
.entry-content li {
  color: var(--muted);
  font-size: 1.03rem;
}

.entry-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(1.15rem, 1.55vw, var(--section-title-size));
  font-weight: 400;
  line-height: 1.4;
}

.entry-content h2:not(:first-child) {
  margin-top: 64px;
}

.entry-content ul {
  padding-left: 1.25em;
}

.entry-content a {
  text-underline-offset: .2em;
}

.entry-content .alignwide,
.entry-content .is-style-cohera-wide {
  max-width: 1080px;
}

.entry-content .alignfull,
.entry-content .is-style-cohera-full {
  width: 100%;
  max-width: var(--max);
}

.entry-content .is-style-cohera-narrow {
  max-width: 620px;
}

.entry-content .alignright {
  float: right;
  max-width: min(50%, 520px);
  margin: 0 0 2rem 2.5rem;
}

.entry-content .alignleft {
  float: left;
  max-width: min(50%, 520px);
  margin: 0 2.5rem 2rem 0;
}

.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

.contact-grid {
  max-width: var(--reading);
}

.contact-grid h2 {
  margin-top: 64px;
}

.placeholder-label {
  color: var(--muted);
  font-size: .82rem;
}

.map-test {
  width: min(100%, 820px);
  height: 420px;
  margin-top: 32px;
  overflow: hidden;
  background: var(--soft);
}

.map-test iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .shell,
  .entry-content {
    width: min(calc(100% - 30px), var(--max));
  }

  /* Mobile menu: a fully opaque navigation plane. The page stays in place
     underneath and cannot show through or scroll while the menu is open. */
  body.mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    min-height: 68px;
    background: var(--paper);
  }

  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 102;
  }

  .nav-list {
    position: fixed;
    z-index: 100;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-content: start;
    align-items: stretch;
    justify-content: stretch;
    justify-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    /* Keep the grid track full-width. The previous desktop justify-content:center
       was still active here, so the intrinsic grid track changed width whenever a
       submenu opened and the whole menu appeared to jump sideways. */
    padding: 18px 15px 34px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    -webkit-overflow-scrolling: touch;
  }

  .nav-list.is-open {
    display: grid;
  }

  .nav-list > li {
    width: calc(100% - var(--mobile-nav-position));
    margin-left: var(--mobile-nav-position);
  }

  .nav-list a {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 12px 0;
    font-size: var(--mobile-nav-font-size);
    text-align: left;
  }

  .nav-list > .menu-item-has-children {
    display: block;
  }

  /* Submenus are opened by tapping their parent label; no arrow/chevron is
     shown on mobile so all labels share exactly the same left edge. */
  .nav-list .menu-item-has-children > a::before,
  .nav-list .is-submenu-open > a::before {
    content: none;
    display: none;
  }

  .submenu-toggle {
    display: none;
  }

  .nav-list .sub-menu {
    position: static;
    display: none;
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0 0 10px;
    /* Submenu indentation is independently adjustable in the Customizer.
       The parent menu column itself stays fixed, so opening a submenu cannot
       move the main navigation sideways. */
    padding: 0 0 8px var(--mobile-submenu-indent);
    border: 0;
    background: var(--paper);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .nav-list .is-submenu-open > .sub-menu {
    display: grid;
  }

  .nav-list .sub-menu li + li {
    border-top: 0;
  }

  .nav-list .sub-menu a {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 7px 0;
    color: var(--muted);
    font-size: calc(var(--mobile-nav-font-size) * .88);
    font-weight: 400;
    letter-spacing: .12em;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
  }

  .hero {
    min-height: calc(100svh - 68px);
    padding-top: 10px;
    grid-template-rows: minmax(0, 1fr) max-content minmax(0, 1fr);
    align-content: stretch;
  }

  .cohera-coming-soon .hero {
    min-height: 100svh;
    padding-top: 20px;
  }

  .brand-name {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  .brand {
    align-self: end;
    margin-bottom: var(--home-mobile-brand-chair-gap);
    transform: translate(var(--home-brand-mobile-x), var(--home-brand-mobile-y)) scale(var(--home-brand-mobile-scale));
  }

  .chairs {
    width: min(94vw, 720px);
    max-width: 94vw;
    margin-top: 0;
    justify-self: center;
  }

  .intro-line {
    align-self: start;
    max-width: 92vw;
    margin-top: var(--home-mobile-chair-tagline-gap);
    padding-bottom: 22px;
    white-space: normal;
    font-size: .88rem;
  }

  .home-intro {
    padding: 84px 0 92px;
  }

  .home-intro .wp-block-heading,
  .home-intro h1 {
    font-size: 1.2rem;
  }

  .home-intro p:not(.eyebrow) {
    margin-top: 28px;
  }

  .home-link {
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
    padding: 34px 0;
  }

  .home-link span,
  .home-link p {
    grid-column: 1;
  }

  .home-link p {
    font-size: .92rem;
  }

  .home-link i {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .page-main {
    padding-bottom: 80px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 68px 0 76px;
  }

  .page-hero--no-intro {
    grid-template-columns: minmax(0, 1fr) clamp(110px, 34vw, 160px);
    gap: 18px;
    padding: 44px 0 32px;
  }

  .page-hero--no-intro .page-chairs {
    width: min(100%, var(--chair-mobile-width));
    justify-self: end;
  }

  .page-chairs {
    width: min(86vw, var(--chair-mobile-width));
    justify-self: center;
    transform: translate(var(--chair-mobile-x), var(--chair-mobile-y));
  }

  .entry-content .alignright,
  .entry-content .alignleft {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }

  .map-test {
    height: 320px;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
}


/* Customizer navigation design preview. Active only inside the Customizer iframe. */
body.cohera-nav-customizer-preview .menu-toggle {
  display: none !important;
}

body.cohera-nav-customizer-preview .nav-list {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(18px, 2.8vw, 48px) !important;
  padding: 0 !important;
  background: transparent !important;
}

body.cohera-nav-customizer-preview .nav-list > li {
  position: relative !important;
}

body.cohera-nav-customizer-preview .nav-list > .menu-item-has-children {
  display: block !important;
}

body.cohera-nav-customizer-preview .nav-list a {
  display: inline-block !important;
  padding: 10px 0 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

body.cohera-nav-customizer-preview .nav-list .sub-menu {
  position: absolute !important;
  z-index: 30 !important;
  top: 100% !important;
  left: 0 !important;
  display: block !important;
  min-width: 230px !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  background: transparent !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-6px) !important;
  transition:
    opacity var(--nav-motion-duration) ease,
    visibility var(--nav-motion-duration) ease,
    transform var(--nav-motion-duration) ease !important;
}

body.cohera-nav-customizer-preview .nav-list .is-customizer-preview-open > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

body.cohera-nav-customizer-preview .nav-list .sub-menu a {
  display: inline-block !important;
  padding: 11px 0 !important;
  white-space: nowrap !important;
}
