:root {
    --primary: #f5a623;
    --dark: #0d0f14;
    --dark-2: #151922;
    --text: #222;
    --muted: #6b7280;
    --light: #f7f8fa;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 15px 40px rgba(0, 0, 0, .12);
}

* {
    box-sizing: border-box;
}

body {
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

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

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

.container {
    width: min(1140px, calc(100% - 32px));
    margin: 0 auto;
}

/* HERO */

.hero {
    min-height: 860px;
    display: flex;
    align-items: flex-start;
    color: #fff;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;

    padding-top: 150px; /* antes 250px */
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px 0;
    height: 170px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.72) 48%,
        #fff 100%
    );
    opacity: 1;
    pointer-events: none;
}


/* .hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 110px;
    background: linear-gradient(to bottom, transparent, #fff);
    opacity: .96;
} */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 80px;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero p {
    font-size: 20px;
    max-width: 650px;
    color: rgba(255,255,255,.88);
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 800;
    transition: .2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #101010;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(245,166,35,.32);
}

.btn-outline {
    border: 2px solid rgba(255,255,255,.72);
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #111;
}

/* SECTION BASE */
.section {
    padding: 86px 0;
}

.section-light {
    background: var(--light);
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-title {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 52px;
}

.section-title .small {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
    margin-bottom: 14px;
    font-weight: 900;
}

.section-title p {
    color: var(--muted);
    font-size: 17px;
}

.section-dark .section-title p {
    color: rgba(255,255,255,.72);
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 430px;
    background:
        linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.1)),
        #d9dee8;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.about-content .small {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-content h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.14;
    margin-bottom: 20px;
    font-weight: 900;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 17px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px 0 30px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 700;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 900;
    margin-right: 8px;
}

.case-image {
    height: 210px;
    flex: 0 0 210px;

    background:
        linear-gradient(135deg, rgba(245,166,35,.32), rgba(13,15,20,.88)),
        #151922;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: rgba(255,255,255,.92);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 54px;
    overflow: hidden;
}

.case-image img { width: 100%; height: 100%; object-fit: cover; }

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 34px 28px;
    min-height: 280px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .08);
    border: 1px solid #edf0f4;
    transition: .22s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .14);
}

.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(245,166,35,.16);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
    font-weight: 900;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 13px;
    font-weight: 900;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.service-card a {
    color: #111;
    font-weight: 800;
}

/* STATS */
.stats {
    background:
        linear-gradient(rgba(13,15,20,.92), rgba(13,15,20,.92)),
        #0d0f14;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    padding: 158px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat strong {
    display: block;
    color: var(--primary);
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 900;
}

.stat span {
    color: rgba(255,255,255,.76);
    font-weight: 700;
}

/* CASES */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 28px;
}

.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;

    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #edf0f4;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .08);

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, .14);
}

.case-link {
    display: block;
    color: inherit;
    height: 100%;
}

.case-link:hover {
    color: inherit;
}

.case-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.case-body small {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-body h3 {
    font-size: 22px;
    margin: 10px 0 14px;
    font-weight: 900;
}

.case-body p {
    flex: 1;
    color: var(--muted);
    margin: 0;
}

.case-body a {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 22px;
}

.case-more {
    color: #111;
    font-weight: 900;
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.testimonial {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 30px;
}

.testimonial p {
    color: rgba(255,255,255,.78);
    margin-bottom: 20px;
}

.testimonial strong {
    display: block;
    color: #fff;
}

.testimonial span {
    color: var(--primary);
    font-size: 14px;
}

/* NEWSLETTER */

.newsletter {
    background: var(--primary);
    color: #111;
    height: 320px;
    display: flex;
    align-items: center;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 34px;
    align-items: center;
}

.newsletter h2 {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.12;
}

.newsletter p {
    font-weight: 600;
    opacity: .8;
    margin-top: 10px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.newsletter-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    min-height: 52px;
    padding: 0 20px;
    outline: none;
    font-size: 15px;
}

.newsletter-form button {
    border: 0;
    border-radius: 999px;
    min-height: 52px;
    padding: 0 24px;
    background: #111;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-form button:disabled {
    cursor: wait;
    opacity: .72;
}

.newsletter-message {
    grid-column: 1 / -1;
    display: none;
    margin-top: 2px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
}

.newsletter-message[data-type="success"],
.newsletter-message[data-type="error"] {
    display: block;
}

.newsletter-message[data-type="success"] {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.newsletter-message[data-type="error"] {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

/* ==========================================================================
   HOME - CTA da seção Projetos
   ========================================================================== */

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* MOBILE */
@media (max-width: 920px) {
    .about-grid,
    .newsletter-inner {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .cases-grid,
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 660px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }

    .services-grid,
    .cases-grid,
    .testimonials-grid,
    .stats-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .newsletter-form button {
        width: 100%;
    }

    .newsletter-message {
        grid-column: 1;
    }
}