/* ═══════════════════════════════════════════════════════════════
   ABL Site Base — Resets, typography, responsive utilities
   Mobile-first approach.
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--abl-text);
    background-color: var(--abl-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--abl-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--abl-accent);
}

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

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    color: var(--abl-heading);
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s ease;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p {
    color: var(--abl-text);
    transition: color 0.3s ease;
}

/* ── Container ── */
.abl-site-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Section ── */
.abl-site-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .abl-site-section {
        padding: 6rem 0;
    }
}

/* ── Section header ── */
.abl-site-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.abl-site-section-header h2 {
    margin-bottom: 1rem;
    text-wrap: balance;
}

.abl-site-section-header p {
    font-size: 1.125rem;
    color: var(--abl-text);
}

/* ── Buttons ── */
.abl-site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
}

.abl-site-btn--primary {
    background: var(--abl-btn-primary-bg);
    color: var(--abl-btn-primary-text);
    border: none;
}

.abl-site-btn--primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.abl-site-btn--ghost {
    background: transparent;
    color: var(--abl-btn-ghost-text);
    border: 1.5px solid var(--abl-btn-ghost-border);
}

.abl-site-btn--ghost:hover {
    background: var(--abl-highlight-bg);
    transform: translateY(-1px);
}

.abl-site-btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ── Visually hidden ── */
.abl-site-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Selection ── */
::selection {
    background: rgba(14, 165, 233, 0.2);
    color: var(--abl-heading);
}

/* ── Scrollbar (webkit) ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--abl-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--abl-accent);
    border-radius: 4px;
}
