:root {
    --bg-color: #0b2320; /* Dark forest green background */
    --surface-color: #12332e; /* Slightly lighter green for cards */
    --text-main: #ffffff;
    --text-muted: #aab5b3;
    --accent: #d8c2aa; /* Beige/sand accent color */
    --accent-glow: rgba(216, 194, 170, 0.3);
    --font-main: 'Outfit', sans-serif;
    
    /* Fluid Design System Tokens */
    --font-h1: clamp(2.5rem, 6vw, 4.8rem);
    --font-h2: clamp(2rem, 4.5vw, 3.2rem);
    --font-h3: clamp(1.5rem, 3vw, 2.2rem);
    --font-body: clamp(0.95rem, 1.1vw, 1.1rem);
    
    --section-padding: clamp(3rem, 7vw, 6rem);
    --container-padding: clamp(1.5rem, 8vw, 10rem);
    
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.3s ease;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);

    --spacing-headline-sub: 12px;
    --spacing-sub-body: 28px;
    --spacing-section-desktop: 80px;
    --spacing-section-mobile: 48px;
    --spacing-card-internal: 28px;
    --spacing-side-gap: 32px;
    --line-height-body: 1.5;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(18, 51, 46, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(18, 51, 46, 0.4) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: var(--font-body);
    line-height: var(--line-height-body);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Utility Classes */
.row-reverse { flex-direction: row-reverse !important; }
.text-highlight { font-size: 1.15rem; color: var(--text-muted); }
.text-small { font-size: 0.85rem; color: var(--text-muted); }
.color-main { color: var(--text-main); }

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* Glassmorphism Utility */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: var(--transition-quick);
}

.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-hover, rgba(255, 255, 255, 0.25));
}

/* Typography base */
h1, h2, h3, h4 {
    font-weight: 400;
}

/* ---------------- Hero Section Scroll Controlled Video ---------------- */
.hero-scroll-container {
    height: 400vh;
    position: relative;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: calc(100vh - 2rem);
    margin: 1rem;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    background-color: var(--bg-color);
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

section, .section-wrapper {
    padding: clamp(var(--spacing-section-mobile), 8vw, var(--spacing-section-desktop)) var(--container-padding);
}

.section-title {
    font-size: var(--font-h2);
    margin-bottom: var(--spacing-sub-body);
    line-height: 1.1;
    color: var(--text-main);
}

/* ---------------- Hero Section ---------------- */
.hero {
    position: relative;
    height: 100%;
    padding: 2.2rem var(--container-padding);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    background: linear-gradient(to right, rgba(11, 35, 32, 0.95) 0%, rgba(11, 35, 32, 0.7) 40%, rgba(11, 35, 32, 0) 100%);
}

.hero-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 1.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 var(--container-padding) 1.5rem var(--container-padding);
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 150px; /* Force some balance */
    justify-content: flex-end;
}

/* Page Scrolled Header State (via JS) */
.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 35, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

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

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: var(--spacing-side-gap);
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100000;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons .icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons .icon:hover {
    background: rgba(255,255,255,0.1);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4rem;
    position: relative;
}

/* .hero-title removed */

.hero-bottom {
    position: absolute;
    bottom: 3rem;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.hero-tagline {
    max-width: 900px;
    text-align: left;
}

.main-heading {
    font-size: var(--font-h1);
    line-height: 1.1;
    margin-bottom: var(--spacing-headline-sub);
    max-width: 900px;
}

.sub-heading {
    font-size: var(--font-body);
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: var(--spacing-sub-body);
}

/* Scroll Reveal Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    top: -20px;
}

.play-btn .arrow {
    width: 0; 
    height: 0; 
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--bg-color);
    margin-left: 4px;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: 350px;
}

.card-img-placeholder {
    width: 80px;
    height: 80px;
    background: url('image/auguri-abup-01.webp') center/cover;
    border-radius: 8px;
}

.card-text h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.card-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.btn-arrow {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ---------------- Global Section Styles ---------------- */

/* ---------------- Carousel Carousel ---------------- */
.choose-carousel {
    overflow: hidden;
    margin-top: 4rem;
    position: relative;
    width: 100%;
}
.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem; /* reduzido espaço inferior */
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-item {
    width: 450px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
}
.carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.carousel-item:hover img {
    transform: scale(1.05);
}
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 15px; /* distância ajustada */
}

