:root {
  --accent-color: #f07d00;
  --accent-color-light: #ffd500;
  --accent-color-hover: hsl(31, 100%, 37%);
  /* hsla(48, 100%, 50%, 0.1) without transparency */
  --accent-background-color: rgb(254, 250, 236);
  --accent-background-color-hover: hsla(21, 100%, 50%, 0.1);
  --primary-color: #333;
  --secondary-color: #fff;
  --nav-height: 120px;
  --gap-sm: 12px;
  --gap-md: 24px;
  --gap-lg: 36px;
  --font-family: system-ui, sans-serif;
  --transition-time: 0.2s;
}

@media screen and (min-width: 800px) {
  :root {
    --gap-sm: 16px;
    --gap-md: 32px;
    --gap-lg: 48px;
  }
}

@media screen and (min-width: 1000px) {
  :root {
    --gap-sm: 24px;
    --gap-md: 48px;
    --gap-lg: 72px;
  }
}

.fa-primary {
  fill: var(--accent-color);
}

.fa-secondary {
  fill: var(--accent-color-light);
  opacity: 1 !important;
}

body {
  margin: 0;
  font: 21px/1.5 var(--font-family);
  overflow-x: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color-hover);
}

header,
footer {
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  height: var(--nav-height);
  background: white;
  color: var(--primary-color);
  -webkit-mask-image: url("/images/mask.svg");
  -webkit-mask-size: 100vw var(--nav-height);
  mask-image: url("/images/mask.svg");
  mask-size: 100vw var(--nav-height);
}

header > nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 0;
  margin-top: -30px;
  padding: 0 var(--gap-md);
  width: 100%;
  background: var(--accent-background-color);
}

header nav .logo {
  margin-top: 50px;
}

header nav .logo,
header nav .logo img {
  height: 60px;
}

@media screen and (min-width: 800px) {
  header nav .logo {
    margin-top: 40px;
  }

  header nav .logo,
  header nav .logo img {
    height: 80px;
  }
}

header ul {
  display: flex;
  list-style: none;
}

header ul li {
  display: flex;
  justify-content: center;
  align-items: stretch;
  margin: 0;
}

header ul a {
  display: flex;
  align-content: center;
  align-items: center;
  padding: 0 10px;
  font-weight: 500;
}

header ul a:hover,
header ul .active a {
  background: var(--accent-background-color-hover);
  color: var(--accent-color-hover);
}

/* MENU */

#menu {
  z-index: 2;
  position: fixed;
}

#menu-bar {
  position: absolute;
  right: 0;
  width: 45px;
  height: 40px;
  margin: 40px 20px 20px 0;
  cursor: pointer;
}

.bar {
  height: 5px;
  width: 100%;
  background-color: var(--accent-color);
  display: block;
  border-radius: 5px;
  transition: var(--transition-time) ease;
}

#bar1 {
  transform: translateY(-4px);
}

#bar3 {
  transform: translateY(4px);
}

.mobile nav {
  transition: var(--transition-time) ease;
  /* display: none; */
  opacity: 0;
  /* outline: solid green; */
}

.mobile nav ul {
  padding: 0 22px;
}

.mobile nav li {
  list-style: none;
  padding: 12px 0;
}

.mobile nav li a {
  color: white;
  font-size: 20px;
  text-decoration: none;
}

#menu-bg,
#menu {
  top: 0;
  right: 0;
  position: fixed;
}

#menu-bg {
  z-index: 1;
  width: 0;
  height: 0;
  margin: 30px 0 20px 20px;
  background: radial-gradient(circle, var(--accent-color), var(--accent-color));
  border-radius: 50%;
  transition: var(--transition-time) ease;
  transform: translate(55%, -25%);
}

#menu-bg.closed {
  transition-delay: var(--transition-time);
}

#menu-bg.open {
  width: 560px;
  height: 640px;
}

.mobile nav {
  margin: 80px 0 0;
}

.mobile nav.open {
  opacity: 1;
  transition-delay: var(--transition-time);
}

.mobile .open .bar {
  background-color: white;
}

.mobile .open #bar1 {
  transform: translateY(4px) rotateZ(-45deg);
}

.mobile .open #bar2 {
  opacity: 0;
}

.mobile .open #bar3 {
  transform: translateY(-6px) rotateZ(45deg);
}

