/* Color and Typography Variables */
:root {
  /* Colors */
  --logotype-gray: #82817e;
  --white: #ffffff;
  --lightest-gray: #d2d0c8;
  --light-gray: #939598;
  --mid-gray: #45413d;
  --dark-gray: #222222;
  --rich-black: #231f20;
  --red: #900;

  /* Typography */
  --font-primary: "Avenir", "Montserrat", Helvetica, Arial, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 500;
  --font-weight-medium: 600;
  --font-weight-heavy: 800;

  /* Font Sizes */
  /*  --font-size-small: 0.875rem; /* 14px */
  /*  --font-size-base: 1rem; /* 16px */
  /*  --font-size-medium: 1.125rem; /* 18px */
  /*  --font-size-large: 1.5rem; /* 24px */
  /*  --font-size-xlarge: 2rem; /* 32px */
  /*  --font-size-xxlarge: 2.5rem; /* 40px */
  /*  --font-size-xxxlarge: 3.75rem; 60px


  /* Min viewport: 768px, Max viewport: 1920px */
  /* Formula: clamp(min-size, preferred-viewport-based-size, max-size) */

  --font-size-small: clamp(
    0.75rem,
    0.7rem + 0.25vw,
    0.875rem
  ); /* 12px to 14px */
  --font-size-base: clamp(0.875rem, 0.8rem + 0.33vw, 1rem); /* 14px to 16px */
  --font-size-medium: clamp(1rem, 0.9rem + 0.43vw, 1.125rem); /* 16px to 18px */
  --font-size-large: clamp(1.25rem, 1.1rem + 0.65vw, 1.5rem); /* 20px to 24px */
  --font-size-xlarge: clamp(1.5rem, 1.3rem + 0.87vw, 2rem); /* 24px to 32px */
  --font-size-xxlarge: clamp(2rem, 1.7rem + 1.3vw, 2.5rem); /* 32px to 40px */
  --font-size-xxxlarge: clamp(
    2.5rem,
    2rem + 2.17vw,
    3.75rem
  ); /* 40px to 60px */
}

/* Font Face Declarations */
@font-face {
  font-family: "Avenir";
  src: url("/assets/fonts/AvenirNextProLight/font.woff2") format("woff2"),
    url("/assets/fonts/AvenirNextProLight/font.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("/assets/fonts/AvenirNextProRegular/font.woff2") format("woff2"),
    url("/assets/fonts/AvenirNextProRegular/font.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("/assets/fonts/AvenirNextProMedium/font.woff2") format("woff2"),
    url("/assets/fonts/AvenirNextProMedium/font.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("/assets/fonts/AvenirNextProHeavy/font.woff2") format("woff2"),
    url("/assets/fonts/AvenirNextProHeavy/font.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-base);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--rich-black);
  background-color: var(--white);
  background-color: var(--rich-black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-heavy);
  line-height: 1.2;
}

/* Global Header */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(69, 65, 61, 1);
  color: var(--light-gray);
  padding: 10px;
  z-index: 1000;
  transition: background-color 0.3s ease-in-out;
}

.global-header.receded {
  background-color: rgba(69, 65, 61, 0);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Added for absolute positioning of nav */
}

/* Logo styling */
.logo-link {
  display: block;
  /* Logo always stays at full opacity */
  z-index: 2; /* Ensure logo stays above other elements */
}

.logomark {
  display: block;
  height: 50px;
  width: 50px;
}

/* Navigation */
.main-nav {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  transform: translateY(0);
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 3em;
  justify-content: center;
}

.main-nav a {
  color: var(--light-gray);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--lightest-gray);
}

/* Make the entire navigation fade out when header is receded */
.global-header.receded .main-nav {
  opacity: 0;
  transform: translateY(-1em);
}

/* But fade it back in on hover */
.global-header.receded:hover .main-nav {
  opacity: 1;
  transform: translateY(0);
}

/* Main Content */
.main-content {
  background-color: var(--rich-black);
  flex: 1;
  padding: 70px 0 0; /* Top padding to account for fixed header */
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}

.main-content h1 {
  font-weight: var(--font-weight-heavy);
  font-size: var(--font-size-xlarge);
  color: var(--mid-gray);
  margin-bottom: 1rem;
}

.main-content h2 {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-large);
  color: var(--mid-gray);
  margin-bottom: 1rem;
}

.main-content p {
  font-weight: var(--font-weight-light);
  margin-bottom: 1rem;
}

.home-hero {
  color: var(--white);
  min-height: 100vh;
}

.home-hero h2 {
  color: var(--white);
  font-weight: var(--font-weight-light);
  font-size: 30px;
  letter-spacing: 0.05em;
  margin-block: 2em 0.5em;
}

/* Hero section layout */
.home-hero {
  position: relative;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  padding: 0 8% 0;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  z-index: 1;
}

/* Logo and headline positioning */
.home-hero h2,
.home-hero #logo {
  position: relative;
  z-index: 2;
  width: 75%;
  width: 65%;
  max-width: 800px;
}

