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

:root {
    /* Logo-derived colors - #95bd92 sage green */
    --green-primary: #95bd92;
    --green-dark: #7aab77;
    --green-deep: #5a8a57;
    --green-bg: #ecf5eb;
    --green-bg-alt: #dcecdb;
    --green-shadow: rgba(149, 189, 146, 0.3);

    /* Warm accent (complementary to sage green) */
    --accent: #d4a843;
    --accent-light: #e8c96a;
    --accent-dark: #b8892e;

    /* Neutrals */
    --white: #ffffff;
    --off-white: #f5f9f4;
    --gray-100: #e9ece9;
    --gray-200: #d4d7d4;
    --gray-400: #9ca39c;
    --gray-600: #6b726b;
    --gray-800: #1f2921;
    --gray-900: #111811;
    --black: #0a0d0a;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-full: 9999px;
    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green-deep);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--green-primary);
}

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

.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.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    padding: 8px 0;
    transition: box-shadow var(--transition);
}

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

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .logo-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-text .logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.02em;
}

.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 8px 0;
    position: relative;
}

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

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

.nav a:hover {
    color: var(--green-deep);
}

.btn-nav {
    background: var(--green-primary);
    color: var(--gray-900) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.btn-nav:hover {
    background: var(--green-dark) !important;
    transform: translateY(-1px);
}

.btn-nav::after {
    display: none !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--gray-800);
    padding: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--green-primary);
    color: var(--gray-900);
}

.btn-primary:hover {
    background: var(--green-dark);
    color: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--green-primary);
    color: var(--gray-900);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.125rem;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-shadow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-content h1 .highlight {
    color: var(--green-deep);
    position: relative;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

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

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

.hero-logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px var(--green-shadow));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-16px) rotate(1deg); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

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

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== SOBRE / CARDS ===== */
.sobre {
    background: var(--white);
}

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

.card {
    background: var(--off-white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== SERVIÇOS ===== */
.servicos {
    background: var(--off-white);
}

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

.service-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all var(--transition);
    position: relative;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-primary);
}

.service-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-deep);
    background: var(--green-bg);
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== IMPACTO / STATS ===== */
.impacto {
    background: var(--green-deep);
    color: var(--white);
}

.impacto .section-header h2 {
    color: var(--white);
}

.impacto .section-header p {
    color: rgba(255, 255, 255, 0.85);
}

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

.stat-item {
    padding: 32px 16px;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

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

.stat-footnote {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--green-primary), var(--green-deep));
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 32px;
    color: rgba(255, 255, 255, 0.9);
}

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

.cta .btn-primary:hover {
    background: var(--green-bg);
    color: var(--green-deep);
}

/* ===== CONTATO ===== */
.contato {
    background: var(--white);
}

.contato-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 1rem;
    padding: 12px 16px;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 4px var(--green-shadow);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    grid-column: 1 / -1;
    justify-self: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-bg);
    border-radius: var(--radius);
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.925rem;
    color: var(--gray-600);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.social-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green-deep);
}

.social-links a:hover {
    color: var(--green-primary);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.925rem;
}

.footer-links a:hover {
    color: var(--accent-light);
}

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

.footer-credit p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-credit a {
    color: var(--accent-light);
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav.open {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .nav a {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }

    .menu-toggle.open {
        color: var(--green-deep);
    }

    .nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav.open::before {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ===== LOGO HEADER RESPONSIVE ===== */
@media (max-width: 480px) {
    .logo-img {
        height: 36px;
    }
    .logo-text .logo-title {
        font-size: 0.85rem;
    }
    .logo-text .logo-sub {
        font-size: 0.65rem;
    }
    .footer-logo-img {
        height: 32px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 36px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-logo {
        max-width: 280px;
    }

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

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

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

    .stat-number {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

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

    .contato-wrapper {
        grid-template-columns: 1fr;
    }

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

    .contact-form .btn-primary {
        justify-self: stretch;
        text-align: center;
    }

    .hero-logo {
        max-width: 200px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

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

    .hero {
        padding: 100px 0 40px;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 36px;
    }
}
