/* --- Variáveis de Cor --- */
:root {
    --primary-gold: #b89146;
    --primary-red: #8c2a2a;
    --dark-background: #0c0c0e;
    --light-gray-background: #121214;
    --text-dark: #333;
    --text-light: #f5f5f7;
    --header-bg-transparent: rgba(12, 12, 14, 0.6);
}

/* --- Estilos Globais e Reset --- */
html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-background);
    width: 100%;
    min-height: 100vh;
}

/* Responsividade global */
*, *::before, *::after { box-sizing: border-box; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* --- Header --- */
header {
    background-color: var(--header-bg-transparent);
    position: fixed;
    top: 0;
    left: 0;
    min-height: 80px;
    height: auto;
    width: 100%;
    z-index: 1000;
    /* base para ::after ficar atrás mas visível */
    isolation: isolate;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.199);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    background-color: transparent;
    pointer-events: none;
    z-index: -1; /* fica atrás do conteúdo do header */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: flex-start; /* quando quebrar linha, grudar no topo */
    row-gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-cta {
    display: none;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo {
    background-color: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    width: auto;
    height: auto;
}

.logo img {
    max-height: 50px;
    width: auto;
    height: auto;
    max-width: 85%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}


.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: clamp(12px, 2.2vw, 30px);
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-links a.active {
    color: var(--primary-gold);
    text-shadow: 0 0 12px rgba(184, 145, 70, 0.35);
}

.menu-toggle {
    display: none;
    font-size: 1.8em;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100svh;
    height: 100vh; /* fallback */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

/* VIDEO DE FUNDO FIXO NA SEÇÃO HERO */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* ESCURECIMENTO */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.6)
    );
    z-index: 2;
}

/* CONTEÚDO SOBRE O VÍDEO */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

/* TÍTULO */
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem); /* responsivo */
    margin-bottom: 20px;
    color: var(--primary-gold);
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* SUBTÍTULO */
.hero p {
    font-size: clamp(1rem, 2vw, 1.4rem); /* responsivo */
    margin-bottom: 30px;
}

/* BOTÃO */
.hero .btn {
    background-color: var(--primary-gold);
    color: var(--text-light);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
    background-color: #d4a95b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Ajuste do scroll */
section { 
    scroll-margin-top: 80px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* --- Sobre Mim Section --- */
.about-us {
    background-color: #0f0f10;
    padding: 80px 0;
}

.about-us .content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-us .text-content {
    flex: 2;
    min-width: 300px;
}

.about-us h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.2em;
    color: var(--primary-gold);
    margin-bottom: 30px;
    text-align: center;
}

.about-us p {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: #cfcfd3;
}

.about-us .graphic-placeholder {
    flex: 1;
    position: relative;
    min-height: 420px;
    min-width: 300px;
    margin: 20px auto;
}

.about-us .graphic-placeholder .shape1 {
    width: 70%;
    height: 300px;
    background-color: rgba(184, 145, 70, 0.15);
    position: absolute;
    top: 0;
    left: 30px;
    z-index: 1;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    opacity: 1;
    transition: transform 0.5s ease;
}

.about-us .graphic-placeholder .shape2 {
    width: 80%;
    height: 400px;
    background-image: url('../imgs/manoel.png');
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(20px, 20px);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    border: 1px solid rgba(184, 145, 70, 0.35);
    transition: transform 0.5s ease;
}

.about-us .graphic-placeholder:hover .shape1 {
    transform: translate(-10px, -10px);
}

.about-us .graphic-placeholder:hover .shape2 {
    transform: translate(30px, 30px);
}

/* --- Áreas de Atuação Section (Slider) --- */
.areas-of-practice {
    background-color: #0f0f10;
    padding: 80px 0;
    text-align: center;
}

.areas-of-practice h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: var(--primary-gold);
    margin-bottom: 50px;
}

.slider-container {
    overflow: hidden;
    width: 100%;
}