.home-hero h2 {
  margin-block: 3em 2.25em;
}

.bottle-mask-container {
  position: absolute;
  top: auto;
  /* left: 30%; */
  right: 10%;
  width: auto;
  height: 100%;
  /* margin: 2rem 0 0; Add margin above/below */
  /* justify-content: center; Center horizontally */
}

.about-blocks {
  background-color: var(--white);
}

/* .about-blocks .block {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
} */

.about-blocks img {
  aspect-ratio: 0.7825;
  display: block;
  height: auto;
  max-width: 100%;
}

.about-blocks p {
  color: var(--rich-black);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-xlarge);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-wrap: balance;
}

.about-blocks .intro,
.about-blocks .outro {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-blocks .intro .text,
.about-blocks .outro .text {
  align-self: center;
  padding: 0 10% 0 15%;
}

.about-blocks .anim-section {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.about-blocks .anim-section .text {
  /* align-self: center; */
  padding: 0 10% 0 15%;
}

/* .about-blocks .anim-section .double-image .text {
  grid-row: 1 / 2;
} */

.about-blocks .intro p,
.about-blocks .outro p,
.anim-section .text p {
  margin-block: 1em;
}

.about-blocks .img-2up {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .about-blocks .intro,
  .about-blocks .outro,
  .about-blocks .anim-section,
  .about-blocks .img-2up {
    grid-template-columns: 1fr;
  }

  .about-blocks .intro .image {
    order: 2;
  }
  .about-blocks .intro .text,
  .about-blocks .outro .text {
    order: 1;
    padding: 0 2rem;
  }
}

.fixed-text-container p {
  color: var(--rich-black);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-xlarge);
  letter-spacing: 0.05em;
  margin-block: 1em;
  text-decoration: none;
  text-wrap: balance;
}

/* Animation section base styles */
.anim-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* Text column in animation sections */
.anim-section .text {
  grid-column: 1 / 2;
  padding: 0 10% 0 15%;
  z-index: 10;
  opacity: 1; /* ADDED to make text visible */
}

/* Image column in animation sections */
.anim-section .image {
  grid-column: 2 / 3;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
}

.anim-section .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* First animation section special handling */
.anim-section:first-of-type {
  grid-template-rows: repeat(auto-fit, 100vh);
}

.anim-section:first-of-type .text {
  grid-row: 1 / 2; /* Place in first row */
  align-self: center;
}

.anim-section:first-of-type .image {
  align-self: start; /* Align to top of cell */
}

.anim-section:first-of-type .image:nth-child(2) {
  grid-row: 1 / 2;
}

.anim-section:first-of-type .image:nth-child(3) {
  grid-row: 2 / 3;
}

.anim-section:first-of-type .image:nth-child(4) {
  grid-row: 3 / 4;
}

/* Double-image section special handling */
.anim-section.double-image {
  grid-template-rows: repeat(2, 100vh);
}

.anim-section.double-image .text {
  grid-row: 1 / 2;
  align-self: center;
}

.anim-section.double-image .image:nth-child(2) {
  grid-row: 1 / 2;
}

.anim-section.double-image .image:nth-child(3) {
  grid-row: 2 / 3;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .anim-section,
  .anim-section:first-of-type,
  .anim-section.double-image {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0 0;
  }

  .anim-section .text,
  .anim-section:first-of-type .text,
  .anim-section.double-image .text {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: relative !important; /* Force relative positioning */
    top: 0 !important;
    transform: none !important;
    /* padding: 2rem; */
    padding: 0 2rem;
  }

  .anim-section .image,
  .anim-section:first-of-type .image,
  .anim-section.double-image .image {
    grid-column: 1 / 2;
    height: auto;
    min-height: 50vh;
  }

  .anim-section:first-of-type .image:nth-child(2) {
    grid-row: 2 / 3;
  }

  .anim-section:first-of-type .image:nth-child(3) {
    grid-row: 3 / 4;
  }

  .anim-section:first-of-type .image:nth-child(4) {
    grid-row: 4 / 5;
  }

  .anim-section.double-image .image:nth-child(2) {
    grid-row: 2 / 3;
  }

  .anim-section.double-image .image:nth-child(3) {
    grid-row: 3 / 4;
  }
}

/* Mobile adjustments for animation sections */
@media (max-width: 768px) {
  /* Show original text containers on mobile */
  .anim-section .text {
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    transform: none !important;
    z-index: auto;
  }

  /* Hide fixed containers on mobile */
  .fixed-text-container {
    display: none !important;
  }

  /* Ensure proper spacing and height for mobile sections */
  .anim-section {
    min-height: auto !important;
    padding: 2rem 0;
  }

  /* Make sure paragraphs in animation sections are visible */
  .anim-section .text p {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    margin-bottom: 1em;
  }

  /* Adjust image handling for better mobile experience */
  .anim-section .image {
    height: auto !important;
    min-height: 50vh;
  }
}

/* Fade effects */
.text p {
  opacity: 1; /* Default state - JavaScript will handle the specific animations */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.intro .text,
.outro .text,
.img-sections .text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animation for text elements - MODIFIED to not hide all text by default */
.text {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Ensure animation section text paragraphs are visible */
.anim-section .text p {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.text.fade-in-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Animation sections */
.anim-sections {
  position: relative;
}

/* Style stack-text elements */
.stack-text {
  margin-bottom: 2rem; /* Space between stacked items */
}

/* Style paragraphs within stack-text */
.stack-text p {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--rich-black);
  letter-spacing: 0.05em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

/* Fix for mobile */
@media (max-width: 768px) {
  .text-stack {
    width: 100% !important;
    padding: 0 10% !important;
  }
}

.bottle-mask {
  height: 100%; /* Full height */
  width: auto; /* Width adjusts automatically to maintain aspect ratio */
  max-height: 100%;
}

/* Slideshow styles */
.slideshow-image {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.slideshow-image.active {
  opacity: 1;
}

#slide-cont {
  position: relative;
  width: 100%;
  height: 100%;
}

.scroll-demo {
  height: 1500px;
  /* margin-top: 20px; */
  background-color: var(--lightest-gray);
  padding: 20px;
}

/* Products */
.product-intro,
.product {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-intro .image {
  position: relative;
}

.product-intro h1 {
  color: var(--white);
  font-size: var(--font-size-xxlarge);
  font-weight: var(--font-weight-medium);
  /* height: 100%; */
  padding: 0 10% 0 20%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
}

html.js-enabled .product-intro.anim-text h1.appear {
  transform: translateY(-50%);
}

.product .image {
  background-color: var(--lightest-gray);
}

.product-intro .text {
  align-self: center;
  padding: 0 15% 0 15%;
}

.product {
  background-color: var(--lightest-gray);
}

.product .text {
  align-self: flex-start;
  background-color: var(--lightest-gray);
  padding: 0 15% 0 15%;
  position: relative;
}

.product .section-header {
  color: var(--rich-black);
  font-size: var(--font-size-xxxlarge);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  margin-block: 2em 0.5em;
}

.product .section-header span {
  display: block;
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
}

.product .section-subhead {
  color: var(--rich-black);
  font-size: var(--font-size-xlarge);
  font-weight: var(--font-weight-medium);
  margin-block: 0 0.75em;
  text-wrap: balance;
}

.product p {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-light);
  line-height: 1.25;
  margin-block: 0.75em;
  position: relative;
  z-index: 110;
}

.product .expression,
.product .expression.appear {
  color: var(--white);
  display: block;
  font-size: 23em;
  font-weight: var(--font-weight-medium);
  line-height: 1;
  margin: 0;
  opacity: 0.3 !important;
  position: absolute;
  right: 0;
  top: 60%;
  /* transform: translateY(-20%); */
  z-index: 100;
}

.product .btn {
  color: var(--rich-black);
  display: inline-block;
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-light);
  line-height: 1.25;
  margin-block: 2em 0.75em;
  text-decoration: none;
}

.product-intro ul,
.product ul {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-light);
}
.product-intro li,
.product li {
  margin-block: 1em;
}

.product-intro strong,
.product strong {
  font-weight: var(--font-weight-medium);
}

.product-revellion-declassified .text {
  order: 2;
}
.product-revellion-declassified .image {
  order: 1;
}

@media (max-width: 768px) {
  .product-intro,
  .product {
    grid-template-columns: 1fr;
    /* padding: 5%; */
  }

  .product-intro .text {
    padding: 0 10%;
  }

  .product .text {
    padding: 0 15% 10% 15%;
  }

  .product .expression,
  .product .expression.appear {
    font-size: 12em;
    font-weight: var(--font-weight-medium);
    line-height: 1;
    margin: 0;
    opacity: 0.2;
  }

  .product-revellion-declassified .text {
    order: 1;
  }
  .product-revellion-declassified .image {
    order: 2;
  }
}

/* General Pages */

.page-one-up {
  background-color: var(--lightest-gray);
  align-items: start;
  display: flex;
  /* flex-direction: column; */
  min-height: 40vh;
  justify-content: center;
}

.page-one-up .text {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 3rem auto;
  padding: 0 10% 0;
  text-align: center;
}

.page-one-up p {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-light);
  line-height: 1.25;
  margin-block: 0.75em;
}

.page-one-up .section-head {
  color: var(--rich-black);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xxxlarge);
  letter-spacing: 0.0125em;
  line-height: 1.125;
  margin: 1em auto 0.5em;
  /* max-width: 40ch; */
}

