/*
Theme Name: Together Child
Description: Custom child theme for Together By Raminta van Dijk.
Author: Together By Raminta van Dijk
Template: go
Version: 1.0.0
Text Domain: together-child
*/

:root {
  --go--color--primary: #172340;
  --go--color--secondary: #e5e0d9;
  --go--color--tertiary: #e5e0d9;
  --go--color--background: #f4f1ec;
  --go--color--text: #292929;
  --go--color--white: #ffffff;
  --go--font-family: "Inter", sans-serif;
  --go--font-size: 17px;
  --go--line-height: 1.7;
  --go--letter-spacing: 0;
  --go--max-width: 45rem;
  --go--spacing--vertical: clamp(2.5rem, 5vw, 5.5rem);
  --go--spacing--vertical--lg: clamp(5rem, 10vw, 9rem);
  --go-block--padding--x: clamp(1.25rem, 5vw, 4rem);
  --go-heading--color--text: #172340;
  --go-heading--font-family: "Playfair Display", Georgia, serif;
  --go-heading--font-weight: 500;
  --go-heading--line-height: 1.15;
  --go-heading--letter-spacing: 0;
  --go-heading--margin-bottom: 1.5rem;
  --go--hyperlink--color--text: #172340;
  --go--hyperlink-interactive--color--text: #172340;
  --go-header--color--background: #f4f1ec;
  --go-navigation--color--text: #172340;
  --go-navigation--font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  --go-navigation--font-size: 15px;
  --go-navigation-mobile--font-size: 15px;
  --go-navigation--font-weight: 500;
  --go-navigation--letter-spacing: 0.08em;
  --go-navigation--text-transform: uppercase;
  --go-site-title--color--text: #172340;
  --go-site-title--font-family: "Playfair Display", Georgia, serif;
  --go-site-title--font-size: 1.25rem;
  --go-site-title--font-weight: 500;
  --go-site-title--letter-spacing: 0.3em;
  --go-site-title--text-transform: uppercase;
  --go-button--color--background: #172340;
  --go-button--color--text: #f4f1ec;
  --go-button-interactive--color--background: #25365a;
  --go-button--font-family: "Inter", sans-serif;
  --go-button--font-size: 15px;
  --go-button--font-weight: 500;
  --go-button--letter-spacing: 0;
  --go-button--text-transform: none;
  --go-button--border-radius: 3px;
  --go-button--padding--x: 1.5rem;
  --go-button--padding--y: 1rem;
  --go-outline--color--text: #172340;
}

h1,
h2,
h3 {
  color: #172340;
}

h1 {
  font-size: 60px;
  line-height: 1.1;
}

h2 {
  font-size: 42px;
  line-height: 1.18;
}

h3 {
  font-size: 28px;
  line-height: 1.2;
}

p {
  max-width: 45rem;
}

hr,
.wp-block-separator {
  border-color: #d6d0c8;
  border-width: 1px 0 0;
}

.wp-block-group#home,
.wp-block-group#about,
.wp-block-group#services,
.wp-block-group#contact,
.together-section {
  padding-block: clamp(4rem, 4vw, 9rem);
  scroll-margin-block-start: 2rem;
  margin-bottom: 0;
}

.wp-block-group#home,
.together-hero {
  border-bottom: 1px solid #d6d0c8;
}

.wp-block-group#home h1,
.together-hero h1 {
  max-width: none;
}

.wp-block-group#home {
  background-color: #fcf8f3;
  isolation: isolate;
  margin-block: 0;
  max-width: none;
  overflow: clip;
  padding: clamp(2.75rem, 5vw, 4.5rem) clamp(1.5rem, 8vw, 8.5rem);
  position: relative;
  width: 100%;
}

.wp-block-group#home > .wp-block-group__inner-container {
  max-width: none;
  width: 100%;
}

.wp-block-group#home .together-hero__inner {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
  margin: 0 auto;
  max-width: 75rem;
  width: 100%;
}

/* Classic Go wraps Group children; modern block markup does not. */
#home .together-hero__inner > .wp-block-group__inner-container {
  display: contents;
}

