@font-face {
    font-family: 'Tw Cen MT Std';
    src: url('fonts/twcenmtstd-webfont.woff2') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tw Cen MT Std';
    src: url('fonts/twcenmtstdbold-webfont.woff2') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Tw Cen MT Std';
    src: url('fonts/tw_cen_mt_std_bold_italic-webfont.woff2') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Tw Cen MT Std';
    src: url('fonts/twcenmtstd-webfont.woff2') format('opentype');
    font-weight: 300;
    font-style: normal;
}

:root {
    --primary: #AA9659;
    --cta: #000066;
    --secondary: #AA9659;
    --secondary-light: #e7dbb8;
    --accent: #f3f4f6;
    --text: #534B3B;
    --text-muted: #6b7280;
    --text-dark: #4b5563;
    --white: #ffffff;
    --gray-light: #f0eded;
    --footer-bg: #111827;
    --footer-border: #1f2937;
    --footer-text: #9ca3af;
    --star-color: #fbbf24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tw Cen MT Std', 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--accent);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

h1,
h2,
h3,
h4 {
    font-family: 'Tw Cen MT Std', 'Poppins', sans-serif;
    font-weight: bold;
    color: var(--primary);
}

small {
    float: right;
    color: var(--text);
    opacity: .7;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    /* Ensures it is visible all the time */
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 0.8s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 120px;
    position: relative;
    /* For absolute positioning of logo/links if needed, or just flex alignment */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 0;
}

.logo img {
    height: 60px;
    /* Adjust based on navbar height which is 80px */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    font-size: 1.15rem;
    /* Increased font size */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Fix for CTA hover color - specific selector to override generic link hover */
.nav-links a.btn-cta:hover {
    color: var(--text);
    width: auto;
    /* Prevent underline effect on button if needed, or handle ::after separately */
}

/* Hide underline for button */
.nav-links a.btn-cta::after {
    display: none;
}

a.btn-cta {
    background: var(--cta);
    color: var(--secondary-light);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;

    display: inline-block;
}

.btn-cta:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(234, 88, 12, 0.3);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 232px 0 160px;
    background-color: var(--secondary-light);
    background-image: -moz-linear-gradient(90deg, var(--secondary-light) 0%, var(--secondary-light) 50%, var(--primary) 100%);
    background-image: -webkit-linear-gradient(90deg, var(--secondary-light) 0%, var(--secondary-light) 50%, var(--primary) 100%);
    background-image: linear-gradient(90deg, var(--secondary-light) 0%, var(--secondary-light) 50%, var(--primary) 100%);
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    max-width: 500px;
}

.hero-img {
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-align: center;
}

.hero-img img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.1); Optional: drop shadow for image */
}

/* About Section */
.about {
    padding: 290px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px 0 0;
    transition: width 0.3s;
}

.about-text:hover h2::after {
    width: 100%;
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-img {
    position: relative;
    height: auto;
    background: transparent;
    display: block;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.about-img:hover img {
    transform: scale(1.02);
}

/* Services */
.services {
    padding: 170px 0;
    background-color: var(--secondary);
    background-image: -moz-linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 43%, var(--secondary-light) 100%);
    background-image: -webkit-linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 43%, var(--secondary-light) 100%);
    background-image: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 43%, var(--secondary-light) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-depoimentos {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header {
    text-align: center;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.card-icon {
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    max-height: 100%;
    max-width: 100%;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Contact */
.contact {
    background: var(--cta);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact a,
.contact .contact-info p {
    text-decoration: none;
    color: var(--secondary-light);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

.contact h2 {
    color: var(--white);
    margin-bottom: 60px;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
}

.info-item {
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item i {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-item p {
    font-size: 1.1rem;
    color: #d1d5db;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--footer-border);
}

.developer-credit {
    display: block;
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--text-dark);
    opacity: 0.5;
    text-decoration: none;
    transition: all 0.3s;
}

.developer-credit:hover {
    opacity: 1;
    color: var(--footer-text);
}

/* Client Logos */
.clients-section {
    margin-top: 50px;
    text-align: center;
}

.clients-section h3 {
    margin-bottom: 40px;
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.8;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    background-color: white;
    padding: 20px 0;
    width: 100%;
    /* Removed absolute positioning to prevent overlap */
}

.clients-grid img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 1;
    transition: all 0.3s ease;
    mix-blend-mode: multiply;
    /* Helps integrate jpegs with white backgrounds if needed */
}

.clients-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2);
}

/* Hide hamburger on desktop */
.mobile-menu-icon {
    display: none;
}

.logo-ricci {
    width: 160px;
    height: 80px;
    background-color: var(--cta);
    padding: 10px;
    border-radius: 4px;
    opacity: 0.9;
}

.logo-ricci img {
    mix-blend-mode: unset;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        text-align: center;
        background-image: unset;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-img {
        order: -1;
        margin: 10px 0;

    }

    .services {
        padding: 130px 0;
        background-image: none;
        background-color: #e7dbb8;

        & .section-header {
            margin-bottom: 20px;
        }
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about {
        padding: 120px 0;
    }

    /* Mobile Menu Icon */
    .mobile-menu-icon {
        display: block;
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary);
        z-index: 1001;
    }

    .nav-links {
        /* display: none; */
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-top: 0px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }

    .nav-links.active {
        transform: translateX(0%);
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    small {
        float: unset;
        display: block;
    }
}


/* Portal do Cliente Specific Style */
.portal-client {
    margin-left: 30px;
    /* Adds to the existing gap for extra spacing */
}

/* Testimonials */
.testimonials {
    padding: 145px 0;
    background: var(--white);
    /* White background to contrast with gradient services */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 5;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    border: 2px solid var(--gray-light);
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-light);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-card img {
    width: 100%;
    height: auto;
    display: block;
}


/* FAQ Section */
.faq {
    padding: 120px 0 30px 0px;
    background-color: rgba(231, 219, 184, 0.3);
    background-image: -moz-linear-gradient(90deg, rgba(231, 219, 184, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
    background-image: -webkit-linear-gradient(90deg, rgba(231, 219, 184, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
    background-image: linear-gradient(90deg, rgba(231, 219, 184, 0.3) 0%, rgba(255, 255, 255, 1) 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    /* margin-bottom: 5px; */
    background: var(--white);
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

details[open] {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

summary {
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    font-size: 1rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--secondary);
    transition: transform 0.3s;
    font-weight: 400;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    padding: 0 20px 20px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-top: -10px;
    /* Pull text up slightly */
    border-top: 1px solid transparent;
}

details[open] p {
    animation: fadeInDown 0.3s ease-out;
}