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

:root {
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Brand name styling */
.brand-name {
    font-weight: 700;
}

.brand-name .green {
    color: var(--green-700);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
}

#nav {
    display: flex;
    gap: 32px;
}

#nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: 4px 0;
}

#nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-700);
    border-radius: 1px;
    transition: width 0.3s;
}

#nav a:hover {
    color: var(--green-800);
}

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

#nav a.active-link {
    color: var(--green-800);
}

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

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--green-700);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--green-800);
    border: 2px solid var(--green-700);
}

.btn-outline:hover {
    background: var(--green-50);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--green-800);
    font-size: 1rem;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--white) 0%, var(--green-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22,163,74,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-800);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 520px;
}

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

.hero-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.04);
}

.hero-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hero-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-radius: var(--radius);
    background: var(--green-50);
    transition: all 0.3s;
}

.hero-icon-item:hover {
    background: var(--green-100);
    transform: translateY(-4px);
}

.hero-icon-item i {
    font-size: 2rem;
    color: var(--green-700);
}

.hero-icon-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-800);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.05rem;
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--green-700);
}

.service-icon i {
    font-size: 1.3rem;
    color: var(--green-700);
    transition: color 0.3s;
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    background: var(--gray-50);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.about-content p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.7;
}

.about-content p strong {
    color: var(--gray-900);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}

.stat i {
    font-size: 1.3rem;
    color: var(--green-700);
    width: 40px;
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-900);
}

.stat span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-wrapper {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--white);
    background: var(--white);
}

.about-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== INSTAGRAM / PORTFOLIO ===== */
.instagram-section {
    padding: 100px 0;
    background: var(--white);
}

.instagram-embed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    justify-items: center;
}

.instagram-embed-item {
    width: 100%;
    max-width: 540px;
    min-width: 0;
}

@media (max-width: 1024px) {
    .instagram-embed-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .instagram-embed-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== DIFFERENTIALS ===== */
.differentials {
    padding: 100px 0;
    background: var(--white);
}

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

.diff-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.diff-card:hover {
    background: var(--white);
    border-color: var(--green-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.diff-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-500);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 16px;
}

.diff-card:hover .diff-number {
    opacity: 1;
}

.diff-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.diff-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner {
    text-align: center;
    position: relative;
}

.cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--green-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--green-700);
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ===== FOOTER ===== */
footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    text-align: center;
}

.footer-brand img {
    height: 52px;
    width: 52px;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links {
    text-align: center;
}

.footer-links h4,
.footer-cnpj h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--green-500);
}

.footer-cnpj p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

.footer-dev {
    text-align: right;
}

.footer-dev-link {
    color: rgba(255,255,255,0.35);
    transition: color 0.3s;
}

.footer-dev-link:hover {
    color: var(--green-500);
}

@media (max-width: 480px) {
    .footer-bottom-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-logo-wrapper {
        width: 220px;
        height: 220px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    #nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: var(--shadow-lg);
    }

    #nav.open {
        display: flex;
    }

    #nav a {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 1rem;
    }

    #nav a:hover {
        background: var(--gray-50);
    }

    #nav a::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

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

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

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

    .hero-actions .btn {
        text-align: center;
        justify-content: center;
    }

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

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

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

    .section-header h2,
    .about-content h2,
    .cta h2 {
        font-size: 1.7rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-icon-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero-icon-item {
        padding: 16px 8px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
