﻿/* =========================================================
   Step Inside Page - Stepien Digital
   Baseado no layout da página inicial (Index)
   Responsivo: mobile, tablet, notebook, desktop
========================================================= */

/* =========================================================
   Variáveis - herdadas do Index, com ajustes para Step Inside
========================================================= */
:root {
    --sd-bg: #071521;
    --sd-bg-deep: #050f18;
    --sd-bg-soft: #0d2233;
    --sd-surface: rgba(255, 255, 255, 0.045);
    --sd-surface-strong: rgba(255, 255, 255, 0.08);
    --sd-border: rgba(255, 255, 255, 0.11);
    --sd-border-strong: rgba(255, 255, 255, 0.18);
    --sd-text: #f3f7fb;
    --sd-text-soft: #b8c6d6;
    --sd-text-muted: #8ea3b8;
    --sd-primary: #b89b72;
    --sd-primary-strong: #a6865e;
    --sd-primary-soft: rgba(184, 155, 114, 0.16);
    --sd-success: #6fe3a1;
    --sd-warning: #ffd166;
    --sd-danger: #ff6b6b;
    --sd-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    --sd-shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.22);
    --sd-radius: 26px;
    --sd-radius-lg: 34px;
    --sd-radius-sm: 16px;
    --sd-shell: 1180px;
    --sd-section-space: 110px;
}

/* =========================================================
   Reset & Base - mesma do Index
========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(184, 155, 114, 0.18), transparent 30%), radial-gradient(circle at top right, rgba(111, 227, 161, 0.09), transparent 22%), linear-gradient(180deg, #06111b 0%, #081b2a 46%, #06111b 100%);
    color: var(--sd-text);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
        background-size: 56px 56px;
        mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
        z-index: -1;
    }

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.sd-shell {
    width: min(100% - 32px, var(--sd-shell));
    margin-inline: auto;
}

.sd-skip {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

    .sd-skip:focus {
        width: auto;
        height: auto;
        clip: auto;
        white-space: normal;
        left: 16px;
        top: 16px;
        z-index: 9999;
        background: #ffffff;
        color: #081b2a;
        padding: 10px 14px;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    }

/* =========================================================
   Buttons & Actions - mesmos do Index
========================================================= */
.sd-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.sd-actions-center {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 15px;
    border: 1px solid var(--sd-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--sd-text);
    font-weight: 650;
    line-height: 1.15;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

    .sd-btn:hover,
    .sd-btn:focus-visible {
        transform: translateY(-2px);
        border-color: var(--sd-border-strong);
        background: rgba(255, 255, 255, 0.075);
        outline: none;
    }

.sd-btn-primary {
    background: linear-gradient(180deg, #c9ad85 0%, var(--sd-primary-strong) 100%);
    border-color: rgba(184, 155, 114, 0.62);
}

    .sd-btn-primary:hover,
    .sd-btn-primary:focus-visible {
        background: linear-gradient(180deg, #d8be99 0%, #b8956a 100%);
    }

.sd-btn-secondary {
    background: transparent;
    border-color: var(--sd-border);
}

/* =========================================================
   Badge & Kicker - mesmos do Index
========================================================= */
.sd-badge,
.sd-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid var(--sd-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: #c8d9ea;
    font-size: 0.9rem;
    font-weight: 600;
}

.sd-badge-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--sd-success);
    box-shadow: 0 0 0 6px rgba(111, 227, 161, 0.13);
}

.sd-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--sd-primary);
    box-shadow: 0 0 0 6px rgba(184, 155, 114, 0.13);
}

/* =========================================================
   Hero - mesma estrutura do Index
========================================================= */
.sd-hero {
    position: relative;
    padding: 98px 0 92px;
    overflow: hidden;
}

    .sd-hero::before {
        content: "";
        position: absolute;
        inset: -22% auto auto 48%;
        width: 760px;
        height: 760px;
        transform: translateX(-8%);
        background: radial-gradient(circle, rgba(184, 155, 114, 0.23), transparent 68%);
        pointer-events: none;
    }

    .sd-hero::after {
        content: "";
        position: absolute;
        inset: auto 0 -190px 0;
        height: 300px;
        background: radial-gradient(circle at center, rgba(111, 227, 161, 0.10), transparent 62%);
        pointer-events: none;
    }

.sd-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 58px);
}

.sd-hero-copy {
    max-width: 760px;
}

