/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-red: #A6192E;
    --primary-blue: #003366;
    /* Elegant Blue */
    --white: #ffffff;
    --gray-light: #f9f9f9;
    /* Lighter base gray */
    --text-dark: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
    /* Softer, deeper shadow */
    --whatsapp-green: #25D366;
    --mail-blue: #0072C6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.logo {
    height: 50px;
    width: auto;
    border-radius: 4px;
}

.cta-text {
    font-weight: bold;
    color: var(--white);
    font-size: 1.1rem;
}

/* Hero Section - Gradient Update */
.hero {
    background: linear-gradient(135deg, var(--gray-light) 0%, #e6f0fa 100%);
    /* Subtle blueish gradient */
    padding: 5rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    /* Pill shape */
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(166, 25, 46, 0.3);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #8a1526;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(166, 25, 46, 0.4);
}

/* Main Container */
.container {
    padding: 3rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* Accordion - Card Style Update */
.accordion-item {
    margin-bottom: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    /* Contains children */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background-color: var(--white);
}

.accordion-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.accordion-btn {
    background-color: var(--primary-red);
    color: var(--white);
    cursor: pointer;
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-size: 1.15rem;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.accordion-btn:after {
    content: '\002B';
    color: var(--white);
    font-weight: bold;
    font-size: 1.3rem;
}

.accordion-btn.active:after {
    content: "\2212";
}

.active,
.accordion-btn:hover {
    background-color: #900f22;
}

.panel {
    padding: 0 1.5rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel.open {
    padding-bottom: 1.5rem;
    /* Add padding when open */
    border-top: none;
}

.panel-content {
    padding: 1.5rem 0 0.5rem 0;
}

/* Horizontal Separator */
.separator {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 1.5rem 0;
}

/* Carousel */
.carousel {
    position: relative;
    height: 500px;
    width: 100%;
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 8px;
    background-color: #eee;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.carousel-track-container {
    height: 100%;
    position: relative;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.current-slide {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
    font-size: 1.2rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    transition: background 0.3s;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* Bottom CTA & Slogan */
.bottom-cta-container {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.slogan-container {
    text-align: center;
    margin: 4rem 0;
}

.slogan-container h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    font-weight: 800;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.whatsapp {
    background-color: var(--whatsapp-green);
}

.mail {
    background-color: var(--mail-blue);
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 2rem;
    border-top: 5px solid var(--primary-red);
    /* Accent line */
}

.contact-link {
    display: inline-block;
    color: var(--white);
    margin: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 25px;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.contact-link:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.footer-address {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
}

.footer-credits {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-credits p {
    margin: 0;
    color: var(--white);
}

.footer-credits a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.footer-credits a:hover {
    color: #ffd700; /* Gold/yellow for a nice pop on blue */
    border-bottom-color: #ffd700;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .navbar {
        padding: 0.8rem 5%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .accordion-btn {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .slogan-container h2 {
        font-size: 1.6rem;
    }
}

/* Modal / Lightbox Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 2000;
    /* Sit on top */
    padding-top: 50px;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.9);
    /* Black w/ opacity */
}

/* Zoom Container */
.zoom-container {
    width: 100%;
    height: 100%;
    /* Fill modal */
    overflow: hidden;
    /* Hide overflow when zoomed */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    /* Indicate panable */
}

.zoom-container:active {
    cursor: grabbing;
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;

    transition: transform 0.1s ease-out;
    /* Smooth zoom/pan */
    transform-origin: center center;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
        max-width: 100%;
    }
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2020;
    /* Ensure on top of zoom container */
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Controls */
.prev-modal,
.next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 35px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2020;
    /* Ensure on top */
}

/* Position the "next button" to the right */
.next-modal {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Position the "prev button" to the left */
.prev-modal {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev-modal:hover,
.next-modal:hover {
    background-color: rgba(0, 0, 0, 0.8);
}