/* Additions for the static version of the site (loaded after style.css) */

/* ---- hero carousel (home page) ---- */
.hero .carousel-item {
    height: 620px;
    background-size: cover;
    background-position: center;
}
.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 20, 40, .78) 0%, rgba(8, 20, 40, .35) 60%, rgba(8, 20, 40, .1) 100%);
}
.hero .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.hero .hero-content h1 {
    font-size: 54px;
    line-height: 1.15;
    max-width: 720px;
}
.hero .hero-content p {
    font-size: 19px;
    max-width: 560px;
}
.hero .carousel-indicators { z-index: 3; }
.hero .carousel-control-prev,
.hero .carousel-control-next { z-index: 3; width: 6%; }

/* ---- card images: keep a uniform height whatever the photo ratio ---- */
.trend-item1 .trend-image img { width: 100%; height: 280px; object-fit: cover; }
.trend-item .trend-image img { width: 100%; height: 240px; object-fit: cover; }
.trend-item2 a { display: block; height: 100%; min-height: 220px; background-size: cover; background-position: center; }
.trend-item .trend-content h3 { font-size: 22px; }

/* ---- feature cards ---- */
.feature-card .feature-icon {
    width: 64px; height: 64px; line-height: 64px; margin: 0 auto;
    border-radius: 50%; background: #029e9d; color: #fff; font-size: 26px;
}

/* ---- call to action band ---- */
.cta-band {
    background: linear-gradient(120deg, #029e9d, #017a79);
    padding: 60px 0;
}

/* ---- gallery grid + lightbox ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.gallery-grid .gallery-link {
    position: relative; display: block; overflow: hidden; border-radius: 12px;
    aspect-ratio: 4 / 3; background: #e9eef3;
}
.gallery-grid .gallery-link img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}
.gallery-grid .gallery-link:hover img { transform: scale(1.06); }
.gallery-grid .gallery-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
    color: #fff; font-weight: 600; font-size: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
    opacity: 0; transition: opacity .3s ease;
}
.gallery-grid .gallery-link:hover .gallery-caption,
.gallery-grid .gallery-link:focus .gallery-caption { opacity: 1; }

.gx {
    position: fixed; inset: 0; z-index: 10000; display: none;
    background: rgba(0, 0, 0, .92); align-items: center; justify-content: center; flex-direction: column;
}
.gx.open { display: flex; }
.gx img { max-width: 92vw; max-height: 80vh; border-radius: 6px; }
.gx .gx-cap { color: #fff; margin-top: 12px; font-size: 16px; }
.gx button {
    position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0;
    width: 46px; height: 46px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer;
}
.gx button:hover { background: rgba(255, 255, 255, .3); }
.gx .gx-close { top: 18px; right: 18px; }
.gx .gx-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gx .gx-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---- forms / misc ---- */
.nir-btn-black { background: #17233e; color: #fff; display: inline-block; padding: 14px 24px; border-radius: 10px; border: 0; }
.nir-btn-black:hover { color: #fff; background: #029e9d; }
.book-form .nir-btn-black { display: block; }
.contact-quick { background: #f4f8fb; }
.footer-logo { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 10px; }
.footer-logo img { display: block; }
.footer-about a:hover { color: #fdc703 !important; }

@media (max-width: 991px) {
    .hero .carousel-item { height: 520px; }
    .hero .hero-content h1 { font-size: 40px; }
}
@media (max-width: 575px) {
    .hero .carousel-item { height: 480px; }
    .hero .hero-content h1 { font-size: 32px; }
    .hero .hero-content p { font-size: 16px; }
    .trend-item1 .trend-image img { height: 230px; }
}

/* the template's lightbox plugin builds hidden markup that points at missing arrow images - we use our own viewer */
.lightbox, .lightboxOverlay { display: none !important; }

/* ---- readability tweaks ---- */
.trend-item1 .trend-content h3,
.trend-item1 .trend-content h5 a { text-shadow: 0 1px 5px rgba(0, 0, 0, .85); }
.cta-band .nir-btn { background: #fdc703; color: #17233e; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.cta-band .nir-btn::before { background: #fff; }
.cta-band .nir-btn:hover { color: #17233e; }

/* the template gives every <section> top/bottom padding; the hero must sit flush under the header */
section.hero { padding: 0; }