.slider-container:active {
    cursor: grabbing;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.slides::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 24px;
    background: #121214;
    border-radius: 12px;
    border: 1px solid rgba(184, 145, 70, 0.25);
    color: #e1e1e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.card h3 {
    color: var(--primary-gold) !important;
    font-family: 'Playfair Display', serif;
}

.area-icon {
    font-size: 1.6em;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* --- Entre em Contato --- */
.contact-section {
    background-color: #0f0f10;
    padding: 80px 0;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: var(--primary-gold);
    margin-bottom: 50px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-card {
    background-color: #121214;
    color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    width: clamp(240px, 88vw, 320px);
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid rgba(184, 145, 70, 0.25);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.contact-card i {
    font-size: 3em;
    margin-bottom: 15px;
}

.whatsapp-icon {
    color: #25d366;
}

.instagram-icon {
    background: radial-gradient(at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.email-icon {
    color: #fd2814;
}

.contact-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-card p {
    font-size: 1.1em;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.contact-card a[href^="mailto"] p {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    font-size: clamp(0.60rem, 2.4vw, 0.95rem);
}

.map-text {
    font-size: 1.1em;
    color: #d0d0d6;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.map-details {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-gold);
}

.map-container {
    background-color: #101012;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.map-container iframe {
    border-radius: 8px;
    width: 100%;
    height: 400px;
    border: 0;
}

/* --- Rodapé --- */
.footer-section {
    background-color: var(--dark-background);
    color: var(--text-light);
    padding: 60px 0 20px;
    position: relative;
    background: url('../imgs/footerr-img.png') center center no-repeat;
    overflow: hidden;
    box-shadow: 95px 95px 98px rgb(0, 0, 0);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-info,
.footer-nav,
.footer-contact-icons {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #bbb;
}

.footer-nav h4,
.footer-contact-icons h4 {
    font-size: 1.2em;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-nav ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95em;
}

.footer-nav ul li a:hover {
    color: var(--primary-gold);
}

.footer-contact-icons .social-icons {
    display: flex;
    gap: 20px;
}

.footer-contact-icons .social-icons a {
    color: var(--text-light);
    font-size: 1.8em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-contact-icons .social-icons a:hover {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85em;
    color: #aaa;
    position: relative;
    z-index: 1;
}

/* Valores */
.values {
    background: radial-gradient(80% 120% at 50% 0%, rgba(184,145,70,0.08), transparent 60%), #0f0f10;
    padding: 80px 0;
}
.values h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 40px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-card {
    background: #121214;
    border: 1px solid rgba(184,145,70,0.25);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: #e1e1e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.value-card i { color: var(--primary-gold); font-size: 1.8em; margin-bottom: 8px; }
.value-card h3 { font-family: 'Playfair Display', serif; color: var(--primary-gold); margin-top: 6px; }

/* --- Responsividade --- */

@media (max-width: 1200px) {
    header {
        min-height: 80px;
        height: auto;
        padding: 10px 20px;
    }
    header::after { height: 0; bottom: 0; }
    .nav-links li { margin-left: clamp(8px, 2vw, 16px); }
    .nav-links a { padding: 8px 6px; }
    /* Colapsa a nav e mostra hambúrguer até 1199px */
    .menu-toggle { display: block; margin-left: auto; flex-shrink: 0; z-index: 1001; }
    .header-cta { display: none !important; }
    .nav-links { position: absolute; top: 80px; left: 0; width: 100%; background: rgba(12,12,14,0.98); display: none; box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
    .nav-links.active { display: flex; flex-direction: column; }
    nav { justify-content: flex-start; padding: 0 12px; }
}

@media (max-width: 992px) {
    header {
        min-height: 80px;
        height: auto;
        padding: 10px 20px;
    }
    header::after { height: 0; bottom: 0; }
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(12,12,14,0.98);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        display: none;
        margin-top: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 10px;
        display: block;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        flex-shrink: 0;
    }

    nav {
        justify-content: flex-start;
        padding: 0 12px;
    }

    header {
        background-color: rgba(12,12,14,0.85);
    }

    .header-cta { display: none !important; }

    .header-cta:hover {
        background: rgba(184,145,70,0.12);
        transform: translateY(-2px);
        border-color: rgba(212,169,91,0.7);
    }

    .about-us .content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-us .text-content {
        margin-top: 5%;
        margin-bottom: 40px;
    }

    .about-us .graphic-placeholder .shape1 {
        display: none;
    }

    .about-us .graphic-placeholder .shape2 {
        width: 100%;
        max-width: 350px;
        height: 350px;
        position: relative;
        transform: none;
        margin: 0 auto;
    }

    .about-us .graphic-placeholder:hover .shape1,
    .about-us .graphic-placeholder:hover .shape2 {
        transform: none;
    }

    .slides {
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        padding-left: 10vw;
        padding-right: 10vw;
        scroll-padding-left: 10vw;
        scroll-padding-right: 10vw;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .slides::-webkit-scrollbar {
        display: none;
    }

    .card {
        flex: 0 0 60%;
        scroll-snap-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-nav ul,
    .footer-contact-icons .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        background-color: var(--header-bg-transparent);
        min-height: 0;
        height: 80px;
        padding: 10px 16px;
    }
    header::after { height: 0; bottom: 0; }
    
    nav {
        padding: 0 16px;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .logo img {
        max-height: 44px;
        width: auto;
        height: auto;
    }
    
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .hero .btn {
        padding: 12px 24px;
        font-size: 0.9em;
    }

    .hero-content {
        padding: 0 20px;
    }

    .slides {
        justify-content: center;
        flex-wrap: wrap;
        transform: none !important;
    }

    .card {
        max-width: 90%;
        margin: 10px auto;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 80%;
        max-width: 350px;
    }

    .map-container iframe {
        height: 300px;
    }

    .contact-card {
        width: 100%;
        padding: 20px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-cta {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

@media (max-width: 1200px) {
    header {
        min-height: 80px;
        height: auto;
        padding: 10px 20px;
    }
    header::after { height: 0; bottom: 0; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }
    .container { padding: 0 12px; }

    .about-us h2,
    .areas-of-practice h2,
    .contact-section h2 {
        font-size: 1.8em;
    }

    .card {
        flex-basis: 90%;
        --card-width: 90vw;
    }

    .footer-info h3,
    .footer-nav h4,
    .footer-contact-icons h4 {
        font-size: 1.4em;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: max(16px, env(safe-area-inset-bottom));
        right: max(16px, env(safe-area-inset-right));
        font-size: 26px;
        z-index: 1200;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: max(16px, env(safe-area-inset-bottom));
        right: calc(max(16px, env(safe-area-inset-right)) + 72px);
        font-size: 16px;
        z-index: 1200;
    }

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

/* Extra pequeno: garantir responsividade a partir de ~300px */
@media (max-width: 300px) {
    header { min-height: 72px; height: auto; padding: 6px 8px; }
    .menu-toggle { font-size: 1.35em; }
    .logo img { max-height: 32px; }
    .nav-links { top: 72px; }
    .hero h1 { font-size: 1.35em; }
    .hero p { font-size: 0.9em; }
    .hero .btn { padding: 8px 14px; font-size: 0.78em; }
    .contact-card { width: 100%; padding: 18px; }
    .contact-card a[href^="mailto"] p { font-size: clamp(0.55rem, 2.2vw, 0.9rem); }
    .container { padding: 0 10px; }
}

/* --- Seu CSS base (mobile-first): Estes estilos se aplicam a TODAS as telas --- */
.footer-section {
    padding: 40px 0 15px;
    background-position: center bottom;
    color: var(--text-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info,
.footer-nav,
.footer-contact-icons {
    min-width: unset;
    width: 100%;
    max-width: 400px;
    padding-bottom: 20px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    list-style: none;
    gap: 10px;
}

.footer-contact-icons .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- MEDIA QUERIES PARA RESPONSIVIDADE --- */

@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
        text-align: left;
        gap: 30px;
    }

    .footer-info,
    .footer-nav,
    .footer-contact-icons {
        width: auto;
        flex: 1;
        max-width: 300px;
    }

    .footer-nav ul {
        align-items: flex-start;
    }

    .footer-contact-icons .social-icons {
        justify-content: flex-start;
    }
}

@media (min-width: 1200px) {
    .footer-content {
        justify-content: space-between;
    }

    .footer-info,
    .footer-nav,
    .footer-contact-icons {
        max-width: 350px;
    }
    .header-cta {
        display: inline-flex;
        align-items: center;
        padding: 10px 16px;
        border: 1px solid rgba(184,145,70,0.5);
        border-radius: 8px;
        color: var(--text-light);
        text-decoration: none;
        transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
        margin-left: 16px;
    }
    nav { flex-wrap: nowrap; row-gap: 0; }
    .nav-links { flex: 1; justify-content: center; }
    .header-cta:hover { background: rgba(184,145,70,0.12); transform: translateY(-2px); border-color: rgba(212,169,91,0.7); }
}

/* Ajuste de responsividade: faixa média entre 992px e 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Evita overflow; deixa o menu colapsado (hambúrguer) conforme regras <=1200px */
    nav { justify-content: flex-start; }
    header { height: auto; min-height: 80px; padding-bottom: 10px; }
    .logo img { max-height: 46px; }
    .nav-links li { margin-left: clamp(8px, 1.4vw, 12px); }
    .nav-links a { padding: 6px 4px; }
}

@media (max-width: 992px) {
    .slides {
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        padding-left: 10vw;
        padding-right: 10vw;
        scroll-padding-left: 10vw;
        scroll-padding-right: 10vw;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .slides::-webkit-scrollbar {
        display: none;
    }
}

/* Em 769px–992px, não usar o carrossel; permite quebra e sem transform */
@media (min-width: 769px) and (max-width: 992px) {
    .slides {
        justify-content: center;
        flex-wrap: wrap;
        transform: none;
    }
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: calc(max(16px, env(safe-area-inset-right)) + 72px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(184,145,70,0.5);
    background: rgba(18,18,20,0.9);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.3s ease;
    z-index: 1200;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); background: rgba(184,145,70,0.12); }

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #b89146; /* Gold */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

a:focus-visible, button:focus-visible { outline: 2px solid rgba(212,169,91,0.9); outline-offset: 2px; }

/* --- Micro-breakpoints para telas muito pequenas --- */
@media (max-width: 414px) {
    header { min-height: 80px; height: auto; padding: 8px 14px; }
    .menu-toggle { font-size: 1.6em; }
    .logo img { max-height: 42px; }
    .nav { padding: 0 14px; }
    .hero h1 { font-size: 1.7em; }
    .hero .btn { padding: 10px 22px; font-size: 0.85em; }
}

@media (max-width: 390px) {
    header { min-height: 80px; height: auto; padding: 8px 12px; }
    .menu-toggle { font-size: 1.55em; }
    .logo img { max-height: 40px; }
    .hero-content { padding: 0 16px; }
    .hero h1 { font-size: 1.6em; }
    .hero .btn { padding: 9px 20px; font-size: 0.84em; }
    .about-us .text-content,
    .about-us .graphic-placeholder { min-width: 100%; }
}

@media (max-width: 360px) {
    header { min-height: 80px; height: auto; padding: 8px 10px; }
    .menu-toggle { font-size: 1.5em; }
    .logo img { max-height: 38px; }
    .hero h1 { font-size: 1.55em; }
    .hero .btn { padding: 9px 18px; font-size: 0.82em; }
    .nav-links { top: 80px; }
    .about-us .text-content,
    .about-us .graphic-placeholder { min-width: 100%; }
}

@media (max-width: 320px) {
    header { min-height: 80px; height: auto; padding: 6px 10px; }
    .menu-toggle { font-size: 1.45em; }
    .logo img { max-height: 36px; }
    .hero h1 { font-size: 1.5em; }
    .hero p { font-size: 0.95em; }
    .hero .btn { padding: 8px 16px; font-size: 0.8em; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 24px; }
    .about-us .text-content,
    .about-us .graphic-placeholder { min-width: 100%; }
}