/* ═══════════════════════════════════════
   RESET & BASE STYLES
   ═══════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: calc(var(--ticker-h) + var(--navbar-h) + 1rem);
}

body {
    font-family: var(--f-body);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--c-primary-light);
    outline-offset: 2px;
}

/* ── Skip navigation ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--c-primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.5rem;
}

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

ul, ol { list-style: none; }

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

address { font-style: normal; }

button {
    font-family: inherit;
    cursor: pointer;
}

::selection {
    background: rgba(123, 45, 59, 0.4);
    color: var(--c-text);
}

/* ── Container ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ══════════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════════ */

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section__grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4rem;
    align-items: start;
}

.section__label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section__number {
    font-family: var(--f-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--c-primary);
    font-weight: 400;
    opacity: 0.7;
}

.section__tag {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    font-weight: 500;
}

.section__header {
    margin-bottom: 4rem;
}

/* ── Titles — editorial sizing ── */
.section__title {
    font-family: var(--f-heading);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--c-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

.section__title em {
    font-style: italic;
    color: var(--c-primary-light);
    text-shadow: 0 0 40px rgba(123, 45, 59, 0.2);
}

/* Title underline — gradient accent */
.section__title--accent::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--c-primary-light), var(--c-primary-dark));
    margin-top: 1.5rem;
}

.section__text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--c-text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

/* ── Section variants — gradient dividers ── */
.section--about,
.section--approach,
.section--contact {
    background: var(--c-bg);
}

.section--about::before,
.section--approach::before,
.section--contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 900px);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--c-primary-dark) 20%,
        var(--c-primary-light) 50%,
        var(--c-primary-dark) 80%,
        transparent 100%
    );
}

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

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

/* ══════════════════════════════════════
   STATS — staggered reveal + vertical bars
   ══════════════════════════════════════ */

.stats {
    display: flex;
    gap: 4rem;
    margin-top: 3.5rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--c-border);
}

.stats__item {
    text-align: left;
    position: relative;
    padding-left: 1.5rem;
}

.stats__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--c-primary-light), transparent);
}

.stats__item:nth-child(1) { transition-delay: 0s; }
.stats__item:nth-child(2) { transition-delay: 0.15s; }
.stats__item:nth-child(3) { transition-delay: 0.3s; }

.stats__value {
    display: block;
    font-family: var(--f-heading);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--c-primary-light);
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: color 0.3s;
}

.stats__item:hover .stats__value {
    color: var(--c-primary);
}

.stats__label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-text-dim);
    font-weight: 500;
}

/* ══════════════════════════════════════
   STEPS (Abordagem) — premium redesign
   ══════════════════════════════════════ */

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.steps__item {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    border-radius: 4px;
    position: relative;
    transition: background var(--duration) var(--ease-out),
                padding-left var(--duration) var(--ease-out);
}

.steps__item:first-child {
    padding-top: 1.5rem;
}

/* Gradient separators between steps */
.steps__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--c-primary-dark), var(--c-border), transparent);
}

.steps__item:last-child::after {
    display: none;
}

.steps__item:hover {
    background: rgba(123, 45, 59, 0.05);
    padding-left: 2.5rem;
}

/* Stagger reveal delays */
.steps__item[data-reveal]:nth-child(1) { transition-delay: 0s; }
.steps__item[data-reveal]:nth-child(2) { transition-delay: 0.12s; }
.steps__item[data-reveal]:nth-child(3) { transition-delay: 0.24s; }
.steps__item[data-reveal]:nth-child(4) { transition-delay: 0.36s; }

.steps__number {
    font-family: var(--f-heading);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(123, 45, 59, 0.25);
    min-width: 4rem;
    line-height: 1;
    transition: color var(--duration);
}

.steps__item:hover .steps__number {
    color: var(--c-primary-light);
}

.steps__title {
    font-family: var(--f-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--c-text);
    margin-bottom: 0.6rem;
}

.steps__text {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--c-text-muted);
    line-height: 1.75;
    max-width: 480px;
}

/* ══════════════════════════════════════
   REVEAL ANIMATION
   ══════════════════════════════════════ */

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}
