/*
 * Quinta d'Aguieira — Age restriction
 * Loaded separately from the legacy child stylesheet so cache/minification
 * cannot leave the gate without its presentation.
 */

html:not(.qdaguieira-age-verified),
html:not(.qdaguieira-age-verified) body {
  overflow: hidden !important;
}

html:not(.qdaguieira-age-verified) #page {
  pointer-events: none;
  user-select: none;
}

.qda-age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0) 38%),
    #6a5b50;
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

html.qdaguieira-age-verified .qda-age-gate {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.qda-age-gate::before,
.qda-age-gate::after {
  position: fixed;
  left: 50%;
  width: 1px;
  height: 64px;
  content: '';
  background: rgba(255, 255, 255, 0.42);
  transform: translateX(-50%);
}

.qda-age-gate::before {
  top: 0;
}

.qda-age-gate::after {
  bottom: 0;
}

.qda-age-gate__line {
  position: fixed;
  left: 50%;
  display: block;
  width: min(580px, calc(100vw - 48px));
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.qda-age-gate__line--top {
  top: 64px;
}

.qda-age-gate__line--bottom {
  bottom: 64px;
}

.qda-age-gate__inner {
  position: relative;
  width: min(680px, 100%);
  margin: auto;
  padding: 72px 60px 68px;
  text-align: center;
}

.qda-age-gate__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}

.qda-age-gate__logo {
  display: block;
  width: min(260px, 68vw);
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

.qda-age-gate__content {
  animation: qda-age-gate-content-in 500ms ease both;
}

.qda-age-gate__content[hidden] {
  display: none;
}

.qda-age-gate__eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Florent', sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.qda-age-gate__title {
  max-width: 610px;
  margin: 0 auto 24px;
  color: #ffffff;
  font-family: 'Combinado Serif', Georgia, serif;
  font-size: clamp(36px, 4.3vw, 58px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.qda-age-gate__description {
  max-width: 500px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Florent', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.02em;
}

.qda-age-gate__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(540px, 100%);
  margin: 0 auto;
}

.qda-age-gate__button {
  min-height: 56px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0;
  outline: 0;
  font-family: 'Florent', sans-serif;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 1.6px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 250ms ease, background-color 250ms ease, border-color 250ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.qda-age-gate__button--primary {
  color: #6a5b50;
  background: #ffffff;
}

.qda-age-gate__button--primary:hover,
.qda-age-gate__button--primary:focus-visible {
  color: #ffffff;
  border-color: #9f5c4b;
  background: #9f5c4b;
}

.qda-age-gate__button--secondary {
  color: #ffffff;
  background: transparent;
}

.qda-age-gate__button--secondary:hover,
.qda-age-gate__button--secondary:focus-visible {
  color: #6a5b50;
  border-color: #ffffff;
  background: #ffffff;
}

.qda-age-gate__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.qda-age-gate__button--single {
  min-width: 220px;
}

.qda-age-gate__legal {
  max-width: 480px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: 'Florent', sans-serif;
  font-size: 9px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.qda-age-gate__content--denied .qda-age-gate__description {
  margin-bottom: 32px;
}

@keyframes qda-age-gate-content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .qda-age-gate {
    padding: 28px 20px;
  }

  .qda-age-gate::before,
  .qda-age-gate::after {
    height: 40px;
  }

  .qda-age-gate__line {
    width: calc(100vw - 40px);
  }

  .qda-age-gate__line--top {
    top: 40px;
  }

  .qda-age-gate__line--bottom {
    bottom: 40px;
  }

  .qda-age-gate__inner {
    padding: 56px 0;
  }

  .qda-age-gate__brand {
    margin-bottom: 36px;
  }

  .qda-age-gate__logo {
    width: min(220px, 66vw);
  }

  .qda-age-gate__eyebrow {
    margin-bottom: 18px;
  }

  .qda-age-gate__title {
    margin-bottom: 20px;
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .qda-age-gate__description {
    margin-bottom: 30px;
    font-size: 12px;
    line-height: 1.75;
  }

  .qda-age-gate__actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .qda-age-gate__button {
    width: 100%;
    min-height: 54px;
  }

  .qda-age-gate__button--single {
    min-width: 0;
  }

  .qda-age-gate__legal {
    margin-top: 20px;
  }
}

@media (max-height: 680px) and (min-width: 768px) {
  .qda-age-gate {
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .qda-age-gate__inner {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .qda-age-gate__brand {
    margin-bottom: 26px;
  }

  .qda-age-gate__logo {
    width: 190px;
  }

  .qda-age-gate__title {
    font-size: 38px;
  }

  .qda-age-gate__description {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qda-age-gate,
  .qda-age-gate__content,
  .qda-age-gate__button {
    animation: none !important;
    transition: none !important;
  }
}
