/* ====================== */
/* ====================== */
/* Varialbes for colors and common styles */
/* Varialbes for colors and common styles */
/* Varialbes for colors and common styles */
/* ====================== */
/* ====================== */

:root {
  --primary: #811717; /* Barn Red */
  --secondary: #DAB89A; /* Cork */
  --accent: #B27474; /* Sangria */
  --background: #F2F0F1; /* Cotton */
  --light: #FFF3E6; /* Stone */
  --text: #29160D; /* Burgundy */
  --darkred-gradient: linear-gradient(135deg, #29160D 10%, #811717 90%);
  --secondary-opacity: rgba(218, 184, 154, 0.4);
}

.barn-red {
  color: var(--primary);
}

.cork {
  color: var(--secondary);
}

.sangria {
  color: var(--accent);
}

/* <weight>: Use a value from 400 to 900
<uniquifier>: Use a unique and descriptive class name */

.alegreya-h1 {
  font-family: "Alegreya", serif;
  font-optical-sizing: auto;
  font-style: normal;
}




@font-face {
  font-family: 'Parisian Script';
  src: local('Parisian Script'), local('ParisianScript'),
       url('../assets/fonts/parisianscript-webfont.woff2') format('woff2'),
       url('../assets/fonts/parisianscript-webfont.woff') format('woff'),
       url('../assets/fonts/ParisianScript.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Parisian Script Swash';
  src: local('Parisian Script Swash'), local('ParisianScriptSwash'),
       url('../assets/fonts/parisianscriptswash-webfont.woff2') format('woff2'),
       url('../assets/fonts/parisianscriptswash-webfont.woff') format('woff'),
       url('../assets/fonts/ParisianScriptSwash.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Default site type (system stack). Use .script or .script-swash for decorative text. */
body {
  font-family: Alegreya, 'Alegreya Sans', Georgia, serif;
  color: var(--text);
  background-color: var(--background);
}

/* Utility classes to apply the hosted/script fonts */
.script {
  font-family: 'Parisian Script', "Parisienne", cursive;
  letter-spacing: 0px;
}

.script-swash {
  font-family: 'Parisian Script Swash', 'Parisian Script', "Parisienne", cursive;
}

html {
  scroll-behavior: smooth;
}

/* html, body {
  width: 100%;
  overflow-x: hidden;
} */


.b-red {
  border: 1px solid red;
}

.b-yellow {
  border: 1px solid yellow;
}

.b-blue {
  border: 1px solid blue;
}



/* Reset default margins and paddings */
/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

/* Base body styles */


h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

h1 {
  font-size: 8rem;
  letter-spacing: -6px;
  font-weight: 400;
  line-height:.9;
}



h2 {
    font-size: 6rem;
    letter-spacing: -5px;
    font-weight: 400;
    line-height: 90%;
}

h3 {
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: -5px;
    line-height: 90%;
}

h4 {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: -2px;
}

h5 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
}

h6 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

p {
  font-size: 1.125rem;
  text-wrap: pretty;
}

img {
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary);
  border: 0px;
  border-radius: 100px;
  text-transform: uppercase;
  padding: 10px 20px;
  font-size: 20px;
  letter-spacing: 10%;
  min-width: 200px;
}

.btn-small {
  border: 0px;
  border-radius: 100px;
  text-transform: uppercase;
  padding: 8px 15px;
  font-size: 16px;
  letter-spacing: 5%;
  min-width: 130px;

}

.btn-primary:hover {
  background-color: var(--text) !important;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text);
  border: 0px;
  border-radius: 100px;
  text-transform: uppercase;
  padding: 10px 20px;
  font-size: 20px;
  letter-spacing: 10%;
}

.btn-secondary:hover {
  background-color: var(--accent) !important;
  color: var(--text);
}

.btn-secondary-alt {
  background-color: #fff;
}

.btn-tertiary {
  border-bottom: 1px solid var(--primary);
  border-radius: 0px;
  text-transform: uppercase;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 7%;
  background-color: transparent;
  color: var(--primary);
}

.btn-tertiary:hover {
  border-bottom: 2px solid var(--text);
  color: var(--primary);
}

.btn-tertiary:focus {
  border: none;
}

.btn-icon {
  border: none;
  background-color: transparent;
}

/* ====================== */
/* ====================== */
/* Layout styles: Header, Footer, Grid */
/* Layout styles: Header, Footer, Grid */
/* Layout styles: Header, Footer, Grid */
/* ====================== */
/* ====================== */

.bg-light {
  background-color: var(--background) !important;
}  

.header-nav {
  border-bottom: 1px solid var(--secondary);
  box-shadow: 0 20px 20px -20px rgba(0, 0, 0, .1);

} 

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-item a {
  font-size: 1.2rem;
  margin: auto 10px;
}

.nav-link .bg-danger {
  background-color: var(--secondary) !important;
  color: var(--text);
  font-size: .8rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
}



.hero-text {
  /* Fallback color for older browsers */
  color: var(--text);
}

.hero-text-gradient {
  background: var(--darkred-gradient);
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-clip: text; /* Safari/Chrome */
  background-clip: text; /* standard */
  -webkit-text-fill-color: transparent; /* Safari/Chrome */
  color: transparent;
  position: relative;
  z-index: 4;
}


/* Make the hero container a positioning context and allow visual overflow */
.hero-home {
  overflow: hidden;
  height: 1000px;
  margin-top: 150px;
  width: 100%;
  overflow-x: hidden;

}

/* Decorative script: absolute-centered horizontally, optional vertical centering.
   Use .bleed-right to nudge the centered element to the right while maintaining center base.
*/
.hero-script {
  position: absolute;
  left: 45%;
  top: 600px; 
  transform: translate(-50%, -50%);
  white-space: nowrap;
  display: inline-block;
  min-width: max-content;
  letter-spacing: 0px;
  color: var(--secondary);
  font-size: 12rem; /* very large — scale down on small screens below */
  will-change: transform;
}

/* Nudge while preserving the centered origin */
.hero-script.bleed-right {
  transform: translate(calc(-50% + 8vw), -50%);
}


.hero-bottle-fg {
  position: absolute;
  left: 45%;
  top: 750px;
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: none;
}

.hero-bottle-bg {
  position: absolute;
  left: 60%;
  top: 800px;
  transform: translate(-50%, -50%);
  width: 60vw;
  max-width: 600px;
  /* opacity: 0.25; */
  z-index: -1;
  will-change: transform, opacity;
  pointer-events: none;
}

.eyebrow {
  padding: 10px 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius:100px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05), -4px -4px 4px rgb(255, 255, 255, .7);
  /* margin-bottom: 30px; */
}



