/* Explain: Enhanced base styles with smooth scrolling and selection effects. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    scroll-behavior: smooth;
    scroll-padding-bottom: var(--mobile-cta-height);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 0;
    color: var(--text-color);
    background: var(--background-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

main,
section,
header,
footer,
fieldset {
    min-width: 0;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.5;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button, a, label { overflow-wrap: anywhere; }

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

::selection {
    background: var(--primary-color);
    color: var(--navy);
}

section[id],
main[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

@media (max-width: 1023px) {
    body.site-body {
        padding-bottom: var(--mobile-cta-height);
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}