@import url("https://use.typekit.net/hjo5ncq.css");

@font-face {
  font-family: 'passion-sans';
  src: url('../fonts/passion-sans.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}



/* constant definitions */
:root {
    --passion-sans: 'passion-sans', sans-serif;
    --omnes-font: 'omnes-pro', sans-serif;
    --omnes-font-weight: 500;
    --omnes-font-style: normal;
    --tan:#f9f5e8;
    --orange: #d9933f;
    --navy: #142a30;
    --font-size-p: 1.5vw;
    --font-size-h1: 4vw;
    --font-size-h2: 3vw;
    --font-size-h3: 1.8vw;
    --font-size-h4: 1.5vw;
}




/* html and body elements edits */
html, body {
  margin: 0;
  padding: 0;
}
body{
    background-color:var(--tan)
}
.site-header {
    position: relative;
    width: 100%;
}

.header-img {
    width: 100%;
    object-fit: cover;
}

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    text-align: center;
}


/* general*/
p{
    text-indent: 1rem;
    margin: 5% 0;
    font-size: var(--font-size-p);
    line-height: 150%;
    font-family: var(--omnes-font);
    font-weight: var(--omnes-font-weight);
    font-style: var(--omnes-font-style);

}
.section-content p{
    font-size: var(--font-size-p);
}
.section-header{
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    text-align: center;
}
.section-content{
    margin: 3% 10%;
    display: flex;
    flex-direction: row;
    gap: 5%;
}
.banner-img{
    width: 100%;
    object-fit:cover;
    position: relative;
    bottom: 0; 
    z-index: 0;
}
.small-img{
    width: 35%;
    height: auto;
    object-fit:cover;
}
h1{
    font-size: var(--font-size-h1);
    font-family: var(--passion-sans);
    letter-spacing: .03em;
    margin-bottom: 0;
    font-weight: normal;
    color:black;
}
.mobile-break{
    display:none;
}

h2{
    font-size: var(--font-size-h2);
    
}
h3{
    font-size: var(--font-size-h3);
    font-family: var(--omnes-font);
    font-weight: var(--omnes-font-weight);
    font-style: var(--omnes-font-style);
    letter-spacing: 0.05em;
    margin-top: 0;
}
h4{
    font-size: var(--font-size-h4);
    font-family: var(--passion-sans);
}
.section-content p{
    margin: 0;
}
.section-information{
    margin: 2vw 0;
}
.section-header h3{
    font-weight: 600;
}

/* section type 1 (left img overlapping img below, paragraph on right*/
.section-type-1 .small-img{
    border: .3rem solid var(--tan) ;
    position: relative;
    z-index: 2;
    margin-bottom: -4rem;
}



/* section type 2 (small img left, text right, banner beneath. no overlap) */
.section-type-2 p{
    text-indent: 0rem;
}
.section-type-2 .section-content{
    margin-bottom: 5%;
}
.section-type-2 .banner-wrapper{
    position: relative;
    background-color: white;
}
.section-type-2 p.navy-p{
    text-indent: 0rem;
    background-color: var(--navy);
    color: white;
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    width: 30%;
    border-radius: 0 0 0 5rem;
    padding: 4%;
    padding-top: 2%;
}

/* section 3 (purchase whisky) */

.section-type-3{
    background-color: #ffffff;
    padding-bottom: 2%;
}

.purchase-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 2% 10%;
    justify-content: center;
    gap: 2%;
}

.purchase-bottle {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    
}

.purchase-bottle img{
    display: block;
    width: 85%;
    height: auto;
    transition: transform 0.4s ease;
    padding: 2%;
    margin: 0 auto;
    /* added shadow for dynamics */
    filter: drop-shadow(0.6vw 0.5vw 0.8vw rgba(0, 0, 0, 0.4));


}
.purchase-bottle:hover img {
    transform: scale(.95);
}

.info-overlay {
    box-sizing: border-box;
    padding: 0 1rem;
    position: absolute;
    inset: 0;      
    width: 100%;
    cursor: pointer;
    background: #f9f5e8ed;
    color: #000000;
    border: var(--orange) solid 0.3rem;
    border-radius: 2rem 0 0 4rem;
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    align-items: start;
    opacity: 0;
    transition: opacity 0.4s ease,
                width 0.4s ease 0.4s,
                height 0.4s ease 0.4s, 
                top 0.4s ease 0.4s; 
    text-align: left;
    height: 100%; 
    overflow: hidden;
}


.info-overlay:hover {
    opacity: 1;
    transition: opacity .6s ease;
    width: 110%;
    height:105%
}
.info-overlay h4, .info-overlay h3, .info-overlay p{
    margin: 5% 0;
}
.info-overlay h3 {
    grid-row: 1;
    margin-top: 30%;
    font-family: var(--passion-sans);
}
.info-overlay p{
    text-indent: 0px;
    grid-row: 2;
    overflow-y: auto;
}
.info-overlay a {
    align-self: end; 
    margin-bottom: 1rem;
    grid-row: 3;
    color: var(--orange);
    text-decoration: none;
    text-align: left;
}
.info-overlay a h3{
    text-decoration: underline transparent;
    transition: text-decoration-color 0.2s ease;
}
.info-overlay a h3:hover{
    text-decoration-color: var(--orange);
}
h1 + h1{
    margin-top: 0;
}

.banner-wrapper picture,
.banner-img {
    display: block;
}

/* logo at top */
.logo-header{
    display: flex;
    justify-content: center;
}
.logo-header img{
    width: 20%;
    margin: 2%;
}

/* Parallax container: fixed-height area on desktop where image scrolls inside */
.parallax-container {
    /* larger view window on desktop */
    --parallax-height: 40rem;
    height: var(--parallax-height);
    position: relative;
    overflow: hidden;
}



/* Default banner-img behavior (keeps compatibility) */
.banner-img {
    display: block;
}

/* Desktop: make image absolutely positioned, horizontally centered and taller so vertical translation reveals more */
@media (min-width: 768px) {
    .parallax-container .banner-img {
        position: absolute;
        left: 50%;
        top: 50%;
        width: auto;
        min-width: 100%;    
        width: 100%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        will-change: transform;
        z-index: 0;
        max-width: none;
    }
}


/* Mobile: keep image in normal flow so container is content-driven and no JS transforms */
@media (max-width: 767px) {
    .parallax-container {
        height: auto;
        overflow: visible;
    }
    .parallax-container .banner-img {
        position: relative;
        transform: none !important;
        min-height: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-width: 0 !important;
    }
}
@media (max-width: 1024px) and (min-width: 768px) {
    .parallax-container {
        height: 25rem;
        /* or whatever looks right */
    }
}

footer.wafooter {
    text-align: center;
    background-color: var(--tan-background);
    margin: 0;
    font-family: var();
}

footer.wafooter p {
    font-size: clamp(.75rem, .75vw, 1.5rem);
    margin: 0;
    padding: 1.5%;
}

footer.wafooter a {
    text-decoration: none;
    color: black;
}

footer.wafooter a:hover {
    text-decoration: underline;
}