/* VARIABLES */
:root {
  --fs-default: 1.1;
  --phi-gr: 1.6180339887498948482;
  --fs-max-width: 70ch;
  --fs-min-width: 30ch;
  --main-bg-color: brown;
  --theme-app-mobilemenu-background: black;
  --theme-app-mobilemenu-foreground: white;
  --theme-app-col-3: teal;
  --brand-link-col-1: teal;
  --brand-extlink-col-1: #983030;
  --theme-app-selection-bg: black;
  --theme-app-selection-fg: white;
  --brand-theme-teal: rgba(111, 177, 173, 1);
  --brand-theme-geen: rgba(175, 186, 166, 1); /* From Mutto's website */
}

/* VARIABLE FONTS */
@font-face {
  font-family: "Bitter-vf";
  src: url("/assets/fonts/Bitter-VF.woff2") format("woff2 supports variations"),
    url("/assets/fonts/Bitter-VF.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-variation-settings: ‘wght’ 400;
  font-display: fallback;
}

@font-face {
  font-family: "Quicksand-vf";
  src: url("/assets/fonts/Quicksand-VF.woff2")
      format("woff2 supports variations"),
    url("/assets/fonts/Quicksand-VF.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-variation-settings: ‘wght’ 400;
  font-display: fallback;
}

/* STATIC FONTS */
@font-face {
  font-family: Bitter;
  src: url("/assets/fonts/Bitter.woff2") format("woff2"),
    url("/assets/fonts/Bitter.woff") format("woff");
  font-display: fallback;
}

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-bold.woff2") format("woff2"),
    url("/assets/fonts/Quicksand-bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-italic.woff2") format("woff2"),
    url("/assets/fonts/Quicksand-italic.woff") format("woff");
  font-weight: normal;
  font-style: italic, oblique;
  font-display: fallback;
}

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-regular.woff2") format("woff2"),
    url("/assets/fonts/Quicksand-regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-bolditalic.woff2") format("woff2"),
    url("/assets/fonts/Quicksand-bolditalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: fallback;
}

/* RESETS */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  line-height: 1.6;
  line-height: 1rem * var(--phi-gr, 1.62);
}
/* Remove default padding & styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}
/* clearfix */
ul::after {
  content: "";
  display: block;
  clear: both;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  /* font-family: Bitter, sans-serif; */
  font-family: Quicksand, sans-serif;
  font-weight: 300;
  color: #333;
  text-rendering: optimizeSpeed;
  /* text-rendering: optimizeLegibility; */
  font-size: 1rem;
  font-size: clamp(1rem, 1rem + 0.1vw, 22px);
  line-height: 1.6;
  line-height: calc(var(--fs-default, 1) * var(--phi-gr, 1.6));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /* font-family: Quicksand, sans-serif; */
  font-family: "Bitter", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.6;
  line-height: calc(var(--fs-default, 1) * var(--phi-gr, 1.6));
}

strong,
b {
  font-weight: 600;
}
/* calculate clamp size. If browser doesn't support clamp (ie, safari), perform secondary size calculation */
h1 {
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  /* line-height: initial; */
}

@supports (font-variation-settings: normal) {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    /* font-family: Quicksand-vf, sans-serif; */
    font-family: "Bitter-vf", sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.6;
    line-height: calc(var(--fs-default, 1) * var(--phi-gr, 1.6));
  }
  body,
  p {
    /* font-family: Bitter-vf, sans-serif; */
    font-family: "Quicksand-vf", sans-serif;
    font-weight: 400;
  }
}

@supports not (font-size: clamp(1rem, 1rem + 2vw, 24px)) {
  body {
    font-size: min(max(1rem, 2.5vw), 22px);
    line-height: calc(2px + 2ex + 2px);
  }
  h1 {
    font-size: min(max(1.25rem, 2.5vw), 2.1rem);
  }
}

