/* ==========================================================================
   Static-site additions
   Replaces what React / MUI / framer-motion used to do at runtime.
   ========================================================================== */

/* next/image "fill" */
.img-fill {
  position: absolute;
  height: 100%;
  width: 100%;
  inset: 0;
  color: transparent;
}

.img-cover {
  object-fit: cover;
}

/* ---------- Header (fixed after scrolling 800px) ---------- */
.site-header {
  position: static;
  top: 0;
  left: 0;
  right: 0;
  z-index: 555;
  width: 100%;
  background-color: transparent;
  box-shadow: none;
  transition: transform 0.6s ease;
}

.site-header.is-fixed {
  position: fixed;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.site-header__logo {
  position: relative;
  width: 250px;
  height: 100px;
}

.site-header.is-fixed .site-header__logo {
  width: 200px;
  height: 80px;
}

.site-header.is-fixed .site-header__top {
  display: none;
}

/* language links were <button>s */
.site-header__langs a,
.drawer__langs a {
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

/* scroll-to-top button: the module rule sets display:flex, which would beat the [hidden] attribute */
.upbutton__btn:not(.is-visible) {
  display: none;
}

/* ---------- Icons ---------- */
.mui-icon {
  user-select: none;
  width: 1em;
  height: 1em;
  display: inline-block;
  fill: currentColor;
  flex-shrink: 0;
  transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
}

.react-icon {
  font-size: 20px;
}

/* ---------- Mobile menu button ---------- */
.menu-button {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 4px;
  border: 1px solid #cdd7e1;
  border-radius: 6px;
  background: transparent;
  color: #32383e;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
}

.menu-button:hover {
  background-color: #f0f4f8;
}

.menu-button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: #32383e;
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  visibility: hidden;
  transition: visibility 0.3s;
}

.drawer.is-open {
  visibility: visible;
}

.drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: rgba(11, 13, 14, 0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__content {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(300px, 100vw);
  height: 100%;
  overflow: auto;
  background-color: #fbfcfe;
  color: #32383e;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  box-shadow: 0 2px 8px -2px rgba(21, 21, 21, 0.08), 0 6px 12px -2px rgba(21, 21, 21, 0.08);
  transform: translateX(-100%);
  transition: transform 0.3s;
}

.drawer.is-open .drawer__content {
  transform: none;
}

.drawer__close-box {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 8px 16px 0 auto;
}

.drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 4px;
  border-radius: 6px;
  color: #32383e;
  cursor: pointer;
}

.drawer__close:hover {
  background-color: #f0f4f8;
}

.drawer__close svg {
  display: block;
  width: 21.33px;
  height: 21.33px;
  fill: #636b74;
}

.drawer__search {
  position: relative;
  display: flex;
  height: 32px;
  min-height: 32px;
  margin: 24px;
  padding: 0 8px;
  background-color: #fbfcfe;
  font-size: 14px;
  line-height: 21px;
  border-bottom: 2px solid #cdd7e1;
  cursor: text;
}

.drawer__search:hover {
  border-color: #9fa6ad;
}

.drawer__search::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  z-index: 1;
  border: 1px solid #0b6bcb;
  transform: scaleX(0);
  transition: transform 0.15s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.drawer__search:focus-within::before {
  transform: scaleX(1.2);
}

.drawer__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.drawer__search input::placeholder {
  color: inherit;
  opacity: 0.64;
}

.drawer__search-icon {
  display: flex;
  align-items: center;
  margin-left: 8px;
  color: #636b74;
}

.drawer__search-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: #636b74;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  flex: none;
  padding: 8px 20px;
  font-size: 20px;
  line-height: 30px;
}

.drawer__nav a {
  display: flex;
  justify-content: center;
}

.drawer__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid transparent;
  color: #32383e;
  cursor: pointer;
}

.drawer__item:hover {
  background-color: #f0f4f8;
}

.drawer__social {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 8px 16px 0 0;
}

.drawer__social svg {
  font-size: 22px;
}

/* ---------- framer-motion entrance animations ---------- */
@keyframes fm-grow-height {
  from { opacity: 0; height: 0; }
  to { opacity: 1; height: 100px; }
}

