/* Custom Properties for Luxury Aesthetic */
:root {
  --color-bg-primary: #fafafa;
  /* Soft cream/white */
  --color-bg-secondary: #f3f1ec;
  /* Warmer cream */
  --color-text-primary: #1a1a1a;
  /* Near black for contrast */
  --color-text-secondary: #4a4a4a;
  /* Soft gray */
  --color-accent: #7a1f2d;
  /* Pinot Noir deep red */
  --color-accent-hover: #5d1621;
  --color-border: #e0ded8;

  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Inter", sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

h1,
h2,
h3,
h4,
.serif-text {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--color-text-primary);
  line-height: 1.2;
}

p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 300;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Typography Scale */
h1 {
  font-size: clamp(2rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  margin-bottom: var(--spacing-sm);
  font-weight: 400;
}

.pp a {
    text-decoration: none;
    color: #fff;
}

.varietal-section .btn {
    width: fit-content;
}
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid var(--color-text-primary);
  background: transparent;
  color: var(--color-text-primary);
  transition: all 0.4s ease;
  border-radius: 0;
}

.btn:hover {
  background: var(--color-text-primary);
  color: white;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.btn-primary.dark {
  background-color: var(--color-text-primary);
  color: white;
  border-color: var(--color-text-primary);
}

.btn-primary.dark:hover {
  background-color: transparent;
  color: var(--color-text-primary);
}

.btn-secondary {
  border-color: var(--color-text-primary);
}

.btn-secondary.light {
  border-color: white;
  color: white;
}

.btn-secondary.light:hover {
  background-color: white;
  color: var(--color-text-primary);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 20px;
  /* Horizontal padding moved to container */
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease;
  background-color: #fff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-logo {
  /* font-family: var(--font-serif); */
  /* font-size: 1.5rem; */
  /* font-weight: 500; */
  /* letter-spacing: 0.05em; */
  /* text-transform: uppercase; */
  max-width: 160px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-text-primary);
}

.nav-cta {
  font-weight: 500;
  border-bottom: 1px solid var(--color-text-primary);
  padding-bottom: 2px;
}

/* Sections */
section {
  padding-block: var(--spacing-xl);
  padding-right: 20px;
  padding-left: 20px;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

/* Hero */
.hero {
  /* min-height: 100vh; */
  padding-top: calc(80px + var(--spacing-xl));
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10%;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container  .premium-frame{
  height: 60vh;
}


.hero-image-container .premium-frame img {
    height: 100%;
    display: block;
    width: 100%;
}



.hero-bottle {

  object-fit: cover;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Split Sections (Story & Region) */
.split-section {
  background-color: var(--color-bg-secondary);
}

.split-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.story-content,
.region-content {
  flex: none;
  max-width: 630px;
}

.lifestyle .container {
  display: flex;
  justify-content: center;
}

.story-image,
.region-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.split-section.reverse .story-image,
.split-section.reverse .region-image {
  justify-content: flex-start;
}

.story-image img,
.region-image img {
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 0;
}

.emphasis {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--color-text-primary);
  margin-top: var(--spacing-md);
}

.premium-frame {
  position: relative;
  padding: 1rem;
  background: white;
  border: 1px solid var(--color-border);
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;

}

.premium-frame img {
  height: auto;
  display: block;
  width: 100%;
}

.region-caption {
  position: absolute;
  bottom: -1.5rem;
  left: 2rem;
  background: var(--color-bg-primary);
  padding: 1rem 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* The Wine */
.wine {
  background-color: var(--color-bg-primary);
}

.wine-container {
  /* Standardized by .container in HTML */
}

.wine-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-inline: auto;
}

.appellation {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

.positioning {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-style: italic;
  font-family: var(--font-serif);
}

.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.card {
  background: white;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
}

.card ul {
  list-style: none;
}

.card li {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.card li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.highlight-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-secondary);
  border: none;
  padding-inline: var(--spacing-lg);
}

.pricing-info {
  display: flex;
  flex-direction: column;
}

.msrp {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--color-text-primary);
}

.allocation-badge {
  text-transform: uppercase;
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* Lifestyle */
.lifestyle {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lifestyle-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url("assets/moments-Worth-Bottling-img.png");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.lifestyle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.lifestyle-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: var(--spacing-lg);
}

.lifestyle-content h2,
.lifestyle-content p {
  color: white;
}

.lifestyle-content h2 {
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.lifestyle-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* Varietal Sections Enhancement */
.varietal-section {
  /* Standardized by section base */
}

.shadow-section {
  background-color: var(--color-bg-primary);
  position: relative;
  z-index: 10;
}

.story-image {
  flex: none;
}

/* Section Rhythm Overrides */
#region {
  background-color: var(--color-bg-secondary);
}

#chardonnay {
  background-color: var(--color-bg-primary);
}

#merlot {
  background-color: var(--color-bg-secondary);
}

/* Dark Varietal Layout (Cabernet) */
.dark-varietal {
  background-color: var(--color-accent);
  color: white;
  padding: 0;
  overflow: hidden;
}

.dark-varietal-container {
  display: flex;
  align-items: stretch;
  min-height: 80vh;
}