a {
  /* text-decoration: none; */
  color: var(--brand-link-col-1);
  text-decoration-skip-ink: auto;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* external links */
a[target="_blank"] {
  color: var(--brand-extlink-col-1);
}
a[target="_blank"]:after {
  content: "";
  margin-left: 0.2rem;
}

a.cta {
  margin: 2rem 1rem;
  padding: 1rem;
  background: transparent;
  /* background: var(--brand-theme-geen); */
  color: #282828;
  /* border-radius: 3px; */
  text-decoration: none;
  border: 1px solid #282828;
  display: inline-block;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
a.cta:hover,
a.cta:focus {
  background: black;
  color: white;
}
/* Make images easier to work with */
main,
img {
  width: 100%;
  max-width: 100%;
  display: block;
  border: 0;
}

/* In recent browsers, this overrides the default width/height attributes on the image tag. 
The width/height attributes allow the browser to assign an aspect ratio for the image  */
img {
  height: auto;
}

/* Natural flow and rhythm in articles by default */
article > * + *,
section > * + * {
  margin-top: 1.5rem;
}

.content > p:last-of-type:after {
  content: "\02588";
  /* color: red; */
  color: var(--brand-theme-geen);
  margin-left: 0.3rem;
  font-size: 0.5rem;
}
p,
li,
h1,
h2,
h3,
h4,
cite {
  word-break: break-word;
  hyphens: inherit;
}

p,
blockquote,
li {
  max-width: 80ch;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

nav#main-nav button > span:nth-of-type(2),
[data-vh]:not(:focus):not(:active),
.vh {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

::selection {
  /* background-color: var(--theme-app-selection-bg); */
  background-color: var(--brand-theme-geen);
  color: var(--theme-app-selection-fg);
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* APG:: STYLES */
body {
  display: grid;
  grid-template-columns: auto;
  grid-template-areas:
    "skip"
    "header"
    "sitenav"
    "main"
    "extra"
    "footer";
  /* background: rgb(255, 255, 255); */
  background: black
    radial-gradient(
      circle,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 1) 46%,
      rgba(242, 242, 242, 1) 100%
    );
}

body > #skip-nav {
  grid-area: skip;
}
/* body > div[class*="svelte-"] { */
header#header {
  grid-area: header;
  /* display: grid; */
  display: block;
  position: fixed;
  width: 100vw;
  height: 5rem;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
  align-items: center;
  padding: 1rem;
  transition: transform 600ms ease-in-out;
}
header#header.unpin {
  transform: translateY(-100%);
}
nav#main-nav.unpin {
  transform: translateY(100%);
}

header#header > #logo {
  justify-content: center;
  display: grid;
}
ul.title-area {
  display: flex;
  align-content: center;
  justify-content: center;
}
#logo img {
  width: 150px;
}

body > nav#main-nav {
  grid-area: sitenav;
  position: fixed;
  bottom: 0;
  z-index: 10;
  background: #000;
  width: 100vw;
  color: #fff;
  height: 4.5rem;
  /* display: grid; */
  display: block;
  /* justify-content: center; */
  /* grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "phone-nav nav-menu contact-nav"
    "callout callout callout"; */
  /* align-items: flex-start; */
  /* justify-items: unset; */
  box-shadow: 0px 0px 8px white;
  transition: transform 300ms linear;
}

body > main {
  grid-area: main;
  /* margin: 5rem auto 3rem; */
  margin: 0 auto 3rem;
  position: relative;
  width: 100vw;
  /* max-width: 56em; */
  background-color: white;
  /* padding: 1.5em; */
}

body > main > section p,
body > main > article p {
  padding: 1rem;
}

body > aside {
  grid-area: extra;
}

body > nav#main-nav > div {
  display: grid;
  width: 100%;
  color: #fff;
  height: 4.5rem;
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "phone-nav nav-menu contact-nav"
    "callout callout callout";
  /* align-items: flex-start; */
  /* justify-items: unset; */
  box-shadow: 0px 0px 8px white;
  transition: transform 300ms linear;
}

body > nav#main-nav > div > button#nav-menu {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50%;
  /* padding: 0.5rem; APG:Potentially not required. Causes an offshoot in Safari on Mac */
  position: relative;
  top: -1.5rem;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  z-index: 6;
  /* order: 2; */
  grid-area: nav-menu;

  cursor: pointer;
  outline: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  text-decoration: none;
  transition-duration: 0.28s;
  transition-property: box-shadow, transform, opacity;
  background-color: var(--theme-app-mobilemenu-background);
  box-shadow: 0 3px 1px -2px rgb(255 255 255 / 100%),
    0 2px 2px 0 rgb(255 255 255 / 30%), 0 1px 5px 0 rgb(255 255 255 / 30%);
}

button:hover,
button:focus {
  background: white;
  color: black;
}

button:focus {
  outline: 1px solid #fff;
  outline-offset: -4px;
}

button:active {
  transform: scale(0.9);
}

body > nav#main-nav > div > button#phone-menu,
body > nav#main-nav > div > button#contact-menu {
  z-index: initial;
  cursor: pointer;
  border: none;
  background: var(--theme-app-mobilemenu-background);
  outline: 0;
  width: 4rem;
  height: 4rem;
  color: var(--theme-app-mobilemenu-foreground);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: none;
}

