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

:root {
    --primary: #5A3C2A;
    /* Sofisticação - fundo principal escuro */
    --primary-dark: #4a2e1e;
    --primary-deeper: #3d2518;
    --primary-light: #7a5840;
    --gold: #c5a059;
    /* Exclusividade - tom dourado */
    --gold-gradient: linear-gradient(135deg, #D4A843 0%, #F2D675 40%, #C5993B 70%, #E8C95A 100%);
    --gold-light: #eaddc0;
    --leveza: #FBF6E7;
    /* Leveza - creme off-white para textos */
    --naturalidade: #DBC5AC;
    /* Naturalidade - para cards de serviço */
    --seguranca: #ABA594;
    /* Segurança - para cards de depoimentos */
    --text-light: #FBF6E7;
    /* Texto principal (claro sobre escuro) */
    --text-muted: #c4b9a8;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.font-serif {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Reusable Components --- */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
    border: 1px solid rgba(242, 214, 117, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E8C95A 0%, #D4A843 50%, #F2D675 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(212, 168, 67, 0.55);
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: 700;
    border: 1px solid rgba(242, 214, 117, 0.3);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #E8C95A 0%, #D4A843 50%, #F2D675 100%);
    transform: translateY(-3px);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--leveza);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Header --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(90, 60, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--leveza);
}

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

/* --- Hero --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--leveza);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--primary-light);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Stats --- */

.stats {
    padding: 3rem 0;
    background-color: var(--primary-dark);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    text-align: center;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

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

/* --- Services --- */

.services {
    padding: 4rem 0;
    background-color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--naturalidade);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(219, 197, 172, 0.5);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--gold-light);
    border-color: var(--gold);
}

.service-card:hover .service-icon {
    color: var(--primary);
}

.service-card:hover .service-image img,
.service-card:hover .service-image video {
    transform: scale(1.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--primary);
}

#about-grid {
    align-items: center;
}

@media (min-width: 993px) {
    #about-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

/* --- Testimonials --- */

.testimonials {
    padding: 4rem 0;
    background-color: var(--primary-deeper);
}

.testimonials .section-title h2 {
    color: var(--leveza);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--seguranca);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(171, 165, 148, 0.4);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-weight: 600;
    color: var(--primary);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.7;
}

/* --- Footer --- */

footer {
    padding: 5rem 0 2rem;
    background-color: var(--primary-deeper);
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

footer .logo {
    color: var(--gold);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--leveza);
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Modal de Cadastro --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-deeper) 100%);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 30px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.85) translateY(30px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(197, 160, 89, 0.08);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.modal-header h2 {
    font-size: 2.2rem;
    color: var(--leveza);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input {
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: var(--leveza);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    color-scheme: dark;
}

.form-group input::placeholder {
    color: rgba(196, 185, 168, 0.5);
}

.form-group input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

.modal-submit {
    margin-top: 0.8rem;
    width: 100%;
    padding: 1.1rem;
    font-size: 0.95rem;
}

/* Success State */
.modal-success {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.modal-success.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.modal-success i {
    font-size: 3.5rem;
    color: #4ade80;
    margin-bottom: 1rem;
}

.modal-success h3 {
    font-size: 1.6rem;
    color: var(--leveza);
    margin-bottom: 0.5rem;
}

.modal-success p {
    color: var(--text-muted);
    font-size: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsiveness --- */

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 3rem;
        margin-top: 1rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        display: flex;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content span {
        margin-bottom: 0.5rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        text-align: center;
    }

    .modal-container {
        padding: 2rem 1.5rem;
        border-radius: 22px;
        margin: 0.5rem;
    }

    .modal-header h2 {
        font-size: 1.7rem;
    }

    .form-group input {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}