.sd-hero-title {
    margin: 0 0 20px;
    max-width: 920px;
    font-size: clamp(2.75rem, 5.6vw, 5.45rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    color: #ffffff;
}

.sd-hero-sub {
    margin: 0 0 18px;
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(1.22rem, 2.15vw, 1.75rem);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.sd-hero-visual {
    position: relative;
    min-height: 560px;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius-lg);
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)), radial-gradient(circle at top left, rgba(184, 155, 114, 0.20), transparent 42%);
    box-shadow: var(--sd-shadow);
    backdrop-filter: blur(14px);
}

    .sd-hero-visual img {
        width: 100%;
        height: 100%;
        min-height: 528px;
        object-fit: cover;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sd-hero-visual::after,
    .sd-image-card::after {
        content: "";
        position: absolute;
        inset: 16px;
        border-radius: 24px;
        pointer-events: none;
        background: linear-gradient(180deg, transparent 42%, rgba(5, 15, 24, 0.42) 100%);
    }

/* =========================================================
   Section - mesma estrutura do Index
========================================================= */
.sd-section {
    position: relative;
    padding: var(--sd-section-space) 0;
}

.sd-soft {
    background: radial-gradient(circle at 15% 20%, rgba(184, 155, 114, 0.13), transparent 28%), linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-section-head {
    max-width: 820px;
    margin: 0 auto 38px;
    text-align: center;
}

    .sd-section-head .sd-kicker {
        margin-left: auto;
        margin-right: auto;
    }

.sd-section h2 {
    margin: 0 0 18px;
    max-width: 880px;
    color: #ffffff;
    font-size: clamp(2rem, 3.6vw, 3.55rem);
    line-height: 1.05;
    letter-spacing: -0.047em;
}

.sd-section-head h2 {
    margin-left: auto;
    margin-right: auto;
}

.sd-section p {
    max-width: 780px;
    margin: 0 0 16px;
    color: var(--sd-text-soft);
    font-size: 1.06rem;
}

.sd-section-head p {
    margin-left: auto;
    margin-right: auto;
}

.sd-small {
    margin-top: 16px !important;
    font-size: 0.92rem !important;
    color: var(--sd-text-muted) !important;
}

/* =========================================================
   Media Grid - mesma do Index
========================================================= */
.sd-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
}

.sd-media-grid-reverse {
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1fr);
}

.sd-image-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    min-height: 420px;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius-lg);
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    box-shadow: var(--sd-shadow);
    backdrop-filter: blur(12px);
}

    .sd-image-card img {
        width: 100%;
        height: 100%;
        min-height: 392px;
        object-fit: cover;
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

/* =========================================================
   Services Grid - adaptado para Step Inside
========================================================= */
.sd-services-grid {
    display: grid;
    gap: 16px;
}

.sd-services-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sd-services-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sd-service-card {
    padding: 24px 20px;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

    .sd-service-card:hover {
        transform: translateY(-4px);
        border-color: rgba(184, 155, 114, 0.38);
        background: linear-gradient(180deg, rgba(184, 155, 114, 0.105), rgba(255, 255, 255, 0.035));
    }

    .sd-service-card h3 {
        margin: 0 0 10px;
        color: #ffffff;
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .sd-service-card p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* =========================================================
   Check List - mesma do Index
========================================================= */
.sd-check-list {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

    .sd-check-list li {
        position: relative;
        padding-left: 28px;
        color: var(--sd-text-soft);
        font-size: 1.02rem;
        line-height: 1.5;
    }

        .sd-check-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--sd-success);
            font-weight: 700;
            font-size: 1.15rem;
        }

/* =========================================================
   Compare Grid - específico do Step Inside
========================================================= */
.sd-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sd-compare-box {
    padding: 32px 28px;
    border-radius: var(--sd-radius);
    border: 1px solid var(--sd-border);
    background: rgba(255, 255, 255, 0.045);
}

    .sd-compare-box h3 {
        margin: 0 0 12px;
        color: #ffffff;
        font-size: 1.3rem;
    }

    .sd-compare-box p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.6;
    }

.sd-compare-highlight {
    border-color: rgba(184, 155, 114, 0.42);
    background: radial-gradient(circle at 85% 15%, rgba(184, 155, 114, 0.22), transparent 36%), rgba(184, 155, 114, 0.08);
}

/* =========================================================
   Steps - mesma do Index
========================================================= */
.sd-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 40px 0 0;
}

.sd-step {
    position: relative;
    padding: 70px 20px 28px;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(12px);
}

.sd-step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sd-primary);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(184, 155, 114, 0.3);
}

.sd-step h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.3;
}

.sd-step p {
    margin: 0;
    color: var(--sd-text-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================================
   Price Note - específico do Step Inside
========================================================= */
.sd-price-note {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--sd-radius-lg);
    border: 1px solid rgba(184, 155, 114, 0.28);
    background: radial-gradient(circle at 88% 10%, rgba(184, 155, 114, 0.18), transparent 35%), rgba(255, 255, 255, 0.045);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.24);
}

    .sd-price-note .sd-kicker {
        margin-bottom: 12px;
    }

    .sd-price-note h2 {
        max-width: 100%;
    }

    .sd-price-note p {
        max-width: 100%;
        margin-top: 12px;
    }

