/* ==========================================
   MADUREIRA LP - Styles
   Design: Premium Eco-Tech
   Colors: Forest Green + White
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #1B3022;
    --color-primary-light: #2D4A38;
    --color-secondary: #4A7C59;
    --color-accent: #7FB069;
    --color-sage: #A8C686;
    --color-light-green: #E8F5E0;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-500: #6B7280;
    --color-gray-700: #374151;
    --color-gray-900: #111827;

    /* Typography */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

/* Fix for footer brand alignment */
.footer-brand .logo-img {
    height: 40px;
}

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

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-700);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* Typography */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.section-title em {
    font-style: normal;
    font-weight: 400;
    color: var(--color-secondary);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    height: 28px;
    /* Classic size */
    width: auto;
    display: block;
}

/* Footer specific logo size */
.footer-brand .logo-img {
    height: 32px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-700);
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

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

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-4xl);
    background-color: var(--color-white);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.15;
    margin-bottom: var(--spacing-lg);
}

.hero-title em {
    font-style: normal;
    font-weight: 400;
    color: var(--color-secondary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.hero-leaf-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 20 C140 60, 180 100, 100 180 C20 100, 60 60, 100 20' stroke='%234A7C59' stroke-width='2' fill='none' opacity='0.3'/%3E%3C/svg%3E") no-repeat center;
    z-index: -1;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-text {
    padding-right: var(--spacing-xl);
}

.about-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-700);
}

.about-description strong {
    color: var(--color-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: left;
}

.stat-card-light {
    background-color: var(--color-gray-100);
    grid-column: 1;
    grid-row: 1;
}

.stat-card-medium {
    background-color: var(--color-sage);
    color: var(--color-primary);
    grid-column: 1;
    grid-row: 2;
}

.stat-card-dark {
    background-color: var(--color-secondary);
    color: var(--color-white);
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-icon-img {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.stat-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: var(--spacing-sm);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: var(--spacing-4xl) 0;
    /* Balanced top/bottom padding */
    background-color: var(--color-primary);
    /* CHANGED: Dark Green */
    color: var(--color-white);
    /* CHANGED: Text White */
}

.services-header {
    text-align: center;
    /* Centered content as requested */
    margin-bottom: var(--spacing-3xl);
    /* Standard large spacing */
}

.services-header .section-label {
    color: var(--color-accent);
    /* CHANGED: Lighter green for label */
}

.services-header .section-title {
    color: var(--color-white);
    /* CHANGED: White title */
}

.services-content {
    width: 100%;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    width: 100%;
    position: relative;
    z-index: 2;
}


.service-item {
    flex: 0 0 calc(25% - 16px);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 1024px) {
    .service-item {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 640px) {
    .service-item {
        flex: 0 0 100%;
    }
}

.service-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: var(--spacing-md);
    color: #7dd4a8;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    justify-content: center;
}

.service-learn-more:hover {
    gap: 8px;
    color: #fff;
}


.service-icon {
    margin-bottom: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.service-icon i {
    font-size: 28px;
    color: currentColor;
    line-height: 1;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    /* CHANGED: White */
    margin-bottom: var(--spacing-sm);
}

.service-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    /* CHANGED: Light gray */
    line-height: 1.6;
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-primary);
    /* CHANGED: Dark Green to match/flow */
    position: relative;
    /* For pattern/overlay if needed */
}

.gallery-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.gallery-header .section-title {
    color: var(--color-white);
}

.gallery-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    /* CHANGED */
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

/* Interactive Gallery - Hover Swap */
.gallery-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 300px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Stronger shadow for dark bg */
    transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform, opacity;
}

.gallery-item .img-after {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
}

