/*------------------- Imported Fonts -------------------*/
@font-face {
    font-family: 'Elms-Sans';
    src: url('../../fonts/Elms_Sans/ElmsSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DM_Serif_Display';
    src: url('../../fonts/DM_Serif_Display/DMSerifDisplay-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Carattere';
    src: url('../../fonts/Carattere/Carattere-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tagesschrift';
    src: url('../../fonts/Tagesschrift/Tagesschrift-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*------------------- Main Content -------------------*/
/*----- Keyframe Transitions -----*/
@keyframes slideUp {
    from {
        transform: translateY(200px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html, body {
  overflow-x: hidden;
}

/*---------- Products Section ----------*/
.products-container {
    position: relative;
    background-image: url('assets/DSC09593.jpg');
    background-size: cover;
    background-position: center center;
    transition: background-position 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgb(252, 251, 242);
    overflow: hidden;
    z-index: 0;
    height: 90vh;
}

/* Larger screens: shift image upward to reveal head */
@media (min-width: 1700px) {
    .products-container {
        background-position: center -320px;
    }
}

.products-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 39, 60, 0.9);
    /* Dark blue with 60% opacity */
    z-index: 1;
}

.products-container>* {
    position: relative;
    z-index: 2;
}

/* ----- Welcome Section ----- */
.welcome-container {
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 70px;
}

.welcome-line2 img {
    width: 50%;             /* scale logo nicely */
    height: auto;
    display: block;
}

.welcome-img-divider-wrapper {
    display: flex;              /* enable flexbox */
    flex-direction: column;     /* stack children vertically */
    justify-content: center;    /* center vertically within wrapper */
    align-items: center;        /* center horizontally */
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.welcome-img-divider-wrapper.animate {
    opacity: 1;
    transform: scale(1);
}

/* Divider default state (collapsed) */
.welcome-divider {
    width: 0;                   /* start collapsed */
    height: 2px;
    background-color: rgb(204, 191, 146);
    transition: width 0.8s ease-out; /* smooth horizontal expansion */
}

/* Expanded state when wrapper animates */
.welcome-img-divider-wrapper.animate .welcome-divider {
    width: 30%; /* final width for larger screens */
}

@media (max-width: 768px) {
    .welcome-img-divider-wrapper.animate .welcome-divider {
        width: 75%; /* final width for mobile */
    }

    .welcome-line2 img {
        width: 90%;
    }
}

/*----- Bottle Carousel -----*/
.bottle-carousel {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.bottle-carousel.animate {
    opacity: 1;
    transform: scale(1);
}

.carousel-track {
    display: flex;
    gap: 50px;
    align-items: flex-end; /* 👈 ensures bottoms line up */
    will-change: transform;
}

@media (max-width: 768px) {
    .carousel-track {
        gap: 10px;
    }
}

.bottle-item {
    flex: 0 0 auto;
    width: 180px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* 👈 push image to bottom */
    transition: opacity 0.3s ease;
}

.bottle-item.dimmed {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.bottle-item img {
    width: auto;
    height: 320px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;

}

.bottle-item:hover img {
    transform: scale(1.2);
}

.bottle-item img.bottle-medium {
    height: 295px;
}

.bottle-item img.bottle-small {
    height: 250px;
}

@media (max-width: 768px) {
    .bottle-item img.bottle-large{
        height: 250px;
    }

    .bottle-item img.bottle-medium {
        height: 230px;
    }

    .bottle-item img.bottle-small {
        height: 196px;
    }
}

/*----- Bottle Info Grid -----*/
.bottle-info-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    max-width: 95vw;
    height: 5vh;
    overflow: visible;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin: 20px;
}

.bottle-name {
    font-family: 'Carattere';
    font-size: clamp(2rem, 3vw, 3rem);
    color: rgb(204, 191, 146);
    letter-spacing: 1px;
    margin-top: 50px;
}

.bottle-description {
    font-family: 'Times New Roman', sans-serif;
    
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgb(252, 251, 242);
    letter-spacing: 1px;
}



@media (max-width: 500px) {
    .bottle-info-grid {
        grid-template-columns: 1fr;
        row-gap: 8px;
        max-width: 95vw;
        padding: 20px 10px;
    }

    .bottle-name,
    .bottle-description {
        font-size: clamp(0.1rem, 4vw, 0.7rem);
    }
}

/*---------- Philosophy Section ----------*/
.philosophy-container {
    max-width: 100vw;
    padding: 20px 30px 10px 30px;
}

.text-logo-larg {
    max-width: 600px;
    margin: 0 auto 5rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
}

.text-logo-larg img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*--- Stats Section ---*/
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 5rem auto;
    padding: 0 1rem;
    max-width: 1200px;
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    transition: color 0.3s ease-in-out;
}

.stats-top {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: inline-block;
    transform-origin: center center;
    will-change: transform;
}

/* I like this but we should only add it if the link to something.
.stat:hover {
    color: rgb(204, 191, 146);
}
*/

/* Bottom label: responsive size */
.stats-bottom {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
}


/*--- Philosophy Grid ---*/
.grid-title {
    font-family: 'Times New Roman';
    letter-spacing: 3px;
    color:rgb(25, 93, 105);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

/* Triggered when in view */
.grid-title.animate {
    animation: fadeIn 0.6s ease-out forwards;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Mobile: single column */
@media (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Medium screens: 2 x 2 */
@media (min-width: 768px) and (max-width: 1199px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Wide screens: all 4 next to each other */
@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-item {
    padding: 1.5rem;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
}

/* Animation only applies when .animate is added */
.grid-item.animate {
    animation: slideUp 0.7s ease-out forwards;
}

/* Staggered delays */
.grid-item.animate:nth-child(1) {
    animation-delay: 0s;
}

.grid-item.animate:nth-child(2) {
    animation-delay: 0.2s;
}

.grid-item.animate:nth-child(3) {
    animation-delay: 0.4s;
}

.grid-item.animate:nth-child(4) {
    animation-delay: 0.6s;
}

.grid-icon {
    width: 5rem;
    height: auto;
    display: block;
    margin: 0 auto;
}

.grid-item h3 {
    font-size: 1.5rem;
    text-align: center;
}

.grid-item p {
    font-size: 1.1rem;
    color: rgb(92, 92, 92);
}

.products-text-center {
    margin-top: -10px;
    margin-bottom: 20px;
}

.products-center-line-one {
    font-size: clamp(20px, 6vw, 45px);
    font-family: 'Elms-Sans', sans-serif;
    font-weight: 100;
    letter-spacing: 1px;
}


/*---------- Commendations Section ----------*/
.commendations-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.commendations-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35%;
    min-width: 350px;
    height: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.commendations-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.responsive-img {
    max-width: 100%;
    height: auto;
}

/* Testimonials Grid */
.commendations-testimonials-grid {
    display: flex;
    gap: 60px;
    padding-bottom: 50px;
    justify-content: center;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.testimonial-carousel {
    position: relative;
    width: 100%;
    margin-top: 40px;
}

.testimonial-track {
    display: flex;
    gap: 60px;
    will-change: transform;
    flex-wrap: wrap;
}

/* Base Testimonial Styling */
.testimonial {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 20px;
    border-radius: 8px;
    flex: 0 0 auto;
    width: 300px;
    height: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonial.dimmed {
    opacity: 0.2;
}

.testimonial:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Name Styling */
.testimonial .name {
    display: block;
    margin-top: 15px;
    color: rgb(25, 93, 105);
}

.name {
    text-align: right;
    font-size: 1.5rem;
}

/* Quote block layout */
.quote-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Line with quotes and paragraph */
.quote-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    max-width: 100%;
}

/* Quote icons */
.quote-icon {
    width: 20px;
    height: auto;
    opacity: 0.8;
    align-self: flex-start;
}

/* Bottom quote icon */
.quote-icon.bottom {
    align-self: flex-end;
}

/* Paragraph styling */
.quote-line p {
    margin: 0;
    font-size: 1.1rem;
    color: rgb(92,92,92);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .testimonial {
        width: 90%;
        /* instead of fixed 300px */
        max-width: 300px;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .commendations-section {
        padding: 20px 20px;
        /* reduce side padding */
    }

    .commendations-testimonials-grid {
        gap: 20px;
        /* smaller gap */
    }
}