/* ====================== */
/* ====================== */
/* PAGE SPECIFIC STYLES */
/* PAGE SPECIFIC STYLES */
/* PAGE SPECIFIC STYLES */
/* ====================== */
/* ====================== */


/*Homepage timed popup styles*/
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important; 
}

.modal-bottom-right {
    margin: 0; 
    position: absolute; 
    bottom: 20px;
    right: 20px; 
    max-width: 350px; 
    width: 90%; 
}

.modal {
    pointer-events: none;
}

.modal-content {
  background-color: var(--secondary-opacity);
  -webkit-backdrop-filter: blur(80px) saturate(150%);
  backdrop-filter: blur(80px) saturate(150%);
  border: 2px solid rgb(255, 255, 255, .35);
  border-radius: 20px;
}

.modal-header {
  align-items: start;
  padding-bottom: 0;
  border-bottom: none;
}

.modal-footer {
  border: none;
  justify-content: center;
}



.featured-wines {
  border-bottom: 1px solid var(--secondary);
  margin-bottom: 100px;
}
.product-container {
  border-top: 1px solid var(--secondary);
}

.product-label {
  display: none;
  background-color: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

#descriptorText a {
  opacity: 1;
  color: var(--primary);
}

#descriptorText a:hover {
  opacity: 1;
  color: var(--primary);
}

