/* --- Custom Scrollbar --- */
html { 
    scroll-behavior: auto; 
    
    /* Firefox */
    scrollbar-width: thin; 
    scrollbar-color: #1c2242 transparent; 
}
html.dark {
    scrollbar-color: #eca840 transparent; 
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px; 
    height: 8px; 
}
::-webkit-scrollbar-track {
    background: transparent; 
}
html.dark ::-webkit-scrollbar-track { 
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background-color: #1c2242; 
    border-radius: 4px; 
    border: none;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #3e4a8a; 
}
html.dark ::-webkit-scrollbar-thumb {
    background-color: #eca840; 
    border-radius: 4px; 
    border: none;
}
html.dark ::-webkit-scrollbar-thumb:hover {
    background-color: #d3942c; 
}
::-webkit-scrollbar-button {
    display: none; 
}
/* --- End Custom Scrollbar --- */

body { 
    font-family: 'Figtree', sans-serif; 
    background-color: #f8fafc; 
    color: #0f172a; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}
.dark body { 
    background-color: #020617; 
    color: #e2e8f0; 
}
body.modal-open {
    overflow: hidden;
}
h1, h2, h3 { 
    font-family: 'Figtree', sans-serif ; 
}

section { 
    padding-top: 120px; 
    padding-bottom: 120px; 
    min-height: auto;
}

#home {
    min-height: 100vh; 
    padding-top: 0;
    padding-bottom: 0;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .glassmorphism {
    background: rgba(15, 23, 42, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fade-in-up { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 1s ease-out, transform 1s ease-out; 
    will-change: transform, opacity; 
}
.fade-in-up.visible { 
    opacity: 1; 
    transform: translateY(0);
}

.animate-scroll-infinite {
    margin-left: -1.5rem; 
}

.hero-client-logo {
    height: 48px; 
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0 1.5rem; 
    flex-shrink: 0;
}

.hero-client-logo:not(.hero-client-logo-featured) {
    opacity: 0.6;
    filter: brightness(0) invert(1);
}

.hero-client-logo.hero-client-logo-featured {
    opacity: 1;
    filter: none;
}

.hero-client-logo:not(.hero-client-logo-featured):hover {
    opacity: 1;
}

.hero-client-logo.hero-client-logo-featured:hover {
    opacity: 0.9;
    transform: scale(1.05);
}


.testimonial-carousel .slick-slide { 
    padding: 0 15px;
    padding-bottom: 3rem; 
    height: inherit !important; 
}
.testimonial-carousel .slick-track { 
    display: flex !important; 
}
.testimonial-carousel .slick-dots li button:before { 
    font-size: 12px; 
    color: #eca840; 
}
.testimonial-carousel .slick-dots li.slick-active button:before { 
    color: #d3942c; 
}
.testimonial-carousel .slick-prev, .testimonial-carousel .slick-next { 
    z-index: 1; 
}
.testimonial-carousel .slick-prev:before, .testimonial-carousel .slick-next:before { 
    font-size: 24px; 
    color: #eca840; 
}

.testimonial-card { 
    height: 100%; 
    display: flex !important; 
    flex-direction: column;
    text-align: center;
    align-items: stretch; 
    position: relative; 
    padding-bottom: 4.5rem; 
    min-height: 400px; 
}
.testimonial-card h3,
.testimonial-card .text-sm { 
    text-align: left;
    width: 100%;
}
.testimonial-card p[class*="testimonial-text"] {
    text-align: left;
}
.testimonial-card p.testimonial-text {
    width: 100%;
}


/* Botão "ver mais" nos depoimentos */
.read-more-btn {
    position: absolute;
    bottom: 1.5rem; 
    right: 2rem; 
    color: #eca840; 
    font-weight: 700; 
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}
.read-more-btn:hover {
    color: #d3942c; 
}


#depoimentos {
    padding-bottom: 150px; 
    overflow: hidden; 
}

.section-title { 
    position: relative; 
    display: inline-block; 
    padding-bottom: 1rem; 
}
.section-title::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 80px; 
    height: 3px; 
    background-color: #eca840; 
    border-radius: 2px; 
}

/* --- Flip Card "Quem Somos" --- */
.flip-card { 
    background-color: transparent; 
    width: 100%; 
    max-width: 362px; 
    height: 450px; 
    perspective: 1000px; 
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 1rem; 
    will-change: transform, box-shadow;
}
.flip-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10; 
}
.flip-card-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    text-align: center; 
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d; 
    will-change: transform;
}
.flip-card:hover .flip-card-inner { 
    transform: rotateY(180deg); 
}
.flip-card-front, .flip-card-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden; 
    border-radius: 1rem; 
    overflow: hidden; 
}
.flip-card-front { 
    color: black; 
    box-sizing: border-box; 
    background: linear-gradient(145deg, #1e293b, #0f172a); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding-top: 2rem; 
}
.flip-card-image {
    max-width: 100%;
    width: 100%; 
    height: 350px; 
    object-fit: contain; 
    object-position: center center; 
}

.flip-card-image[src="assets/pictures/carol.png"] {
    height: 310px; 
    object-position: center 85%; 
}

.flip-card-image[src="assets/pictures/thamilla.png"] {
    height: 290px; 
    object-position: center 85%; 
    transform: scale(125%);
}

.flip-card-back { 
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: white; 
    transform: rotateY(180deg); 
    padding: 3rem 2rem 2rem 2rem; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    overflow: hidden; 
    position: relative; 
}
.flip-card-back p {
    text-align: left; 
    width: 100%;
    max-height: 300px; 
    overflow-y: hidden; 
    padding-right: 8px; 
    font-size: 1rem; 
    line-height: 1.6; 
}

/* Manifesto Cards */
.manifesto-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    transition: background 0.3s ease, transform 0.3s ease;
    height: 100%;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.manifesto-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}
