/* ===================================================================
   Stellar Hero Section Widget
   =================================================================== */

/* ── Shared base ── */
.stellar-hero-wrap {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    font-family: inherit;
}

/* ===================================================================
   LAYOUT 1 — SPLIT  (two-column, light)
   =================================================================== */
.stellar-hero-wrap.layout-split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
    padding: 56px 0 40px;
    background: transparent;
}

/* ===================================================================
   LAYOUT 2 — PHOTO  (full-bleed image with gradient overlay)
   =================================================================== */
.stellar-hero-wrap.layout-photo {
    min-height: clamp(520px, 72vh, 720px);
    display: flex;
    align-items: center;
    background: #D9D6CE;
}

.stellar-hero-wrap.layout-photo .stellar-hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 40%;
}

.stellar-hero-wrap.layout-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(242,238,229,.92) 0%,
        rgba(242,238,229,.7) 38%,
        rgba(242,238,229,0)  62%);
    z-index: 1;
}

.stellar-hero-wrap.layout-photo .stellar-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    padding: 56px 0;
    color: #1F2A24;
}

/* ===================================================================
   LAYOUT 3 — BANNER  (dark card + services bar)
   =================================================================== */
.stellar-hero-wrap.layout-banner {
    margin: 24px 0 8px;
    background: #1F3328;
    color: #F7EFDF;
    border-radius: 32px;
    padding: 8px clamp(28px, 4.5vw, 96px) 0;
}

.stellar-hero-wrap.layout-banner .stellar-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
    padding: clamp(48px, 4vw, 80px) 0 clamp(40px, 3.4vw, 64px);
    position: relative;
}

/* Decorative SVG rings (banner) */
.stellar-hb-rings {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(650px, 55vw, 1100px);
    height: clamp(650px, 55vw, 1100px);
    transform: translate(-50%, -50%);
    color: #A9BDAD;
    opacity: .18;
    stroke-width: 1.2;
    pointer-events: none;
    z-index: 1;
}

/* ===================================================================
   INNER GRID (split + banner layouts)
   =================================================================== */
.stellar-hero-wrap.layout-split .stellar-hero-inner {
    display: contents; /* already in a grid */
}

/* ===================================================================
   CONTENT COLUMN
   =================================================================== */
.stellar-hero-content {
    position: relative;
    z-index: 2;
}