/* ---------------- Lightbox ---------------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
@keyframes zoomIn {
    from {transform:scale(0.8); opacity:0} 
    to {transform:scale(1); opacity:1}
}

.btn-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    padding: 0.6rem 0;
    position: relative;
    transition: var(--transition-quick);
    border-bottom: 2px solid var(--accent);
}

.btn-text:hover {
    gap: 1rem;
    color: var(--accent);
    border-bottom-color: var(--text-main);
}

/* ---------------- Intro & Stats Section ---------------- */
.intro-stats {
    background: var(--bg-color);
}

.intro-top {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-side-gap);
    margin: 0 auto var(--spacing-sub-body) auto;
    max-width: 1400px;
}

.intro-top .section-title {
    flex: 1;
    margin-bottom: 0;
}

.intro-text {
    flex: 1.2;
    max-width: 700px;
}

.intro-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sub-body);
}

.section-wrapper {
    padding: clamp(var(--spacing-section-mobile), 8vw, var(--spacing-section-desktop)) var(--container-padding);
    max-width: 1400px;
    margin: 0 auto;
}

.reveal-element p, .intro-text p, .diagram-text p, .description p {
    max-width: 800px;
}

.centered-max-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-side-gap);
    padding: var(--spacing-sub-body) 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
    text-align: left;
}

.stat-item h3 {
    font-size: var(--font-h2);
    color: var(--accent);
    margin-bottom: var(--spacing-headline-sub);
}

.stat-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    color: var(--accent);
    margin-bottom: var(--spacing-headline-sub);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sub-body);
}

/* ---------------- Studio Banner Section ---------------- */
.cta-form-section {
    padding: 10rem var(--container-padding);
    background: #0b2320;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 40px;
}

.studio-banner {
    padding: 10rem var(--container-padding);
    background: linear-gradient(rgba(11, 35, 32, 0.85), rgba(11, 35, 32, 0.85)), url('image/mcassab-07.webp');
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    margin: 0 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content {
    max-width: 800px;
}

.banner-content h2 {
    font-size: var(--font-h1);
    margin-bottom: var(--spacing-headline-sub);
}

.banner-content p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sub-body);
}

.banner-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.avatars {
    display: flex;
    margin-right: -10px;
}

.avatars img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    margin-left: -15px;
    object-fit: cover;
    transition: var(--transition-quick);
}

.avatars img:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.play-btn.small {
    width: 40px;
    height: 40px;
    top: 0;
    box-shadow: none;
}

.play-btn.small .arrow {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid var(--bg-color);
}

/* ---------------- Services Section ---------------- */
.services {
    display: flex;
    flex-direction: column;
}

.service-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.service-item:last-child {
    border-bottom: none;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.service-desc p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 450px;
}

.service-images {
    flex: 1.2;
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.service-images img {
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.main-img {
    width: 65%;
    height: 400px;
}

.sub-img {
    width: 35%;
    height: 300px;
    margin-top: 4rem;
}

.service-item:hover .main-img {
    transform: translateY(-10px) rotate(-1deg);
}

.service-item:hover .sub-img {
    transform: translateY(10px) rotate(1deg);
}

/* ---------------- Signature Designs Section ---------------- */
.signature-designs {
    padding: var(--section-padding) var(--container-padding);
}

.signature-content {
    background: linear-gradient(rgba(11, 35, 32, 0.7), rgba(11, 35, 32, 0.7)), url('image/supra-ervas-01.webp');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 40px;
    position: relative;
    padding: clamp(3rem, 10vw, 8rem);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.signature-text {
    max-width: 500px;
    z-index: 2;
}

.signature-text h2 {
    font-size: var(--font-h2);
    margin-bottom: var(--spacing-headline-sub);
    line-height: 1.2;
}

.signature-floats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-stat {
    position: absolute;
    padding: 1.5rem 2.5rem;
    min-width: 200px;
}

.float-stat h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.float-stat.top-right {
    top: 15%;
    right: 10%;
}

.float-stat.bottom-right {
    bottom: 15%;
    right: 5%;
}

.float-stat.bottom-left {
    bottom: 25%;
    left: 45%;
}

/* ---------------- Why Choose Us Section ---------------- */
.why-choose {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.why-choose .choose-header {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.choose-desc-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-side-gap);
    width: 100%;
}

.choose-point {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-card-internal);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-headline-sub);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
}

.choose-point:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.choose-point .number {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
    opacity: 0.8;
}

.choose-point h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.3;
}

