body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    box-shadow: 0px 0px 36px -13px rgba(133, 133, 133, 0.6);
    padding: 0 5%;
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for better keyboard navigation */
.card:focus {
    outline: 2px solid #722f37;
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: 2px solid #722f37;
    outline-offset: 2px;
}

.nav-link:focus {
    background-color: rgba(114, 47, 55, 0.1);
    border-radius: 4px;
}

/* Main resets */
#main-content {
    padding-top: 2rem;
}

.nav-item a.nav-link {
    font-size: 1.1875em; /* 19px if 16px base */
    transition: font-size 0.2s ease;
}

.nav-item a.nav-link:hover {
    color: #fff;
}

header {
    background-color: #333;
}

.navbar-brand img {
    max-width: 200px;
}
.nav-item {
    text-align: center;
}

/* Custom */
img.rounded-circle {
    border: 6px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

img.rounded-circle:hover {
    transform: scale(1.03);
}

.image-lift {
    margin-top: -62px;
    max-width: 100%;
    width: 100%;
}

.icon-wine {
    color: #6e0e14; /* vin roșu închis, elegant */
}

.section-title {
    text-align: center;
    font-weight: 600;
}

.paragraph-text-indent {
    text-indent: 2em;
    text-align: justify;
}

.paragraph-text {
    text-align: justify;
}

.banner {
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 20%,
        transparent 80%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

.banner img {
    width: 100%;
    height: auto;
}
.banner-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
}
.banner-text .banner-text-button {
    margin-top: 25px;
    padding: 15px;
    background-color: #512626;
    border: none;
    border-radius: 0.333em;
    color: white;
    text-transform: uppercase;
}
.banner-text .banner-text-button:hover {
    background-color: #503131;
}

.banner-text .h4 {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 2rem);
}

.banner-text .h2 {
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 3rem);
}

.scroll-down-btn {
    display: none;
}

.scroll-down-btn:hover {
    background-color: #722727;
}

.section-bg {
    background-color: #ececec;
    box-shadow:
        0 -4px 8px -6px rgba(0, 0, 0, 0.1),
        0 4px 8px -6px rgba(0, 0, 0, 0.1);
    border-radius: 0.233em;
}
.services-boxes .card {
    border: 2px solid #e8e8e8;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.services-boxes .card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 16px rgba(190, 190, 190, 0.3);
}

.hasImages {
    position: relative;
}
.services-boxes .hasImages::after {
    content: "\f030"; /* codul pentru fa-camera din Font Awesome */
    font-family: "Font Awesome 6 Free"; /* sau "Font Awesome 5 Free" dacă folosești FA5 */
    font-weight: 900; /* pentru varianta solid */
    font-size: 1.2rem;
    color: #722f37; /* alege culoarea dorită */

    position: absolute;
    top: 8px; /* distanță de sus */
    right: 15px; /* distanță de dreapta */
}

/* Carousel overwrites */
.carousel-control-next-icon,
.carousel-control-prev-icon {
    background-color: #dedede;
}

footer {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    border-radius: 0 0 0.233em 0.233em;
    box-shadow: 0 -4px 8px -4px rgba(0, 0, 0, 0.1);
}
footer .fab {
    transition: transform 0.2s ease;
}

footer .fab:hover {
    transform: scale(1.2);
}

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #511c1c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition:
        bottom 0.3s ease,
        opacity 0.3s ease;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop.footer-visible {
    bottom: 80px;
}

@media (max-width: 767px) {
    body {
        padding: 0 1%;
    }

    .image-container {
        padding-bottom: 25px;
    }

    .image-lift {
        margin-top: 0;
        max-width: 200px;
        width: 100%;
    }

    .scroll-down-btn {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #512626;
        color: white;
        border: none;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: bounce 2.5s infinite ease-in-out;
        z-index: 2;
    }
}

/* Modal mai mare pe desktop */
@media (min-width: 1200px) {
    .modal-dialog.modal-lg {
        max-width: 1000px; /* implicit ~800px, îl facem mai lat */
    }
}

/* Modal puțin mai mare pe iPad Pro */
@media (min-width: 992px) and (max-width: 1199px) {
    .modal-dialog.modal-lg {
        max-width: 900px; /* între md și lg */
    }
}

/* Animations */
@keyframes bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(12px);
    }
}
