/* ==========================================================================
   FB WELLNESS — BASE
   Reset, tipografia fundamental, links. Nada de componente aqui.
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-feature-settings: 'kern' 1;
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--fb-font-body);
    font-size: var(--fb-text-base);
    line-height: var(--fb-leading-relaxed);
    color: var(--fb-color-charcoal);
    background: var(--fb-color-cream);  /* gaps entre seções herdam cream da marca, evita listra branca */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}

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

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fb-font-display);
    font-weight: var(--fb-weight-regular);
    line-height: var(--fb-leading-tight);
    letter-spacing: var(--fb-tracking-tight);
    color: var(--fb-color-charcoal);
    margin: 0 0 var(--fb-space-6);
}

h1 {
    font-size: clamp(var(--fb-text-3xl), 6vw, var(--fb-text-5xl));
    font-variation-settings: "opsz" 144;
}

h2 {
    font-size: clamp(var(--fb-text-2xl), 4vw, var(--fb-text-4xl));
    font-variation-settings: "opsz" 72;
}

h3 {
    font-size: clamp(var(--fb-text-xl), 3vw, var(--fb-text-3xl));
    font-variation-settings: "opsz" 36;
}

h4 {
    font-size: var(--fb-text-xl);
    font-weight: var(--fb-weight-medium);
}

p {
    margin: 0 0 var(--fb-space-4);
    max-width: var(--fb-container-prose);
}

a {
    color: var(--fb-color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    transition: color var(--fb-duration-fast) var(--fb-ease-out);
}

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

strong, b {
    font-weight: var(--fb-weight-semibold);
}

em, i {
    font-style: italic;
}

blockquote {
    margin: var(--fb-space-8) 0;
    padding: 0 0 0 var(--fb-space-6);
    border-left: 2px solid var(--fb-color-accent);
    font-family: var(--fb-font-display);
    font-size: var(--fb-text-xl);
    font-style: italic;
    color: var(--fb-color-muted);
}

hr {
    border: none;
    height: 1px;
    background: var(--fb-color-border);
    margin: var(--fb-space-12) 0;
}

ul, ol {
    padding-left: var(--fb-space-6);
    margin: 0 0 var(--fb-space-4);
}

li {
    margin-bottom: var(--fb-space-2);
}

/* Container utilities */
.fb-container {
    width: 100%;
    max-width: var(--fb-container-max);
    margin: 0 auto;
    padding: 0 var(--fb-container-gutter);
}

.fb-container--narrow { max-width: var(--fb-container-narrow); }
.fb-container--prose  { max-width: var(--fb-container-prose); }

/* Section spacing */
.fb-section {
    padding: var(--fb-space-24) 0;
}

@media (min-width: 768px) {
    .fb-section {
        padding: var(--fb-space-32) 0;
    }
}

.fb-section--lg {
    padding: var(--fb-space-32) 0;
}

/* Section with cream background */
.fb-section--cream {
    background: var(--fb-color-cream);
}

/* Eyebrow text — preheader acima de H2 */
.fb-eyebrow {
    font-family: var(--fb-font-body);
    font-size: var(--fb-text-sm);
    font-weight: var(--fb-weight-medium);
    letter-spacing: var(--fb-tracking-wide);
    text-transform: uppercase;
    color: var(--fb-color-accent);
    margin: 0 0 var(--fb-space-4);
    display: block;
}

/* Lead paragraph */
.fb-lead {
    font-size: var(--fb-text-lg);
    line-height: var(--fb-leading-relaxed);
    color: var(--fb-color-muted);
    max-width: var(--fb-container-prose);
}

/* Skip link acessibilidade */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: var(--fb-z-top);
    padding: var(--fb-space-3) var(--fb-space-4);
    background: var(--fb-color-primary);
    color: var(--fb-color-white);
}

.skip-link:focus {
    left: var(--fb-space-4);
    top: var(--fb-space-4);
}

::selection {
    background: var(--fb-color-accent);
    color: var(--fb-color-white);
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--fb-color-accent);
    outline-offset: 2px;
    border-radius: var(--fb-radius-sm);
}

/* 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;
}
