
/* Base styles for MVA Wine website */
/* This file is rendered as a Django template to support static tags */

.error {
  color: var(--error-color);
}

.banner-container {
}
.banner-container > img,
.banner-container > video {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 804;
  border-radius: 14px;
}

/* Navigation bar */
.top_nav_container {
  width: 100%;
  max-width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: white;
  z-index: 1;
}

.top_nav_container nav {
  width: calc(100% - 2*var(--viewport-border));
  max-width: var(--global-max-width);
  margin-inline: 0;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 3em;
  padding-block: calc(var(--nav-padding-block) + 8px) var(--nav-padding-block);
  padding-inline: var(--main-default-margin);
  transition: background-color var(--transition-speed) ease;
  border-bottom: 1px solid white;
}
.top_nav_container nav.white {
  background-color: white;
  border-bottom: 0;
  transition: background-color .6s ease;
}

nav > ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
}

.top_nav_container nav > ul {
  flex-grow: .3;
  gap: clamp(1.125rem, 2 * var(--scale-factor), 2rem);
}
.top_nav_container nav > ul:first-of-type {
  justify-content: flex-start;
}
.top_nav_container nav > ul:last-of-type {
  justify-content: flex-end;
}

nav.top-nav a.logo {
  flex-grow: 2;
  display: flex;
  justify-content: center;
}

nav.top-nav a.logo img {
  width: auto;
  height: var(--nav-logo-height);
}

nav a {
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
  color: var(--nav-color);
  font-size: var(--nav-font-size);
  line-height: var(--nav-line-height);
  letter-spacing: var(--nav-letter-spacing);
  white-space: nowrap;
  text-transform: lowercase;
  transition: color var(--transition-speed) ease-in-out, text-decoration-color var(--transition-speed) ease-in-out;
}

nav .nav__item--current a {
  font-weight: 400;
}

/* Hide Mobile Navigation by Default */
.mobile-nav {
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  top: 100%;
  right: -12px;
  width: auto;
  background: white;
  padding: 1em;
  list-style: none;
  border: 1px solid black;
  border-radius: 8px;
  gap: 2px;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) linear;
}

/* Hide the Hamburger Button on Desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
  min-width: unset;
  max-width: unset;
}

/* Hamburger Menu Lines */
.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: black;
}

/* Hide the Checkbox */
.mobile-nav-container {
  display: none;
}

#menu-toggle {
    display: none;
}

footer {
  width: 100%;
  padding-inline: var(--main-default-margin);
  padding-block: var(--main-default-margin) 2rem;
}
footer nav > span {
  font-size: var(--footer-font-size);
  line-height: var(--footer-line-height);
}
footer nav > a {
  font-size: var(--footer-font-size);
  line-height: var(--footer-line-height);
  letter-spacing: 0.4px;
  color: var(--nav-color);
  margin-right: 1ch;
}
footer nav > a:visited {
  color: var(--nav-color);
}
footer .footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 0.75rem;
}
footer .footer-social a {
  color: var(--nav-color);
  display: flex;
  align-items: center;
  transition: opacity var(--transition-speed) ease-in-out;
}
footer .footer-social a:hover {
  opacity: 0.7;
}
footer .footer-social svg {
  width: 20px;
  height: 20px;
}

main {
  padding-top: var(--main-padding-top);
  z-index: 0;
}
main.full-viewport {
  padding-top: 0;
  margin-inline: 0;
}

.btn {
  display: flex;
  background: transparent;
  white-space: nowrap;
  width: min-content;
  height: min-content;
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
  color: var(--nav-color);
  border: 2px solid var(--button-border-color);
  padding: .725rem 1rem;
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  letter-spacing: 0.48px;
  cursor: pointer;
  transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

a.btn {
  text-decoration: none;
  -webkit-text-decoration: none;
}

a.btn:hover,
button.btn:hover {
  color: white;
  background: black !important;
  text-decoration: none;
  -webkit-text-decoration: none;
  transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

#mini_cart small {
  padding-left: var(--default-gap);
}

@media (min-width:1200px) {
  body {
    margin-inline: auto;
  }
  footer nav {
    display: flex;
    justify-content: space-between;
  }
}

/* Mobile Styles */
@media (max-width: 1023px) {
/* Adjust navbar for mobile */
  nav.top-nav > ul {
    display: none;
  }
  nav.top-nav a.logo {
    justify-content: left;
    display: flex;
    justify-content: center;
  }
  nav.top-nav a.logo img {
  }
  .navbar {
      justify-content: space-between;
  }

  /* Show Hamburger and Hide Desktop Nav */
  .mobile-nav-container {
    display: flex;
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 1;
  }
  .menu-toggle {
      display: flex;
  }
  .desktop-nav {
      display: none;
  }

  /* Move logo to the left */
  .logo {
      order: 0;
  }

  /* Show Mobile Menu When Checkbox is Checked */
  #menu-toggle:checked ~ .mobile-nav {
    visibility: visible;
    opacity: 100%;
    transition: opacity var(--transition-speed) ease, visibility 0s linear;
  }
}

