/* ===================================================================
   HERO SECTION
   =================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #2a2a2a;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: -14vh;
}

.hero-subtitle-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: var(--color-charcoal);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-charcoal);
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
}

.hero-description {
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    color: var(--color-charcoal);
    font-weight: 300;
    line-height: 1.8;
}

/* Hero slideshow (hero-carousel): controls and indicators live in the
   site palette (charcoal ink on the light editorial imagery), with a
   hairline ivory edge so they stay visible on darker slides too. */
.hero-carousel .carousel {
    /* The section is a flex row; without this the carousel shrink-to-fits
       instead of filling it (all its own children are absolutely placed). */
    width: 100%;
}

.hero-carousel .carousel-item.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: auto;
    padding: 1.5rem;
    z-index: 5;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover,
.hero-carousel .carousel-control-prev:focus,
.hero-carousel .carousel-control-next:focus {
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 1.75rem;
    height: 1.75rem;
    /* White ink + difference blending keeps the chevrons visible on both
       light and dark slide imagery without boxes or scrims around them. */
    mix-blend-mode: difference;
}

.hero-carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M15 4.5 7.5 12l7.5 7.5'/%3e%3c/svg%3e");
}

.hero-carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M9 4.5 16.5 12 9 19.5'/%3e%3c/svg%3e");
}

.hero-carousel .carousel-indicators {
    bottom: 2rem;
    z-index: 5;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 40px;
    height: 2px;
    background-color: #ffffff;
    mix-blend-mode: difference;
    opacity: 0.4;
    margin: 0 6px;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators .active {
    opacity: 1;
    background-color: #ffffff;
    width: 60px;
}

@media (max-width: 575.98px) {
    /* Swipe (data-bs-touch) carries navigation on phones; arrows would crowd the fold */
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel .carousel-item {
        transition: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 550px;
        max-height: 700px;
    }
    .hero-content {
        margin-top: -10vh;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .hero-subtitle-text {
        letter-spacing: 4px;
        font-size: 0.85rem;
    }
}
