/* ==========================================================================
   Global — tokens
   ========================================================================== */
:root {
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);

    /* admin custom colors, with theme fallbacks */
    --g-primary: var(--PRIMARYCOLOR, var(--ink, #0d0d0d));
    --g-secondary: var(--SECONDARYCOLOR, var(--accent, #c9a227));
    --g-light-bg: var(--LIGHTBG, var(--bg, #f7f7f5));
    --g-dark-bg: var(--DARKBG, var(--ink, #0d0d0d));
}

body {
    line-height: 1.7;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 400;
line-height: 1.1;
}

a,
a:hover,
a:focus {
    outline: none;
    text-decoration: none;
}

a {
    color: var(--g-primary);
    transition: var(--transition-smooth);
}

a:hover,
a:focus {
    color: var(--g-secondary);
}

.section-padding {
    padding: 120px 0;
}

.bg-light {
    background-color: var(--g-light-bg);
}

.bg-dark {
    background-color: var(--g-dark-bg);
}

.text-white {
    color: #fff !important;
}

.text-gold {
    color: var(--g-secondary) !important;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Typography & accents
   ========================================================================== */
.section-kicker {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--g-secondary);
    margin-bottom: 15px;
}

.section-kicker::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: var(--g-secondary);
    margin-left: 15px;
}

.section-title {
    font-size: 48px;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.bg-dark .section-title {
    color: #fff;
}

.lead-text {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.8;
}

.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

@media (max-width: 767px) {
    .section-title {
        font-size: 36px;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-global {
    display: inline-block;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 600;
    padding: 16px 36px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-global-primary {
    background-color: var(--g-primary);
    color: #fff;
    border: 1px solid var(--g-primary);
}

.btn-global-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--g-secondary);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-global-primary:hover,
.btn-global-primary:focus {
    background-color: var(--g-primary); /* fallback beneath the ::after fill */
    color: #fff !important;
    border-color: var(--g-secondary);
}

.btn-global-primary:hover::after {
    height: 100%;
}

.btn-global-secondary {
    background-color: transparent;
    color: var(--g-primary);
    border: 1px solid var(--g-primary);
}

.btn-global-secondary:hover {
    background-color: var(--g-primary);
    color: #fff;
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--g-primary) !important;
}

@media (prefers-reduced-motion: reduce) {
    a,
    .reveal,
    .btn-global,
    .btn-global-primary::after {
        transition: none;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Menu dropdowns: a long list (e.g. Condos for Sale) scrolls inside a max height
   ========================================================================== */
.pm8 .pm8-drop > .pm8-sub {
    max-height: min(70vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.pm8-panel .pm8-drop.is-open > .pm8-sub {
    max-height: 50vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ==========================================================================
   Header: the scrolled colours follow Design > Header & menu. The header style declares them on .pm8-shell, where
   the header's --hdr-bg / --hdr-text don't exist yet, so the phone menu button fell back to near-black on the black bar.
   ========================================================================== */
.pm8-shell .pm8 {
    --pm-sticky-bg: var(--STICKYMENUBACKGROUND, var(--hdr-bg, #ffffff));
    --pm-sticky-fg: var(--STICKYMENUCOLOR, var(--hdr-text, #0d0d0d));
}

/* ==========================================================================
   Hero search bar: its filters, suggestions and mode menu open over the sections below. The hero style isolated
   itself, so the featured-listings strip (z-index 10, pulled up over the hero) painted over the open panel. The hero's
   layers now join the page's stacking order: photo and shade stay under the strip, text and search bar sit above it,
   and the full-size content layer lets clicks through outside its text block.
   ========================================================================== */
.al-sec .custom-hero-luxury {
    isolation: auto;
}

.al-sec .custom-hero-luxury__content {
    z-index: 20;
    pointer-events: none;
}

.al-sec .custom-hero-luxury__inner {
    pointer-events: auto;
}