/* --- RESET E VARIÁVEIS --- */
:root {
    --color-primary: #D9381E;
    --color-accent: #F2A900;
    --color-gold: #C5A059;

    --bg-body: #FAFAF9;
    --bg-card: #FFFFFF;
    --bg-nav-scrolled: rgba(255, 255, 255, 0.95);
    --text-main: #292524;
    --text-muted: #57534E;
    --border-subtle: rgba(0, 0, 0, 0.05);

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    --radius: 1rem;
}

/* --- DARK MODE --- */
body.dark-mode {
    --bg-body: #1c1917;
    --bg-card: #292524;
    --bg-nav-scrolled: rgba(28, 25, 23, 0.95);
    --text-main: #f5f5f4;
    --text-muted: #a8a29e;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.hidden {
    display: none !important;
}

/* --- BOTÕES ELEGANTES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #f1c662 0%, #e69c00 100%);
    color: #fff;
    border: none;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
}
/* --- NAVBAR GLASSMORPHISM --- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background-color: var(--bg-nav-scrolled);
    height: 80px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
}

.brand-name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.navbar:not(.scrolled) .brand-name {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
}

.navbar:not(.scrolled) .nav-link {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .header-icon-btn {
    border-color: rgba(0, 0, 0, 0.1);
    background: transparent;
}

.navbar:not(.scrolled) .header-icon-btn {
    color: white;
}

.header-icon-btn:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    margin-top: -40px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-style: italic;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 5;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(133% + 1.3px);
    height: 80px;
}

.hero-wave .shape-fill {
    fill: var(--bg-body);
    transition: fill 0.4s;
}

/* --- SEÇÕES & TÍTULOS --- */
.section-header {
    margin-bottom: 80px;
    position: relative;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* --- CARDS --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid var(--border-subtle);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 32px;
    text-align: left;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    margin-bottom: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(242, 169, 0, 0.15);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.card-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- DEPOIMENTOS --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.testimonial-card {
    background-color: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid var(--border-subtle);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.testimonial-bg-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-sans);
}

.author-info .stars {
    color: var(--color-gold);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* --- CARROSSEL --- */
.carousel-wrapper {
    position: relative;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
    touch-action: manipulation;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    min-width: 85%;
    width: 85%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
    transition: transform 0.3s;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-slide:hover {
    transform: scale(1.02);
}

.carousel-slide img,
.carousel-slide picture {
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-slide img {
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    background-color: #2D241E;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #2D241E;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-serif);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-hover);
    z-index: 10;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: 0.3s;
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: white;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* --- LOCALIZAÇÃO --- */
.location-section {
    background-color: #2D241E;
    color: white;
    position: relative;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-top: 5px;
}

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
}

.info-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.map-container {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: none;
}

/* --- FOOTER & WHATSAPP --- */
footer {
    background: #1c1917;
    color: #78716c;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.link-insta {
    color: #e09d1f;
    text-decoration: none;
    font-weight: 600;
}

/* --- MENU SOCIAL FLUTUANTE (FAB) --- */
.social-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.social-trigger {
    width: 56px;
    height: 56px;
    background-color: #e09d1f;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2002;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-trigger:not(.active) {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(224, 157, 31, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(224, 157, 31, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(224, 157, 31, 0);
    }
}

.social-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    position: absolute;
    bottom: 7px;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5) rotate(-180deg);
    z-index: 2001;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0D5DC7 100%);
}

/* --- ESTADOS ATIVOS --- */

.social-trigger.active {
    transform: rotate(90deg);
    background-color: var(--color-primary);
}

.social-fab-container.open .btn-whatsapp {
    bottom: 210px;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) rotate(0);
}

.social-fab-container.open .btn-instagram {
    bottom: 145px;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) rotate(0);
    transition-delay: 0.05s;
}

.social-fab-container.open .btn-facebook {
    bottom: 80px;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) rotate(0);
    transition-delay: 0.1s;
}

.social-item:hover {
    transform: scale(1.15) !important;
}

.float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-float {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.instagram-float {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 10px 25px rgba(211, 37, 109, 0.4);
}

.facebook-float {
    background: linear-gradient(135deg, #1877F2 0%, #0D5DC7 100%);
    box-shadow: 0 10px 25px rgba(37, 98, 211, 0.4);
}


/* --- MENU MOBILE --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-nav-scrolled);
    backdrop-filter: blur(15px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-family: var(--font-serif);
}

/* --- MEDIA QUERIES --- */
@media (min-width: 820px) {
    .nav-links {
        display: flex;
    }

    .mobile-trigger {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 24px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-slide {
        min-width: 50%;
        width: 50%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .carousel-slide img {
        object-fit: cover;
    }

    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .carousel-container {
        gap: 32px;
    }

    .carousel-slide {
        min-width: 65%;
        width: 65%;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 819px) {
    .mobile-trigger {
        display: inline-flex !important;
    }
}

.mobile-trigger {
    color: var(--text-main);
    z-index: 1001;
    position: relative;
    background: none;
    border: none;
    font-size: 1.4rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 48px;
    height: 48px;
    transition: color 0.3s ease;
}

/* --- ANIMAÇÃO DO ÍCONE (MENU x FECHAR) --- */
.mobile-trigger i {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-trigger.open i {
    transform: rotate(180deg) scale(1.1);
}

.navbar:not(.scrolled) .mobile-trigger {
    color: white;
}

.navbar.scrolled .mobile-trigger {
    color: var(--text-main);
}

body.dark-mode .mobile-trigger,
body.dark-mode .navbar.scrolled .mobile-trigger {
    color: white;
}

.mobile-trigger.open {
    color: var(--text-main);
}

.navbar:not(.scrolled) .mobile-trigger.open {
    color: var(--text-main);
}

body.dark-mode .mobile-trigger.open {
    color: white;
}

#apresentacao,
.section-header {
    scroll-margin-top: 110px;
}

@media (max-width: 819px) {
    #apresentacao,
    .section-header {
        scroll-margin-top: 90px;
    }
}

/* --- BLOQUEIO DE SCROLL QUANDO MODAL ABERTO --- */
body.modal-open {
    overflow: hidden;
}


/* --- MODAL POPUP HORÁRIOS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto;
    padding: 20px;
}


.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}


.modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    animation: slideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
    display: inline-block;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #D9381E;
    border: 2px solid rgba(217, 56, 30, 0);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}


.modal-close:hover {
    background-color: #D9381E;
    color: #FFFFFF;
    transform: scale(1.1) rotate(90deg);
}


@media (max-width: 819px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        max-height: 85vh;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}


@media (max-width: 480px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}