/* ─── FONT ─────────────────────────────────────────────── */
@font-face {
    font-family: 'Gerbil';
    src: url('fonts/gerbil.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
    --teal:   #119DA4;
    --orange: #FF7B00;
    --purple: #AF4D98;
    --yellow: #FFE900;
}

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

/* ─── NAV LINK BLOB HOVER ────────────────────────────────── */
.nav-link {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: #000;
    transition: color 0.3s;
}
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 45px; height: 45px;
    transform: translate(-50%, -50%) scale(0);
    background-color: #f0e8f4;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-link:hover::before { transform: translate(-50%, -50%) scale(1); }

/* CTA button in nav */
.nav-cta {
    text-decoration: none;
    transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.nav-cta:hover {
    background-color: #8c3d79;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(175,77,152,0.35);
}

/* ─── DESAFÍOS STICKY STACK ─────────────────────────────── */
.desafios-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.desafio-sticky {
    position: sticky;
    top: calc(90px + var(--card-index, 0) * 25px);
    margin-bottom: 80px;
    will-change: transform;
}

.desafio-sticky:nth-child(odd) {
    transform: rotate(-2deg) translateX(-3%);
}

.desafio-sticky:nth-child(even) {
    transform: rotate(2deg) translateX(3%);
}

.desafio-sticky:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .desafio-sticky {
        position: relative;
        top: auto;
        margin-bottom: 24px;
    }
    .desafio-sticky:nth-child(odd) {
        transform: rotate(-1deg) translateX(0);
    }
    .desafio-sticky:nth-child(even) {
        transform: rotate(1deg) translateX(0);
    }
}

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero-section {
    min-height: 0;
    overflow: clip;
}

/* ─── HERO LINE ──────────────────────────────────────────── */
.hero-line {
    display: block;
    white-space: nowrap;
    padding: 0.06em 0; /* breathing room for highlight pseudo-elements */
}

/* ─── HIGHLIGHT EFFECTS ──────────────────────────────────── */
.highlight-teal {
    position: relative; z-index: 1; display: inline-block;
}
.highlight-teal::after {
    content: '';
    position: absolute;
    bottom: 15px; left: 0;
    width: 105%; height: 6px;
    background-color: var(--teal);
    transform: rotate(-3deg);
    z-index: -1;
}

.highlight-orange {
    position: relative; z-index: 1; display: inline-block;
}
.highlight-orange::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(4deg);
    width: 115%; height: 115%;
    background-color: var(--orange);
    border-radius: 50px 80px 40px 60px;
    z-index: -1;
}

.highlight-yellow {
    position: relative; z-index: 1; display: inline-block; margin-top: 10px;
}
.highlight-yellow::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-4deg);
    width: 115%; height: 120%;
    background-color: var(--yellow);
    border-radius: 80px;
    z-index: -1;
}

.highlight-orange-title {
    position: relative; z-index: 1; display: inline-block; padding: 0 5px;
}
.highlight-orange-title::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-3deg);
    width: 110%; height: 85%;
    background-color: var(--orange);
    border-radius: 15px 25px 15px 20px;
    z-index: -1;
}

/* FIXED — was missing before */
.highlight-teal-underline {
    position: relative; z-index: 1; display: inline-block;
}
.highlight-teal-underline::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 0;
    width: 100%; height: 5px;
    background-color: var(--teal);
    transform: rotate(-2deg);
    border-radius: 3px;
    z-index: -1;
}

.highlight-orange-pill {
    background-color: var(--orange);
    color: #000;
    padding: 5px 20px;
    border-radius: 40px;
    display: inline-block;
}

/* ─── MARQUEE ─────────────────────────────────────────────── */
.marquee-wrapper {
    position: relative;
    width: 110vw;
    left: -5vw;
    background-color: var(--teal);
    color: #fff;
    padding: 25px 0;
    transform: rotate(-4deg);
    margin-top: 50px;
    margin-bottom: 80px;
    z-index: 10;
    overflow: hidden;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}