.page-one-up a,
.page-one-up a:visited {
  color: var(--dark-gray);
  font-weight: var(--font-weight-medium);
}

.page-one-up a:hover,
.page-one-up a:active {
  color: var(--rich-black);
  text-decoration: none;
}

.cocktail-intro {
  background-color: var(--lightest-gray);
  align-items: start;
  display: flex;
  /* flex-direction: column; */
  /* min-height: 40vh; */
  justify-content: center;
}

.cocktail-intro .text {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 3rem auto;
  padding: 0 10% 0;
  text-align: center;
}

.cocktail-intro p {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-light);
  line-height: 1.25;
  margin-block: 0.75em;
}

.cocktail-intro .section-head {
  color: var(--rich-black);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xxxlarge);
  letter-spacing: 0.0125em;
  line-height: 1.125;
  margin: 1em auto 0.5em;
  /* max-width: 40ch; */
}

.cocktail-intro a,
.cocktail-intro a:visited {
  color: var(--dark-gray);
  font-weight: var(--font-weight-medium);
}

.cocktail-intro a:hover,
.cocktail-intro a:active {
  color: var(--rich-black);
  text-decoration: none;
}

.cocktail-index-block {
  background-color: var(--lightest-gray);
  margin: 0 auto;
  /* padding-block: 0 3rem; */
  padding: 0 5% 4rem;
}

