/* ------------------------- Styleguide -------------------------------------------------- */

/* ------------------------- Fonts -------------------------------------------------- */

/* Regular */
@font-face {
  font-family: "Neue Montreal";
  src: url("/wp-content/themes/sla/assets/fonts/PPNeueMontreal-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: auto;
}

/* Medium */
@font-face {
  font-family: "Neue Montreal";
  src: url("/wp-content/themes/sla/assets/fonts/PPNeueMontreal-Medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: auto;
}

/* ------------------------- Variables -------------------------------------------------- */

:root {


  --color-dark-rgb: 28, 29, 36;
  --color-dark: #383030;
  --color-black: #383030;
  --color-black-rgb: 0, 0, 0;
  --color-gray: #777777;
  --color-white: #ffffff;
  --color-light: #ffffff;
  --color-dark-green: #686636;
  --color-green: #00863e;

  --color-red: #ff3800;
  --color-red-light: #ffebe5;
  --color-offwhite: #fdfaf5;
  --color-offwhite-dark: #f6f0e5;
  --color-brickred: #bb5100;

  --color-golden-wheat: #f5deb3;
  --color-alabaster-white: #fdfaf5;
  --color-ocean-blue: #1e73be;

  --color-navigation: #0e3232;
  --color-footer: #0e3232;

  --color-alert-error: #e34248;
  --color-alert-success: #26ad6a;

  --color-text: #383030;
  --color-text-light: #ffffff;
  --color-text-dark: #ffffff;

  --color-bg-dark: #0e3232;
  --color-bg-light: #f6f4ee;

  --color-border: rgba(var(--color-light-medium-rgb), 0.15);
  --color-border-light: rgba(var(--color-light-rgb), 0.2);

  --animation-primary: 0.5s cubic-bezier(0.3, 1, 0.3, 1);
  --animation-nav: 0.5s cubic-bezier(0.6, 0, 0.4, 1);
  --animation-nav-primary: 0.2s ease;
  --animation-nav-smooth: 0.5s cubic-bezier(0.5, 0, 0.25, 1);
  --animation-smooth: 0.8s cubic-bezier(0.3, 1, 0.3, 1);
  --animation-bounce: 0.4s cubic-bezier(0.35, 1.5, 0.6, 1);
  --animation-theme: 0.3s ease-in-out;  

  --section-padding: min(10vh, 10em);
  --section-padding-medium: min(10vh, 10em);
  --section-padding-blog: min(3vh, 3em);
  --section-padding-work: min(3vh, 3em);

  --nav-height: 3em;
  --btn-height: 2.6em;

  --container-padding: min(10vw, 10em);

  --gap-padding: clamp(2em, 4vw, 2em);
  --gap-padding-small: clamp(2em, 4vw, 2em);
  --gap-padding-medium: clamp(3em, 6vw, 3em);
  --gap-padding-large: clamp(4em, 6vw, 4em);

  --gap: calc(var(--title-size) * 0.3);
  --row-gap: calc(var(--title-size) * 0.3);
  --col-gap: calc(var(--title-size) * 0.3);

  --title-size: clamp(5em, 7.5vw, 7.5em);

  --border-radius-small: calc(clamp(1em, 1.5vw, 1.5em) * 0.75);
  --border-radius: calc(clamp(0.5em, 1vw, 1.25em) * .75);
}

/* ------------------------- Viewportheight -------------------------------------------------- */

:root {
  --vh-in-px: 8px; /* Default fallback */
  --vh: var(--vh-in-px);
  --dvh: var(--vh); /* Same as original VH */
  --svh: var(--vh);
  --lvh: var(--vh);
}

/* Only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  :root {
    --vh: 1vh;
  }

  /* If the device supports svh and lvh */
  @supports (height: 1svh) {
    :root {
      --vh: 1vh; /* Viewport height */
      --dvh: 1dvh; /* Dynamic viewport height */
      --svh: 1svh; /* Small viewport height */
      --lvh: 1lvh; /* Large viewport height */
    }
  }
}

/* Only on touch devices */
@media (hover: none) and (pointer: coarse) {
  /* Set vh to dvh initially */
  :root {
    --vh: var(--vh-in-px);
  }
  
  /* If the device supports lvh */
  @supports (height: 1lvh) {
    :root {
      --dvh: 1dvh; /* Dynamic viewport height */
      --svh: 1svh; /* Small viewport height */
      --lvh: 1lvh; /* Large viewport height */
    }
  }
}

/* ------------------------- Body -------------------------------------------------- */

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

li,
ul,
figure {
  padding: 0;
  margin: 0;
  list-style: none;
}

html {
  scroll-behavior: initial;
}

html.w-mod-touch * {
    background-attachment: scroll !important;
}

body {
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  font-size: clamp(16px, 1.1vw, 18px);
  background-color: var(--color-offwhite);
  font-family: "Neue Montreal", sans-serif;
  font-weight: 400;
}

html,
body {
  width: 100%;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body[data-navigation-status="active"] {
  overflow: hidden;
}

/* General */
canvas,
img,
video,
picture,
figure {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  display: block;
}

svg {
  max-width: none;
  height: auto;
  box-sizing: border-box;
}

/* ------------------------- Main Elements -------------------------------------------------- */

.section {
  display: block;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
  background-color: var(--color-bg);
  color: var(--color-text);
}

[data-theme-section="dark"] {
  --color-bg: var(--dark-bg);
  --color-text: var(--dark-text);
  --button-bg: var(--button-bg-dark);
  --button-text: var(--button-text-dark);
}

[data-theme-section="light"] {
  --color-bg: var(--light-bg);
  --color-text: var(--light-text);
  --button-bg: var(--button-bg-light);
  --button-text: var(--button-text-light);
}

[data-theme-section="white"] {
  --color-bg: var(--color-white);
  --color-text: var(--light-text);
  --button-bg: var(--button-bg-light);
  --button-text: var(--button-text-light);
}

section.section.full-height {
  padding: 0;
}

section.section.full-height .row {
  min-height: 100vh;
}

.container {
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  max-width: 100em;
}

.container.no-padding {
  padding-left: unset;
  padding-right: unset;
}

.row {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  gap: 1em;
}

.row.page-title {
  margin-bottom: 2em;
}

.col {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 1em;
}

.row.centered {
  justify-content: center;
}

.row.centered > .col {
  justify-content: center;
  text-align: center;
  max-width: 45em;
}

.row.grid > .col {
  width: calc(
    (99.99% / var(--columns)) -
      (var(--grid-gap) * ((var(--columns) - 1) / var(--columns)))
  );
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

img.overlay,
video.overlay {
  object-fit: cover;
}

.overlay.overlay-dark {
  background-color: rgba(var(--color-dark-rgb), 0.5);
}

/* ------------------------- Typography -------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
ul,
ol,
span,
strong,
em,
figcaption {
  padding: 0;
  margin: 0;
  font-style: normal;
  letter-spacing: normal;
  font-weight: unset;
  line-height: unset;
}

.big p {
  font-size: 20px;
  font-size: clamp(20px, 1.3vw, 22px);
}

h1 {
  font-family: "Neue Montreal", sans-serif;
  font-size: calc(var(--title-size) * 0.55);
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  color: var(--dark-bg);
}

h1.big {
  font-size: calc(var(--title-size) * 0.65);
}

h2 {
  font-family: "Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: calc(var(--title-size) * 0.35);
  line-height: 1;
  text-transform: lowercase;
  color: var(--dark-bg);
}

h3 {
  font-family: "Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: calc(var(--title-size) * 0.2);
  text-transform: lowercase;
  color: var(--dark-bg);
}

h4 {
  font-family: "Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: calc(var(--title-size) * 0.175);
  line-height: 1;
  text-transform: lowercase;
  color: var(--dark-bg);
}

h5 {
  font-family: "Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: calc(var(--title-size) * 0.15);
  line-height: 1.2;
  text-transform: lowercase;
  color: var(--dark-bg);
}

p {
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
}

span {
  font-weight: inherit;
  color: inherit;
}

strong {
  font-weight: 600;
  color: var(--color-dark);
}

em {
  font-style: italic;
}

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

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: calc(0.75em * 0.12);
  font-size: 0.725em;
  line-height: 1;
  font-weight: 400;
  opacity: 0.5;
}

/* Alignment styles */
.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.align-right {
  text-align: right;
}

/* ------------------------- Styled - Typography -------------------------------------------------- */

.styled-content :is(h1, h2, h3, p, figure) {
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.styled-content > *:first-child {
  margin-top: 0;
}

.styled-content h1 {
  margin-top: 4rem;
}

.styled-content :is(h1, h2, h3, p):last-child {
  margin-bottom: 0;
}

.styled-content p > a {
  color: var(--color-dark);
  text-decoration: underline;
  transition: var(--animation-primary);
}

.styled-content p > a:hover {
  opacity: 0.5;
}

.styled-content ul {
  display: flex;
  flex-direction: column;
  padding-left: 1em;
  padding-bottom: 1rem;
  gap: 0.5em;
}

.styled-content ul:last-child {
  padding-bottom: 0;
}

.styled-content ul li {
  position: relative;
}

.styled-content ul li::before {
  content: "";
  left: -1em;
  top: 0.65em;
  height: 0.2em;
  width: 0.2em;
  background: var(--color-dark);
  position: absolute;
}

/* ------------------------- Styled Figure -------------------------------------------------- */

.styled-figure {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  position: relative;
}

.styled-figure figcaption {
  font-weight: 400;
  font-style: normal;
  font-size: 0.8em;
  line-height: 1.3;
  color: var(--color-text);
}

.ratio-figure {
  width: 100%;
  position: relative;
}

.ratio-figure::before {
  content: "";
  display: block;
  padding-top: 133.333%;
}

/* ------------------------- Styled Image / Video -------------------------------------------------- */

.styled-image,
.styled-video {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-medium);
}

.styled-image img,
.styled-image video {
  width: 100%;
}

.styled-image[data-ratio-status="true"] img,
.styled-video[data-ratio-status="true"] video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.styled-image.overlay,
.styled-video.overlay {
  object-fit: cover;
  position: absolute;
}

.styled-image.overlay img,
.styled-video.overlay video {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  position: absolute;
}

/* ------------------------- Buttons -------------------------------------------------- */

.btn {
  font-family: "Neue Montreal", sans-serif;
  font-weight: 500;
}

.btn-row {
  padding-top: 1em;
}

.btn-row .btn:not(:first-child) {
  margin-left: 1em;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

/** Button fill **/

.btn.btn-fill {
  color: var(--button-text);
  /* background: var(--color-primary);
	border: 1px solid var(--color-primary); */
  display: inline-block;
  /* padding: 8px 16px; */
  position: relative;
  text-decoration: none;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 1em;
}

/** Button border **/

.btn.btn-border {
  color: var(--color-primary);
  /* background: transparent; */
  border: 1px solid var(--color-primary);
  display: inline-block;
  /* padding: 10px 20px; */
  position: relative;
  text-decoration: none;
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 1em;
}

/* .btn.btn-border:hover {
   background: var(--color-primary);
	color: var(--color-text-light);
} */

.btn.btn-border path {
  stroke: var(--color-primary);
}

.btn.btn-border:hover path {
  stroke: var(--color-text);
}

/* Btn experiment */

.btn-arrow {
    position: absolute;
    top: 50%;
    right: 1.15em;
    z-index: 3;

    width: 0.5em;
    height: 0.5em;

    background: currentColor;
    border-radius: 50%;

    transform: translate3d(2em, -50%, 0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.btn:hover .btn-arrow {
  transform: translate3d(.25em, -50%, 0);
}

.btn:hover .btn-text {
  transform: translate3d(-0.25em, 0, 0);
}

.btn-inner {
  position: relative;
  display: block;
  padding: 0.75em 1.5em;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--button-bg);
}

.btn-border .btn-inner {
  background: transparent;
}

.btn-text {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1) 0.15s;
  will-change: transform;
  text-transform: lowercase;
}

@media (max-width: 767px) {
  .btn-inner {
    padding: 0.5em 1em;
  }
}