@media (max-width: 767px) {
  :root {
    --headline-padding-block: calc(clamp(var(--nav-padding-block), 16vw, 100px) - var(--nav-padding-block));
    --nav-font-size: clamp(1.5rem, 1.8vw, 1.875rem);
    --button-font-size: 1.25rem;
    --info-button-font-size: 1.125rem;
  }
  body {
  }
  nav.top-nav {
    border-bottom: none;
    padding-bottom: 1em;
  }
  main {
    padding-inline: 0;
    width: 100%;
    margin-bottom: var(--main-default-margin);
  }
  /* Adjust navbar for mobile */
  nav.top-nav > ul {
    display: none;
  }
  nav.top-nav a.logo {
    justify-content: left;
    display: flex;
    justify-content: center;
  }
  nav.top-nav a.logo img {
  }
  .navbar {
      justify-content: space-between;
  }

  /* Show Hamburger and Hide Desktop Nav */
  .mobile-nav-container {
    display: flex;
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 1;
  }
  .menu-toggle {
      display: flex;
  }
  .desktop-nav {
      display: none;
  }

  /* Move logo to the left */
  .logo {
      order: 0;
  }

  /* Show Mobile Menu When Checkbox is Checked */
  #menu-toggle:checked ~ .mobile-nav {
    visibility: visible;
    opacity: 100%;
    transition: opacity var(--transition-speed) ease, visibility 0s linear;
  }
  footer {
    padding-inline: 0;
    margin-inline: 0;
    padding-block: 2rem 1rem;
  }
  footer ul li:last-of-type {
    padding-block: 2rem 0;
    text-align: left;
    line-height: var(--p-line-height);
  }
  footer nav > span {
    display: block;
    padding-top: 1em;
    line-height: 1;
  }
}

@media (max-width: 375px) {
  footer nav > a {
    margin-right: 4px;
  }
}

#scroll-hint {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
#scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}
@media (max-width: 767px) {
  #scroll-hint {
    display: none;
  }
}
body:has(.modal-form-container.open) #scroll-hint {
  display: none;
}
/* Wine heart — [heart] Loved by X members, above bottle image */
.wine-loved {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8125rem;
  color: black;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 0.75em;
}
.wine-heart {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: transform 0.15s ease;
}
.wine-heart:hover {
  transform: scale(1.2);
}
.wine-heart:active {
  transform: scale(0.95);
}
.wine-heart svg {
  fill: none;
  stroke: black;
  stroke-width: 1.5;
  transition: fill 0.2s, stroke 0.2s;
}
.wine-heart:hover svg {
  stroke: #e53935;
}
.wine-heart.liked svg {
  fill: #e53935;
  stroke: #e53935;
}
.wine-loved-text {
  white-space: nowrap;
}
.col1 .wine-loved {
  font-size: 1rem;
}
.col1 .wine-heart svg {
  width: 26px;
  height: 26px;
}
.wine-loved-text[hidden] {
  display: none;
}
ul.wine li.wine-heart-row {
  text-transform: none;
}

