/* ============================================================
   DESIGN SYSTEM — MILENA NOVELLO E RAFAEL MARTINES
   Palette: Luxury Beige · Sophisticated Gray · Gold Details
   Style: Luxury Refined
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    color-scheme: light;
    /* Colors */
    --beige-base: #F4EFE6;
    --beige-soft: #FAF8F4;
    --beige-dark: #BCB0A2;

    --gray-base: #5A5A5A;
    --gray-dark: #2D2D2D;
    --gray-light: #DED6CD;

    --gold-base: #c5a059;
    --gold-glow: #f9e69e;
    --gold-dark: #8b6d2d;

    --white: #ffffff;
    --black: #1a1a1a;

    /* Fonts */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing & Transitions */
    --radius: 5px;
    --transition-base: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--beige-base);
    color: var(--gray-base);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Luxury Accents */
.text-gold-gradient {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-base) 25%, var(--gold-glow) 50%, var(--gold-base) 75%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-base) 25%, var(--gold-glow) 50%, var(--gold-base) 75%, var(--gold-dark) 100%);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--gray-dark);
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-base);
    display: block;
    margin-bottom: 1.25rem;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-base);
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--gray-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--gold-base);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gray-dark);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--gold-base);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.news-dot {
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: 2px;
}

.news-dot.active {
    background: var(--gold-base);
    width: 50px;
}

.news-prev:hover,
.news-next:hover {
    background: var(--gold-base) !important;
    color: white !important;
    border-color: transparent !important;
    transform: scale(1.1);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-base) 25%, var(--gold-glow) 50%, var(--gold-base) 75%, var(--gold-dark) 100%);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
    transition: var(--transition-base);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-base) 0%, var(--gold-glow) 50%, var(--gold-base) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #128C7E 0%, #25D366 50%, #128C7E 100%);
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius);
    transition: var(--transition-base);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-green:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    background: url('../imagem/backg01.webp') no-repeat center top;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 65%;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--gray-base);
    max-width: 65%;
}

.hero-mobile-img {
    display: none;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fffbf5;
    padding: 50px 40px;
    border-radius: var(--radius);
    transition: var(--transition-base);
    border: 1px solid rgba(93, 93, 93, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-base);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-icon {
    color: var(--gold-base);
    margin-bottom: 25px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-text {
    font-size: 0.95rem;
    color: var(--gray-base);
    opacity: 0.8;
}

/* About Section */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-cols: 1;
    gap: 60px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Differentials */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.diff-item {
    text-align: center;
}

.diff-icon {
    width: 60px;
    height: 60px;
    background: var(--beige-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold-base);
}

/* News/Results Section */
.news {
    background: var(--gray-dark);
    color: var(--white);
}

.news .section-title,
.news .section-description {
    color: var(--white);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(93, 93, 93, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-summary {
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    background: #fffbf5;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-content {
    padding: 0 30px 20px;
    background: #fffbf5;
    color: var(--gray-base);
}

/* Footer */
footer {
    background: var(--gray-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--gold-base);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Floating WhatsApp */
#wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.wa-balloon {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    padding: 12px 20px;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
}

#wa-float:hover .wa-balloon {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--gold-base);
}

.wa-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-text {
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-weight: 500;
}

.wa-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    transition: var(--transition-base);
}

.wa-btn:hover {
    transform: scale(1.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    /* Footer mobile fix */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .footer-grid > div {
        grid-column: span 1 !important;
    }

    footer {
        overflow-x: hidden;
    }

    .footer-links {
        word-break: break-word;
    }

    .hero {
        text-align: left;
        background: url('../imagem/backg01mobile.webp') no-repeat center top;
        background-size: cover;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding-top: 160px;
        padding-bottom: 0;
        min-height: 100vh;
    }

    .hero::after {
        display: none;
    }

    .hero-content {
        margin: 0;
    }

    .hero-title,
    .hero-description {
        max-width: 100%;
    }

    .hero-mobile-img {
        display: block;
        position: relative;
        width: 75%;
        max-width: 320px;
        height: auto;
        margin: 20px auto 0 auto;
        z-index: 1;
    }

    #wa-float {
        position: fixed !important;
        bottom: 20px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 20px !important;
        z-index: 99999 !important;
    }

    #wa-float .btn-green {
        width: 100%;
        max-width: 340px;
        justify-content: center;
        padding: 16px 20px;
        font-size: 0.85rem;
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }

    /* Carrossel de notícias no mobile */
    .news-carousel-container {
        margin: 0 35px !important;
    }

    .news-slide img {
        height: auto !important;
        max-height: 350px !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .news-prev,
    .news-next {
        width: 35px !important;
        height: 35px !important;
    }

    .news-prev iconify-icon,
    .news-next iconify-icon {
        width: 18px;
        height: 18px;
    }

    /* Reordenar: carrossel acima do texto no mobile */
    .news-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    .news-carousel-wrapper {
        order: -1;
    }
}