:root {
  --text: #392e2b;
  --surface: #fff8f6;
  --surface-highest: #d4c3be;
  --surface-high: #e2d1cc;
  --surface-medium: #f1dfda;
  --surface-low: #ffede8;
  --surface-lowest: #FFC3B3;
  --sidebar-width: 5.5rem;
  --mobile-sidebar-width: 4rem;
  --md-sys-color-primary: rgb(76 102 43);
  --md-sys-color-surface-tint: rgb(76 102 43);
  --md-sys-color-on-primary: rgb(255 255 255);
  --md-sys-color-primary-container: rgb(205 237 163);
  --md-sys-color-on-primary-container: rgb(53 78 22);
  --md-sys-color-secondary: rgb(88 98 73);
  --md-sys-color-on-secondary: rgb(255 255 255);
  --md-sys-color-secondary-container: rgb(220 231 200);
  --md-sys-color-on-secondary-container: rgb(64 74 51);
  --md-sys-color-tertiary: rgb(56 102 99);
  --md-sys-color-on-tertiary: rgb(255 255 255);
  --md-sys-color-tertiary-container: rgb(188 236 231);
  --md-sys-color-on-tertiary-container: rgb(31 78 75);
  --md-sys-color-error: rgb(186 26 26);
  --md-sys-color-on-error: rgb(255 255 255);
  --md-sys-color-error-container: rgb(255 218 214);
  --md-sys-color-on-error-container: rgb(147 0 10);
  --md-sys-color-background: rgb(249 250 239);
  --md-sys-color-on-background: rgb(26 28 22);
  --md-sys-color-surface: rgb(249 250 239);
  --md-sys-color-on-surface: rgb(26 28 22);
  --md-sys-color-surface-variant: rgb(225 228 213);
  --md-sys-color-on-surface-variant: rgb(68 72 61);
  --md-sys-color-outline: rgb(117 121 108);
  --md-sys-color-outline-variant: rgb(197 200 186);
  --md-sys-color-shadow: rgb(0 0 0);
  --md-sys-color-scrim: rgb(0 0 0);
  --md-sys-color-inverse-surface: rgb(47 49 42);
  --md-sys-color-inverse-on-surface: rgb(241 242 230);
  --md-sys-color-inverse-primary: rgb(177 209 138);
  --md-sys-color-primary-fixed: rgb(205 237 163);
  --md-sys-color-on-primary-fixed: rgb(16 32 0);
  --md-sys-color-primary-fixed-dim: rgb(177 209 138);
  --md-sys-color-on-primary-fixed-variant: rgb(53 78 22);
  --md-sys-color-secondary-fixed: rgb(220 231 200);
  --md-sys-color-on-secondary-fixed: rgb(21 30 11);
  --md-sys-color-secondary-fixed-dim: rgb(191 203 173);
  --md-sys-color-on-secondary-fixed-variant: rgb(64 74 51);
  --md-sys-color-tertiary-fixed: rgb(188 236 231);
  --md-sys-color-on-tertiary-fixed: rgb(0 32 30);
  --md-sys-color-tertiary-fixed-dim: rgb(160 208 203);
  --md-sys-color-on-tertiary-fixed-variant: rgb(31 78 75);
  --md-sys-color-surface-dim: rgb(218 219 208);
  --md-sys-color-surface-bright: rgb(249 250 239);
  --md-sys-color-surface-container-lowest: rgb(255 255 255);
  --md-sys-color-surface-container-low: rgb(243 244 233);
  --md-sys-color-surface-container: rgb(238 239 227);
  --md-sys-color-surface-container-high: rgb(232 233 222);
  --md-sys-color-surface-container-highest: rgb(226 227 216);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 3rem 0 1rem;
}

h1 {
  font-size: 2rem;
  text-align: left;
}

h2 {
  font-size: 1.5rem;
}

p,
ul,
ol {
  margin-bottom: 2rem;
  font-size: 1rem;
}

ul {
  list-style-type: circle;
  list-style-position: inside;
}

strong {
  font-weight: 800;
}

a {
  color: var(--md-sys-color-primary);
}

body {
  line-height: 1.75;
  font-size: 16px;
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  font-family: system-ui, -apple-system, sans-serif;
}

