/* File: styles.css */
:root {
  --inset: 2rem;
  --unitless-design-width: 1440;
  --design-width: calc(var(--unitless-design-width) * 1px);
  --tablet-width: 1024px;
  --min-tablet-width: 769px;
  --mobile-width: 768px;
  --desktop-max-width: 2000px;
  --unitless-base-font-size: 16;
  --base-font-size: calc(var(--unitless-base-font-size) * 1px);
  --base-line-height: 1.25;
  --base-font-family: Arial, sans-serif;

  --header-font-size: 5rem;
  --header-font-weight: 700;
  --header-line-height: 1.2;
  --header-line-spacing: 0;
  --header-2-font-size: 1.25rem;
  --header-2-font-weight: 500;
  --header-2-line-height: 1;

  --body-small-font-size: 1.125rem;
  --body-medium-font-size: 1.5rem;
  --body-large-font-size: 1.8rem;
  --body-xlarge-font-size: 2rem;

  --color-purple: rgb(111, 31, 208);
  --color-grey: #bdbdbd;
  --color-grey-2: #818181;
  --color-grey-3: #dcdcdc;
  --color-red: #ff3235;
  --color-black: #000000;
}

@media screen and (min-width: 769px) {
  :root {
    --body-large-font-size: 1.125rem;
    --body-xlarge-font-size: 1.5rem;
    --header-font-size: 5rem;
  }
}

@font-face {
  font-family: "Die Grotesk";
  src: url("/fonts/die-grotesk-b-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Soehne Mono";
  src: url("/fonts/soehne-mono-buch.woff2") format("woff2");
}

html {
  box-sizing: border-box;
  font-size: max(
    12px,
    (var(--unitless-base-font-size) / var(--unitless-design-width)) * 100vw
  );
  font-weight: 400;
  line-height: var(--base-line-height);
  font-family: var(--base-font-family);
}

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

body {
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  font-family: "Die Grotesk", "Helvetica", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
dl,
dd,
ol,
ul,
form,
fieldset,
legend,
figure,
table,
th,
td,
caption,
hr {
  margin: 0;
  padding: 0;
  font-size: 1em;
  font-weight: normal;
}

fieldset {
  border: 0;
}

input {
  border-radius: 0;
  font: inherit;
  margin: 0;
}

abbr {
  text-decoration: none;
  border-bottom: none;
}

button,
a {
  &:focus {
    outline: 0;
  }
}

button {
  border: none;
  cursor: pointer;
  font: inherit;
}

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

a:hover {
  color: #ffffff;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

@media screen and (min-width: 769px) {
  .grid-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 43vh 24vh 25vh;
  }
}

.title-container {
  display: flex;

  font-size: 2rem;
  font-weight: bold;
  position: relative;
  padding: var(--inset);
  min-height: 600px;
}

@media screen and (min-width: 769px) {
  .title-container {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    min-height: unset;
  }
}

.logo {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  margin: 0 0 auto;
}
/* 
.title {
  display: none;
  position: relative;
  z-index: 1;
  color: white;
  margin-bottom: auto;
  margin-top: 0;
  font-size: var(--header-font-size);
  font-weight: var(--header-font-weight);
  line-height: var(--header-line-height);
  letter-spacing: var(--header-line-spacing);
} */

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.main-carousel {
  height: 100%;
  width: 100%;
}

@media screen and (min-width: 769px) {
  .carousel {
    height: 67vh;
  }
}
.carousel-cell {
  height: 100%;
  width: 100%;
}

@media screen and (min-width: 769px) {
  .carousel-cell {
    height: 67vh;
  }
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.model-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  position: relative;

  grid-row: 3 / 4;
  height: 480px;
}

@media screen and (min-width: 769px) {
  .model-viewer {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    height: unset;
  }
}

model-viewer {
  width: 100%;
  height: 100%;
}

.content {
  background-color: var(--color-purple);

  color: var(--color-grey);
  padding: var(--inset);

  font-size: var(--body-xlarge-font-size);

  grid-row: 2 / 3;
  min-height: 222px;
}

@media screen and (min-width: 769px) {
  .content {
    grid-row: 3 / 4;
    grid-column: 1 / 2;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

.content-container p {
  margin: 0 0 1em;
}

.iframe-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  min-height: 520px;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.7s ease-in-out;
  z-index: 1;
  position: fixed;
  top: 0;
  height: 100vh;
  left: 0;
  right: 0;
}

@media screen and (min-width: 769px) {
  .iframe-container {
    grid-row: 1 / 4;
    grid-column: 2 / 3;
    /* min-height: 472px; */
    min-height: unset;
    height: 100%;
    padding: 0;
    overflow-y: auto;
    left: unset;
    position: unset;
    width: auto;
  }
}

.iframe-container.active {
  transform: translateX(0);
}

.iframe-container .close {
  position: absolute;
  top: var(--inset);
  right: var(--inset);
  z-index: 2;
  padding: 2px;
  color: var(--color-grey-3);
  font-size: var(--body-xlarge-font-size);
  background: transparent;
  border: none;
  outline: none;
}

.iframe-container iframe {
  width: 100%;
  /* height: 100%; */
  border: none;
  background: var(--color-grey-2);
}

.form-trigger {
  background: var(--color-grey-2);
  min-height: 520px;
  padding: var(--inset) calc(2 * var(--inset));
}

@media screen and (min-width: 769px) {
  .form-trigger {
    grid-row: 2 / 4;
    grid-column: 2 / 3;
    /* min-height: 472px; */
    min-height: unset;
    height: 100%;
    overflow-y: auto;
    position: relative;
  }
}

.form-trigger-text {
  margin-bottom: 3.4rem;
  font-size: var(--body-small-font-size);
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-grey);
}

.form-trigger-text h2 {
  font-size: var(--header-2-font-size);
  font-weight: var(--header-2-font-weight);
  line-height: var(--header-2-line-height);
  margin-bottom: 1.5em;
  color: #fff;
}

.form-trigger-button {
  font-family: "Soehne Mono", "Courier New", Courier, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-grey-3);
  font-size: 1rem;
  text-transform: uppercase;
  padding: 14px var(--inset);
  border: 1px solid var(--color-black);
  border-radius: 0;
  border: none;
  width: 100%;
}

.form-trigger-button:hover {
  background: #fff;
  color: var(--color-black);
}

footer {
  padding: 0;
  background-color: var(--color-red);
  color: var(--color-grey-3);
  font-size: var(--body-medium-font-size);
}

@media screen and (min-width: 769px) {
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8vh;
    padding: 0 var(--inset);
    font-size: var(--body-large-font-size);
  }
}

footer a {
  text-decoration: none;
}

footer .left-footer {
  padding: var(--inset);
}

@media screen and (min-width: 769px) {
  footer .left-footer {
    padding: 0;
  }
}

footer .right-footer {
  padding: var(--inset);
  background: var(--color-purple);
}

@media screen and (min-width: 769px) {
  footer .right-footer {
    padding: 0;
    background: none;
  }
}