/* Kicker */
.stellar-hero-kicker {
    margin: 0 0 16px;
    color: var(--hero-kicker-color, #D8BE84);
    font-weight: 600;
    font-size: 15px;
    max-width: 40ch;
}

.layout-split .stellar-hero-kicker,
.layout-photo .stellar-hero-kicker {
    --hero-kicker-color: inherit;
}

/* Heading */
.stellar-hero-heading {
    font-size: clamp(40px, 5vw, 80px);
    max-width: 12ch;
    line-height: 1.08;
    margin: 0;
    color: var(--hero-heading-color, #F7EFDF);
}

.layout-banner .stellar-hero-heading { --hero-heading-color: #F7EFDF; }
.layout-split  .stellar-hero-heading { --hero-heading-color: #1F2A24; }
.layout-photo  .stellar-hero-heading { --hero-heading-color: #1F2A24; font-size: clamp(38px, 5.2vw, 66px); max-width: 13ch; }

/* Lead */
.stellar-hero-lead {
    font-size: clamp(16px, 1.4vw, 20px);
    max-width: 46ch;
    margin: 22px 0 30px;
    line-height: 1.6;
    color: var(--hero-lead-color, #D5DDD0);
}

.layout-banner .stellar-hero-lead { --hero-lead-color: #D5DDD0; }
.layout-split  .stellar-hero-lead { --hero-lead-color: #3E4B43; }
.layout-photo  .stellar-hero-lead { --hero-lead-color: #3E4B43; font-size: 18px; max-width: 44ch; }

/* CTA row */
.stellar-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.stellar-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, opacity .18s;
    white-space: nowrap;
}

/* Primary btn */
.stellar-hero-btn.btn-primary {
    background: var(--hero-btn-primary-bg, #D8BE84);
    border-color: var(--hero-btn-primary-border, #D8BE84);
    color: var(--hero-btn-primary-color, #1F2A24);
}
.stellar-hero-btn.btn-primary:hover { opacity: .88; }

/* Ghost btn */
.stellar-hero-btn.btn-ghost {
    background: var(--hero-btn-ghost-bg, transparent);
    border-color: var(--hero-btn-ghost-border, rgba(244,235,218,.5));
    color: var(--hero-btn-ghost-color, #F4EBDA);
}
.stellar-hero-btn.btn-ghost:hover {
    background: rgba(244,235,218,.08);
    border-color: #F4EBDA;
}

/* Ghost on light layouts */
.layout-split .stellar-hero-btn.btn-ghost,
.layout-photo .stellar-hero-btn.btn-ghost {
    --hero-btn-ghost-bg: rgba(255,255,255,.6);
    --hero-btn-ghost-border: rgba(31,42,36,.25);
    --hero-btn-ghost-color: #1F2A24;
}
.layout-split .stellar-hero-btn.btn-ghost:hover,
.layout-photo .stellar-hero-btn.btn-ghost:hover {
    background: rgba(255,255,255,.85);
}

/* Primary on light */
.layout-split .stellar-hero-btn.btn-primary,
.layout-photo .stellar-hero-btn.btn-primary {
    --hero-btn-primary-bg: #2B4535;
    --hero-btn-primary-border: #2B4535;
    --hero-btn-primary-color: #F4EBDA;
}

/* ── Universal SVG and Icon Reset ── */
.stellar-hero-wrap svg:not(.stellar-hb-rings) {
    width: 1em;
    height: 1em;
    max-width: 100%;
    max-height: 100%;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.stellar-hero-wrap i {
    display: inline-block;
    vertical-align: middle;
}

/* Logo */
.stellar-hero-logo {
    margin-bottom: 24px;
    display: block;
}

.stellar-hero-logo a {
    display: inline-block;
    text-decoration: none;
}

.stellar-hero-logo img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Place / location */
.stellar-hero-place {
    margin-top: 30px;
    font-size: 14px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    line-height: 1.4;
}
.layout-banner .stellar-hero-place { color: #BFCBBE; }
.layout-split  .stellar-hero-place,
.layout-photo  .stellar-hero-place { color: #3E4B43; }

.stellar-hero-place i,
.stellar-hero-place svg {
    flex-shrink: 0;
    font-size: 16px;
    width: 16px;
    height: 16px;
    max-width: 32px;
    max-height: 32px;
    fill: currentColor;
    opacity: .85;
    display: inline-block;
    vertical-align: middle;
}

/* ===================================================================
   VISUAL COLUMN — Bowl Stage
   =================================================================== */
.stellar-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.stellar-bowl-stage {
    position: relative;
    z-index: 2;
    aspect-ratio: 1;
    max-width: clamp(300px, 38vw, 520px);
    width: 100%;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 55%, rgba(169,189,173,.18) 0 58%, transparent 58.3%);
    cursor: pointer;
    border: 0;
    padding: 0;
    color: #A9BDAD;
    display: block;
}

.layout-banner .stellar-bowl-stage {
    background: none;
    max-width: clamp(320px, 30vw, 520px);
}

.stellar-bowl-stage .stellar-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 45%;
    box-shadow: 0 0 0 10px rgba(169,189,173,.22);
    display: block;
}

/* Ripple rings */
.stellar-ring {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 40%;
    aspect-ratio: 1;
    border: 1.5px solid rgba(255,255,255,.7);
    border-radius: 50%;
    transform: translate(-50%,-50%) scale(.6);
    opacity: 0;
    pointer-events: none;
}

.stellar-bowl-stage.stellar-play .stellar-ring {
    animation: stellar-ripple 3.2s cubic-bezier(.2,.6,.3,1) forwards;
}
.stellar-bowl-stage.stellar-play .stellar-ring:nth-child(2) { animation-delay: .45s; }
.stellar-bowl-stage.stellar-play .stellar-ring:nth-child(3) { animation-delay: .9s; }

@keyframes stellar-ripple {
    0%   { opacity: .8; transform: translate(-50%,-50%) scale(.7); }
    100% { opacity: 0;  transform: translate(-50%,-50%) scale(2.5); }
}

.stellar-bowl-stage.stellar-play .stellar-hero-img {
    animation: stellar-hum .18s ease-in-out 8;
}
@keyframes stellar-hum {
    50% { transform: translateX(1px); }
}

/* Bowl caption pill */
.stellar-bowl-cap {
    position: absolute;
    left: 50%;
    bottom: 7%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #1F2A24;
    background: rgba(255,251,241,.92);
    padding: 7px 16px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.stellar-bowl-cap i,
.stellar-bowl-cap svg {
    font-size: 14px;
    width: 14px;
    height: 14px;
    max-width: 24px;
    max-height: 24px;
    fill: currentColor;
    flex-shrink: 0;
    color: #2B4535;
    display: inline-block;
    vertical-align: middle;
}

/* ===================================================================
   SERVICES BAR (banner layout)
   =================================================================== */
.stellar-hb-services {
    list-style: none;
    margin: 0 calc(-1 * clamp(28px, 4.5vw, 96px));
    padding: 28px clamp(28px, 4.5vw, 96px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: rgba(0,0,0,.14);
    border-top: 1px solid rgba(169,189,173,.2);
}

.stellar-hb-services li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.stellar-hb-services .svc-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #D8BE84;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.stellar-hb-services .svc-icon i,
.stellar-hb-services .svc-icon svg {
    font-size: inherit;
    color: inherit;
}

.stellar-hb-services .svc-title {
    display: block;
    font-weight: 700;
    color: #F7EFDF;
    font-size: 15px;
    margin-bottom: 3px;
}

.stellar-hb-services .svc-desc {
    color: #BFCBBE;
    font-size: 13.5px;
    line-height: 1.45;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 900px) {
    .stellar-hero-wrap.layout-split,
    .stellar-hero-wrap.layout-banner .stellar-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .stellar-hero-ctas { justify-content: center; }
    .stellar-hero-place { justify-content: center; }
    .stellar-bowl-stage { max-width: 300px; margin: 0 auto; }
    .stellar-hb-services { grid-template-columns: repeat(2,1fr); }
    .stellar-hb-rings { display: none; }
}

@media (max-width: 768px) {
    .stellar-hero-wrap.layout-split {
        padding: 36px 0 28px;
        gap: 28px;
    }
    .stellar-hero-wrap.layout-photo {
        min-height: auto;
        padding: 40px 20px;
    }
    .stellar-hero-wrap.layout-photo .stellar-hero-inner {
        padding: 24px 0;
        max-width: 100%;
        text-align: center;
    }
    .stellar-hero-wrap.layout-photo::before {
        background: linear-gradient(180deg,
            rgba(242,238,229,.95) 0%,
            rgba(242,238,229,.85) 60%,
            rgba(242,238,229,.4) 100%);
    }
}

@media (max-width: 520px) {
    .stellar-hb-services { grid-template-columns: 1fr; gap: 16px; padding: 20px 16px; }
    .stellar-hero-wrap.layout-banner { border-radius: 20px; padding-left: 16px; padding-right: 16px; }
    .stellar-hero-heading { font-size: 32px; }
    .stellar-hero-lead { font-size: 15px; margin: 16px 0 24px; }
    .stellar-hero-btn { width: 100%; justify-content: center; padding: 11px 20px; }
}

@media (max-width: 400px) {
    .stellar-bowl-stage { max-width: 240px; }
    .stellar-hero-kicker { font-size: 13px; }
}

/* ===================================================================
   MOBILE HALF SECTION VIEW (Compact Card with Bottom Decorative Rings)
   =================================================================== */
@media (max-width: 768px) {
    /* Hide bowl stage and services bar on mobile half view */
    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-bowl-stage,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-bowl-stage,
    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-hb-services,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-hb-services {
        display: none !important;
    }

    /* Outer card container */
    .stellar-hero-wrap.layout-banner.stellar-hero-mobile-half,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap.layout-banner {
        position: relative !important;
        overflow: hidden !important;
        border-radius: 28px !important;
        padding-left: clamp(16px, 4.5vw, 24px) !important;
        padding-right: clamp(16px, 4.5vw, 24px) !important;
        padding-top: 8px !important;
        padding-bottom: 0 !important;
        margin: 16px auto 24px !important;
        box-sizing: border-box;
    }

    /* Inner grid container */
    .stellar-hero-wrap.layout-banner.stellar-hero-mobile-half .stellar-hero-inner,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap.layout-banner .stellar-hero-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: clamp(36px, 7vw, 48px) 0 clamp(48px, 10vw, 68px) !important;
        gap: 0 !important;
        position: relative !important;
        z-index: 2;
    }

    /* Content column */
    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-hero-content,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-hero-content {
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Kicker */
    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-hero-kicker,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-hero-kicker {
        text-align: center !important;
        margin: 0 auto 16px !important;
        font-size: 13.5px !important;
        line-height: 1.45 !important;
        max-width: 36ch !important;
    }

    /* Heading */
    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-hero-heading,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-hero-heading {
        text-align: center !important;
        margin: 0 auto !important;
        font-size: clamp(28px, 6.8vw, 36px) !important;
        line-height: 1.14 !important;
        max-width: 16ch !important;
        letter-spacing: 0.02em;
    }

    /* Lead paragraph */
    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-hero-lead,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-hero-lead {
        text-align: center !important;
        margin: 18px auto 26px !important;
        font-size: 14.5px !important;
        line-height: 1.55 !important;
        max-width: 34ch !important;
    }

    /* CTA buttons: stacked pills */
    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-hero-ctas,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-hero-ctas {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        align-items: stretch !important;
    }

    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-hero-btn,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-hero-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 12px 24px !important;
        font-size: 15px !important;
        border-radius: 999px !important;
    }

    /* Location marker */
    .stellar-hero-wrap.stellar-hero-mobile-half .stellar-hero-place,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap .stellar-hero-place {
        margin: 28px auto 0 !important;
        justify-content: center !important;
        font-size: 13.5px !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* Collapse visual container height while preserving rings */
    .stellar-hero-wrap.layout-banner.stellar-hero-mobile-half .stellar-hero-visual,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap.layout-banner .stellar-hero-visual {
        position: static !important;
        width: 100% !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    /* Bottom decorative rings */
    .stellar-hero-wrap.layout-banner.stellar-hero-mobile-half .stellar-hb-rings,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap.layout-banner .stellar-hb-rings {
        display: block !important;
        position: absolute !important;
        left: 50% !important;
        bottom: -280px !important;
        top: auto !important;
        width: 680px !important;
        height: 680px !important;
        transform: translateX(-50%) !important;
        pointer-events: none !important;
        color: #A9BDAD !important;
        opacity: 0.22 !important;
        stroke-width: 1.2 !important;
        z-index: 1 !important;
    }

    .stellar-hero-wrap.stellar-hero-mobile-half.no-mobile-rings .stellar-hb-rings,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap.no-mobile-rings .stellar-hb-rings {
        display: none !important;
    }

    /* Split layout support */
    .stellar-hero-wrap.layout-split.stellar-hero-mobile-half .stellar-hero-visual,
    .stellar-hero-mobile-half-yes .stellar-hero-wrap.layout-split .stellar-hero-visual {
        display: none !important;
    }
}

/* ===================================================================
   ELEMENTOR EDITOR — keep overflow visible for editing (except mobile half)
   =================================================================== */
.elementor-editor-active .stellar-hero-wrap.layout-banner:not(.stellar-hero-mobile-half) {
    overflow: visible;
}
.elementor-editor-active .stellar-hero-wrap.layout-banner.stellar-hero-mobile-half {
    overflow: hidden;
}