:root {
    --primary: #FF6B35;
    --primary-dark: #E55A28;
    --secondary: #17271c;
    --accent: #0F3460;
    --light: #F8F9FA;
    --gray: #6C757D;
    --dark: #212529;
    --white: #FFFFFF;

    --font-display: 'Archivo', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-cta {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    opacity: 0.05;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: var(--primary);
    border-radius: 50%;
    top: -400px;
    right: -200px;
    opacity: 0.08;
    filter: blur(100px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    height: 15px;
    background: var(--primary);
    opacity: 0.15;
    z-index: -1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

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

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.hero-scroll span {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.scroll-indicator {
    width: 2px;
    height: 40px;
    background: var(--gray);
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: var(--primary);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(40px);
        opacity: 0;
    }
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--secondary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Section Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    height: 350px;
    transition: var(--transition);
}

.portfolio-item.large {
    grid-column: span 2;
    height: 450px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray);
    line-height: 1.8;
}

/* Why Us Section */
.why-us {
    padding: 6rem 0;
    background: var(--light);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-us-left .section-tag,
.why-us-left .section-title {
    text-align: left;
    margin-left: 0;
}

.why-us-left .section-title {
    margin-bottom: 3rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.benefit-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    opacity: 0.3;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: var(--gray);
    line-height: 1.7;
}

.image-stack {
    position: relative;
    height: 600px;
}

.stack-img-1,
.stack-img-2 {
    position: absolute;
    width: 70%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.stack-img-1 {
    top: 0;
    left: 0;
    z-index: 1;
}

.stack-img-2 {
    bottom: 0;
    right: 0;
    z-index: 2;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-left .section-tag,
.contact-left .section-title {
    text-align: left;
    margin-left: 0;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.contact-item h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-text {
    color: var(--gray);
    line-height: 1.6;
}

.contact-card {
    background: var(--light);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    background: var(--white);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    color: var(--gray);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -0.75rem;
    left: 1rem;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--light);
    padding: 0 0.5rem;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 220px;
    height: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu */
.nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px;
    right: 20px;

    /* 🔥 AJUSTES IMPORTANTES */
    width: 220px;
    /* tamanho ideal do box */
    height: auto;
    /* NÃO estica para baixo */
    max-height: none;
    /* garante que não expanda sozinho */

    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    animation: fadeInMenu 0.25s ease-out;
    z-index: 9999;
}



@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive */
@media (max-width: 968px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .portfolio-item.large {
        grid-column: span 1;
        height: 350px;
    }

    .why-us-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .image-stack {
        height: auto;
        /* deixa o container ajustar sozinho */
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        position: relative;
    }

    .stack-img-1,
    .stack-img-2 {
        position: relative;
        /* remove absoluto no mobile */
        width: 100%;
        /* largura total */
        height: auto;
        /* ajusta proporção */
        border-radius: 16px;
        box-shadow: var(--shadow-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

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

    .section-title {
        font-size: 1.75rem;
    }

    .contact-card {
        padding: 2rem;
    }
}