/* Your Custom Styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F4EF;
    color: #1A234E;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Cormorant Garamond', serif;
}

.bg-primary-custom { background-color: #1A234E; }
.text-secondary-custom { color: #F8F4EF; }
.bg-secondary-custom { background-color: #F8F4EF; }
.text-primary-custom { color: #1A234E; }
.bg-accent-custom { background-color: #A38558; }
.text-accent-custom { color: #A38558; }

.btn-accent {
    background-color: #A38558;
    color: #1A234E;
    border-color: #A38558;
    border-radius: 50px;
    padding: 10px 30px;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: #1A234E;
    color: #F8F4EF;
    border-color: #1A234E;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #A38558;
    outline: 2px solid #A38558;
    outline-offset: 2px;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.card-img-top {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}
        
/* WhatsApp Popup Styles */
#whatsapp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 50;
}

#whatsapp-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#whatsapp-popup-container {
    position: relative;
    max-width: 32rem;
    width: 100%;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1rem 1.5rem;
    overflow: hidden;
}

.close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 9999px;
    padding: 0.5rem;
    transition: background-color 0.3s ease;
    z-index: 10;
    border: none;
    cursor: pointer;
}
.close-button:hover {
    background-color: rgba(0, 0, 0, 0.75);
}
.close-button-icon {
    height: 1rem;
    width: 1rem;
}
.close-button-text {
    font-size: 0.75rem;
    font-weight: 500;
    display: none;
}
@media (min-width: 640px) {
    .close-button-text {
        display: inline;
    }
}

.whatsapp-image-link {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.whatsapp-image-link:hover {
    transform: scale(1.01);
}
.whatsapp-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 80vh;
}

.popup-title {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}
@media (min-width: 768px) {
    .popup-title {
        font-size: 1.5rem;
    }
}
.popup-subtitle {
    text-align: center;
    color: #4b5563;
    margin-top: 0.25rem;
}

/* Mobile Image Carousel Styles */
.hero-image-carousel.d-block.d-md-none {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    position: relative !important;
    overflow: hidden !important;
}

.carousel-slide {
    visibility: hidden;
    opacity: 0;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transition: visibility 0s 0.5s, opacity 0.5s ease;
}

.carousel-slide.active {
    visibility: visible;
    opacity: 1;
    position: relative !important;
    transition: visibility 0s, opacity 0.5s ease;
}

.carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.carousel-slide .position-absolute {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Specific fix for smaller screens to adjust the text's vertical position */
@media (max-width: 576px) {
    .carousel-slide .position-absolute {
        top: 60% !important;
        transform: translate(-50%, -60%) !important;
    }
}

/* Desktop: Show Video, Hide Carousel */
@media (min-width: 768px) {
    .hero-video-container {
        display: block;
    }
    .hero-image-carousel {
        display: none;
    }
}

.logo-icon {
    width: 32px;
    height: 32px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
