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

/* ==========================================================================
   Header logo — visible on every page (header bar is dark, logo art is black,
   so it is shown in white)
   ========================================================================== */
.pm8-shell .pm8 .pm8-logo-a {
    display: flex !important;
}
.pm8-shell .pm8 .pm8-logo-a img {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 96px;
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
}
.pm8-shell .pm8.pm8-sticky.pm8-scrolled .pm8-logo-a img {
    max-width: 120px;
    max-height: 76px;
}
@media (max-width: 600px) {
    .pm8-shell .pm8 .pm8-logo-a img {
        max-width: 115px;
        max-height: 72px;
    }
}