#descriptorText {
  /* Set position to relative if you plan to use absolute positioning later, 
     but it's not strictly necessary for display: block */
  position: relative; 
  opacity: .8;
  max-width: 400px;
}

.toggle-link {
  display: block; 
  margin-top: 5px; 
  text-decoration: none; 
  color: #701d19; 
  cursor: pointer;
}

.filter-nav {
  background-color: var(--secondary-opacity);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.3); 
}

.filter-nav .nav-item a {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
}

/*custom sticky menu bars */
.custom-sticky-parent {
  display: flex;
  align-items: flex-start; 
  overflow: visible !important; 
}


/*custom sticky sidebar for homepage About section*/
.custom-sticky-sidebar {
  position: -webkit-sticky; 
  position: sticky;
  top: 200px; 
  margin-top: 100px;
  align-self: start; 
  z-index: 100;
}

/* Slide-in/out behavior for the bottom filter nav */
.mv-filter-hidden {
  transform: translateY(110%); /* completely off the bottom */
  transition: transform 300ms ease-in-out, opacity 200ms ease-in-out;
  opacity: 0;
}
.mv-filter-visible {
  transform: translateY(0%);
  transition: transform 300ms ease-in-out, opacity 200ms ease-in-out;
  opacity: 1;
}

/* Product row show/hide transition */
.product-container {
  border-top: 1px solid var(--secondary);
  transition: height 300ms ease, opacity 250ms ease, transform 300ms ease;
}
.product-hidden {
  opacity: 0;
  transform: translateY(10px);
  height: 0 !important;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-top: 0 none !important;
}




/*newsletter sign up form*/
.newsletter input {
  font: 2em "Alegreya", serif;
  margin-bottom: 0.5em;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  border-radius: 0px;
  background-color: transparent;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
}

.newsletter label {
  color: var(--text);
}



/*Splash page button inactive*/
.inactive {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
    filter: blur(2px);
}

.splash-content {
margin: 170px auto;
}

.int-hero {
  margin: 100px auto 20px;
}

/*Shopping Cart styles*/
.cart-row {
  border-bottom: 1px solid var(--secondary);
}
.cart-row-start {
  border-top: 1px solid var(--secondary);
}

.cart-row p {
  opacity: .8;
  margin: auto;
}

.cart-row-item p {
  margin-bottom: 0;
}

.cart-qty {
  width: 80px;
}

.cart-desc {
  min-width: 190px;
}

.cart-desc p {
  line-height:1;
  font-size:16px;
}

.cart-desc h5 {
  line-height: 1;
}

/*Checkout Styles*/
.existing-user {
  border-radius: 4px;
  padding: 20px;
}

.existing-user h6 {
  margin: auto 0px !important;
}

.neomorph-section {
  /* padding: 30px; */
  /* background-color: #fff; */
  border-radius: 20px;
  box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.03), -6px -6px 6px rgb(255, 255, 255, .5);
}

.neomorph-section p {
  margin-bottom: 5px;
}

.wineclub-ctasection {
  border:1px solid var(--secondary);
}

.wineclub-ctasection h6 {
  margin-bottom: 0;
}

.wineclub-ctasection p {
  font-size:1rem;
}

.checkout-thumb {
  /* max-width: 70%; */
  width: 60px;
}

.checkout-summary {
  top: 100px;
}

.checkout-product-name {
  min-width: 170px;
}

.club-checkbox {
  width:1.4rem;
  height: 1.4rem;
}

.form-control {
  height: 50px;
  border: 0px solid var(--secondary);
  font-size: 20px;
  color: var(--text);
}

.form-control:focus {
  box-shadow: 0 0 0 .25rem var(--secondary-opacity);
  
}

.form-control::placeholder {
  color: var(--text);
}

