/* ============================================================
   HHeadV2 — Experience Header v2
   Uses static background image or optional looping video.
   Separate from custom.css; merge when approved.
   ============================================================ */

/* ----- Section shell ----- */
/* height accounts for the #top wrapper's fixed-nav padding (113px default) */
.HHeadV2 {
    position: relative;
    overflow: hidden;
    height: calc(100vh - 113px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* Dark overlay sits above video/image, below content */
.HHeadV2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 35, 63, 0.55);
    z-index: 1;
}

/* ----- Optional video background ----- */
.HHV2-bgvid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

/* ----- Inner content area (above overlay) ----- */
.HHV2-inner {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 80px 0 40px;
    overflow: hidden;
}

.HHV2-content {
    text-align: center;
    width: 100%;
}

/* ----- EXPERIENCE SVG ----- */
.HHV2-svg {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.HHV2-svg svg {
    width: 820px;
    max-width: 88vw;
    height: auto;
}

.HHV2-svgpath {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-miterlimit: 10;
    vector-effect: non-scaling-stroke;
}

/* ----- Topic cycling ----- */
@keyframes HHV2-txt-in {
    from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0);   }
}

@keyframes HHV2-txt-out {
    from { opacity: 1; transform: translateY(0);     filter: blur(0);   }
    to   { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
}

.HHV2-topics {
    text-align: center;
}

/* Hidden data source rendered by Perch */
.HHV2-topic-data {
    display: none;
}

/* Pill text and description start invisible; JS animates them in */
.HHV2-pill-text,
.HHV2-desc-text {
    opacity: 0;
    will-change: transform, opacity, filter;
}

.HHV2-txt-in {
    animation: HHV2-txt-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.HHV2-txt-out {
    animation: HHV2-txt-out 0.3s ease forwards;
}

/* Bracketed label — brackets scale with text width */
.HHV2-pill {
    display: inline-flex;
    flex-direction: column;
    color: #ffffff;
    font-family: montserrat-bold, sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Top bracket: full-width bar + short corner tabs going down */
.HHV2-pill::before,
/* Bottom bracket: short corner tabs going up + full-width bar */
.HHV2-pill::after {
    content: '';
    width: 100%;
    height: 14px;
    border: 3px solid #FFC62F;
    box-sizing: border-box;
}

.HHV2-pill::before {
    border-bottom: none;
}

.HHV2-pill::after {
    border-top: none;
}

.HHV2-pill-text {
    display: block;
    text-align: center;
    padding: 0.3em 1em;
    white-space: nowrap;
}

/* Description text */
.HHV2-desc p {
    color: #ffffff;
    font-family: montserrat, sans-serif;
    font-size: 1.5rem;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

/* ----- Bottom bar ----- */
.HHV2-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
}

.HHV2-bar .container {
    padding-top: 0;
    padding-bottom: 0;
}

.HHV2-bar-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 80px;
    background-color: #0C233F;
}

/* Left: thumbnail + blurb */
.HHV2-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    padding: 0;
}

.HHV2-bar-img {
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
}

.HHV2-bar-img img {
    width: 260px;
    height: 100%;
    object-fit: cover;
    display: block;
}

.HHV2-bar-text {
    padding: 16px;
}

.HHV2-bar-text p {
    color: #ffffff;
    font-family: montserrat, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 400px;
}

/* CTA button */
.HHV2-btn {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    text-decoration: none;
    background-color: #0C233F;
    padding: 0 28px;
    gap: 16px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.HHV2-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: #fff;
}

.HHV2-btn:hover {
    background-color: #0a1e35;
    text-decoration: none;
}

.HHV2-btn span {
    color: #ffffff;
    font-family: montserrat-bold, sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    white-space: nowrap;
}

.HHV2-btn .HHL-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid #FFC62F;
    color: #FFC62F;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* ----- Responsive ----- */
@media (min-width: 992px) and (max-width: 1199px) {
    .HHeadV2 {
        height: calc(100vh - 88px);
    }
}

@media (max-width: 991px) {
    .HHeadV2 {
        height: calc(100vh - 81px);
    }

    .HHV2-svg svg {
        width: 640px;
    }

    /* Bar collapses to full-width CTA only */
    .HHV2-bar .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        width: 100%;
    }

    .HHV2-bar-left {
        display: none;
    }

    .HHV2-btn {
        flex: 1;
        padding: 0 20px;
        justify-content: space-between;
    }

    .HHV2-btn::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .HHV2-inner {
        padding: 40px 0 20px;
    }

    .HHV2-svg svg {
        width: 92vw;
        max-width: 92vw;
    }

    .HHV2-desc p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .HHV2-pill {
        font-size: 1rem;
    }
}

@media (max-width: 350px) {
    .HHeadV2 {
        height: calc(100vh - 66px);
    }
}