.marquee-content {
    display: flex;
    gap: 100px;
    padding-right: 100px;
    align-items: center;
}
.marquee-content span {
    font-family: 'Gerbil', system-ui, sans-serif;
    font-size: 1.8rem;
    white-space: nowrap;
    letter-spacing: 1px;
}
@keyframes scrollMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ─── STICKERS ───────────────────────────────────────────── */
.sticker-face {
    position: absolute;
    right: -150px; bottom: -15px;
    width: 220px; z-index: 2;
    transform: rotate(5deg);
    pointer-events: none;
}
@media (max-width: 900px) and (min-width: 768px) {
    .sticker-face {
        right: -80px;
        width: 160px;
    }
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-hero, .btn-footer {
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.btn-hero:hover, .btn-footer:hover {
    transform: translateY(-3px);
    background-color: #8c3d79;
    box-shadow: 0 8px 24px rgba(175, 77, 152, 0.35);
}

/* ─── SERVICIO CARDS ─────────────────────────────────────── */
.servicio-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
    position: relative;
}
.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.servicio-accent-teal:hover   { border-color: var(--teal); }
.servicio-accent-orange:hover { border-color: var(--orange); }
.servicio-accent-purple:hover { border-color: var(--purple); }

.servicio-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.servicio-icon-teal   { background: rgba(17,157,164,0.1);  color: var(--teal); }
.servicio-icon-orange { background: rgba(255,123,0,0.1);   color: var(--orange); }
.servicio-icon-purple { background: rgba(175,77,152,0.1);  color: var(--purple); }

/* ─── SPOTLIGHT CAROUSEL ─────────────────────────────────── */
.spotlight-card {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem 3rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
    position: relative;
    overflow: visible;
}

.spotlight-photo-blob {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    position: relative;
}
.spotlight-photo-blob .spotlight-blob-bg {
    position: absolute;
    inset: 0;
    background: var(--orange);
    border-radius: 42% 58% 62% 38% / 46% 52% 48% 54%;
    animation: spotlightMorphBlob 8s ease-in-out infinite alternate;
}
@keyframes spotlightMorphBlob {
    0%   { border-radius: 42% 58% 62% 38% / 46% 52% 48% 54%; }
    25%  { border-radius: 55% 45% 38% 62% / 58% 42% 55% 45%; }
    50%  { border-radius: 38% 62% 50% 50% / 45% 55% 42% 58%; }
    75%  { border-radius: 50% 50% 45% 55% / 62% 38% 58% 42%; }
    100% { border-radius: 45% 55% 58% 42% / 38% 62% 50% 50%; }
}
.spotlight-photo-blob img {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    border-radius: 0;
}

.spotlight-deco-quote {
    position: absolute;
    top: -0.15em;
    left: -0.05em;
    font-family: Georgia, serif;
    font-size: 10rem;
    line-height: 1;
    color: var(--teal);
    opacity: .08;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.spotlight-text {
    position: relative;
    z-index: 1;
    flex: 1;
}
.spotlight-text .spotlight-quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    font-style: italic;
    margin-bottom: 1.25rem;
}
.spotlight-text .spotlight-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #111;
}
.spotlight-text .spotlight-role {
    font-size: .88rem;
    color: #888;
    margin-top: .15rem;
}

.spotlight-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
    flex-shrink: 0;
}
.spotlight-arrow svg { transition: transform .25s ease; }
.spotlight-arrow:hover {
    border-color: var(--purple);
    background: var(--purple);
}
.spotlight-arrow:hover svg path { stroke: #fff; }

.spotlight-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: 0;
    padding: 17px;
    margin: -17px;
    background-clip: content-box;
    cursor: pointer;
    transition: all .3s ease;
}
.spotlight-dot.active {
    background: var(--teal);
    transform: scale(1.25);
}
.spotlight-dot:hover:not(.active) { background: #bbb; }

/* ─── SOCIAL ICONS ───────────────────────────────────────── */
.social-icon svg { transition: transform 0.3s; display: block; }
.social-icon:hover svg { transform: scale(1.15); }

/* ─── ULTRAWIDE 2560×1080 ────────────────────────────────── */
@media (min-width: 2400px) and (max-height: 1100px) {
    .hero-section {
        align-items: center;
    }
    .hero-text-col {
        padding-top: 160px;
    }
    .hero-img-col {
        margin-top: -60px;
        margin-bottom: -180px;
    }
    .hero-img-col img {
        transform: translateY(-110px);
    }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .hero-img-col {
        margin-top: 20px;
    }
    .spotlight-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        overflow: hidden;
    }
    .spotlight-photo-blob {
        width: 130px;
        height: 130px;
    }
    .spotlight-photo-blob img {
        width: 100%;
        height: 100%;
    }
    .spotlight-deco-quote {
        font-size: 6rem;
        top: -.1em;
        left: 50%;
        transform: translateX(-50%);
    }
    .spotlight-text .spotlight-quote { font-size: 1rem; }
    .spotlight-nav-arrows { flex-wrap: wrap; }
    .spotlight-nav-arrows > .spotlight-arrow { display: none; }
    .spotlight-mobile-arrows { display: flex !important; }
    .sticker-face {
        position: relative;
        right: auto; bottom: auto;
        margin-top: 20px;
        width: 150px;
    }
    .marquee-content span { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero-line { white-space: normal; }
    .marquee-wrapper { padding: 18px 0; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}
