/* ==========================================================================
   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;
    }
}

/* ==========================================================================
   Team Pinecone brand — colour-only adjustments (layout untouched)
   Pine green (#31694c) reads well on white but not on the charcoal header,
   footer and dark rows, so those use a lighter tint of the same green.
   ========================================================================== */
body .pm8,
body .pm8-panel {
    --pm-accent: var(--ACCENTONDARK, #98b4a5);
}

/* the desktop dropdowns are white — keep the full-strength green there */
body .pm8 .pm8-sub {
    --pm-accent: var(--SECONDARYCOLOR, #31694c);
}

@media (min-width: 1200px) {
    body .pm8 .pm8-usericon {
        background-color: var(--SECONDARYCOLOR, #31694c);
        border-color: var(--SECONDARYCOLOR, #31694c);
    }
    body .pm8 .pm8-usericon:hover {
        background-color: transparent;
        border-color: var(--ACCENTONDARK, #98b4a5);
        color: var(--ACCENTONDARK, #98b4a5);
    }
}

/* Western Pine Realty vertical logo (white) — sized by height so the tall
   mark stays legible; shrinks when the header sticks on scroll */
body .pm8 .pm8-logo-a {
    display: block;
    line-height: 0;
}
body .pm8 .pm8-logo-a img {
    display: block;
    width: auto;
    max-width: none;
    height: 104px;
    transition: height .5s cubic-bezier(.25, 1, .5, 1);
}
body .pm8.pm8-sticky.pm8-scrolled .pm8-logo-a img {
    max-width: none;
    height: 62px;
}
@media (max-width: 1199px) {
    body .pm8 .pm8-logo-a img {
        height: 84px;
    }
}
@media (max-width: 600px) {
    body .pm8 .pm8-logo-a img {
        max-width: none;
        height: 64px;
    }
    body .pm8.pm8-sticky.pm8-scrolled .pm8-logo-a img {
        height: 54px;
    }
}

/* Team Pinecone logo (pine cone + white wordmark), centred above the
   homepage hero headline — as on teampinecone.com */
body .custom-hero-luxury__inner::before {
    content: '';
    display: block;
    width: clamp(170px, 17vw, 240px);
    aspect-ratio: 636 / 489;
    margin: 0 auto 26px;
    background: url('/uploads/sites/26836/content/f6e582859d6a4ae2bd1ec415b20b5048-team-pinecone-logo-white-text.webp') center / contain no-repeat;
    opacity: 0;
    animation: customHeroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
@media (max-width: 768px) {
    body .custom-hero-luxury__inner::before {
        width: 130px;
        margin-bottom: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body .custom-hero-luxury__inner::before {
        animation: none;
        opacity: 1;
    }
}

body .ft9 {
    --ft-gold: var(--ACCENTONDARK, #98b4a5);
}

body .cm8 {
    --cm-gold: var(--ACCENTONDARK, #98b4a5);
}

body .hw8 .hw8-title .text-gold {
    color: var(--ACCENTONDARK, #98b4a5) !important;
}