/* ======================= Estilos Gerais e Variáveis ======================= */
:root {
    /* Paleta de Cores */
    --color-primary: #DAA520; /* Dourado (Destaque) */
    --color-bg-light: #FFFACD; /* Amarelo Claro (Fundo Seção) */
    --color-bg-secondary: #EEE8AA; /* Amarelo Secundário */
    --color-text: #4A4A4A; /* Cinza Escuro (Texto) */
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Tipografia */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    /* Outros */
    --header-height: 70px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-secondary);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
    overflow: hidden;
}

.section:nth-child(odd) {
    background-image: linear-gradient(to top, #fff9e0 0%, #fffcf2 100%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    filter: brightness(1.2);
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.title-xl {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.title-lg {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.title-md {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: bold;
    font-family: var(--font-primary);
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-image: linear-gradient(45deg, #c7951c 0%, #DAA520 50%, #f0c040 100%);
    background-size: 200% auto;
    color: var(--color-white);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    font-size: 1.1rem;
}

.btn-whatsapp i {
    margin-right: 10px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: var(--color-white);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 2px 20px rgba(74, 74, 74, 0.08);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
}

#menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text);
    padding: 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-image: linear-gradient(to right, #DAA520, #f0c040);
    transition: width 0.4s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#btn-mobile {
    display: none;
}

/* ======================= Seção Hero ======================= */
#inicio {
    padding-top: var(--header-height);
    background-color: #fffcf2;
    background-image: radial-gradient(ellipse 70% 90% at 10% 10%, #EEE8AA 0%, rgba(255, 252, 242, 0) 70%);
}

.hero-container {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-height));
    gap: 30px;
}

.hero-text {
    flex: 1 1 55%;
    padding-right: 30px;
}

.hero-image {
    flex: 1 1 45%;
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ATUALIZAÇÃO: Regra do clip-path agora é autossuficiente */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* A forma do SVG agora está embutida diretamente aqui, tornando-a independente do HTML. */
    clip-path: polygon(25% 0%, 90% 0, 100% 10%, 100% 90%, 90% 100%, 25% 100%, 2.5% 55%, 2.5% 45%);
}

#especialidades {
    background-color: var(--color-white);
}

.cards-container {
    display: grid;
    gap: 30px;
}

.card {
    background-color: var(--color-white);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04), 0 10px 30px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06), 0 15px 40px rgba(218, 165, 32, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #c7951c, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* ======================= Seção Sobre Mim ======================= */
.about-container {
    display: grid;
    align-items: center;
    gap: 50px;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ======================= Seção Depoimentos (Carrossel) ======================= */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    background-color: var(--color-white);
    padding: 35px;
    border-radius: 12px;
    margin: 0 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.testimonial-card cite {
    font-weight: bold;
    color: var(--color-primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-primary);
    border: 1px solid #eee;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* ======================= Seção Contato ======================= */
.contact-container {
    display: grid;
    gap: 50px;
    align-items: center;
}

.contact-info {
    text-align: center;
}

.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mapa-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.address-details {
    margin-top: 30px;
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.8;
}

.address-details p {
    margin-bottom: 8px;
}

.address-details i {
    margin-right: 12px;
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

#footer {
    background-color: #f8f8f8;
    color: #777;
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #eee;
}

/* ======================= Media Queries (Responsividade) ======================= */

@media (min-width: 768px) {
    .title-xl {
        font-size: 3.5rem;
    }

    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr 1.5fr;
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 30px);
    }

    .contact-container {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info {
        text-align: left;
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        min-height: calc(80vh - var(--header-height));
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .hero-text {
        padding-right: 0;
    }
    
    .hero-image {
        display: none;
    }
}


@media (max-width: 767px) {
    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: var(--header-height);
        right: 0;
        background: var(--color-white);
        height: 0;
        transition: height 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
        visibility: hidden;
        overflow-y: hidden;
        z-index: 100;
        border-top: 1px solid rgba(0,0,0,0.05);
    }

    #nav.active #menu {
        height: calc(100vh - var(--header-height));
        visibility: visible;
        overflow-y: auto;
    }

    #menu li {
        padding: 1rem 0;
        margin: 0 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    #menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        text-align: center;
        font-size: 1.2rem;
    }
    
    .nav-link::after {
        display: none;
    }

    #btn-mobile {
        display: flex;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        gap: 0.5rem;
    }

    #hamburger {
        border-top: 2px solid;
        width: 20px;
        color: var(--color-text);
    }

    #hamburger::after,
    #hamburger::before {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin-top: 5px;
        transition: 0.3s;
        position: relative;
    }

    #nav.active #hamburger {
        border-top-color: transparent;
    }

    #nav.active #hamburger::before {
        transform: rotate(135deg);
    }

    #nav.active #hamburger::after {
        transform: rotate(-135deg);
        top: -7px;
    }
    
    .prev-btn {
        left: 5px;
    }
    .next-btn {
        right: 5px;
    }

    .contact-info {
        text-align: center;
    }
}