body > nav#main-nav > div > button#phone-menu {
  grid-area: phone-nav;
  justify-self: flex-end;
}
body > nav#main-nav > div > button#contact-menu {
  grid-area: contact-nav;
  justify-self: flex-start;
}
/*
#menu-list {
  background: pink;
  position: fixed;
  width: 100vw;
  top: 0;
  /* left: 0; *
  height: calc(100vh - 4.5em);
  overflow-y: auto;
  z-index: 1;
  margin: auto;
  grid-area: callout;
  /* transition: transform 0.5s; *
  transform-style: preserve-3d;
  transition: all 1s ease-out;
  /* animation-duration: 0.4s;
  animation-name: slideup; *
}
#menu-list[hidden] {
  /* height: 1px;
  bottom: 4.5em; */
/* animation-duration: 0.2s;
  animation-name: slidedown; *
  transform: translateY(101vh);
}

*/

/* #menu-list, */
#menu-callout,
#phone-callout,
#contact-callout {
  position: fixed;
  bottom: 4.5rem;
  left: 0;
  top: 0;
  right: 0;
  /* width: 100vw; */
  /* height: calc(100vh - 4.5rem); */
  /* overflow-y: auto; */
  contain: content;
  transform: translateZ(0);
  will-change: transform;
  background-color: rgba(175, 186, 166, 1);
  background-color: var(--brand-theme-geen);
  margin: auto;
  padding: 2rem;
  opacity: 1;
  z-index: initial;
  grid-area: callout;

  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: flex-start; */
  justify-content: center;

  transform-style: preserve-3d;
  transition: all 0.2s ease-out;
  transition-delay: 0.1s;
}

/* #menu-list { */
#menu-callout {
  background-color: pink;
  z-index: 5;
  padding-top: 6rem;
}

#phone-callout,
#contact-callout {
  z-index: 3;
}

/* #menu-list[hidden] { */
#menu-callout[hidden] {
  transform: translateX(-101vw);
  opacity: 0;
}
#phone-callout[hidden] {
  transform: translateX(-101vw);
  opacity: 0;
}
#contact-callout[hidden] {
  transform: translateX(101vw);
  opacity: 0;
}

#menu-list {
  display: grid;
  /* grid-template-columns: 1fr 1fr 1fr; */
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-gap: 0.5rem;
  height: 100%;
  overflow-y: auto;
}

#menu-list > li {
  min-height: 4rem;
  max-width: initial;
  border: 1px white solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: auto;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 0px 4px #d8d8d8;
  transition: all 0.2s ease-out;
  opacity: 0.9;
}
#menu-list > li:hover,
#menu-list > li:focus {
  transform: scale(0.9);
}

/* Home */
#menu-list > li:first-of-type {
  grid-column: 1 / span 2;
  grid-row: 1;
  /* background-color: #008080; */
  background-color: #000;
}
/* About */
#menu-list > li:nth-child(2) {
  grid-column: 3 / span 2;
  grid-row: 1;
  /* background-color: #198c8c; */
  background-color: #0c0c0c;
}
/* Service */
#menu-list > li:nth-child(3) {
  grid-column: 5 / span 2;
  grid-row: 1;
  /* background-color: #329999; */
  background-color: #191919;
}
/* Interior Design */
#menu-list > li:nth-child(4) {
  grid-column: 1 / span 6;
  grid-row: 2;
  /* background-co lor: #4ca6a6; */
  background-color: #262626;
}
/* Furniture */
#menu-list > li:nth-child(5) {
  grid-column: 1 / span 3;
  grid-row: 3;
  /* background-color: #66b2b2; */
  background-color: #323232;
}
/* Fit Out */
#menu-list > li:nth-child(6) {
  grid-column: 4 / span 3;
  grid-row: 3;
  /* background-color: #7fbfbf; */
  background-color: #4c4c4c;
}
/* Case Studies */
#menu-list > li:nth-child(7) {
  grid-column: 1 / span 2;
  grid-row: 4;
  /* background-color: #99cccc; */
  /* background-color: #00b3b3; */
  background-color: #5d5d5d;
}
/* Insights */
#menu-list > li:nth-child(8) {
  grid-column: 3 / span 2;
  grid-row: 4;
  /* background-color: #b2d8d8; */
  /* background-color: #19baba; */
  background-color: #606060;
}
/* Contact */
#menu-list > li:nth-child(9) {
  grid-column: 5 / span 2;
  grid-row: 4;
  /* background-color: #cce5e5; */
  /* background-color: #4cc9c9; */
  background-color: #6d6d6d;
}

