
/* 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;
  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);
}

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;
  }
}

:root {
  --headline-font-size: 5.5rem;
  --headline-margin-top: calc(.58 * 5.5rem);
}
article {
  display: flex;
  flex-direction: row;
  column-gap: 0;
  row-gap: var(--content-default-margin);
  flex-wrap: wrap;
  margin-top: 2rem;
}
section.headline {
    display: block;
    margin-top: var(--headline-margin-top);
  margin-inline-start: var(--content-default-margin);
}
section.headline img {
  opacity: 85%;
    border-radius: 17px;
    object-fit: cover;
    object-position: top;
    max-height: calc(5 * var(--headline-font-size));
    width: auto;
    height: 100%;
    float: left;
    margin-inline-end: var(--content-default-margin);
  margin-inline-start: calc(-1 * var(--content-default-margin));
    margin-bottom: calc((1 * var(--content-default-margin)) - (.5 * var(--p-font-size)));
    max-width: calc(67% - var(--content-default-margin))
}
section.headline h1 {
    font-size: var(--headline-font-size);
    line-height: 1;
    margin-block: 0;
    white-space: break-spaces;
    /* clear: both; */
    /* float: right; */
    position: relative;
    left: calc(-1 * (var(--content-default-margin) + .8ch));
    top: calc(-1 * .55em);
}

section.headline p {
  font-size: var(--p-font-size);
  line-height: var(--p-line-height);
  margin-bottom: 1em;
  clear: right;
}
section.headline p:first-of-type {
  margin-inline: 0px;
}
section.headline p:nth-of-type(3) {
  clear: both;
}

section.text {
  margin-inline: var(--content-default-margin);
  flex-basis: 100%;
  clear: both;
}

summary {
  --summary-font-size: 2.75rem;
  margin-block: 1rem;
  font-size: var(--summary-font-size);
  line-height: 1;
    list-style: none;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    padding-left: calc(1.5em + var(--default-gap)); /* Space for icon */
  font-family: "Attila Sans Variable";
  font-variation-settings: "wght" var(--attila-light), "cnst" var(--attila-sharp);
  letter-spacing: 1px;
}
summary::-webkit-details-marker {
    display: none; /* Hides the marker in WebKit browsers */
}
summary::before {
  content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 30 30"><circle cx="15" cy="15" r="14" fill="none" stroke="black" stroke-width="1"/><line x1="15" y1="7" x2="15" y2="23" stroke="black" stroke-width="1"/><line x1="7" y1="15" x2="23" y2="15" stroke="black" stroke-width="1"/></svg>');
    position: absolute;
    left: 0;
    --dimension: calc(.9 * var(--summary-font-size));
    width: var(--dimension);
    height: var(--dimension);
    transition: transform 0.2s ease;
}
details[open] {
  margin-bottom: var(--content-default-margin);
}
details[open] summary {
  margin-bottom: calc(.5 * var(--content-default-margin));
}
details[open] summary::before {
  content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 30 30"><circle cx="15" cy="15" r="14" fill="none" stroke="black" stroke-width="1"/><line x1="7" y1="15" x2="23" y2="15" stroke="black" stroke-width="1"/></svg>');
}

section.text p {
  font-size: var(--p-font-size);
  line-height: var(--p-line-height);
  margin-bottom: 1em;
}
a.btn {
  margin-inline: auto;
  font-size: var(--p-font-size);
}
section.bottles_images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--default-gap);
}
section.bottles_images img {
  width: 100%;
  height: auto;
  border-radius: 17px;
}


@media (max-width:823px) {
  section.headline{
    margin-inline: 0;
  }
  section.headline img {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    float: unset;
  }
  section.headline h1 {
   left:0;
    top: -.3em;
   margin-block-end: 1rem;
  }
}
@media (max-width:767px) {
  a.btn {
    margin-block: var(--content-default-margin) 0;
  }
  section.headline,
  section.text {
    margin-inline: var(--viewport-border);
  }
  section.headline {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--default-gap);
    align-items: left;
  }
  section.headline img {
    max-width: 100%;
    flex-basis: 100%;
  }
  section.headline h1 {
    position: static;
    justify-content: flex-start;
    width: 100%;
  }
  summary {
    padding-left: calc(1em + var(--default-gap));
  }
  summary::before {
    --dimension: calc(.8 * var(--summary-font-size))
  }
  section.bottles_images {
    display: flex;
    flex-direction: column;
    padding-top: var(--content-default-margin);
  }
}

