/* ============================================================
   STEVE & CO. — FIX3: Section gaps, hero text, layout
   ============================================================ */

/* ── 1. KILL WHITE GAPS BETWEEN ELEMENTOR SECTIONS ─────────────── */

/* Zero out all Elementor top-level section margins */
.elementor-section-wrap > .elementor-section,
.elementor-top-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Kill the default 10px padding Elementor adds inside column widget-wrap */
.elementor-top-section .elementor-element-populated,
.elementor-element-populated {
    padding: 0 !important;
}

/* Kill gap between widgets stacked in same column */
.elementor-widget:not(:last-child) {
    margin-bottom: 0 !important;
}
.elementor-widget {
    margin-bottom: 0 !important;
}

/* Kill Elementor's default column gap that adds internal spacing */
.elementor-section.elementor-column-gap-default > .elementor-container > .elementor-row > .elementor-column > .elementor-element-populated,
.elementor-section.elementor-column-gap-default > .elementor-container > .elementor-column > .elementor-element-populated {
    padding: 0 !important;
}

/* Remove the gap Elementor adds between columns */
.elementor-column-gap-default .elementor-column {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Shortcode widget itself — no extra wrapping space */
.elementor-widget-shortcode .elementor-widget-container {
    margin: 0;
    padding: 0;
    line-height: 0; /* prevents inline whitespace gap */
    font-size: 0;   /* prevents inline whitespace gap */
}
.elementor-widget-shortcode .elementor-widget-container > * {
    line-height: normal;
    font-size: initial;
}

/* OceanWP entry / article wrappers on Elementor pages */
.page-template-elementor_header_footer article.page,
.page-template-elementor_canvas article.page {
    padding: 0 !important;
    margin: 0 !important;
}
.page-template-elementor_header_footer .entry-header,
.page-template-elementor_canvas .entry-header {
    display: none; /* hides any OceanWP-injected page title above Elementor */
}


/* ── 2. HERO LAYOUT, SPACING & TEXT VISIBILITY ──────────────────── */

/* Overlay: even dark tone across full hero, heavier at top for nav legibility */
.sc-hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0.12) 40%,
        rgba(0,0,0,0.18) 100%
    ) !important;
}

/* Content: push down from transparent header (~88px) + breathing room */
.sc-hero__content {
    padding-top: 180px !important;
    padding-bottom: 80px !important;
    max-width: 800px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Logo: tasteful, not a billboard */
.sc-hero__logo {
    max-width: 180px !important;
    max-height: 72px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto 20px !important;
    display: block !important;
}

/* Tagline — gold, letter-spaced, tight margin below */
.sc-hero__tagline {
    color: #C4A265 !important;
    text-shadow: 0 1px 12px rgba(0,0,0,0.7) !important;
    opacity: 1 !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
}

/* Hero title — 56-64px desktop, white, strong shadow */
.sc-hero__title {
    font-size: clamp(40px, 5.5vw, 64px) !important;
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.4) !important;
    font-weight: 300 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    line-height: 1.1 !important;
}
.sc-hero__title strong {
    color: #C4A265 !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.55) !important;
}

/* Subtitle — near-white, 18px, proper gap to buttons */
.sc-hero__subtitle {
    font-size: 18px !important;
    color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 1px 10px rgba(0,0,0,0.6) !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
}

/* Desktop: pin title at 60px minimum */
@media (min-width: 1024px) {
    .sc-hero__content {
        padding-top: 200px !important;
    }
    .sc-hero__title {
        font-size: clamp(56px, 5vw, 72px) !important;
    }
}


/* ── 3. ENSURE SHORTCODE SECTIONS FILL FULL WIDTH ───────────────── */

/* Hero and other shortcode sections should fill the Elementor column */
.elementor-widget-shortcode .sc-hero,
.elementor-widget-shortcode .sc-credentials,
.elementor-widget-shortcode .sc-offplan-section,
.elementor-widget-shortcode .sc-private-house-section,
.elementor-widget-shortcode .sc-list-section,
.elementor-widget-shortcode .sc-partners,
.elementor-widget-shortcode .sc-careers-cta {
    width: 100%;
    display: block;
}


/* ── 4. ELEMENTOR STRETCHED SECTIONS — HARD RESET ───────────────── */

.elementor-section.elementor-section-stretched {
    max-width: 100vw !important;
    width: 100vw !important;
    left: 0 !important;
    transform: none !important; /* override Elementor's translateX(-50%) if set_theme_mod breaks it */
}

/* For Elementor's own stretch mechanism to work, re-enable translateX */
.elementor-section.elementor-section-stretched {
    position: relative !important;
}


/* ── 5. PREVENT OceanWP CONTENT AREA FROM ADDING PADDING ────────── */

.page-template-elementor_header_footer #content,
.page-template-elementor_header_footer #primary,
.page-template-elementor_header_footer .content-area {
    padding: 0 !important;
    margin: 0 !important;
}
.page-template-elementor_header_footer #content-wrap {
    padding: 0 !important;
}


/* ── 6. MOBILE: MAINTAIN READABLE HERO ──────────────────────────── */
@media (max-width: 768px) {
    .sc-hero__content {
        padding-top: 120px !important;
        padding-bottom: 60px !important;
    }
    .sc-hero__logo {
        max-width: 140px !important;
        margin-bottom: 16px !important;
    }
    .sc-hero__title {
        font-size: clamp(32px, 9vw, 48px) !important;
        text-shadow: 0 2px 16px rgba(0,0,0,0.6) !important;
        margin-bottom: 16px !important;
    }
    .sc-hero__subtitle {
        font-size: 15px !important;
        margin-bottom: 24px !important;
    }
    .sc-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(0,0,0,0.22) 0%,
            rgba(0,0,0,0.15) 50%,
            rgba(0,0,0,0.22) 100%
        ) !important;
    }
}

/* ── 7. HERO TEXT — EXPLICIT CENTER ALIGNMENT ───────────────────── */

/* When .sc-hero__content is a flex column, children need their own text-align */
.sc-hero__content {
    text-align: center !important;
}
.sc-hero__logo {
    align-self: center !important;
}
.sc-hero__tagline {
    text-align: center !important;
    align-self: center !important;
    width: 100% !important;
}
.sc-hero__title {
    text-align: center !important;
    align-self: center !important;
    width: 100% !important;
}
.sc-hero__title strong {
    display: inline !important;
}
.sc-hero__subtitle {
    text-align: center !important;
    align-self: center !important;
    width: 100% !important;
}
.sc-hero__actions {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
}


/* ── 8. HEADER — LOGO LEFT, MENU RIGHT ──────────────────────────── */

/* Make the header inner a flex row */
#site-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Logo: left, no float */
#site-logo {
    float: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

/* Nav wrap: push to right edge */
#site-navigation-wrap {
    float: none !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Ensure the nav itself is inline */
#site-navigation {
    float: none !important;
    display: flex !important;
    align-items: center !important;
}

/* Keep nav list horizontal */
#site-navigation .main-menu,
#site-navigation .dropdown-menu {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile: stack header vertically */
@media (max-width: 960px) {
    #site-header-inner {
        flex-wrap: wrap !important;
    }
    #site-navigation-wrap {
        width: 100% !important;
        justify-content: flex-end !important;
    }
}
