/* ============================================
   BaliEdge Design System
   Minimalist white — Airbnb Luxe inspired
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    /* Palette */
    --be-white:       #FFFFFF;
    --be-black:       #000000;
    --be-text:        #1A1A1A;
    --be-text-secondary: #717171;
    --be-accent:      #222222;
    --be-border:      #EBEBEB;
    --be-cta:         #000000;
    --be-bg:          #FFFFFF;
    --be-bg-subtle:   #FFFFFF;
    --be-bg-dark:     #1A1A1A;

    /* Typography */
    --be-font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --be-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing scale */
    --be-space-xs:    4px;
    --be-space-sm:    8px;
    --be-space-md:    16px;
    --be-space-lg:    24px;
    --be-space-xl:    32px;
    --be-space-2xl:   48px;
    --be-space-3xl:   80px;
    --be-space-4xl:   120px;
    --be-space-5xl:   160px;

    /* Layout */
    --be-container:   1200px;
    --be-container-narrow: 800px;
    --be-container-wide:   1400px;
    --be-gutter:      24px;
    --be-radius:      8px;
    --be-radius-lg:   12px;
    --be-radius-xl:   16px;

    /* Transitions */
    --be-transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --be-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --be-shadow-sm:   0 1px 2px rgba(0,0,0,0.06);
    --be-shadow-md:   0 4px 12px rgba(0,0,0,0.08);
    --be-shadow-lg:   0 8px 30px rgba(0,0,0,0.12);
    --be-shadow-hover: 0 8px 25px rgba(0,0,0,0.15);

    /* Header */
    --be-header-height: 80px;
}

