/* style.css */

@font-face {
  font-family: "BlockT";
  src: url("BlockStdExtCn.woff") format("woff"),
       url("BlockStdExtCn.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir LT Std";
  src: url("AvenirLTStd-Roman.woff2") format("woff2"),
       url("AvenirLTStd-Roman.woff") format("woff"),
       url("AvenirLTStd-Roman.eot") format("embedded-opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir LT Std";
  src: url("AvenirLTStd-Medium.woff2") format("woff2"),
       url("AvenirLTStd-Medium.woff") format("woff"),
       url("AvenirLTStd-Medium.eot") format("embedded-opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "BlockT", sans-serif;
  letter-spacing: 0.1rem;
  overflow-x: hidden;
  background: #1a1a1a;
  color: #fff;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;   /* fallback for older browsers */
  height: 100svh;  /* stable under mobile toolbar show/hide */
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__header {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  z-index: 12;
  pointer-events: none;
}

.hero__winner-label {
  font-size: clamp(1rem, 2.4vw, 1.6rem);
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.12rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
@media (max-width: 500px) {
  .hero__winner-label {
    font-size: 1rem;
  }
}

.hero__winner-team {
  font-size: clamp(2rem, 6vw, 5.5rem);
  font-weight: 400;
  text-transform: uppercase;
  color: #f3cf81;
  line-height: 1.05;
  white-space: nowrap;
  margin: 0.15em 0 0.35em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero__winner-thanks {
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  color: #fff;
  opacity: 0.95;
  line-height: 1.45;
  max-width: 620px;
  margin: 0 auto;
  letter-spacing: 0.03rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
@media (max-width: 500px) {
  .hero__winner-thanks {
    font-size: 0.9rem;
  }
}

/* ── Product images ── */
.hero__product {
  position: absolute;
  z-index: 3;
  opacity: 1;
}

.hero__bottle--center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 65%;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  position: relative;
  background: #fff;
  color: #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  margin: 5vw;
  letter-spacing: 0;
  font-family: "Avenir LT Std", sans-serif;
  max-height: calc(100vh - 2rem);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none !important;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  width: auto !important;
  z-index: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-card h2 {
  font-family: "Avenir LT Std", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.modal-card input[type="email"],
.modal-card input[type="text"] {
  width: 100%;
  font-family: inherit;
  padding: 0.75rem 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.modal-card input[type="email"]:focus,
.modal-card input[type="text"]:focus {
  border-color: #d4a017;
}

.modal-card input.input--error,
.modal-card input.input--error:focus {
  border-color: #d93025;
}

.consent.consent--error span {
  color: #d93025;
}

.modal-row {
  display: flex;
  gap: 0.75rem;
}

.modal-row input {
  width: auto;
}

.modal-row .input--zip {
  flex: 0 0 35%;
}

.modal-row .input--city {
  flex: 1;
  min-width: 0;
}

.modal-social {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.modal-social p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.modal-social__icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.modal-social__icons a {
  color: #333;
  transition: color 0.2s;
}

.modal-social__icons a:hover {
  color: #d4a017;
}

.modal-disclaimer {
  font-size: 0.85rem;
  color: #999;
  margin-top: 1.25rem;
  line-height: 1.4;
}

.modal-card .consent {
  font-family: "Avenir LT Std", sans-serif;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
}

.modal-card .consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
}

.modal-card .consent a {
  color: #5c3317;
  text-decoration: underline;
}

.modal-card button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-family: "Avenir LT Std", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s;
}

.modal-card button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal-card button.btn--vanilla {
  background: #d4a017;
  color: #fff;
}

.modal-card button.btn--chocolate {
  background: #5c3317;
  color: #fff;
}

.modal-card .error-msg {
  color: #e53935;
  font-family: "Avenir LT Std", sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* ── Results Section ── */
.results {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.results__thank-you {
  font-size: 1.2rem;
  color: #d4a017;
  margin-bottom: 1.5rem;
}

.results h2 {
  font-size: 2rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.results__bar-container {
  margin-bottom: 1.5rem;
}

.results__bar-label {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.results__bar-track {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

.results__bar-fill {
  height: 100%;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 1rem;
  color: #fff;
  min-width: fit-content;
  padding: 0 1rem;
  width: 0%;
}

.results__bar-fill--vanilla {
  background: #d4a017;
}

.results__bar-fill--chocolate {
  background: #5c3317;
}

.results-social {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.results-social p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.75rem;
}

.results-social__icons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.results-social__icons a {
  color: #fff;
  transition: color 0.2s;
}

.results-social__icons a:hover {
  color: #d4a017;
}

.results-disclaimer {
  font-size: 0.85rem;
  color: #999;
  margin-top: 1.5rem;
  line-height: 1.4;
}

/* ── Static pages (privacy, terms) ── */
.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  font-family: "Avenir LT Std", sans-serif;
  line-height: 1.7;
}

.page h1 {
  font-family: "BlockT", sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.page p {
  margin-bottom: 1rem;
  color: #ccc;
}

.page a {
  color: #d4a017;
}

.page h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.page h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #eee;
}

.page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

.page address {
  font-style: normal;
  margin-bottom: 1rem;
  color: #ccc;
}

.page .lang-switcher-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.page .lang-switcher-top button {
  background: none;
  border: 1px solid #555;
  color: #ccc;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-family: "BlockT", sans-serif;
  font-size: 0.85rem;
}

.page .lang-switcher-top button.active {
  background: #d4a017;
  color: #000;
  border-color: #d4a017;
}

.page .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #d4a017;
  text-decoration: none;
}

/* ── Footer ── */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2rem;
  font-family: "BlockT", sans-serif;
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
  justify-self: start;
}

.footer__links {
  justify-self: end;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #d4a017;
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 2px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  line-height: 0;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  opacity: 1;
  border-color: #d4a017;
}

/* ── Cookie Consent Theme Overrides ── */
#cc-main {
  --cc-font-family: "Avenir LT Std", sans-serif;
  --cc-bg: #1e1e1e;
  --cc-primary-color: #ccc;
  --cc-secondary-color: #999;
  --cc-btn-primary-bg: #d4a017;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: #d4a017;
  --cc-btn-primary-hover-bg: #b8890f;
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: #b8890f;
  --cc-btn-secondary-bg: #2a2a2a;
  --cc-btn-secondary-color: #ccc;
  --cc-btn-secondary-border-color: rgba(255, 255, 255, 0.1);
  --cc-btn-secondary-hover-bg: #333;
  --cc-btn-secondary-hover-color: #fff;
  --cc-btn-secondary-hover-border-color: rgba(255, 255, 255, 0.2);
  --cc-separator-border-color: rgba(255, 255, 255, 0.1);
  --cc-toggle-on-bg: #d4a017;
  --cc-toggle-off-bg: #444;
  --cc-toggle-readonly-bg: #666;
  --cc-cookie-category-block-bg: #2a2a2a;
  --cc-cookie-category-block-border: rgba(255, 255, 255, 0.05);
  --cc-overlay-bg: rgba(0, 0, 0, 0.65);
  --cc-link-color: #d4a017;
  --cc-modal-border-radius: 12px;
}

#cc-main,
#cc-main button,
#cc-main .cm__title,
#cc-main .pm__title,
#cc-main .pm__section-title,
#cc-main .cm__desc,
#cc-main .pm__section-desc {
  letter-spacing: 0.04em;
  font-family: "Avenir LT Std", sans-serif;
}

#cc-main .cm__title,
#cc-main .pm__title {
  font-size: 1.5rem !important;
}

#cc-main .cm__desc,
#cc-main .pm__section-desc {
  font-size: 1.15rem !important;
  line-height: 1.55 !important;
}

#cc-main .pm__section-title {
  font-size: 1.15rem !important;
}

#cc-main .cm__btn,
#cc-main .pm__btn {
  letter-spacing: 0.04em !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  padding: 0.7em 1.1em !important;
}


@media (max-width: 1024px) {
  .hero__bottle--center {
    height: 68%;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 500px) {
  .hero__winner-team {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .hero__bottle--center {
    height: 58%;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .footer__copy {
    justify-self: center;
    order: 3;
  }

  .footer__links {
    justify-self: center;
    flex-direction: column;
    gap: 0.5rem;
    order: 1;
  }

  .lang-switcher {
    justify-content: center;
    order: 2;
  }

  .modal-card {
    max-height: calc(100vh - 10vw);
    max-height: calc(100svh - 10vw);
    overflow-y: auto;
  }
}

@media (max-width: 360px) {
  .hero__winner-team {
    font-size: 1.6rem;
  }
}