.manifesto-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #eca840;
    text-align: center;
}
.manifesto-card-content {
    flex-grow: 1;
}
.manifesto-card-link {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.875rem; 
    font-style: italic;
    color: #eca840;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.manifesto-card:hover .manifesto-card-link {
    opacity: 1;
}


/* Product Card Styles */
.product-card {
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dark .product-card {
    background-color: #1F2937; 
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.product-card-image {
    width: 100%;
    height: 240px; 
    object-fit: cover;
}
.product-card-content {
    padding: 1.5rem;
}
.product-card-cta {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: #eca840;
    transition: color 0.3s ease;
}
.product-card-cta:hover {
    color: #d3942c; 
}


.client-logo-link {
    display: block;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}
.client-logo-link:hover {
    transform: scale(1.1);
}
.client-logo-light, .client-logo-dark {
    height: 48px; 
    width: auto;
    max-width: 160px; 
    object-fit: contain;
}
.client-logo-scaled {
    height: 72px; 
    max-width: 220px; 
}
.client-logo-light { display: block; }
.client-logo-dark { display: none; }
.dark .client-logo-light { display: none; }
.dark .client-logo-dark { display: block; }


#service-detail-page { 
    display: none; 
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}


/* Modal Styles (Manifesto) */
#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#modal-container.modal-visible {
    opacity: 1;
    visibility: visible;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}
.modal-content {
    background: linear-gradient(145deg, #2a3052, #1c2242);
    color: #e2e8f0;
    padding: 2.5rem;
    border-radius: 1rem;
    z-index: 101;
    max-width: 90%;
    width: 550px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    max-height: 90vh; 
    display: flex;
    flex-direction: column;
}
.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.25rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.modal-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}
#modal-title {
    color: #eca840; 
}
#modal-text {
    overflow-y: auto; 
    padding-right: 10px; 
    scrollbar-width: thin;
    scrollbar-color: #eca840 #1c2242; 
}
#modal-text::-webkit-scrollbar {
    width: 6px;
}
#modal-text::-webkit-scrollbar-track {
    background: #1c2242; 
    border-radius: 3px;
}
#modal-text::-webkit-scrollbar-thumb {
    background-color: #eca840; 
    border-radius: 3px;
}
#modal-text strong {
    color: #eca840; 
    font-weight: 600;
}


/* Modal Depoimentos */
#testimonial-modal-container.visible {
    opacity: 1;
    visibility: visible;
}
#testimonial-modal-container.visible #testimonial-modal-content {
    transform: scale(1);
}

#testimonial-modal-container {
    opacity: 0;
    visibility: hidden;
}

#testimonial-modal-text {
    scrollbar-width: thin;
    scrollbar-color: #eca840 #1F2937; 
}
html:not(.dark) #testimonial-modal-text {
     scrollbar-color: #eca840 #e5e7eb; 
}

#testimonial-modal-text::-webkit-scrollbar {
    width: 6px;
}
#testimonial-modal-text::-webkit-scrollbar-track {
    background: #374151; 
}
html:not(.dark) #testimonial-modal-text::-webkit-scrollbar-track {
    background: #e5e7eb; 
}
#testimonial-modal-text::-webkit-scrollbar-thumb {
    background-color: #eca840; 
    border-radius: 3px;
}

/* Ajustes Mobile Hero Logos */
@media (max-width: 767px) {
    .hero-client-logo {
        height: 32px; 
        margin: 0 1rem; 
    }
    .animate-scroll-infinite {
        margin-left: -1rem; 
    }
}