:root {
  --label-font-size: 1.125rem;
  --label-line-height: 1.66;
  --input-font-size: 1.50rem;
  --input-line-height: 1;
  --form-column-gap: clamp(2rem, 5vw, 4.5rem);
  --form-row-gap: 1rem;
  --section-gap: 3rem;
  --input-disabled-color: #fafafa;
}
label {
  --internal-gap: 5px;
  display: flex;
  flex-direction: column;
  gap: var(--internal-gap);
  min-width: 5rem;
  max-width: 380px;
  font-size: var(--label-font-size);
  line-height: var(--label-line-height);
  color: var(--secondary-color);
}
label em {
  line-height: 1;
  margin-top: calc(-1 * var(--internal-gap));
}
input {
  font-family: "Sombra Variable";
  font-weight: 300;
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
  padding: 1rem;
  border: 1px solid #707070;
  outline-color: var(--nav-color);
  width: auto;
  box-sizing: content-box;
  height: var(--input-font-size);
}
select {
    font-family: "Sombra Variable";
    font-weight: 300;
    font-size: var(--input-font-size);
    line-height: var(--input-line-height);
    padding: 1rem;
    border: 1px solid var(--nav-color);
    outline-color: var(--nav-color);
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    background-color: white;
    cursor: pointer;
    border-radius: 0;
    /* Add a custom arrow using a background image */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1em center;
    background-size: 1em;
    padding-right: 3em; /* Ensures space for the arrow */
}
/* When the select is opened */
select:focus,
select:active {
    border-color: var(--nav-color);
    outline: 2px solid var(--nav-color);
}
/* For Firefox to prevent a large padding issue */
select::-moz-focus-inner {
    border: 0;
    padding: 0;
}
/* Remove default arrow in Edge, IE */
select::-ms-expand {
    display: none;
}
input:disabled,
select:disabled {
  color: var(--secondary-color);
  background-color: var(--input-disabled-color);
  cursor: revert;
  opacity: 1;
}
select:not(:has(option;checked)),
select:has(option:checked:not([value])) {
  color: var(--secondary-color);
}
.btn {
  padding: 1rem 2rem;
  min-width: 16rem;
  max-width: fit-content;
  display: flex;
  justify-content: center;
}

@media (max-width: 767px) {
  label {
    max-width: 100%;
  }
}

:root {
  --headline-font-size: 3.5rem;
  --legend-font-size: 1.875rem;
  --legend-margin: 2.5rem;
  --col1-width: 200px;
  --section-gap: 5rem;
}
main {
  width: 100%;
}
article {
  display: grid;
  grid-template-areas:
      "hero hero"
      "tree content";
  grid-template-columns: 23fr 77fr;
  column-gap: var(--content-default-margin);
}
.hero--narrow {
  grid-area: hero;
  font-size: var(--headline-font-size);
  margin-block-end: 2.5rem;
}
.article__content {
  grid-area: content;
}
main fieldset {
  border: 0;
  margin-block-end: var(--section-gap);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--default-gap);
}
main legend {
  font-size: var(--legend-font-size);
  margin-bottom: var(--legend-margin);
}

@media (max-width: 767px) {
  article {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "tree"
      "content";
  }
  .hero--narrow {
    text-align: center;
    margin-block-end: 0;
  }
}

nav.tree {
  position: sticky;
  z-index: 1300;
  margin-inline-start: var(--main-default-margin);
  grid-area: tree;
  background-color: unset;
  backdrop-filter: unset;
  top: calc(var(--nav-height) + 2.5rem + var(--viewport-border));
  align-self: start;
}

.tree__list {
  flex-direction: column;
}

@media (max-width: 767px) {
  nav.tree {
    margin-inline: 0;
    margin-bottom: var(--legend-margin);
    top: var(--nav-height);
    overflow-x: auto;
    overflow-y: hidden;
    margin-block: 0;
    padding-block: var(--legend-margin);
    /* background: white; */
    background: linear-gradient(to bottom, white 0%, white 75%, transparent 100%);
  }

  .tree__list {
    flex-direction: row;
    overflow-x: scroll;
  }
}

:root {
  --section-gap: 2.5rem;
  --headline-font-size: 1.875rem;
}

article.article.no_user {
    grid-template-areas:
        "hero hero"
        "content content";
    padding-inline: var(--main-default-margin);
}

.flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

div.text {
  display: flex;
  flex-direction: column;
  gap: calc(var(--p-font-size) * var(--p-line-height));
}

h2 {
  font-size: 2rem;
}

div.text a {
  font-weight: 400;
}

.form--invite {
  margin-top: var(--section-gap);
}

.invite__invitee {
  display: flex;
  gap: var(--default-gap);
}

main fieldset {
  margin-block-end: 0;
}

.invite__sent section {
  display: flex;
  flex-direction: column;
  gap: var(--default-gap);
}

.invite__sent section li {
  display: flex;
  gap: var(--default-gap);
  font-size: var(--input-font-size);
}

.invite__sent ul,
.invite__sent li {
  list-style: none;
}
.error {
  color: red;
}
.invite__add {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
h3 {
  font-size: 2rem;
  margin-top: var(--headline-padding-block);
}
@media (max-width: 767px) {
  .invite__invitee {
    width: 100%;
  }
  .invite__invitee,
  .invite__sent section li {
    flex-direction: column;
  }
}