.cocktail-index-block ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1%;
  list-style-type: none;
  margin: 0 auto;
  max-width: 1200px;
  /* justify-content: space-between; */
  justify-content: center;
  justify-content: flex-start;
}

.cocktail-index-block li {
  position: relative;
}
.cocktail-index-block a {
  display: block;
  text-decoration: none;
}

.cocktail-index-block img {
  display: block;
  max-width: 100%;
  /* transition: opacity 0.3s ease; */
}

.cocktail-index-block h2 {
  align-items: center;
  background-color: #231f20aa;
  bottom: 0;
  color: var(--white);
  display: flex;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-xlarge);
  justify-content: center;
  letter-spacing: 0.0125em;
  left: 0;
  line-height: 1.25;
  margin: 0;
  opacity: 0;
  padding: 0 10%;
  position: absolute;
  right: 0;
  text-align: center;
  text-decoration: none;
  top: 0;
  transition: opacity 0.3s ease;
  /* transform: translateY(-50%); */
  width: 100%;
}

.cocktail-index-block li.active img,
.cocktail-index-block li.active a img,
.cocktail-index-block li a:focus img,
.cocktail-index-block li a:hover img {
  opacity: 0.7;
}
.cocktail-index-block li.active h2,
.cocktail-index-block li.active a h2,
.cocktail-index-block li a:focus h2,
.cocktail-index-block li a:hover h2 {
  opacity: 1;
}