.choose-point p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.choose-point::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.choose-point:hover::after {
    opacity: 1;
}

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

@media (max-width: 768px) {
    .choose-desc-columns {
        grid-template-columns: 1fr;
    }
    .choose-point {
        padding: 2rem;
    }
}

.intro-text-column {
    flex: 1;
}

.intro-text-column p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-image-column {
    flex: 1;
}

.image-reveal-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    height: 100%;
}

.image-reveal-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-reveal-wrapper:hover img {
    transform: scale(1.05);
}

.surface-bg {
    background: rgba(255, 255, 255, 0.02);
}

.surface-bg-gradient {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
}

.service-highlight {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: var(--spacing-sub-body);
    font-weight: 300;
}

.details-title {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-details-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.service-details-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-details-list li span {
    color: var(--accent);
    font-weight: bold;
}

.service-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.text-content-limit {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Service Page Specific Refinements */
.service-details-container {
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,0.05);
}

.service-details-container.right {
    padding-left: 0;
    padding-right: 2rem;
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.details-wrapper {
    margin-top: 1rem;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.03);
}

.image-reveal-wrapper.compact {
    height: auto;
    aspect-ratio: 16 / 9; /* Cinematic ratio for better balance */
    max-height: 450px;
}

@media (max-width: 1024px) {
    .choose-header {
        flex-direction: column !important;
        gap: 3rem;
    }
    .service-details-container {
        padding: 0;
        border: none;
    }
}

.service-details-container.right {
    text-align: right;
}

.service-details-container.right .service-details-list {
    justify-items: end;
}

/* ---------------- Service Page Specific Grid ---------------- */
.service-content-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}



.section-top-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sub-body);
}

.section-top-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.step-number {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.7;
    margin-top: 0.2rem;
}

@media (max-width: 900px) {
    .service-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-details-container {
        padding: 0 !important;
        border: none !important;
        text-align: center !important;
    }
    .section-top-title {
        justify-content: center;
        text-align: center;
    }
}

.choose-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none; 
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 calc(25% - 1.125rem); /* roughly 4 items visible */
    min-width: 250px;
}

.carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-controls {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: white;
    color: var(--bg-color);
}

/* ---------------- Gallery Section ---------------- */
.gallery-layout {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.gallery-sidebar {
    width: 250px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-left: 1px solid rgba(255,255,255,0.05);
    padding-left: 0;
}

.category-list li {
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-quick);
    position: relative;
    padding: 0.5rem 1.5rem;
}

.category-list li::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--accent);
    transition: var(--transition-quick);
}

.category-list li.active, .category-list li:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.03);
}

.category-list li.active::before, .category-list li:hover::before {
    height: 100%;
}

.gallery-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-side-gap);
    width: 100%;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-medium);
}

.gallery-info {
    padding: var(--spacing-card-internal);
}

.gallery-info h4 {
    color: var(--accent);
    margin-bottom: var(--spacing-headline-sub);
    font-size: 1.1rem;
}

.gallery-info p {
    text-transform: capitalize;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.portfolio-cta {
    margin-top: var(--spacing-section-desktop);
    text-align: center;
}

/* ---------------- Testimonials Section ---------------- */
.testimonial-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.testimonial-grid::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 500px;
    min-width: 500px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
}