@keyframes fm-grow-width {
  from { opacity: 0; width: 0; }
  to { opacity: 1; width: 100%; }
}

@keyframes fm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fm-slide-down {
  from { opacity: 0; transform: translateY(-1px); }
  to { opacity: 1; transform: translateY(1px); }
}

.fm-grow-height {
  animation: fm-grow-height 0.2s ease-out 1s both;
}

.fm-grow-width {
  animation: fm-grow-width 0.2s ease-out 1s both;
}

.fm-fade {
  animation: fm-fade 0.2s ease-out 1s both;
}

.fm-slide-down {
  animation: fm-slide-down 0.4s ease-out 1s both;
}

.fm-fade-late {
  animation: fm-fade 0.2s ease-out 1.5s both;
}

/* ---------- About page images (were resized with JS) ---------- */
.about-image {
  position: relative;
}

.about-image--large {
  width: 840px;
  height: 440px;
}

.about-image--small {
  width: 480px;
  height: 360px;
}

@media (max-width: 1024px) {
  .about-image--small {
    width: 100%;
    height: 567px;
  }
}

@media (max-width: 769px) {
  .about-image--large {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .about-image--small {
    height: 270px;
  }
}

@media (max-width: 577px) {
  .about-image--large {
    height: 280px;
  }
}

.about-image img {
  border-radius: 5px;
}

/* ---------- Products page ---------- */
.major-title {
  color: #fff;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
  text-transform: uppercase;
  padding: 0 40px;
}

.major-title--dark {
  color: #4f4f4f;
  padding-top: 100px;
}

.major-slider {
  position: relative;
  width: 100%;
  height: 650px;
}

.major-slider__cover {
  position: relative;
  width: 100%;
  height: 100%;
}

.major-slider__body {
  position: absolute;
  top: 15%;
  left: 5%;
  z-index: 222;
}

.major-slider__track {
  height: 355px;
}

.major-slider__item {
  position: absolute;
  transition: transform 0.5s;
}

.major-slider__item img {
  transition: transform 0.5s;
}

.major-slider .sheet-slider-timeline__box {
  cursor: pointer;
}

.major-slider .sheet-slider-timeline__box.is-active {
  transform: scale(1.4);
  background-color: #daa520;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.major-slider .sheet-slider-btns__container button:not(:disabled) {
  background: rgba(218, 165, 32, 0.5);
}

/* ---------- Contact form (was MUI Input) ---------- */
.form-stack {
  display: flex;
  flex-direction: column;
}

.form-stack--message {
  height: 150px;
}

.form-input {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.87);
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4375em;
  letter-spacing: 0.00938em;
  border-bottom: 1px solid;
  cursor: text;
}

.form-stack--message .form-input {
  width: 100%;
  height: 100%;
}

.form-input::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 2px solid #1976d2;
  transform: scaleX(0);
  transition: transform 200ms cubic-bezier(0, 0, 0.2, 1);
  pointer-events: none;
}

.form-input:focus-within::after {
  transform: scaleX(1);
}

.form-input input {
  display: block;
  box-sizing: content-box;
  width: 100%;
  min-width: 0;
  height: 1.4375em;
  margin: 0;
  padding: 4px 0 5px;
  border: 0;
  outline: 0;
  background: none;
  color: currentColor;
  font: inherit;
  letter-spacing: inherit;
}

.form-input input::placeholder {
  color: currentColor;
  opacity: 0.42;
}

.contact-information__sendBtn.is-disabled {
  background: gray;
  cursor: not-allowed;
}

/* MUI Alert (success) */
.form-alert {
  display: flex;
  padding: 6px 16px;
  border-radius: 4px;
  background-color: rgb(237, 247, 237);
  color: rgb(30, 70, 32);
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0.01071em;
}

.form-alert__icon {
  display: flex;
  margin-right: 12px;
  padding: 7px 0;
  font-size: 22px;
  opacity: 0.9;
  color: #2e7d32;
}

.form-alert__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.form-alert__message {
  min-width: 0;
  padding: 8px 0;
  overflow: auto;
}

.form-alert__title {
  margin-top: -2px;
  margin-bottom: 0.35em;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.00938em;
}

/* Map */
.map-frame {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}