header {
  background-color: var(--md-sys-color-surface-container-high);
  height: var(--sidebar-width);
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-sizing: border-box;
  padding-left: 2rem;
}

.header__group {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.main {
  max-width: 100%;
  margin-left: var(--sidebar-width);
  margin-top: var(--sidebar-width);
  padding: 2rem;
}

.main--narrow {
  max-width: 70ch;
  margin: 0 auto;
}

footer {
  max-width: 100%;
  margin-left: calc(var(--sidebar-width) + 2rem);
  margin-right: 2rem;
  margin-top: 5rem;
  padding: 5rem 3rem;
  text-align: center;
  border-top-style: solid;
  border-width: thin;
  border-color: var(--md-sys-color-surface-container-high);
  display: grid;
}

.footer__about {
  display: flex;
  justify-content: space-evenly;
  column-gap: 1rem;
}

.footer__quick-links,
.footer__contact-links {
  list-style: none;
  text-align: left;
}

.footer__legal {
  margin-top: 5rem;
}

.company-name {
  font-size: 2rem;
  font-weight: 800;
}

.contact-item__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-item__wrapper {
  background-color: var(--md-sys-color-surface-container);
  border-radius: 1.168rem;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-item__title {
  margin: 0;
}

.contact-item__detail {
  margin: 0;
}

.sidebar {
  background: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-primary-container);
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}

.sidebar__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sidebar__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(var(--sidebar-width) - 1rem);
  height: calc(var(--sidebar-width) - 1rem);
  background: none;
  border: none;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  border-radius: 1.168rem;
}

.sidebar__button:first-child {
  margin-top: 0.5rem;
}

.sidebar__button:last-child {
  margin-bottom: 0.5rem;
}

.sidebar__button:hover,
.sidebar__button:focus {
  background: var(--md-sys-color-inverse-primary);
  text-decoration: none;
}

.sidebar__button.active {
  background: var(--md-sys-color-inverse-primary);
  font-weight: bold;
}

.sidebar__label {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.sidebar__icon {
  position: relative;
  display: inline-block;
}

.video-section {
  max-width: 1200px;
  margin: 0 auto;
}

.video-section__title {
  border-top-color: var(--md-sys-color-surface-container-high);
  border-top-style: solid;
  border-top-width: thin;
  padding-top: 2rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.video-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr 1fr;
}

.video-grid__video {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 /9;
  display: block;
  border-radius: 1.168rem;
}

.video-grid__title {
  margin-top: 0.5rem;
  text-align: left;
}

.product-filters {
  padding-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.product-grid__item {
  background-color: var(--md-sys-color-surface-container);
  box-shadow: var(--md-sys-color-shadow);
  border-radius: 1.168rem;
  flex: 0 0 auto;
  position: relative;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
}

.product-grid__item:hover,
.product-grid__item:active {
  background-color: var(--md-sys-color-inverse-primary);
}

.product-grid__item-icon-wrapper {
  display: flex;
  flex-direction: row-reverse;
  margin-bottom: 2rem;
}

.product-grid__item-image-wrapper {
  display: grid;
  grid-template-areas: "item";
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-grid__item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-grid__item-details-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.product-grid__item-details {
  font-size: 1rem;
  margin: 0;
}

.product-display__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  justify-items: center;
}

.product-display__image-wrapper {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-display__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-display__details-wrapper {
  max-width: 70ch;
}

.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 1024px) {

  .product-grid,
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header {
    margin-left: 0;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main {
    margin-left: 0;
  }

  footer {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: var(--sidebar-width);
  }

  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--sidebar-width);
    flex-direction: row;
    padding: 0;
  }

  .sidebar__group {
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 0;
  }

  .sidebar__group:last-child {
    display: none;
  }

  .sidebar__button {
    width: auto;
    flex: 1;
    height: 100%;
  }

  .sidebar__button:hover,
  .sidebar__button:focus {
    background: none;
    text-decoration: none;
  }

  .sidebar__button.active {
    background: var(--md-sys-color-inverse-primary);
    font-weight: bold;
  }

  .sidebar__button:first-child {
    margin-top: 0;
  }

  .sidebar__button:last-child {
    margin-bottom: 0;
  }

  .product-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
}