.reviewer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.reviewer-info span {
    font-weight: 500;
}

.stars {
    color: #eab308; /* Gold color for stars */
    letter-spacing: 2px;
}

/* ---------------- Footer ---------------- */
.footer {
    background: var(--surface-color);
    padding: var(--section-padding) var(--container-padding) 2rem var(--container-padding);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-logo-img {
    height: 48px;
    object-fit: contain;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.link-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.link-col .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.link-col .contact-list li svg {
    margin-top: 0.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.link-col .contact-list li span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-col a:hover {
    color: var(--text-main);
}

/* ---------------- Form Section ---------------- */
.cta-form-section {
    padding: var(--section-padding) var(--container-padding);
    background: var(--bg-color);
}

.form-container {
    display: flex;
    gap: 6rem;
    align-items: center;
}

.form-text {
    flex: 1;
}

.form-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

.qualify-form {
    flex: 1.2;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.form-group-row {
    display: flex;
    gap: 1.5rem;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input, .input-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--text-main);
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
}

.input-group select option {
    background: var(--surface-color);
    color: white;
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1rem;
}

.btn-submit {
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition-smooth);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: fit-content;
    align-self: center;
    margin: 1.5rem auto 0 auto;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--accent-glow);
}

/* ---------------- Internal Pages Styles ---------------- */
.page-hero {
    padding: var(--section-padding) var(--container-padding);
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(11, 35, 32, 0.8), rgba(11, 35, 32, 0.8));
    z-index: 1;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.hero-portfolio { background-image: url('image/energy-2025-01.webp'); }
.hero-servicos { background-image: url('image/supra-ervas-01.webp'); }
.hero-sobre { background-image: url('image/energy-2025-01.webp'); }

.main-heading {
    font-size: var(--font-h1);
    margin-bottom: var(--spacing-headline-sub);
    line-height: 1.1;
    color: var(--text-main);
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 800px;
    margin-top: var(--spacing-headline-sub);
    line-height: 1.6;
}

.services-wrapper, .section-wrapper {
    padding: clamp(var(--spacing-section-mobile), 8vw, var(--spacing-section-desktop)) var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-section-desktop);
    max-width: 1400px;
    margin: 0 auto;
}

.mission-vision-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-side-gap);
    margin-top: var(--spacing-sub-body);
}

.cta-connect-section {
    gap: 1.5rem !important;
}

.cta-connect-section .section-title {
    margin-bottom: 0;
}

.cta-connect-section p {
    margin-bottom: 0 !important;
}

.cta-connect-section .btn-submit {
    margin-top: 0.5rem;
}

.mvv-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-card-internal);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.mvv-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px);
    border-color: var(--accent);
}

/* --- Gallery Grid System --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: var(--spacing-sub-body);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

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

.gallery-info {
    padding: var(--spacing-card-internal);
    background: var(--surface-color);
}

.gallery-info h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-info p {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- Expanded Lightbox with Navigation --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.lightbox-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 40px;
    gap: 20px;
}

.lightbox-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 85vh;
}

.lightbox-content {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    user-select: none;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.values-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-side-gap);
    margin-top: var(--spacing-sub-body);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: 0.3s;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.value-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 118, 59, 0.1);
    border-radius: 50%;
    color: var(--accent);
}

/* Page Utility Classes */
.hero-subtext {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 800px;
}

.service-highlight {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 500;
}

.details-title {
    color: var(--accent);
    margin-bottom: var(--spacing-headline-sub);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-details-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.service-details-list li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-details-list li span {
    color: var(--accent);
    font-weight: bold;
}

.service-details-container {
    max-width: 900px;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-left: none;
}

/* Internal Page Utilities */
.surface-bg {
    background: rgba(255, 255, 255, 0.02);
}

.surface-bg-gradient {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
}

.image-reveal-wrapper.compact {
    height: 350px;
}

.details-wrapper {
    margin-top: var(--spacing-sub-body);
}

.service-highlight-small {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: var(--spacing-headline-sub);
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-side-gap);
}

