/* ─── Reset ───────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  color: #000;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
}

a { text-decoration: none; color: #000; }

.hover:hover { opacity: 0.8; }

/* ─── Layout ───────────────────────────────────────────────── */
main {
  height: 100vh;
  width: 100%;
  padding: 18px;
}

.video-wrapper {
  background: #0f0f0f;
  border-radius: 16px;
}

main video {
  width: 100%;
  height: 71%;
  position: relative;
  top: 76px;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 300ms ease;
}

main video.is-ready {
  opacity: 1;
}

/* ─── Header ───────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  pointer-events: none;
}

header > * { pointer-events: auto; }

.logo { width: 100px; }

.header-buttons {
  display: flex;
  align-items: center;
  column-gap: 8px;
  padding: 8px 8px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 229, 229, 0.8);
  border-radius: 10px;
  margin-bottom: 4rem;
}

.header-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #111;
  color: #fff;
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border-radius: 8px;
  transition: opacity 300ms ease;
  white-space: nowrap;
}

.header-button:hover { opacity: 0.8; }

.header-button-white {
  background: #fff;
  color: #000;
}

/* ─── Dropdown ─────────────────────────────────────────────── */
.dropdown { position: relative; cursor: pointer; }

.dropdown-list {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;
  width: 100%;
  display: none;
  z-index: 20;
}

.dropdown-list.is-open { display: block; }

.dropdown-list > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 229, 229, 0.7);
}

.dropdown-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  background: #fff;
  transition: background 200ms ease, color 200ms ease;
}

.dropdown-list a:hover { background: #111; color: #fff; }

/* ─── Sound toggle ─────────────────────────────────────────── */
#toggleButton {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #000;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#toggleButton svg { width: 16px; height: 16px; display: block; }

#toggleButton .icon-unmuted { display: none; }
#toggleButton.sound-on .icon-muted { display: none; }
#toggleButton.sound-on .icon-unmuted { display: block; }

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 10;
  padding: 48px !important;
}

.footer-container {
  position: relative;
  width: 100%;
  padding: 21px 24px;
  border-radius: 10px;
  background: rgba(240, 240, 240, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.footer-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  
}

.footer-call {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #111;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 300ms ease;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 4px;
  font-size: 18px;
  color: #222;
  width: 100%;
}

.footer-mail { color: #222; }

.footer-bottom__socials {
  display: flex;
  column-gap: 12px;
  align-items: center;
}

/* ─── Privacy page ─────────────────────────────────────────── */
.privacy-container {
  max-width: 762px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  text-align: justify;
  padding: 0 16px;
}
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* ─── Mobile < 991px ─────────────────────────────────────────── */
@media only screen and (max-width: 990px) {
  body,
  main,
  .video-wrapper {
    background: #fff;
  }

  footer {
    padding: 0 18px 24px !important;
    background: #fff;
  }

  .footer-container {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }

  .footer-top {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .footer-call {
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 16px;
    box-shadow: none;
  }

  .footer-bottom {
    align-items: center;
    text-align: center;
    row-gap: 10px;
    font-size: 16px;
    padding-top: 0;
  }

  .footer-bottom > div {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .footer-bottom__socials {
    justify-content: center;
    column-gap: 16px;
    margin-top: 6px;
  }
}

/* ─── Desktop ≥ 991px ──────────────────────────────────────── */
@media only screen and (min-width: 991px) {

  header { padding: 48px; }

  .header-buttons {
    padding: 10px 10px;
    border: none;
    column-gap: 10px;
    margin-bottom: 2.5rem;
  }

  .header-button {
    height: 48px;
    padding: 0 28px;
    font-size: 16px;
    border-radius: 9px;
  }

  main video {
    height: 100%;
    top: 0;
  }

  .dropdown-list { padding-top: 12px; }

  .dropdown-button:hover + .dropdown-list,
  .dropdown-list:hover { display: block; }

  #toggleButton {
    right: 3rem;
    top: 3rem;
    bottom: unset;
    width: 48px;
    height: 48px;
    border-color: #fff;
  }

  #toggleButton svg { width: 20px; height: 20px; }
  #toggleButton svg path { stroke: #fff; }

  footer { padding: 0 20px 16px; }

  .footer-container { padding: 21px 24px; }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    row-gap: 0;
  }

  .footer-bottom > div {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .footer-bottom > div:nth-child(1) { justify-content: flex-start; }
  .footer-bottom > div:nth-child(2) { justify-content: center; }
  .footer-bottom > div:nth-child(3) { justify-content: flex-end; }

  .footer-bottom__socials { column-gap: 14px; }
}