#home .together-hero__content,
#home .together-hero__content > .wp-block-group__inner-container {
  margin: 0;
  max-width: none;
  min-width: 0;
  width: 100%;
}

#home .together-hero__content {
  position: relative;
  z-index: 1;
}

#home .together-hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.06;
  margin: 0 0 1.15rem;
  width: auto;
}

.together-hero__content h1 span,
.together-hero__content h1 em {
  display: block;
}

.together-hero__content h1 em {
  font-weight: 400;
}

#home .together-hero__divider {
  background: #172340;
  display: block;
  height: 1px;
  margin: 0 0 0.75rem;
  width: 2.75rem;
}

#home .together-hero__content p {
  color: #425064;
  line-height: 1.45;
  margin: 0 0 1rem;
  max-width: 24rem;
  width: auto;
}

#home .together-hero__actions {
  margin: 1rem 0 0;
  width: auto;
}

.together-hero__cta {
  align-items: center;
  color: #f4f1ec;
  display: inline-flex;
  gap: 0.8rem;
  justify-content: space-between;
  min-width: 14rem;
}

#home .together-hero__cta:hover,
#home .together-hero__cta:focus,
#home .together-hero__cta:active {
  color: #f4f1ec;
}

.together-hero__cta span {
  font-size: 1.2em;
  line-height: 1;
}

#home .together-hero__visual {
  --together-hero-mark-size: clamp(16rem, 26vw, 22rem);
  inset: 0 0 0 58%;
  margin: 0;
  max-width: none;
  pointer-events: none;
  position: absolute;
  width: auto;
}

#home .together-hero__disc {
  background: #e5e0d9;
  border-radius: 50%;
  height: clamp(34rem, 66vw, 60rem);
  left: 25%;
  margin: 0;
  max-width: none;
  opacity: 0.62;
  position: absolute;
  top: 4%;
  width: clamp(34rem, 66vw, 60rem);
}

#home .together-hero__axis {
  height: 100%;
  left: 50%;
  margin: 0;
  opacity: 0.82;
  position: absolute;
  top: 0;
  translate: -50% 0;
  width: 1px;
}

#home .together-hero__axis::before,
#home .together-hero__axis::after {
  background: #172340;
  content: "";
  height: calc(50% - var(--together-hero-mark-size) * 0.38);
  left: 0;
  position: absolute;
  width: 1px;
}

#home .together-hero__axis::before {
  top: 0;
}

#home .together-hero__axis::after {
  bottom: 0;
}

#home .together-hero__mark {
  background: url("assets/img/together-mark-navy.svg") center / contain
    no-repeat;
  height: var(--together-hero-mark-size);
  left: 50%;
  margin: 0;
  position: absolute;
  top: 50%;
  translate: -50% -50%;
  width: var(--together-hero-mark-size);
}

.wp-block-group#home p,
.together-hero p {
  max-width: 24rem;
}

.wp-block-group#services .wp-block-columns,
.together-services .wp-block-columns {
  gap: 0;
  margin-block: 0;
}

.wp-block-group#services,
.together-services {
  margin: 0;
  max-width: none;
  padding: 4rem clamp(1rem, 8vw, 8.5rem);
  width: 100%;
}

.wp-block-group#services > .wp-block-group__inner-container,
.together-services > .wp-block-group__inner-container {
  margin-inline: auto;
  max-width: 75rem;
  width: 100%;
}

.wp-block-group#services .wp-block-columns,
.together-services .wp-block-columns {
  align-items: stretch;
}

@media (min-width: 782px) {
  .wp-block-group#services .wp-block-columns,
  .together-services .wp-block-columns {
    margin-inline: 0;
    max-width: none;
    width: 100%;
  }
}

.wp-block-group#services .wp-block-column,
.together-services .wp-block-column {
  min-width: 0;
  padding: 0.25rem clamp(1rem, 3vw, 2.5rem);
  text-align: center;
}

