/* ======================= Hero Section ======================= */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?q=80&w=1596&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--bg-white);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ======================= Why Choose Us Section =_===================== */
.why-choose-us {
    background-color: var(--bg-light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* ======================= Testimonials Section ======================= */
.testimonial-card {
    background-color: var(--bg-light-gray);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    font-weight: 600;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}


/* ======================= Locations Section ======================= */
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 50px auto; /* Pulls it closer to the title */
    color: #666;
    font-size: 1.1rem;
}

.locations-grid {
    display: grid;
    /* On desktops, we can create an interesting asymmetrical layout */
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px); /* Define row height */
    gap: 25px;
}

/* Make the first card taller */
.locations-grid a:first-child {
    grid-row: span 2; /* This card will span 2 rows */
    height: 100%;
}

.location-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.location-card:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 33, 66, 0.8) 0%, rgba(0,0,0,0) 70%);
    display: flex;
    align-items: flex-end; /* Aligns content to the bottom */
    padding: 25px;
    transition: background 0.3s ease;
}

.location-card:hover .location-overlay {
    background: linear-gradient(to top, rgba(0, 22, 44, 0.9) 0%, rgba(0,0,0,0) 80%);
}

.location-content {
    color: #fff;
    transform: translateY(10px); /* Start slightly lower */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.location-card:hover .location-content {
    transform: translateY(0); /* Slide up on hover */
}

.location-name {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.location-cta {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 5px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease 0.1s; /* Add a slight delay */
}

.location-card:hover .location-cta {
    opacity: 1; /* Revealed on hover */
}

.location-cta i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.location-card:hover .location-cta i {
    transform: translateX(5px);
}

/* Responsive adjustments for the grid */
@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        grid-template-rows: auto;
        height: auto;
    }
    
    /* Reset the tall card for mobile */
    .locations-grid a:first-child {
        grid-row: auto;
    }
    
    .location-card {
        height: 250px; /* Keep a consistent height */
    }

    .location-name {
        font-size: 1.8rem;
    }
}