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

@font-face {
  font-family: 'Cinema';
  src: url('../fonts/cinema sunday demo font.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Variables via root for reuse */
:root {
  --pink: #D46688;
  --yellow: #F7DA0B;
  --light-yellow: #FFF6CF;
  --light-pink: #FBDDE9;
  --font-serif: 'Cinema', serif;
  --font-display: 'PlayFair Display', serif;
  --font-body: 'PlayFair Display', serif;
}

/* Common Text Styles */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--pink);
}

p {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: #333;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 15px;
  background-color: var(--pink);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

header .logo {
  text-decoration: none;
  font-size: 1.7em;
  color: #fff;
  font-family: var(--font-serif);
}

/* Navbar */
.navbar {
  justify-self: end;
}

.nav-list {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  list-style: none;
}

.nav-list li a {
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3em;
  padding: 15px;
  transition: color 0.3s ease;
}

.nav-list li:nth-of-type(odd) a:hover {
  color: #85002b;
}
.nav-list li:nth-of-type(even) a:hover {
  color: var(--yellow);
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

.nav-list.active {
  display: grid; /* Changed to grid layout */
  grid-template-rows: repeat(auto-fill, minmax(50px, 1fr)); /* Creates rows for the menu items */
  position: absolute;
  top: 68.5px;
  right: 0;
  background: var(--pink);
  width: 100%;
  text-align: center;
}

/* Promo Section */
section.promo {
  display: block;
  padding: 2rem;
  margin-top: 50px;
  background: var(--light-pink) url("../img/elements-banner3.svg") center/cover no-repeat;
  text-align: center;
}

.promo-banner {
  padding: 5rem 2rem;
  text-align: center;
  color: white;
}

.promo-content{
  padding: 5em;
}
.promo-content h1 {
  font-size: 3em;
  color: #000;
  text-shadow: 3px 3px 4px rgb(0 0 0 / 32%);
}

.pink-text { color: var(--pink); }
.yellow-text { color: var(--yellow); }

.shop-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #d0275da3;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.shop-button:hover {
  background-color: #f387a9a6;
  transform: scale(1.05);
}

.shop-button:active {
  background-color: #bc2d5b;
  transform: scale(1);
}

.banner img {
  width: 100%;
  height: auto;
}

/* About Section */
.about {
  padding: 2rem;
  background-color: #fff;
  text-align: center;
}

.about-inner {
  max-width: 70ch;
  margin: 0 auto;
}

.about h2 {
  font-size: 2rem;
  padding-top: 1rem;
}

.about p {
  padding-top: 2rem;
}

/* Valdemar & Our Story */
section.valdemar-legacy,
section.our-story {
  display: block;
  padding: 2rem;
}

section.valdemar-legacy {
  background: var(--light-yellow) url("../img/elements-banner.svg") center/cover no-repeat;
}

section.our-story {
  background-color: #fff;
}

.desc {
  max-width: 100%;
  padding: 2rem;
}

.desc h2 {
  font-size: 2.5rem;
  padding-top: 1rem;
  color: #ccb300;
}

.our-story h2 {
  color: var(--pink);
}

.desc p {
  padding-top: 2em;
}

/* Image Hover */
.image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: grid;
  flex-direction: column;
}

.image figcaption {
  position: relative;
  z-index: 2; /* Ensure it's above both images */
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  width: 100%;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.image .visible { opacity: 1; }
.image .invisible { opacity: 0; }
.image:hover .visible { opacity: 0; }
.image:hover .invisible { opacity: 1; }

.image figcaption a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.image figcaption a:hover {
  color: #85002b;
}


/* Wine Sections */
.wine-r,
.wine-b {
  display: block;
  gap: 2rem;
  padding: 2rem;
  text-align: center;
}

.rose { background-color: var(--light-pink); }
.blanco { background-color: var(--light-yellow); }

.wine-details {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #333;
}

.wine-details h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.wine-details p {
  padding-top: 2rem;
}

.wine-r h2 { color: var(--pink); }
.wine-b h2 { color: #e8cc00; }

.wine-image {
  display: grid;
  justify-items: center; /* Centering the content */
  align-items: center;  /* Centering vertically */
  gap: 1rem; /* Optional, adjusts spacing between images */
  height: 100%;
}

.wine-image img {
  max-height: 400px;
  width: auto;
  transition: transform 0.3s ease;
}

.wine-image:hover,
.wine-image img:hover {
  transform: scale(1.1);
}

/* Pairings */
.pairings {
  padding: 2rem;
  background-color: #fff;
}

.pairings h3 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--pink);
}

.pairing-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.pairing-tags span {
  display: block;
  padding: 0.6rem 0.8rem;
  background-color: var(--light-pink);
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.pairing-tags span:hover {
  background-color: var(--light-yellow);
}

/* Gallery */
.gallery {
  background-color: #fff;
  padding: 2rem;
  font-family: var(--font-serif);
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--pink);
}

.gallery-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.471);
}

.gallery-item img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.gallery-item img:hover {
  opacity: 1;
}

/* Footer */
#copyright p {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--pink);
  text-align: center;
  padding: 2rem;
}