@media (max-width: 768px) {
  .cocktail-intro .text {
    margin: 1rem auto 1.5rem;
    padding: 0 5% 0;
    text-align: center;
  }
  .cocktail-index-block {
    padding-block: 0 0;
  }

  .cocktail-index-block ul {
    display: block;
    /* gap: 2rem; */
    /* grid-template-columns: 1fr; */
  }
  .cocktail-index-block li {
    display: block;
    padding-block: 0 1rem;
  }

  .cocktail-index-block h2 {
    background-color: transparent;
    bottom: unset;
    color: var(--rich-black);
    display: block;
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-xlarge);
    letter-spacing: 0.0125em;
    left: unset;
    opacity: 2;
    padding: 0.5em 0 1em;
    position: relative;
    right: unset;
    text-align: center;
    text-decoration: none;
    top: unset;
    transition: opacity 0.3s ease;
    /* transform: translateY(-50%); */
    width: 100%;
  }
}

.cocktail-recipe-block {
  background-color: var(--lightest-gray);
  background-color: var(--white);
  padding: 3% 5%;
}

.cocktail-recipe-block .card {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1200px;
}

.cocktail-recipe-block img {
  display: block;
  max-width: 100%;
  /* transition: opacity 0.3s ease; */
}

.cocktail-recipe-block .text {
  align-self: flex-start;
  /* background-color: var(--lightest-gray); */
  padding: 0 10% 0 10%;
  position: relative;
}

.cocktail-recipe-block .section-head {
  color: var(--rich-black);
  font-size: var(--font-size-xlarge);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  margin-block: 1.5em;
}

.cocktail-recipe-block .section-header {
  display: block;
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  margin-block: 0.5em 0;
}

.cocktail-recipe-block p {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-light);
  line-height: 1.25;
  margin-block: 0.2em 1.5em;
  position: relative;
}

.cocktail-recipe-block .tips {
  font-size: var(--font-size-medium);
}

.cocktail-recipe-block ul {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-light);
  list-style-type: none;
  margin-block: 0.25em;
}
.cocktail-recipe-block li {
  margin-block: 0;
}

.cocktail-recipe-block strong {
  font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
  .cocktail-recipe-block {
    grid-template-columns: 1fr;
    padding: 5%;
  }
  .cocktail-recipe-block .card {
    grid-template-columns: 1fr;
  }

  .cocktail-recipe-block .text {
    align-self: flex-start;
    /* background-color: var(--lightest-gray); */
    padding: 0 10% 0 10%;
    padding: 0%;
  }
}