.form-message {
  height: auto;
}

/*Contact page*/

.contact-map {
  border:2px solid var(--background);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1), -4px -4px 4px rgb(255, 255, 255, .7);
}
.contact-map:hover {
  border:2px solid var(--secondary);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1), -4px -4px 4px rgb(255, 255, 255, .7);
}


/*Club page*/
.table {
  background-color: var(--background);
  --bs-table-bg: var(--background);
}

.table td, th {
  vertical-align: middle;
  text-align: center;
  /* font-size: 1.25rem; */
  /* padding: 20px; */

}

.sticky-column {
    position: sticky;
    left: 0;
    background-color: var(--background); 
    z-index: 10; 
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.8);
    max-width: 150px;
    text-align: start !important;
    line-height: 1.3;
    font-size: 1.2rem;
}

.table thead th {
    position: sticky;
    top: 0; 
    background-color: var(--background); /* Must match the sticky-column background */
    z-index: 5; 
    font-size: 1.5rem;
    min-width: 125px;
    line-height: 1;
    font-weight:500;
    padding: 20px 0;
}

.table tr, .table td{
  border-color: #fff;
  padding: 30px 10px;
  max-width: 160px;

}

.club-icon {
  height: 60px;
  margin-bottom: 10px;
}


.table thead th.sticky-column {
    z-index: 15; 
}

/*Card styles for membership plans*/
.card {
  background-color: var(--background);
  border: 1px solid var(--background);
  border-radius: 30px;
}

.card:hover {
  border: 1px solid var(--secondary);
  box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.03), -6px -6px 6px rgb(255, 255, 255, .5);
}

.card-title {
  font-weight: 500;
  line-height: 1.2;
}

.card-img-top {
  width: 250px;
  margin: 10px auto;
} 

.event-date {
  background-color: var(--background);
  display: inline-block;
  padding: 10px 20px 0;
  border-radius: 10px;
  position: absolute;
  top: 20px;
  left: 20px;
}

.event-date h6 {
  margin-bottom: -10px;
}

.event-card {
  padding: 0;
  border: 1px solid var(--secondary);

}

.event-card:hover {
  border: 1px solid var(--accent);
  box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.08), -6px -6px 6px rgb(255, 255, 255, 1);
}

.card-img-event {
  border-radius: 20px 20px 5px 5px;
  margin: 5px;
}

.scroll-hide::-webkit-scrollbar {
  display: none; 
}

.scroll-hide {
  -ms-overflow-style: none;  
  scrollbar-width: none;   
}

.horiz-scroll-btn {
  background-color: var(--background);
  border: 1px solid var(--background);
  height: 100%;
}

.horiz-scroll-btn:hover {
  background-color: #00000005;
  border: 1px solid var(--background);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1), -4px -4px 4px rgb(255, 255, 255, .7);
  } 

/* Change modal backdrop color */
.modal-backdrop.show {
  background-color: var(--background); 

}





/* ====================== */
/* ====================== */
/* RESPONSIVE STYLES START HERE */
/* RESPONSIVE STYLES START HERE */
/* RESPONSIVE STYLES START HERE */
/* ====================== */
/* ====================== */


/*fix overflow issues*/
@media (max-width: 1400px) {
  html {
  width: 100%;
  overflow-x: hidden;
}
}



/* Responsive: scale script down and remove heavy transforms on small screens */
@media (max-width: 991px) {



  .nav-item a {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -5px;
    line-height: 90%;
  }
}