/* END MENU */

footer {
  margin-top: var(--gap-lg);
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--gap-sm) var(--gap-lg);
  background: var(--accent-background-color);
  font-size: 16px;
  -webkit-mask-image: none;
  mask-image: none;
}

footer::before {
  z-index: -1;
  content: "";
  position: absolute;
  height: var(--nav-height);
  right: 0;
  top: -30px;
  left: 0;
  background: var(--accent-background-color);
  pointer-events: none;
  -webkit-mask-image: url("/images/mask-rotated.svg");
  -webkit-mask-size: 100vw calc(var(--nav-height) * 2);
  mask-image: url("/images/mask-rotated.svg");
  mask-size: 100vw calc(var(--nav-height) * 2);
}

.hero-image {
  background-image: url("/images/claudio-schwarz--v66SXbmDVA-unsplash.jpg");
  background-size: cover;
  background-position: center;
  height: 500px;
  position: relative;
  margin-top: calc(-1 * var(--nav-height));
  z-index: -1;
}

section.image-text {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-content: center;
  width: 100vw;
  overflow: hidden;
  margin: var(--gap-md) 0;
}

section.image-text.image-right,
section.image-text.image-left {
  grid-template-areas:
    "image"
    "text";
}

@media screen and (min-width: 800px) {
  section.image-text {
    grid-template-columns: 50% 50%;
  }

  section.image-text.image-right {
    grid-template-areas: "text image";
  }

  section.image-text.image-left {
    grid-template-areas: "image text";
  }
}

section.image-text .text,
section.text .text {
  padding: var(--gap-md) var(--gap-lg);
  grid-area: text;
  max-width: 40em;
}

section.image-text .text > *:first-child,
section.text .text > *:first-child {
  margin-top: 0;
}

section.image-text .text > *:last-child,
section.text .text > *:last-child {
  margin-bottom: 0;
}

section.text strong {
  font-weight: 600;
}

.text table {
  max-width: calc(100vw - 2 * var(--gap-lg));
  border-collapse: collapse;
}

.text table th,
.text table td {
  font-size: 16px;
  text-align: left;
  vertical-align: top;
  padding: 8px 12px 8px 8px;
  border: 2px solid #fff;
  background: var(--accent-background-color);
}

.text table th {
  background: var(--accent-background-color-hover);
}

.text table [rowspan] {
  vertical-align: middle;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

section.image-text .text h2 {
  margin: 0;
  margin-bottom: var(--gap-md);
  line-height: 1.2em;
  font-weight: 600;
}

section.image-text img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  grid-area: image;
}

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

.text nav li {
  padding: 8px 12px;
  border-bottom: 1px solid var(--accent-color-light);
}

.text nav li:first-of-type {
  border-top: 1px solid var(--accent-color-light);
}

.text nav a {
  display: inline-flex;
  align-items: center;
}

.text nav .active a {
  color: var(--accent-color-hover);
}

.text nav .icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: var(--accent-color);
}

/* column blocks plugin */
.grid {
  --columns: 12;
  width: 100vw;
  display: grid;
  grid-gap: 8px;
  grid-template-columns: 1fr;
}

@media screen and (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media screen and (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.grid > .column {
  grid-column: span var(--columns);
}

.uniform__potty {
  position: absolute;
  left: -9999px;
}

form fieldset {
  border: none;
  padding: 0;
  margin: var(--gap-sm) 0;
}

form label {
  display: inline-block;
  margin-bottom: 8px;
}

form label.flexbox {
  display: flex;
  align-items: baseline;
  margin-top: 8px;
  margin-bottom: 0;
}

form input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

form input,
form textarea,
form button {
  font: 18px/1.5 var(--font-family);
  padding: 10px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid var(--accent-color-light);
}

form textarea {
  height: 100px;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

form button {
  background: var(--accent-background-color);
  border-color: var(--accent-background-color);
  color: var(--accent-color);
  font-size: 21px;
  width: auto;
}

form button:hover {
  background: var(--accent-background-color-hover);
  border-color: var(--accent-background-color-hover);
  color: var(--accent-color-hover);
}

/* styles for screens with width greater than 1024px */

@media screen and (max-width: 999px) {
  .visible-md {
    display: none;
  }
}

@media screen and (min-width: 1000px) {
  .hidden-md {
    display: none;
  }
}
