/* Explain: Page styles including gradients, typography, and responsive adjustments. */
* {
    box-sizing: border-box;
}

html {
    background: var(--page-background-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

html:has(.home-olive-background) {
    background: var(--background-color);
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--page-background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}

body:not(.home-olive-background) {
    background-color: var(--page-background-color);
}

body:not(.home-olive-background)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        160deg,
        var(--page-background-top) 0%,
        var(--page-background-color) 55%,
        var(--page-background-bottom) 100%
    );
}

body.home-olive-background::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        145deg,
        var(--background-top) 0%,
        var(--background-color) 52%,
        var(--background-bottom) 100%
    );
}

body.has-mobile-sticky {
    padding-bottom: 0;
}

h1,
h2,
h3,
.brand-mark {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--champagne-color);
    outline-offset: 4px;
}

::selection {
    background: var(--champagne-color);
    color: var(--espresso-color);
}

.home-olive-background > main,
.home-olive-background > footer {
    position: relative;
    z-index: 10;
}

.home-hero-ambient {
    position: relative;
    isolation: isolate;
}

.home-hero-ambient > .section-shell {
    position: relative;
    z-index: 1;
}

.home-olive-background .floating-whatsapp {
    display: none;
}

@media (max-width: 767px) {
    body.has-mobile-sticky {
        padding-bottom: 96px;
    }
}