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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    width: 100%;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

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

ul, ol {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, var(--fs-6xl)); }
h2 { font-size: clamp(1.875rem, 3vw + 1rem, var(--fs-5xl)); }
h3 { font-size: clamp(1.25rem, 1.5vw + 0.75rem, var(--fs-2xl)); }
h4 { font-size: var(--fs-xl); }

p {
    line-height: var(--lh-relaxed);
    color: var(--color-text-soft);
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.section {
    padding-block: var(--section-pad-y);
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--color-text-on-dark);
}

.section--dark p {
    color: var(--color-text-on-dark-muted);
}

.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-16);
}

.section__eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.section--dark .section__eyebrow {
    color: var(--color-accent);
}

.section__title {
    margin-bottom: var(--space-4);
}

.section__lead {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
}

.section--dark .section__lead {
    color: var(--color-text-on-dark-muted);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-text-on-dark);
    box-shadow: var(--shadow-glow-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-700);
    color: var(--color-text-on-dark);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-text);
    box-shadow: var(--shadow-glow-accent);
}

.btn--accent:hover {
    background-color: var(--color-accent-600);
}

.btn--whatsapp {
    background-color: var(--color-whatsapp);
    color: white;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.30);
}

.btn--whatsapp:hover {
    background-color: var(--color-whatsapp-600);
    color: white;
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border-strong);
}

.btn--ghost:hover {
    border-color: var(--color-text);
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn--ghost-on-dark {
    background-color: transparent;
    color: var(--color-text-on-dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--ghost-on-dark:hover {
    border-color: white;
    background-color: white;
    color: var(--color-primary);
}

.btn--lg {
    padding: 1.125rem 2.25rem;
    font-size: var(--fs-lg);
}

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: var(--fs-sm);
}

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

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