.wp-block-group#services .wp-block-column + .wp-block-column,
.together-services .wp-block-column + .wp-block-column {
  border-left: 1px solid #d6d0c8;
}

.wp-block-group#services .together-service-card__number,
.together-services .together-service-card__number {
  color: #a9a39a;
  font-size: 0.9375rem;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.wp-block-group#services .together-service-card__title,
.together-services .together-service-card__title {
  font-family: var(--go-heading--font-family);
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.wp-block-group#services .together-service-card__title::after,
.together-services .together-service-card__title::after {
  background: #172340;
  content: "";
  display: block;
  height: 1px;
  margin: 0.75rem auto 0;
  width: 2.75rem;
}

.wp-block-group#services .together-service-card__description,
.together-services .together-service-card__description {
  color: #425064;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 16rem;
}

body.page:not(.home) .entry-content > .wp-block-group#about:first-child,
body.page:not(.home) .entry-content > .wp-block-group#contact:first-child {
  padding-block-start: 0;
}

body.page:not(.home) .entry-content {
  font-family: "Inter", sans-serif;
  font-size: 17px;
}

body.page:not(.home)
  .entry-content
  > .wp-block-group.together-services:first-child {
  padding-block-start: clamp(4rem, 4vw, 9rem);
}

body.page:not(.home)
  .entry-content
  > .wp-block-group.together-section:first-child
  h1:first-child,
body.page:not(.home)
  .entry-content
  > .wp-block-group.together-services:first-child
  h1:first-child {
  margin: 0 auto 1.5rem;
  max-width: 45rem;
}

body.page:not(.home) .entry-content > h1:first-child {
  margin: clamp(4rem, 4vw, 9rem) auto 1.5rem;
  max-width: 45rem;
}

body.page:not(.home) .entry-content > h1:first-child,
body.page:not(.home)
  .entry-content
  > .wp-block-group.together-section:first-child
  h1:first-child,
body.page:not(.home)
  .entry-content
  > .wp-block-group.together-services:first-child
  h1:first-child {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  line-height: 1.15;
}

#site-header .header__inner {
  padding-block: 1rem;
  padding-inline: clamp(1.5rem, 8vw, 8.5rem);
}

#site-header {
  border-bottom: 1px solid #d6d0c8;
}

#site-header .header__extras:empty {
  display: none;
}

#site-header .header__title-nav {
  flex: 1 1 auto;
  gap: 2rem;
  justify-content: space-between;
  min-width: 0;
}

#site-header .together-brand__link {
  align-items: center;
  display: inline-flex;
  gap: 1.125rem;
  white-space: nowrap;
}

#site-header .together-brand__mark {
  background: url("assets/img/together-mark-navy.svg") center / contain
    no-repeat;
  display: inline-block;
  flex: 0 0 3.75rem;
  height: 3.75rem;
}

#site-header .together-brand__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.28em;
}

#site-header .header__navigation .primary-menu > .menu-item > a {
  line-height: 1.5;
  padding-block: 0.5rem;
  position: relative;
  text-decoration: none;
}

#site-header
  .header__navigation
  .primary-menu.together-sliding-underline::after {
  background-color: var(--go-navigation--color--text);
  content: "";
  height: 1px;
  left: 0;
  opacity: var(--together-underline-opacity, 0);
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(
    var(--together-underline-x, 0px),
    var(--together-underline-y, 0px)
  );
  transition:
    transform 360ms cubic-bezier(0.4, 0, 0.2, 1),
    width 360ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 180ms ease;
  width: var(--together-underline-width, 0px);
}

#site-header
  .header__navigation
  .primary-menu.together-sliding-underline
  > .menu-item
  > a::after {
  display: none;
}

#site-header .header__navigation .primary-menu > .menu-item > a::after {
  background-color: currentColor;
  bottom: 0;
  content: "";
  height: 1px;
  inset-inline: 0;
  pointer-events: none;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

#site-header .header__navigation .primary-menu > .menu-item > a:hover::after,
#site-header
  .header__navigation
  .primary-menu
  > .menu-item
  > a:focus-visible::after,
