/* =============================================================
   TEAM GLAM — Hero Widget
   ============================================================= */

/* ── Wrapper: full-viewport flex column ── */
.tg-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;      /* horizontal — overridden by panel */
    justify-content: center;  /* vertical — overridden by panel */
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Background layer: fills entire hero ── */
.tg-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* ── Video: cover like object-fit ── */
.tg-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* ── Mobile: hide video, show fallback bg image ── */
@media (max-width: 767px) {
    /* Default: hide video on mobile (bandwidth saving) */
    .tg-hero:not(.tg-hero--mobile-video) .tg-hero-video {
        display: none;
    }
}

/* ── Dark overlay ── */
.tg-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* overridden by inline style from panel */
    z-index: 1;
}

/* ── Content ── */
.tg-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;   /* overridden by panel slider */
    padding: 0 24px;    /* overridden by panel */
    box-sizing: border-box;
}

/* ── Heading ── */
.tg-hero-heading {
    font-size: 100px;             /* overridden by panel */
    line-height: 1.05;
    font-weight: 400;
    color: #ffffff;               /* overridden by panel */
    margin: 0 0 18px;             /* overridden by panel */
    padding: 0;
    letter-spacing: -0.01em;
}

/* ── Subtitle ── */
body .tg-hero-subtitle,
.elementor-widget-tg_hero .tg-hero-subtitle,
.tg-hero-content .tg-hero-subtitle {
    font-size: var(--tg-body-font-size, 18px) !important;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 32px;
    padding: 0;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* ── CTA Button ── */
.tg-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;           /* overridden by panel */
    background-color: #1a1a1a;   /* overridden by panel */
    color: #ffffff;               /* overridden by panel */
    font-size: 11px;              /* overridden by panel */
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    line-height: 1;
    transition: background-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
    border: none;
}

.tg-hero-btn:hover {
    background-color: #383838;
    color: #ffffff;
}

/* ── Editor preview notice (only in Elementor canvas) ── */
.tg-hero-video-notice {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    letter-spacing: 0.04em;
}

/* ── Locations Line ── */
.tg-hero-locations {
    font-family: var(--tg-font-body, 'brandon-grotesque', sans-serif);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* Pinned to bottom of video hero */
.tg-hero-locations--bottom {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
}

/* Positioned inside content stack */
.tg-hero-content .tg-hero-locations {
    position: static;
    margin-top: 28px;
}
.tg-hero-locations--above_heading {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}
.tg-hero-locations--below_subtitle {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
    .tg-hero-heading {
        font-size: 52px;
    }

    .tg-hero-subtitle {
        font-size: 14px;
    }

    .tg-hero-locations {
        font-size: 11px;
        letter-spacing: 0.12em;
    }

    .tg-hero-locations--bottom {
        bottom: 24px;
    }
}

@media (max-width: 480px) {
    .tg-hero-heading {
        font-size: 40px;
    }

    .tg-hero-content {
        padding: 0 18px;
    }
}