.gallery-item:hover .img-after {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-item:hover .img-before {
    transform: scale(1.05);
}

.gallery-item-tall {
    height: 400px;
}

/* ==========================================
   BRANDS / CLIENTES SECTION
   ========================================== */
.brands-section {
    background-color: var(--color-primary-dark, #1a3d28);
    padding: var(--spacing-4xl) 0;
}

.brands-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.brands-header .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.brands-header .section-title {
    color: #fff;
}

.brands-header .section-title em {
    color: rgba(255, 255, 255, 0.75);
    font-style: normal;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl) var(--spacing-xl);
    align-items: center;
    justify-items: center;
    max-width: 760px;
    margin: 0 auto;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    /* fixed container height for all logos */
    padding: 8px 16px;
}

.brand-item img {
    height: 100%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    object-position: center;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    display: block;
    transition: opacity 0.25s ease, transform 0.25s ease;
}


.brand-item img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Per-logo adjustments */
.brand-item img[src*="logo.png"] {
    height: 65px;
    overflow: visible;
    padding-top: 7px;
    padding-bottom: 0px;
}

.brand-item img[src*="cropped-logo-sesc.png"] {
    padding-bottom: 6px;
}

@media (max-width: 640px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {

    padding-top: var(--spacing-4xl);
    padding-bottom: 200px;
    /* Matched to services section for consistency */
    background-color: var(--color-gray-50);
}

/* Fix for Contrast: Override white text from gallery-header */
.testimonials .gallery-header .section-title {
    color: var(--color-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Forced 4 columns as requested */
    gap: var(--spacing-lg);
    /* Increased gap for better breathing room */
    width: 100%;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 only on tablets smaller than 992px */
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.testimonial-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Ensure all cards stretch to same height */
    margin: 0 auto;
    /* Ensure centering if grid cell is wider */
    width: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.testimonial-title {
    color: var(--color-secondary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--color-gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: auto;
    text-align: left;
    /* Keep author text left aligned relative to avatar if side-by-side */
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-primary);
}

.author-role {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

/* ==========================================
   CONTACT REDESIGN (Floating Card)
   ========================================== */
.contact-section-redesign {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-white);
}

.contact-floating-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.contact-floating-card {
    position: relative;
    background-color: #1B3022;
    /* Fallback Dark Green */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(27, 48, 34, 0.25);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.video-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.contact-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Visible GIF effect FORCE */
}

.video-overlay-tint {
    position: absolute;
    inset: 0;
    background: rgba(27, 48, 34, 0.85);
    /* Dark Green Tint */
    z-index: 1;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    width: 100%;
    padding: var(--spacing-3xl);
    align-items: center;
    position: relative;
}

.contact-text-side {
    color: var(--color-white);
    padding-left: var(--spacing-lg);
}

.contact-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.contact-subheading {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 90%;
}

.btn-whatsapp-white {
    background-color: var(--color-white);
    color: #1B3022;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.btn-whatsapp-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
    color: #1B3022;
}

.wa-icon {
    font-size: 1.2rem;
}

/* Contact Form Side - Glassmorphism Restored */
.contact-form-side {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clean-form-header {
    margin-bottom: var(--spacing-lg);
}

.clean-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white);
    /* White text for glass contrast */
    margin-bottom: 6px;
    text-align: left;
}

.clean-form input,
.clean-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: border-color 0.2s ease, background 0.2s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.clean-form input::placeholder,
.clean-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.clean-form input:focus,
.clean-form textarea:focus {
    border-color: var(--color-white);
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
    margin-top: var(--spacing-md);
    padding: 14px;
    border-radius: 50px;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .contact-text-side {
        padding-left: 0;
        text-align: center;
    }

    .contact-pill {
        margin: 0 auto var(--spacing-lg);
    }

    .contact-subheading {
        margin: 0 auto var(--spacing-xl);
    }
}

/* Interactive Gallery Badges */
.gallery-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-white);
    color: var(--color-secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
}

.badge-after {
    background: #1B3022;
    color: var(--color-white);
    opacity: 0;
    z-index: 4;
}

.gallery-item:hover .badge-before {
    opacity: 0;
}

.gallery-item:hover .badge-after {
    opacity: 1;
}

/* FOOTER */
.footer {
    background-color: var(--color-primary);
    padding: 64px 0 0;
    color: var(--color-white);
}

/* 3-column grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--spacing-xl);
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand column */
.footer-brand .footer-logo-svg {
    height: 28px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.875rem;
    opacity: 0.65;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

/* Column headings */
.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

/* Nav links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* Contact list */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact-list li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover {
    color: #fff;
}

/* Bottom bar */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.45;
}


/* Animations (Generic) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-text,
.hero-image {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image {
    animation-delay: 0.2s;
}

/* Premium Interactions */
.stat-card:hover,
.service-item:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(27, 48, 34, 0.15);
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto var(--spacing-xl);
    }

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

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

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

    .about-text {
        padding-right: 0;
        margin-bottom: var(--spacing-xl);
    }

    .services-content {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

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

    .hero {
        padding-top: 100px;
    }

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

    .gallery-item,
    .gallery-item-tall {
        height: 250px;
        width: 100%;
    }

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

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* ==========================================
   PROJECT VIDEO SECTION
   ========================================== */
.project-video-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-white);
}

.video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    /* Menos arredondado */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   PORTFOLIO PAGE
   ========================================== */

/* Hero */
.portfolio-hero {
    padding: var(--spacing-4xl) 0 var(--spacing-2xl);
    text-align: center;
    background-color: var(--color-gray-50);
}

.portfolio-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-700);
    max-width: 600px;
    margin: 0 auto;
}

/* Portfolio Grid */
.portfolio-list {
    padding: var(--spacing-2xl) 0 var(--spacing-4xl);
    background-color: var(--color-gray-50);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

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

.portfolio-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 2;
}

.portfolio-tag {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.portfolio-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.portfolio-text {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.portfolio-meta {
    margin-top: auto;
    display: flex;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-gray-100);
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.portfolio-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CTA Footer for Portfolio */
.portfolio-cta {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
}

/* ==========================================
   PORTFOLIO MODAL
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: var(--spacing-md);
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-content {
    background-color: var(--color-white);
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.hidden .modal-content {
    transform: scale(0.95);
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-md);
    font-size: 2rem;
    color: var(--color-gray-500);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-red-600);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    height: 100%;
    min-height: 500px;
}

.modal-gallery {
    background-color: #000;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

/* Slider */
.modal-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slider-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* Arrow Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.slider-btn-prev {
    left: 16px;
}

.slider-btn-next {
    right: 16px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}



.modal-info {
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: var(--spacing-sm) 0 var(--spacing-md);
    line-height: 1.2;
}

.modal-description {
    font-size: 1rem;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    flex-grow: 1;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: auto;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-gray-100);
}

/* Modal Responsive */
@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .modal-gallery {
        height: 300px;
        padding: var(--spacing-md);
    }

    .modal-gallery img {
        max-height: 100%;
    }

    .modal-info {
        padding: var(--spacing-lg);
    }
}

/* Video Sound Button */
.video-wrapper {
    position: relative;
}

.video-sound-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, transform 0.2s;
}

.video-sound-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Video Controls - Minimalista */

/* Overlay de Play */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-overlay .play-icon {
    width: 80px;
    height: 80px;
    color: white;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.video-play-overlay:hover .play-icon {
    transform: scale(1.1);
}

/* Botão de Som Minimalista (Atualizado) */
.video-sound-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.video-sound-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.video-sound-btn .sound-icon {
    width: 22px;
    height: 22px;
    color: white;
}
/* Elfsight Widget Watermark Fix */
a[href*="elfsight.com"], 
div[class*="elfsight-app"] > div > a,
.eapps-link {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