#site-header
  .header__navigation
  .primary-menu
  > .menu-item
  > a[aria-current="location"]::after,
#site-header
  .header__navigation
  .primary-menu
  > .menu-item.current-menu-item
  > a:not([data-together-section-link])::after,
#site-header
  .header__navigation
  .primary-menu
  > .menu-item.current_page_item
  > a:not([data-together-section-link])::after,
#site-header
  .header__navigation
  .primary-menu
  > .menu-item.current-menu-ancestor
  > a:not([data-together-section-link])::after {
  transform: scaleX(1);
}

[dir="rtl"]
  #site-header
  .header__navigation
  .primary-menu
  > .menu-item
  > a::after {
  transform-origin: right center;
}

@media (prefers-reduced-motion: reduce) {
  /* Go applies an important global duration reset; override only our underlines. */
  #site-header .header__navigation .primary-menu > .menu-item > a::after {
    transition-duration: 220ms !important;
  }

  #site-header
    .header__navigation
    .primary-menu.together-sliding-underline::after {
    transition-duration: 360ms, 360ms, 180ms !important;
  }
}

@media (min-width: 960px) {
  #site-header .header__navigation .primary-menu.together-sliding-underline {
    position: relative;
  }

  #site-header .header__navigation .primary-menu > li:not(:first-child) {
    margin-left: clamp(1.5rem, 3vw, 3.25rem);
  }
}

@media (max-width: 959px) {
  #site-header .header__inner {
    padding-inline: 1.5rem;
  }

  #site-header .together-brand__mark {
    flex-basis: 3.25rem;
    height: 3.25rem;
  }

  #site-header .together-brand__name {
    font-size: 1.25rem;
  }

  .menu-is-open #site-header .header__navigation {
    background-color: #f4f1ec;
  }

  .menu-is-open #site-header .primary-menu li {
    text-align: center;
  }

  .menu-is-open #site-header .primary-menu > .menu-item > a {
    display: inline-block;
  }
}

@media (max-width: 781px) {
  :root {
    --go--font-size: 16px;
  }

  .wp-block-group#about,
  .wp-block-group#services,
  .wp-block-group#contact {
    padding-block: clamp(3rem, 8vw, 4rem);
  }

  #site-header .header__inner {
    padding-inline: 1.25rem;
  }

  #site-header .header__title-nav {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  .wp-block-group#home .together-hero__inner {
    display: block;
  }

  .wp-block-group#home {
    padding: clamp(2.25rem, 8vw, 3.5rem) clamp(1.25rem, 6vw, 2.5rem);
  }

  #home .together-hero__content {
    max-width: 37rem;
  }

  #home .together-hero__content h1 {
    font-size: clamp(2rem, 8.2vw, 3.5rem);
    line-height: 1.04;
    margin-bottom: 1rem;
  }

  #home .together-hero__content p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 34rem;
  }

  #home .together-hero__actions {
    margin-top: 1.25rem;
  }

  #home .together-hero__visual {
    --together-hero-mark-size: clamp(9rem, 42vw, 12rem);
    height: clamp(11rem, 48vw, 14rem);
    inset: auto;
    margin: 1.5rem -1.25rem -2.25rem;
    position: relative;
    width: calc(100% + 2.5rem);
  }

  #home .together-hero__disc {
    height: clamp(24rem, 90vw, 34rem);
    left: 50%;
    top: -35%;
    width: clamp(24rem, 90vw, 34rem);
  }

  .wp-block-group#services .wp-block-column,
  .together-services .wp-block-column {
    padding: 1.5rem 1rem;
  }

  .wp-block-group#services .wp-block-column + .wp-block-column,
  .together-services .wp-block-column + .wp-block-column {
    border-left: 0;
    border-top: 1px solid #d6d0c8;
  }
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  color: #fff;
}

.site-footer--1.site-footer {
  padding-bottom: calc(var(--go--spacing--vertical--lg) / 2);
  margin-top: calc(var(--go--spacing--vertical--lg) / 2);
}

.site-footer .site-info .privacy-policy-link {
  display: none;
}
