@font-face {
    font-family: 'BeaufortExtended';
    src: url('path/to/BeaufortExtended.woff2') format('woff2'),
        url('path/to/BeaufortExtended.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --wine-color: #722F37;
    --wine-color-dark: #4A1E23;
    --wine-color-light: #A64D57;
}

body {
    font-family: "ExodusDemo", Times, serif;
    line-height: 1.6;
    color: #333;
}

.navbar {
    transition: background-color 0.3s ease;
    background-color: #3C0000;
    padding: 1rem 0;
}

.navbar-nav {
    gap: 1.5rem;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #FFD700 !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--wine-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.display-5 {
    font-size: 2.5rem;
}

.fs-5 {
    font-size: 1.1rem !important;
}

#ordenar {
    box-shadow: 0px 5px 60px 5px rgba(168,124,13,1);
}

#hero {
    background-image: url(../img/fondo1.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
   /* height: 100vh; */
    position: relative;
    padding-top: 80px; 
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero img {
    max-width: 250px;
    width: 100%;
}

#hero p {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(168,124,13,1);
}

#hero h2 {
    text-shadow: 2px 2px 4px rgba(168,124,13,1);
}

#hero button {
    font-size: 1.2rem;
    padding: 12px 36px;
    transition: all 0.3s ease;
}

#hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
    visibility: hidden;
}

.text-wine {
    text-shadow: 0px 15px 60px 5px rgba(168,124,13,1);
}

.wine-image {
    max-width: 60%;
    transition: transform 0.5s ease, box-shadow 0.5s ease;  
    box-shadow: 0px 15px 60px 5px rgba(168,124,13,1);
    max-width: 60%;
}

.wine-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.darker-bg {
    background: linear-gradient(135deg, var(--wine-color), var(--wine-color-dark));
    color: #f5f5f5;
}

.btn-primary {
    background-color: var(--wine-color);
    border-color: var(--wine-color);
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--wine-color-dark);
    border-color: var(--wine-color-dark);
    box-shadow: 0 0 0 0.2rem rgba(114, 47, 55, 0.5);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.info-card,
.form-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover,
.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-card a,
.form-card a {
    transition: color 0.3s ease;
}

.info-card a:hover,
.form-card a:hover {
    color: var(--wine-color-light) !important;
}

footer {
    left: 0;
    bottom: 0;
    width: 100%;
}

@media (max-width: 991px) {
    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.25rem 0.5rem !important;
    }

    #our-wine .row, 
    #about .row {
        text-align: center; /* Center text on smaller screens */
    }
    
    .wine-image,
    .about-image {
        max-width: 75%; /* Adjust image size for smaller screens */
    }

}

@media (max-width: 767px) {
    #hero h1 {
        font-size: 1.8rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .fs-5 {
        font-size: 1rem !important;
    }

    #our-wine .text-lg-start, #about .text-lg-start {
        text-align: center !important;
    }

    #our-wine img, #about img {
        max-width: 90%; /* Ensure good scaling for smaller devices */
    }
}

@media (min-width: 768px) {

    .info-card,
    .form-card {
        height: 100%;
    }
}

@media (max-width: 576px) {
    #our-wine .row,
    #about .row {
        flex-direction: column-reverse;
    }
    
    .wine-image-small,
    .about-image-large {
        max-width: 100%; 
    }
}

.animate__animated.animate__fadeIn,
.animate__animated.animate__fadeInLeft,
.animate__animated.animate__fadeInRight,
.animate__animated.animate__fadeInUp,
.animate__animated.animate__fadeInDown {
    visibility: visible;
}

.animate__fadeIn,
.animate__fadeInLeft,
.animate__fadeInRight,
.animate__fadeInUp,
.animate__fadeInDown {
    animation-duration: 1.5s;
}

.animate__fadeInLeft,
.animate__fadeInRight {
    animation-duration: 1.5s;
}

#about,
#our-wine {
    margin-top: 2rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

#about img,
#our-wine img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

#our-wine img:hover, #about img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-image {
    max-width: 90%;
}

#about,
#our-wine,
#contact {
    overflow: hidden;
}

#our-wine row {
    text-align: left;
}

#about row {
    text-align: right;
}

#contact {
    background: #F2D58C
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

html {
    scroll-behavior: smooth;
}

footer {
    background-color: var(--wine-color-dark);
    color: #f5f5f5;
}

footer p {
    margin-bottom: 0;
}

.info-card i {
    transition: transform 0.3s ease;
}

.info-card a:hover i {
    transform: scale(1.2);
}

.info-card h5 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.info-card ul {
    padding-left: 0.5rem;
}

.form-label {
    color: #f5f5f5;
}

textarea.form-control {
    resize: vertical;
}

#about,
#our-wine,
#contact {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

h2,
h3,
h4 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(114, 47, 55, 0.5);
}

* {
    transition: all 0.3s ease;
}

div.MuiBox-root mui-style-1grb82u {display:none;}
.mui-style-105l7v {min-height:auto;}