/* =========================================================
   Final CTA - mesma do Index
========================================================= */
.sd-final {
    padding-bottom: 100px;
}

    .sd-final .sd-shell {
        max-width: 980px;
        padding: 56px 34px;
        text-align: center;
        border-radius: var(--sd-radius-lg);
        background: radial-gradient(circle at top center, rgba(184, 155, 114, 0.22), transparent 40%), radial-gradient(circle at bottom right, rgba(111, 227, 161, 0.12), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    }

    .sd-final .sd-kicker,
    .sd-final h2,
    .sd-final p {
        margin-left: auto;
        margin-right: auto;
    }

/* =========================================================
   Reveal animations - mesmas do Index
========================================================= */
.sd-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.sd-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Responsive
========================================================= */

/* Notebook / small desktop */
@media (max-width: 1100px) {
    :root {
        --sd-section-space: 94px;
    }

    .sd-hero-grid,
    .sd-media-grid,
    .sd-media-grid-reverse {
        grid-template-columns: 1fr;
    }

    .sd-hero-copy {
        max-width: 900px;
    }

    .sd-hero-visual {
        min-height: auto;
        max-width: 760px;
        width: 100%;
        margin-inline: auto;
    }

        .sd-hero-visual img {
            min-height: 460px;
        }

    .sd-image-card {
        max-width: 760px;
        width: 100%;
        margin-inline: auto;
    }

    .sd-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .sd-services-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-services-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 820px) {
    .sd-services-grid-3,
    .sd-services-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-compare-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 720px) {
    :root {
        --sd-section-space: 74px;
        --sd-radius: 22px;
        --sd-radius-lg: 26px;
    }

    html {
        scroll-padding-top: 14px;
    }

    .sd-shell {
        width: min(100% - 20px, var(--sd-shell));
    }

    .sd-hero {
        padding: 62px 0 62px;
    }

    .sd-hero-grid,
    .sd-media-grid,
    .sd-media-grid-reverse {
        gap: 28px;
    }

    .sd-badge,
    .sd-kicker {
        max-width: 100%;
        margin-bottom: 14px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .sd-hero-title {
        font-size: clamp(2.24rem, 12vw, 3.6rem);
        letter-spacing: -0.057em;
    }

    .sd-hero-sub {
        font-size: 1.16rem;
    }

    .sd-section p {
        font-size: 1rem;
    }

    .sd-section h2 {
        font-size: clamp(1.9rem, 8.8vw, 2.65rem);
        letter-spacing: -0.045em;
    }

    .sd-actions,
    .sd-actions-center {
        flex-direction: column;
        align-items: stretch;
    }

    .sd-btn {
        width: 100%;
        min-height: 52px;
        padding-inline: 18px;
        text-align: center;
    }

    .sd-hero-visual,
    .sd-image-card,
    .sd-service-card,
    .sd-compare-box,
    .sd-step,
    .sd-price-note,
    .sd-final .sd-shell {
        border-radius: 24px;
    }

    .sd-hero-visual,
    .sd-image-card {
        padding: 10px;
    }

        .sd-hero-visual img,
        .sd-image-card img {
            border-radius: 18px;
        }

        .sd-hero-visual img {
            min-height: 360px;
        }

    .sd-image-card {
        min-height: 310px;
    }

        .sd-image-card img {
            min-height: 290px;
        }

        .sd-hero-visual::after,
        .sd-image-card::after {
            inset: 10px;
            border-radius: 18px;
        }

    .sd-section-head {
        margin-bottom: 28px;
        text-align: left;
    }

        .sd-section-head .sd-kicker,
        .sd-section-head h2,
        .sd-section-head p {
            margin-left: 0;
            margin-right: 0;
        }

    .sd-step {
        padding: 60px 20px 22px;
    }

    .sd-step-number {
        top: 18px;
        left: 18px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .sd-services-grid-3,
    .sd-services-grid-4,
    .sd-steps {
        grid-template-columns: 1fr;
    }

    .sd-compare-box {
        padding: 24px 20px;
    }

    .sd-service-card {
        padding: 20px 18px;
    }

    .sd-price-note {
        padding: 28px 20px;
        text-align: left;
    }

        .sd-price-note .sd-kicker {
            margin-left: 0;
        }

    .sd-final {
        padding-bottom: 82px;
    }

        .sd-final .sd-shell {
            padding: 34px 20px;
            text-align: left;
        }

        .sd-final .sd-kicker,
        .sd-final h2,
        .sd-final p {
            margin-left: 0;
            margin-right: 0;
        }

        .sd-final .sd-actions-center {
            justify-content: stretch;
        }
}

/* Small phones */
@media (max-width: 420px) {
    .sd-shell {
        width: min(100% - 16px, var(--sd-shell));
    }

    .sd-hero {
        padding-top: 48px;
    }

    .sd-hero-title {
        font-size: clamp(2.04rem, 13vw, 3rem);
    }

    .sd-hero-sub {
        font-size: 1.08rem;
    }

    .sd-section h2 {
        font-size: clamp(1.72rem, 9.5vw, 2.25rem);
    }

    .sd-hero-visual img {
        min-height: 310px;
    }

    .sd-image-card {
        min-height: 260px;
    }

        .sd-image-card img {
            min-height: 240px;
        }

    .sd-final .sd-shell {
        padding: 24px 16px;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .sd-shell {
        max-width: 1260px;
    }

    .sd-hero-visual {
        min-height: 680px;
    }

        .sd-hero-visual img {
            min-height: 648px;
        }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .sd-reveal,
    .sd-reveal-visible {
        opacity: 1;
        transform: none;
    }

    .sd-service-card:hover,
    .sd-btn:hover {
        transform: none;
    }
}