/* ---- Global Reset & Base ---- */
body {
    font-family: var(--be-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--be-text);
    background: var(--be-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override Astra defaults */
body,
.ast-separate-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-page-builder-template .entry-content,
.ast-plain-container {
    background: var(--be-bg);
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    padding: 0;
    margin: 0;
    background: transparent;
}

.ast-separate-container .entry-content {
    padding: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6,
.entry-title,
.ast-archive-title {
    font-family: var(--be-font-heading);
    font-weight: 400;
    color: var(--be-text);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1, .be-h1 { font-size: clamp(36px, 5vw, 64px); }
h2, .be-h2 { font-size: clamp(28px, 4vw, 48px); }
h3, .be-h3 { font-size: clamp(22px, 3vw, 32px); }
h4, .be-h4 { font-size: clamp(18px, 2.5vw, 24px); }
h5, .be-h5 { font-size: 18px; font-family: var(--be-font-body); font-weight: 600; }
h6, .be-h6 { font-size: 14px; font-family: var(--be-font-body); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }

p {
    color: var(--be-text-secondary);
    margin-bottom: var(--be-space-lg);
}

a {
    color: var(--be-text);
    text-decoration: none;
    transition: opacity var(--be-transition);
}

a:hover {
    opacity: 0.7;
}

/* ---- Container ---- */
.be-container {
    max-width: var(--be-container);
    margin: 0 auto;
    padding: 0 var(--be-gutter);
}

.be-container--narrow {
    max-width: var(--be-container-narrow);
}

.be-container--wide {
    max-width: var(--be-container-wide);
}

/* ---- Section Spacing ---- */
.be-section {
    padding: var(--be-space-4xl) 0;
}

.be-section--sm {
    padding: var(--be-space-3xl) 0;
}

.be-section--lg {
    padding: var(--be-space-5xl) 0;
}

.be-section__label {
    font-family: var(--be-font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--be-text-secondary);
    margin-bottom: var(--be-space-md);
}

.be-section__title {
    font-family: var(--be-font-heading);
    margin-bottom: var(--be-space-lg);
}

.be-section__subtitle {
    font-size: 18px;
    color: var(--be-text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

.be-text-center { text-align: center; }
.be-text-center .be-section__subtitle { margin: 0 auto; }

/* ---- Divider ---- */
.be-divider {
    border: none;
    border-top: 1px solid var(--be-border);
    margin: var(--be-space-3xl) 0;
}

/* ---- Images ---- */
.be-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.be-aspect-16-9 {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--be-radius-lg);
}

.be-aspect-4-3 {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--be-radius-lg);
}

/* ---- Utility ---- */
.be-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.be-mt-0  { margin-top: 0 !important; }
.be-mb-0  { margin-bottom: 0 !important; }
.be-mt-lg { margin-top: var(--be-space-lg) !important; }
.be-mb-lg { margin-bottom: var(--be-space-lg) !important; }
.be-mt-xl { margin-top: var(--be-space-xl) !important; }
.be-mb-xl { margin-bottom: var(--be-space-xl) !important; }

/* ============================================
   NUCLEAR OVERRIDES
   Kill ALL beige, orange, rust, cream from
   Astra, Elementor, and any page builder.
   ============================================ */

/* --- Force white backgrounds everywhere --- */
body,
.site,
.site-content,
#content,
#page,
.ast-separate-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-separate-container .comments-area,
.ast-page-builder-template .entry-content,
.ast-plain-container,
.ast-no-sidebar .entry-content,
.ast-separate-container .ast-comment-list li,
.elementor-section,
.elementor-column-wrap,
.elementor-widget-wrap,
.e-con,
.e-con-inner,
.elementor-element,
section,
.wp-block-group,
.wp-block-cover,
.wp-block-columns {
    background-color: #FFFFFF !important;
}

/* Preserve dark sections we explicitly set */
.be-footer,
.be-cta-section,
.be-hero__overlay,
[data-be-dark="true"],
.elementor-section[data-be-dark="true"] {
    background-color: #1A1A1A !important;
}

.be-hero,
.be-hero__bg {
    background-color: transparent !important;
}

/* --- Force ALL buttons to black #000 / white text --- */
.be-btn--primary,
.elementor-button,
.elementor-button-wrapper .elementor-button,
a.elementor-button,
.wp-block-button__link,
.ast-custom-button,
.ast-button,
button[type="submit"],
input[type="submit"],
.entry-content .wp-block-button .wp-block-button__link,
.ast-separate-container .ast-article-post .wp-block-button .wp-block-button__link,
.wpcf7-submit,
a.be-btn--primary {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
    border-radius: 8px !important;
}

.be-btn--primary:hover,
.elementor-button:hover,
a.elementor-button:hover,
.wp-block-button__link:hover,
.ast-custom-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #FFFFFF !important;
    opacity: 0.85;
}

/* Outline buttons stay outline */
.be-btn--outline {
    background-color: transparent !important;
    background: transparent !important;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.be-btn--outline:hover {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #1A1A1A !important;
}

.be-btn--outline-dark {
    background-color: transparent !important;
    background: transparent !important;
    color: #1A1A1A !important;
    border-color: #EBEBEB !important;
}

.be-btn--outline-dark:hover {
    background-color: #1A1A1A !important;
    background: #1A1A1A !important;
    color: #FFFFFF !important;
}

/* --- Kill any orange / rust / amber / warm accent --- */
*[style*="C17B4E"],
*[style*="c17b4e"],
*[style*="D4A574"],
*[style*="d4a574"],
*[style*="B8642E"],
*[style*="b8642e"],
*[style*="FAF8F5"],
*[style*="faf8f5"],
*[style*="F5EDE4"],
*[style*="f5ede4"],
*[style*="E8D5C0"],
*[style*="e8d5c0"] {
    background-color: #FFFFFF !important;
    color: #1A1A1A !important;
}

/* Elementor accent color override */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-icon,
.elementor-icon i,
.elementor-icon svg {
    color: #1A1A1A !important;
}

/* Any inline orange/rust text */
span[style*="color:#C17B4E"],
span[style*="color:#c17b4e"],
span[style*="color: #C17B4E"],
span[style*="color: #c17b4e"],
p[style*="color:#C17B4E"],
h1[style*="color:#C17B4E"],
h2[style*="color:#C17B4E"],
h3[style*="color:#C17B4E"],
h4[style*="color:#C17B4E"],
a[style*="color:#C17B4E"] {
    color: #1A1A1A !important;
}

/* Elementor section overlays with wrong colors */
.elementor-background-overlay {
    background-color: transparent !important;
}

/* Astra global color overrides */
.ast-primary-color,
.ast-secondary-color {
    color: #1A1A1A !important;
}

/* --- CTA section: force #1A1A1A (not green/dark-green) --- */
.be-cta-section,
.elementor-section.be-cta-section,
section.be-cta-section {
    background-color: #1A1A1A !important;
    background: #1A1A1A !important;
}

.be-cta-section *,
.be-cta-section h1,
.be-cta-section h2,
.be-cta-section h3,
.be-cta-section p {
    color: #FFFFFF !important;
}

.be-cta-section .be-btn--primary {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #1A1A1A !important;
    border-color: #FFFFFF !important;
}

.be-cta-section .be-btn--primary:hover {
    opacity: 0.85;
}

/* --- Elementor specific dark section override --- */
.elementor-section[style*="background-color"],
.e-con[style*="background-color"] {
    /* Can't override inline without !important per selector,
       so we add a utility class approach */
}

/* Utility: add .be-bg-dark to any section in Elementor */
.be-bg-dark,
.be-bg-dark.elementor-section,
.be-bg-dark.e-con,
section.be-bg-dark {
    background-color: #1A1A1A !important;
    background: #1A1A1A !important;
}

.be-bg-dark *,
.be-bg-dark h1,
.be-bg-dark h2,
.be-bg-dark h3,
.be-bg-dark h4,
.be-bg-dark p,
.be-bg-dark span {
    color: #FFFFFF !important;
}

.be-bg-dark a {
    color: #AAAAAA !important;
}

.be-bg-dark a:hover {
    color: #FFFFFF !important;
}

.be-hero__title { visibility: hidden; position: relative; height: 15vw; min-height: 160px; }
.be-hero__title::before { content: "Where the jungle"; visibility: visible; position: absolute; top: 0; left: 0; right: 0; font-family: "Cormorant Garamond", serif; font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 300; color: #fff; font-style: normal; }
.be-hero__title::after { content: "breathes with you."; visibility: visible; position: absolute; top: calc(clamp(3rem, 7vw, 6.5rem) * 1.1); left: 0; right: 0; font-family: "Cormorant Garamond", serif; font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 300; color: #c9a96e; font-style: italic; }


/* ---- STATS BAR ---- */
.be-stats { display:flex; justify-content:center; gap:4rem; padding:3rem 2rem; background:#0a0a0a; flex-wrap:wrap; }
.be-stat { text-align:center; }
.be-stat__number { font-family:'Cormorant Garamond',serif; font-size:3rem; font-weight:300; color:#c9a96e; line-height:1; margin-bottom:.3rem; }
.be-stat__label { font-size:.72rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase; color:rgba(255,255,255,.5); }

/* ---- SECTIONS ---- */
.be-section { padding:80px 1.5rem; max-width:1280px; margin:0 auto; }
.be-section--sand { background:#faf8f4; max-width:100%; padding:80px 1.5rem; }
.be-section__inner { max-width:1280px; margin:0 auto; }
.be-section__header { text-align:center; margin-bottom:4rem; }
.be-section__eyebrow { display:block; font-size:.72rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:#c9a96e; margin-bottom:.8rem; }
.be-section__title { font-family:'Cormorant Garamond',serif; font-size:clamp(2rem,4vw,3.5rem); margin-bottom:1rem; }
.be-section__desc { font-size:1rem; max-width:540px; margin:0 auto; color:#9a9a9a; }

/* ---- LOCATION CARDS ---- */
.be-locations-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.be-location-card { position:relative; height:500px; border-radius:16px; overflow:hidden; cursor:pointer; display:block; text-decoration:none; }
.be-location-card img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.be-location-card:hover img { transform:scale(1.05); }
.be-location-card__overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.35) 0%,rgba(0,0,0,0) 60%); transition:opacity .5s ease; }
.be-location-card:hover .be-location-card__overlay { opacity:0; }
.be-location-card__content { position:absolute; bottom:0; left:0; right:0; padding:2.5rem 2rem; }
.be-location-card__tag { font-size:.7rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase; color:#c9a96e; margin-bottom:.6rem; }
.be-location-card__title { font-family:'Cormorant Garamond',serif; font-size:2rem; color:#fff; margin-bottom:.5rem; }
.be-location-card__desc { font-size:.85rem; color:rgba(255,255,255,.7); margin-bottom:1rem; }
.be-location-card__arrow { font-size:.78rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:#c9a96e; }

/* ---- TRUST ---- */
.be-trust { display:flex; align-items:center; justify-content:center; gap:2rem; padding:2rem 1.5rem; border-top:1px solid #efefef; flex-wrap:wrap; }
.be-trust__item { display:flex; align-items:center; gap:.5rem; font-size:.78rem; color:#9a9a9a; font-weight:500; }
.be-trust__icon { color:#c9a96e; }

/* ---- ANIMATIONS ---- */
.be-animate:not(.be-location-card) { opacity:0; transform:translateY(30px); transition:opacity .8s ease,transform .8s ease; }
.be-animate.visible { opacity:1; transform:translateY(0); }
.be-animate--delay-1 { transition-delay:.15s; }
.be-animate--delay-2 { transition-delay:.3s; }

/* ---- RESPONSIVE ---- */
@media(max-width:768px) { .be-locations-grid { grid-template-columns:1fr; } .be-stats { gap:2rem; } .be-location-card { height:380px; } }

/* ── BE-HEADER MENU FIX ── */
.be-header .sub-menu { display:none !important; position:absolute !important; top:72px !important; left:0 !important; min-width:210px !important; background:#fff !important; box-shadow:0 8px 32px rgba(0,0,0,.15) !important; border-radius:8px !important; padding:.5rem 0 !important; z-index:9999 !important; }
.be-header li.menu-item-has-children:hover > .sub-menu { display:block !important; }
.be-header li.menu-item-has-children { position:relative !important; }
.be-header .sub-menu li a { font-size:13px !important; color:#111 !important; padding:.55rem 1.2rem !important; display:block !important; }
.be-header .sub-menu li a:hover { color:#c9a96e !important; }
.be-header .be-header__nav > ul > li > a { font-size:14px !important; font-weight:500 !important; }