/* Responsive: scale script down and remove heavy transforms on small screens */
@media (max-width: 767px) {


  /*font size adjustements*/
  h1 {
    font-size: 7rem;
  }
  
  h2 {
    font-size: 4rem;
  }
  
  h3 {
    font-size: 3.5rem;
    letter-spacing: -4px;
  }

  h4 {
    font-size: 2.75rem;
  }




  .hero-home {
    margin-top: 100px;
  }

  .hero-script {
    position: static; /* flow with the document for small viewports */
    transform: none;
    font-size: 4.5rem;
    margin-top: 3.25rem;
    display: none;
  }

  .hero-bottle-bg {
    display: none;
  }
  
  .hero-home {
    overflow: visible;
    text-align: center;
  }
  /*custom sticky sidebar for homepage About section*/
  .custom-sticky-sidebar {
    position: relative;
    top:0;
    margin: 50px auto;
  }

  .custom-sticky-sidebar h2, .custom-sticky-sidebar h5, .custom-sticky-sidebar p, .custom-sticky-sidebar a, .btn-tertiary {
    text-align: center;
    margin: 0 auto;
  }

  /*on homepage align center featured wines text*/
  .product-container h3, 
  .product-container h4, 
  .product-container h5, 
  .product-container h6, 
  .product-container p, 
  .product-container button, 
  .eyebrow {
    text-align: center;
    margin: 0 auto;
  }


  /*checkout page styles*/
  .existing-user button{
    margin: 0;
  }

  .neomorph-section {
  padding: 20px;
  }

  /*Club page table adjustments*/
  .sticky-column {
    max-width: 100px;
    font-size: 1rem;
  }

  /*Club page events section*/
  .horiz-scroll-btn {
    display: none;
  }

  
}

/* ===========================
   Minimal mobile overflow fixes
   =========================== */

html, body, *, *::before, *::after {
    box-sizing: border-box;
}

.navbar.fixed-top,
.navbar.fixed-top .container,
.navbar.fixed-top .container-fluid {
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

/* Targeted small-screen adjustments*/
@media (max-width: 991.98px) {

    .hero-home {
        overflow: hidden;
    }

    .hero-bottle-fg,
    .hero-bottle-bg,
    .hero-script {
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .hero-bottle-bg {
        width: 60vw;
        max-width: 420px;
    }

    .hero-script {
        white-space: normal;
        text-align: center;
        margin: 1rem auto;
        display: none;
    }

    .carousel, .carousel .carousel-inner, .carousel .carousel-item {
        width: 100%;
        overflow: hidden;
    }

    #filterNav, .filter-nav {
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .sticky-md-top, .sticky-top, .custom-sticky-sidebar {
        position: static !important;
        width: 100% !important;
        left: auto !important;
        right: auto !important;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

        .row > [class*="col-"] {
            padding-left: 8px;
            padding-right: 8px;
        }

    input, select, textarea, .form-control {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile-friendly modal adjustments for timedPopupModal */
@media (max-width: 575.98px) {
    .modal-bottom-right,
    #timedPopupModal .modal-dialog {
        margin: 0 12px 12px 12px; /* small gap to edges */
        width: auto;
        max-width: calc(100% - 24px);
        pointer-events: auto;
    }

    #timedPopupModal .modal-content {
        max-height: 80vh; 
        overflow: hidden; 
        border-radius: 14px;
    }

    #timedPopupModal .modal-body {
        max-height: calc(80vh - 140px); 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 16px;
    }

    /* Reduce header/footer paddings and title sizing on small screens */
    #timedPopupModal .modal-header {
        padding: 10px 12px 6px 12px;
    }

    #timedPopupModal .modal-footer {
        padding: 8px 12px 12px 12px;
    }

    #timedPopupModal .modal-title {
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.15;
    }

    /* Shrink the image and vertical spacing */
    #timedPopupModal .modal-body img {
        max-width: 160px;
        width: 35%;
        height: auto;
        display: block;
        margin: 8px auto;
    }

    #timedPopupModal .modal-body h5 {
        font-size: 1rem;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    #timedPopupModal .modal-body h6 {
        font-size: 0.9rem;
        margin: 6px 0;
    }

    #timedPopupModal .modal-body p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    #timedPopupModal .modal-footer .btn {
        padding: 8px 14px;
        font-size: 0.95rem;
        min-width: 120px;
    }

    .modal-backdrop {
        position: fixed;
    }
}