.icon-circle {
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.reason-card {
    width: auto !important;
    min-width: 0 !important;
    padding: var(--spacing-card-internal) !important;
    text-align: center;
    align-items: center;
}

.reason-card.featured {
    transform: translateY(-20px);
    border: 1px solid var(--accent);
}

.mvv-card .value-icon {
    margin: 0 auto var(--spacing-headline-sub) auto;
    width: 60px;
    height: 60px;
}

/* Page Media Query Fixes */
@media (max-width: 1024px) {
    .grid-three, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .reason-card.featured {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    section, .section-wrapper {
        padding: var(--spacing-section-mobile) var(--container-padding);
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------- Responsive Media Queries ---------------- */

/* Tablet Landscape (1200px and below) */
@media (max-width: 1200px) {
    .header-scrolled {
        padding: 1rem var(--container-padding) !important;
    }
}

/* Tablet Portrait & Small Desktop (1024px and below) */
@media (max-width: 1024px) {
    .intro-top, .choose-header, .form-container, .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    .intro-top.row-reverse {
        flex-direction: column-reverse !important;
    }
    .service-item {
        flex-direction: column !important;
        text-align: center;
        gap: var(--spacing-sub-body);
    }
    .service-desc p {
        margin: 0 auto 2rem auto;
    }
    .service-images {
        width: 100%;
        justify-content: center;
    }
    .main-img { width: 70%; height: 300px; }
    .sub-img { width: 40%; height: 220px; }
    
    .hero-sticky {
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }
    .hero-content {
        padding-top: 2rem;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    .hero-tagline {
        text-align: center;
    }
    .hero-bottom {
        position: relative;
        bottom: 0;
        margin-top: 2rem;
        justify-content: center;
    }
    .hero-card {
        width: 100%;
        max-width: 350px;
    }
    .form-group-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-links {
        display: none; /* Mobile menu takes over */
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    .nav-links {
        display: flex; /* Flex but fixed */
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        z-index: 9999;
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .social-icons {
        display: none !important;
    }
    .signature-content {
        padding: 4rem 1.5rem;
        text-align: center;
        flex-direction: column;
    }
    .signature-floats {
        position: relative;
        margin-top: 2rem;
        height: auto;
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        justify-content: center;
        width: 100%;
    }
    .float-stat {
        flex: 1;
        position: relative;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        margin: 0;
        padding: 1.2rem 0.5rem;
        min-width: 0 !important;
        background: rgba(255,255,255,0.03);
        text-align: center;
    }
    .float-stat h3 {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }
    .float-stat p {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .gallery-layout {
        flex-direction: column;
    }
    .category-list {
        flex-direction: row;
        overflow-x: auto;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 0 0 1rem 0;
        margin-bottom: 2rem;
    }
    .category-list li {
        white-space: nowrap;
        padding: 0.8rem 1.5rem;
    }
    .category-list li::before {
        bottom: 0;
        top: auto;
        left: 0;
        width: 0;
        height: 2px;
    }
    .category-list li.active::before, .category-list li:hover::before {
        width: 100%;
        height: 2px;
    }
    .footer-links {
        flex-direction: column;
        gap: 3rem;
    }
    .mission-vision-values {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .values-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .value-item {
        width: 100%;
    }
}

/* --- Why Choose Refined Layout --- */
.why-choose-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: var(--section-padding) 0;
    align-items: flex-start;
}

.why-title-side h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    max-width: 400px;
    margin-bottom: var(--spacing-headline-sub);
}

.why-list-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-side-gap);
}

.why-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.why-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.8;
    font-family: var(--font-main);
    padding-top: 0.3rem;
}

.why-text h4 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-headline-sub);
    color: var(--text-main);
}

.why-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .why-choose-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .why-title-side h2 {
        max-width: 100%;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .service-images img {
        width: 48%;
        height: 180px !important;
    }
    .main-img, .sub-img {
        margin-top: 0;
        width: 48% !important;
        height: 180px !important;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .main-heading {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
}