#menu-list li a {
  display: inherit;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4rem;
  /* font-size: clamp(0.8rem, 85%, 1.5rem);
  min-width: 5rem; */
  color: white;
}

#menu-list ul.submenu {
  display: none;
}

[aria-expanded="true"] {
  background-color: red;
  border-radius: 50%;
}

.ui-icons {
  display: block;
  width: 44px;
  height: 44px;
}

span.close-screen {
  position: fixed;
  top: 1rem;
  right: 1rem;
  transition: all 0.2s ease-out;
  transition-delay: 0.4s;
}
span.close-screen > button {
  border-radius: 50%;
  padding: 2px;
  cursor: pointer;
  border: none;
  outline: 0;
  width: 3rem;
  height: 3rem;
}

[hidden] > span.close-screen {
  transform: scale(0);
}

span.close-screen > button > span > svg {
  padding: 0.5rem;
}

hr,
hr.white {
  border: none;
  background: url(/static/hr-black.svg) no-repeat center;
  background-size: 26px;
  height: 26px;
  width: 26px;
  margin-right: auto;
  margin-left: auto;
}
hr.white {
  background: url(/static/hr-white.svg) no-repeat center;
}

a[href^="tel:"] {
  color: white;
  text-decoration: none;
  margin-right: 0em;
}
address a[href^="tel:"] {
  color: inherit;
}

/* CONTENT Declarations */

header#homebanner {
  position: relative;
  height: 65vh;
  /* top: -4.5rem; */
}
header#homebanner figure {
  height: 100%;
}
header#homebanner figure img {
  height: 100%;
  object-fit: cover;
}
header#homebanner figure figcaption {
  position: absolute;
  bottom: 0;
  background: teal;
  background: var(--brand-theme-geen);
  padding: 0.5rem;
  color: white;
  letter-spacing: 2px;
}

#case-study {
  margin-bottom: 3rem;
}
#case-study img {
  height: 100%;
  object-fit: cover;
}

#section-content,
#blog-content,
#case-study-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 5rem;
  min-height: 80vh;
  justify-content: center;
}
#section-content > *:not(header):not(blockquote),
#blog-content > *:not(header):not(blockquote),
#case-study-content > *:not(header):not(blockquote) {
  padding: 0 1.5rem;
}
#section-home {
  margin-top: 1.5rem;
}
#section-home > div:last-of-type {
  grid-column: 1/-1;
}
#section-twww > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90vh;
  min-height: 50rem;
  max-height: 80rem;
  margin: auto;
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: overlay;
  background-repeat: no-repeat;
  background-position: center center;
}
#section-twww > div:first-of-type {
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url("/media/images/spatial-thewaywework-wide-v1-r1_03-1080.jpg");
  color: black;
}
#section-twww > div:nth-of-type(2) {
  background-color: rgba(0, 0, 0, 0.8);
  background-image: url("/media/images/footer-back-1024x564-1080.jpg");
  color: white;
}
#section-twww > div:nth-of-type(3) {
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url("/media/images/office-example-1024x515-1080.jpg");
  color: black;
}

#blog-content > header {
  height: 60vh;
}
#blog-content > header img {
  height: 100%;
  object-fit: cover;
}
[slot="pageTitle"],
.pageTitle {
  text-align: center;
  position: absolute;
  top: 5rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  word-break: initial;
  max-width: 40rem;
  width: 100%;
}
/* [slot="pageTitle"]::after {
  content: ".";
  font-size: clamp(2rem, 3vw, 3rem);
  color: red;
} */

main > header {
  height: 60vh;
}
main > header img[slot="pageBanner"],
main > header img.imaged {
  height: 100%;
  object-fit: cover;
}

h2 {
  text-align: center;
}
.leade {
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.post-meta {
  font-size: 0.8rem;
  padding: 0 1rem;
  text-align: center;
}
figure > figcaption {
  font-size: 0.8rem;
}

[aria-current] {
  position: relative;
  display: inline-block;
  /* background-color: #ca4e4e; */
}

/* [aria-current]::after {
  position: absolute;
  content: "";
  width: calc(100% - 1em);
  height: 2px;
  background-color: #ca4e4e;
  display: block;
  bottom: -1px;
} */

#menu-callout {
  background: url(static/menu-bg2.jpg) no-repeat center center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.6);
  background-blend-mode: soft-light;
}