.dark-varietal-content {
  flex: 1;
  padding: var(--spacing-xl) 5% var(--spacing-xl)
    max(5%, calc(50% - 770px + 5%));
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dark-varietal-content h2,
.dark-varietal-content p {
  color: white;
}

.dark-varietal-image {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  position: relative;
}

.varietal-section .container {
  gap: 80px;
}

.floating-image {
  flex: 1;
  width: 100%;
}

.floating-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

.varietal-details {
  display: flex;
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0 var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-md);
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.detail-value {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* Merlot styles moved to rhythm overrides */

/* Collector Section (Mockup) */
.collector-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.collector-section .container {
  display: flex;
  /* justify-content: flex-end; */
}

/*.collector-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
*/
.collector-bg  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url(assets/Mockup1.png);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
 /*
.collector-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center; 
}*/

.collector-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 2;
}

.collector-content {
  position: relative;
  z-index: 3;
  max-width: 570px;
  color: white;
}

.collector-inner {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.collector-inner h2 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.collector-inner p {
  color: #e0ded8;
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  margin-bottom: var(--spacing-md);
}

.benefit-list {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.benefit-list li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.benefit-list li::before {
  content: "—";
  margin-right: var(--spacing-sm);
  color: var(--color-accent);
}

/* Animation refinement for new sections */
.dark-varietal-image.reveal {
  transform: translateX(50px);
}

.dark-varietal-image.reveal.active {
  transform: translateX(0);
}

/* Featured Varietal (Redesigned Chardonnay) */
.featured-varietal {
  background-color: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

.varietal-center-container {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.region .region-image {
  flex: 0.8;
}

.varietal-visual {
  flex: 1.4;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.varietal-visual img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(1.2);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
  transition: transform 0.6s ease;
}

.varietal-visual:hover img {
  transform: scale(1.25);
}

.varietal-info-card {
  flex: 1;
  background: white;
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  /* box-shadow: 20px 20px 0 rgba(122, 31, 45, 0.1); */
  position: relative;
  z-index: 2;
}

.varietal-narrative p {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.varietal-narrative p:last-child {
  margin-bottom: 0;
}

.varietal-cta {
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-md);
}

/* Footer & Final CTA */
.footer {
  background-color: var(--color-accent);
  color: white;
  text-align: center;
  padding: 80px 20px 20px 20px;
}

.footer-cta h2,
.footer p {
  color: white !important;
}

.footer-cta p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.8;
  /* margin-bottom: var(--spacing-lg); */
}

.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: #e0ded8;
}

.footer-bottom p {
  margin-bottom: 0 !important;
}

.legal {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Animations */
.reveal {
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
}

.js-enabled .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media only screen and (max-width: 1400px) {
  .story-image img,
  .region-image img {
    max-width: 390px;
  }

  .story-content {
    flex: none;
    max-width: 560px;
  }
}

@media only screen and (max-width: 991px) {
  .dark-varietal-container {
    flex-direction: column;
  }

  .dark-varietal-content {
    padding: var(--spacing-lg) 20px;
    order: 2;
  }

  .dark-varietal-image {
    width: 100%;
    height: 50vh;
    order: 1;
  }

  .collector-section {
    justify-content: center;
    padding: 0;
  }

  .collector-content {
    max-width: 100%;
    width: 100%;
  }

  .collector-inner {
    padding: var(--spacing-xl) 20px;
    background: rgba(0, 0, 0, 0.7);
  }

  .varietal-center-container {
    flex-direction: column;
    text-align: center;
  }

  .varietal-visual img {
    max-height: 50vh;
  }

  .varietal-info-card {
    padding: var(--spacing-md);
    /* box-shadow: 10px 10px 0 rgba(122, 31, 45, 0.1); */
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer {
    padding-left: 0;
    padding-right: 0;
  }

  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 2.5rem;
    --spacing-md: 1.5rem;
  }

  .navbar {
    padding: 1rem 0;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
  }

  .navbar {
    padding: 1rem 0;
  }

  .nav-container {
    flex-direction: column;
  }

  .hero .container,
  .split-section .container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .split-section.reverse .container {
    flex-direction: column-reverse;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image-container {
    order: 1;
    width: 100%;
  }

  .hero-bottle {
    max-height: 40vh;
  }

  .region-caption {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: -1.5rem;
    width: 90%;
    margin-inline: auto;
    font-size: clamp(0.875rem, 2vw, 1rem);
    padding: 0.75rem 1rem;
  }

  .highlight-card {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .lifestyle-content {
    padding: 0;
  }
}

@media only screen and (max-width: 768px) {
  section {
    padding-block: var(--spacing-xl);
    padding-right: 0;
    padding-left: 0;
  }

  .lifestyle {
    min-height: 60vh;
  }

  .nav-links {
    display: none;
  }

  .nav-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .navbar {
    padding: 1rem 0;
  }

  .wine-grid {
    grid-template-columns: 1fr;
  }

  .footer-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .pricing-info .msrp {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
  }

  .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  }

  .story .container {
    flex-direction: column-reverse;
  }

  .varietal-details {
    flex-direction: column;
    gap: 1rem;
    border-top: none;
    padding-top: 0;
  }

  .detail-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
  }

  .detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
