/* ══════════════════════════════════════════════════════════════
   BASE — Typography, global styles, utilities
   ══════════════════════════════════════════════════════════════ */

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ─── Typography ─── */
h1, .h1 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; }
h2, .h2 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
h3, .h3 { font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 600; }
h4, .h4 { font-family: var(--font-heading); font-size: var(--fs-md); font-weight: 600; }
h5, .h5 { font-family: var(--font-heading); font-size: var(--fs-base); font-weight: 600; }
h6, .h6 { font-family: var(--font-heading); font-size: var(--fs-sm); font-weight: 600; }

@media (min-width: 768px) {
    h1, .h1 { font-size: var(--fs-3xl); }
    h2, .h2 { font-size: var(--fs-2xl); }
    h3, .h3 { font-size: var(--fs-xl); }
}

@media (min-width: 1024px) {
    h1, .h1 { font-size: var(--fs-4xl); }
    h2, .h2 { font-size: var(--fs-3xl); }
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

a {
    color: var(--color-cyan);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-violet);
}

strong { font-weight: 700; }

small { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ─── Psi symbol ─── */
.psi {
    font-family: var(--font-display);
    color: var(--color-violet);
    background: var(--gradient-psi);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Section titles ─── */
.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-4);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    margin: var(--space-4) auto 0;
    border-radius: 2px;
}

.page-header h1 {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-2);
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.section-title--light {
    color: var(--color-white);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    color: var(--color-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

@media (min-width: 768px) {
    .section-title { font-size: var(--fs-3xl); }
}

/* ─── Scroll progress bar ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-gold);
    z-index: var(--z-navbar);
    transition: width 50ms linear;
    pointer-events: none;
}

/* ─── Selection ─── */
::selection {
    background-color: var(--color-gold);
    color: var(--color-navy-dark);
}

/* ─── Focus visible ─── */
:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 2px;
}

/* ─── Screen-reader only ─── */
.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;
}

/* ─── Utility classes ─── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-muted  { color: var(--color-text-muted); }
.text-gold   { color: var(--color-gold); }
.text-navy   { color: var(--color-navy); }
.text-white  { color: var(--color-white); }
.text-red    { color: var(--color-red); }
.text-teal   { color: var(--color-teal); }

.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }
.font-mono    { font-family: var(--font-mono); }

.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.hidden { display: none !important; }
.invisible { visibility: hidden; }
.overflow-hidden { overflow: hidden; }

.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }

.pt-section { padding-top: var(--space-16); }
.pb-section { padding-bottom: var(--space-16); }
.py-section { padding-top: var(--space-16); padding-bottom: var(--space-16); }

@media (min-width: 768px) {
    .pt-section { padding-top: var(--space-20); }
    .pb-section { padding-bottom: var(--space-20); }
    .py-section { padding-top: var(--space-20); padding-bottom: var(--space-20); }
}

/* ─── COP note ─── */
.cop-note {
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-8);
    font-style: italic;
}

/* ─── Price display ─── */
.price {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-navy);
}

.price--large {
    font-size: var(--fs-3xl);
}