.locations {
  gap: 2rem 3rem;
  max-width: 1400px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* justify-content: space-between; */
  justify-content: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.locations .location {
  /* margin-bottom: 20px; */
  font-size: var(--font-size-medium);
  /* width: 220px; */
  text-align: center;
}

.locations .retailer {
  font-size: var(--font-size-large);
  font-weight: var(--font-weight-medium);
}

/* CTA Block */
.cta-block {
  background-color: var(--rich-black);
  color: var(--lightest-gray);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* min-height: 100vh; */
}

.cta-block .text {
  align-items: center;
  display: flex;
  flex-direction: column;
  /* margin: 7.5% auto; */
  margin: 2rem auto 3rem;
  padding: 0 10% 0;
  text-align: center;
}

.cta-block .section-head {
  color: var(--white);
  font-weight: var(--font-weight-light);
  /* font-size: 30px; */
  font-size: var(--font-size-xlarge);
  letter-spacing: 0.05em;
  margin: 1.5em auto 1em;
  max-width: 40ch;

  /* margin-block: 3em 2.25em; */
  /* margin: 3em auto 2.25em; */
  /* margin-block: 2em 0.5em; */
}

.cta-block .btn-group {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 4em;
}

.cta-block .btn {
  background-color: var(--rich-black);
  background-color: var(--mid-gray);
  display: inline-block;
  /* border-color: var(--lightest-gray);
  border-width: 3px; */
  border: 2px solid transparent;
  /* border-radius: 50%; */
  border-radius: 20%/50%;
  border-radius: 2em/2em;
  color: var(--lightest-gray);
  font-size: var(--font-size-medium);
  /* font-size: var(--font-size-large); */
  font-weight: var(--font-weight-medium);
  /* height: 2em; */
  line-height: 1;
  letter-spacing: 0.025em;
  padding: 1em 1.5em 0.85em 1.5em;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-block .btn:hover,
.cta-block .btn:active {
  background-color: var(--mid-gray);
  background-color: var(--rich-black);
  border: 2px solid var(--lightest-gray);
  color: var(--white);
}

@media (max-width: 480px) {
  .cta-block .btn-group {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2em;
  }
  .cta-block .btn {
    display: block;
    font-size: var(--font-size-large);
    width: 220px;
  }
}
/* Global Footer */
.global-footer {
  background-color: var(--mid-gray);
  color: var(--light-gray);
  padding: 3rem 8%;
  width: 100%;
}

.footer-content {
  gap: 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  /* margin-bottom: 20px; */
  min-width: 150px;
}

.footer-section .info {
  color: var(--light-gray);
  color: var(--lightest-gray);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
}

.footer-section .enjoy {
  color: var(--lightest-gray);
  font-size: var(--font-size-medium);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}
/* 
.footer-section h3 {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-medium);
  color: var(--light-gray);
  margin-bottom: 0.8rem;
} */

.footer-section p {
  /* font-weight: var(--font-weight-light);
  font-size: var(--font-size-small); */
  /* color: var(--light-gray); */
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.footer-section a {
  color: var(--light-gray);
  text-decoration: none;
}

.legal {
  font-size: var(--font-size-small);
  text-align: center;
  letter-spacing: 0.05em;
  margin-top: 1em;
  padding-top: 1em;
  color: var(--light-gray);
  font-weight: var(--font-weight-light);
  font-size: var(--font-size-small);
  text-transform: uppercase;
}

/* block element animations */

/* Add a class that will be removed with JS */
html.js-enabled .anim-text p,
html.js-enabled .anim-text h1,
html.js-enabled .anim-text h2,
html.js-enabled .anim-text h3,
html.js-enabled .anim-text h4,
html.js-enabled .anim-text h5,
html.js-enabled .anim-text h6,
html.js-enabled .anim-text li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 0.8s ease;
}

html.js-enabled .anim-text p.appear,
html.js-enabled .anim-text h1.appear,
html.js-enabled .anim-text h2.appear,
html.js-enabled .anim-text h3.appear,
html.js-enabled .anim-text h4.appear,
html.js-enabled .anim-text h5.appear,
html.js-enabled .anim-text h6.appear,
html.js-enabled .anim-text li.appear {
  opacity: 1;
  transform: translateY(0);
}

/* If JS is disabled, respect "prefers-reduced-motion" */
@media (prefers-reduced-motion: reduce) {
  html.js-enabled .anim-text p,
  html.js-enabled .anim-text h1,
  html.js-enabled .anim-text h2,
  html.js-enabled .anim-text h3,
  html.js-enabled .anim-text h4,
  html.js-enabled .anim-text h5,
  html.js-enabled .anim-text h6,
  html.js-enabled .anim-text li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.fade-in-delayed {
  opacity: 0;
  animation: fadeInWithDelay 1s ease forwards;
}

@keyframes fadeInWithDelay {
  0% {
    opacity: 0;
  }
  /* Pause at opacity 0 for 1 second (50% of total 2s duration) */
  50% {
    opacity: 0;
  }
  /* Then fade in to full opacity by the end */
  100% {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Hero section layout for small screens */
  .home-hero {
    padding: 0 5%; /* Adjust padding for small screens */
    min-height: auto; /* Allow hero to expand based on content */
  }

  /* Logo and headline take full width on small screens */
  .home-hero h2,
  .home-hero #logo {
    width: 100%; /* Full width on mobile */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero h2 {
    margin-block: 2em 0.5em; /* Adjust spacing */
    font-size: 24px; /* Slightly smaller font */
  }

  #logo {
    width: 90%; /* Make logo slightly smaller */
    margin: 0 auto; /* Center it */
  }

  /* Reposition bottle mask container for vertical stacking */
  .bottle-mask-container {
    position: relative; /* Change from absolute to relative */
    top: auto;
    left: 30%;
    right: auto;
    width: 80%; /* Full width */
    height: auto;
    margin: 2rem 0 0; /* Add margin above/below */
    justify-content: center; /* Center horizontally */
  }

  .bottle-mask {
    height: auto;
    width: auto; /* Width adjusts automatically */
    max-width: 80%; /* Prevent from getting too wide */
  }
}

/* Even smaller screens - additional adjustments */
@media (max-width: 480px) {
  .home-hero h2 {
    font-size: 20px; /* Even smaller font on very small screens */
  }

  .bottle-mask-container {
    /* height: 60vh; Smaller height on very small screens */
    height: auto;
  }

  /* Adjust navigation for small screens */
  .main-nav ul {
    gap: 1.5em; /* Reduce gaps between nav items */
  }

  .main-nav a {
    font-size: var(--font-size-medium);
    font-weight: var(--font-weight-regular);
  }
}

/* Base styles for menu toggle - hidden by default */
.menu-toggle {
  display: none;
}

/* Mobile styles */
@media (max-width: 600px) {
  /* Menu toggle button styling */
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 3px;
    background-color: var(--light-gray);
    transition: transform 0.3s ease;
    margin: 14px 0;
  }

  .hamburger:before,
  .hamburger:after {
    content: "";
    position: absolute;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--light-gray);
    transition: transform 0.3s ease;
  }

  .hamburger:before {
    top: -10px;
  }

  .hamburger:after {
    top: 10px;
  }

  /* Animation for active state */
  .menu-toggle.active .hamburger {
    background-color: transparent;
  }

  .menu-toggle.active .hamburger:before {
    transform: translateY(10px) rotate(45deg);
  }

  .menu-toggle.active .hamburger:after {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* Navigation hiding */
  .main-nav ul {
    display: none;
  }

  /* Open menu styling */
  .main-nav.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
  }

  .main-nav.open ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--rich-black);
    margin: 0;
    padding: 80px 0 40px;
    gap: 2em;
    align-items: center;
    justify-content: center;
  }

  .main-nav.open a {
    color: var(--white);
    /* font-size: 24px; */
    padding: 0.5em 0;

    font-size: var(--font-size-xlarge);
    font-weight: var(--font-weight-regular);
  }
}
/* Prevent scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}
