/* --- CSS VARIABLES --- */
:root {
    --color-primary: #1e293b;
    --color-secondary: #e9bac5;
    --color-secondary-light: #fdf4f6;
    --color-accent: #d4869c;
    --color-text: #334155;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.06);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- CONTAINERS & UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 100px 0;
}

.section-subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 41, 59, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* --- HERO SECTION (HOME) --- */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #fdfbfb 0%, #f5ebeb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 280px;
}

/* --- PAGE HERO (INTERNAL PAGES) --- */
.page-hero {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #fdfbfb 0%, #f5ebeb 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* --- AUTHORITY BAR --- */
.authority-bar {
    background-color: white;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.logos-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.logos-grid:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- SERVICES --- */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: transparent;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.service-link:hover {
    text-decoration: underline;
}

/* --- TESTIMONIALS --- */
.testimonials {
    background-color: #f8fafc;
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    border: 1px solid #f1f5f9;
}

.stars {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    gap: 3px;
}

/* --- FAQ SEMANTICO --- */
.faq {
    background-color: var(--color-secondary-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 50px;
}

details.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

summary.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    list-style: none;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s ease;
}

details[open] summary.faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: #64748b;
    line-height: 1.6;
}

/* --- ABOUT PAGE SPECIFIC --- */
.content-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.award-box {
    background: #fdf4f6;
    padding: 40px;
    border-radius: 16px;
    margin-top: 60px;
    border: 1px solid #fce7f3;
}

.award-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.award-icon {
    font-size: 3rem;
    color: var(--color-accent);
}

/* --- CONTACT PAGE SPECIFIC --- */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 400px;
}

/* --- SERVICE PAGE SPECIFIC (TABS) --- */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 50px;
}

.tabs-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.tab-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
}

.tab-btn.active .tab-number {
    background-color: white;
    color: var(--color-primary);
}

.tab-content {
    display: none;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
    background-color: #111827;
    color: #94a3b8;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.review-btn:hover {
    background-color: var(--color-accent);
}

.copyright {
    text-align: center;
    border-top: 1px solid #1f2937;
    padding-top: 20px;
}

/* --- RESPONSIVE --- */
/* --- RESPONSIVE --- */
@media (max-width: 968px) {

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 30px;
        position: relative;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        display: flex;
        /* Muda de Grid para Flex no mobile */
        flex-direction: column;
        /* Empilha verticalmente */
    }

    .about-img {
        order: -1;
        /* Mágica: Força a imagem a ir para o topo, não importa a ordem no HTML */
        margin-bottom: 20px;
        /* Adiciona um respiro entre a foto e o texto */
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    /* Hero Badge Mobile Fix */
    .hero-badge {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
        padding: 15px;
        gap: 5px;
        align-items: center;
        text-align: center;
    }

    .hero-badge i {
        font-size: 1.5rem;
    }

    .hero-badge strong {
        font-size: 0.9rem;
    }

    .hero-badge span {
        font-size: 0.75rem;
    }

    .tabs-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .tab-content {
        padding: 30px 20px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-badge {
        padding: 10px;
        bottom: 10px;
    }
}

/* --- UTILS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FIX RODAPÉ - ENDEREÇO LONGO */
.footer-contact p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 768px) {
    .footer-contact p i {
        display: inline-block;
        margin-right: 5px;
    }

    .footer-contact p {
        font-size: 0.85rem;
        /* Reduz levemente para caber melhor */
        line-height: 1.5;
        margin-bottom: 15px;
    }
}

/* --- COOKIE BANNER (LGPD) --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', sans-serif;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    background-color: #1e293b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    background-color: #0f172a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}