/* CSS Variables for Design System */
:root {
    /* Colors - Luxury Earthy Palette */
    --color-primary: #0F5132;
    /* Deep Emerald Green */
    --color-primary-light: #198754;
    /* Lighter Green */
    --color-secondary: #0a3622;
    /* Very Dark Green */
    --color-accent: #D4AF37;
    /* Gold Accent */

    --color-text-dark: #1F2937;
    /* Dark Slate */
    --color-text-muted: #4B5563;
    /* Gray */
    --color-text-light: #F9FAFB;
    /* Off-White */

    --color-bg-light: #F3F4F6;
    /* Light Gray Background */
    --color-bg-white: #FFFFFF;
    /* Pure White */

    /* Variables for Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(15, 81, 50, 0.9);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Setup */
    --section-padding: 6rem 0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base 16px */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

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

ul {
    list-style: none;
}

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

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--color-accent);
    opacity: 0.4;
    z-index: -1;
}

.lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Containers & Layouts */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

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

.btn-primary.outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

.glass-panel-dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    color: var(--color-text-light);
}

.glass-img {
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Section Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--color-text-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-primary-light);
    color: var(--color-text-light);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

/* Sticky Class added via JS */
.navbar.sticky {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo i {
    font-size: 2rem;
}

.navbar.sticky .logo {
    color: var(--color-primary);
}

/* Ensure white text if not sticky */
.navbar:not(.sticky) .logo {
    color: var(--color-text-light);
}

/* Ensure footer logo contrasts with dark background */
.footer .logo {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.navbar:not(.sticky) .nav-links a {
    color: var(--color-text-light);
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
}

.navbar:not(.sticky) .mobile-menu-btn {
    color: white;
}

.desktop-only {
    display: inline-flex;
}

/* Mobile Menu Hidden by default */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-white);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-secondary);
}


/* ================= Hero Section ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 54, 34, 0.9) 0%, rgba(10, 54, 34, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 650px;
    color: var(--color-text-light);
}

.hero-text h1 {
    color: var(--color-text-light);
}

.hero-text .highlight {
    color: var(--color-accent);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-text-light);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
}


/* ================= Sobre Nós Section ================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.experience-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    padding: 2rem;
    text-align: center;
    border-bottom: 4px solid var(--color-accent);
}

.experience-card h3 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--color-primary);
    font-size: 1.5rem;
}


/* ================= Services Section ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-transparent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    background: var(--color-primary);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(15, 81, 50, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--color-primary);
    color: var(--color-text-light);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.card-link i {
    transition: var(--transition);
}

.card-link:hover i {
    transform: translateX(5px);
}

/* ================= CTA Banner ================= */
.cta-banner {
    padding: 4rem 0;
    margin: 2rem 0;
}

.cta-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
    gap: 2rem;
}

.cta-content {
    flex: 1;
    min-width: 300px;
}

.cta-content h2 {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-btn {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    box-shadow: none;
}

.cta-btn:hover {
    background-color: #e5c353;
    color: var(--color-secondary);
}


/* ================= Clientes Section ================= */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 1rem;
    color: var(--color-text-muted);
    transition: var(--transition);
    text-align: center;
}

.client-logo i {
    font-size: 3rem;
    color: #9CA3AF;
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-5px);
}

.client-logo:hover i {
    color: var(--color-primary);
}

.client-logo p {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.stars {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.quote {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

.author h4 {
    margin-bottom: 0.25rem;
}

.author span {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ================= Footer ================= */
.footer {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin: 1.5rem 0;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
}

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

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    opacity: 0.8;
}

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

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0.8;
}

.footer-contact i {
    font-size: 1.25rem;
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

.credits a {
    color: var(--color-accent);
    font-weight: 600;
}

.credits a:hover {
    text-decoration: underline;
}

/* ================= Floating Elements ================= */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

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

/* ================= Animations ================= */
.opacity-0 {
    opacity: 0;
}

.fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-right {
    animation: fadeRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-left {
    animation: fadeLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.zoom-in {
    animation: zoomIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

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

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ================= Responsiveness ================= */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .desktop-only {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar.sticky .mobile-menu-btn {
        color: var(--color-primary);
    }

    .cta-container {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .experience-card {
        bottom: -20px;
        right: 0;
        padding: 1.5rem;
    }

    .experience-card h3 {
        font-size: 2rem;
    }
}