/* ==========================================================================
   Base — Reset, Typography, Global Elements
   ========================================================================== */

@font-face {
    font-family: Pacaembu;
    src: url('../fonts/PacaembuVar-latin.woff2') format('woff2');
    font-weight: 100 1000;
    font-display: swap;
    unicode-range: U+0020-007E, U+2019, U+201C, U+201D;
}

@font-face {
    font-family: Mulish;
    src: url('../fonts/MulishVar-latin.woff2') format('woff2');
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+0020-007E, U+2019, U+201C, U+201D;
}

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.87);
    background: linear-gradient(180deg, var(--accent-blue-deep) 0%, var(--bg-dark) 28vh, var(--bg-dark) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover,
a:focus-visible {
    color: var(--accent-hover);
    text-decoration-color: var(--accent-hover);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
    letter-spacing: -0.015em;
    text-wrap: pretty;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
    color: var(--text-muted);
}

ul, ol {
    list-style: none;
}

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

::selection {
    background-color: var(--accent-hover);
    color: #000000;
}

section[id]:focus {
    outline: none;
}

section[id]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* --- Doctor name + credentials --- */

.doctor-identity {
    display: inline;
}

.doctor-identity--block {
    display: block;
    margin-bottom: var(--space-sm);
}

.doctor-identity__name {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.doctor-identity__expert {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: #14d8d4;
    font-weight: 700;
}

.text-accent {
    color: #14d8d4;
}

.doctor-credentials {
    font-family: var(--font-primary);
    font-size: 0.58em;
    font-weight: 500;
    font-style: normal;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.doctor-credentials--block {
    display: block;
    margin-top: 0.2em;
}

.doctor-credentials--inline {
    display: inline;
    margin-left: 0.35em;
    white-space: nowrap;
}

.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;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 9999;
    padding: var(--space-sm) var(--space-md);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: var(--space-md);
}
