:root {
    /* 🎯 Base Dark */
    --color-bg-primary: 15 15 15;
    --color-bg-secondary: 16 16 16;
    --color-bg-tertiary: 31 31 31;

    /* ✨ Destaques claros */
    --color-accent-primary: 245 245 245;
    --color-accent-secondary: 207 207 207;
    --color-accent-gold: 200 164 106;

    /* 🧾 Texto */
    --color-text-primary: 242 244 247;
    --color-text-secondary: 204 209 215;
    --color-text-muted: 163 170 178;

    /* 🔲 Bordas e separadores */
    --color-border: 255 255 255;
    --color-border-hover: 255 255 255;

    /* 🌫️ Overlays */
    --color-overlay-dark: 0 0 0;
    --color-overlay-light: 255 255 255;

    /* 🕒 Animações */
    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --transition-fast: 0.25s var(--ease-default);
    --transition-medium: 0.45s var(--ease-smooth);
    --transition-slow: 0.7s var(--ease-smooth);

    /* 📐 Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* 🌑 Sombra elegante */
    --shadow-soft: 0 10px 30px rgb(0 0 0 / 0.35);
    --shadow-hover: 0 20px 50px rgb(0 0 0 / 0.55);
}

/* CSS - GLOBAL STYLES */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    color: var(--color-text-secondary);
    max-width: 65ch;
}

small {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

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

a:hover {
    color: var(--color-accent-gold);
}

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

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 4px;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent-gold);
}

section {
    padding: clamp(3rem, 6vw, 6rem) 1.25rem;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

::selection {
    background-color: var(--color-accent-gold);
    color: #000;
}

:focus-visible {
    outline: 2px solid var(--color-accent-gold);
    outline-offset: 3px;
}

a,
button {
    cursor: pointer;
    text-decoration: none;
    transition:
        color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    outline: none;
    position: relative;
    display: inline-block;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3em;
    width: 100%;
    height: 2px;
    background-color: rgb(var(--color-accent-gold));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast) ease;
}

a:hover::after,
a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

a:hover,
a:focus {
    color: rgb(var(--color-accent-gold));
    transform: translateY(-0.2vh);
}

button:hover,
button:focus,
img:hover,
img:focus {
    transform: translateY(-0.2vh) scale(1.03);
    box-shadow: 0 0 8px rgb(var(--color-accent-gold) / 0.5);
}

a:active,
button:active {
    transform: scale(0.95);
    box-shadow: 0 0 4px rgb(var(--color-accent-gold) / 0.3);
}

nav a {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    padding: 0.5vh 0.8vw;
}

/* END - GLOBAL STYLES */

.cabecario {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    background: linear-gradient(rgba(22, 22, 22, 0.8),
            rgba(22, 22, 22, 0));
}

.container.cabecario-conteudo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    height: 10vh;
    width: auto;
    max-height: 60px;
}

.cabecario-right {
    display: flex;
    align-items: center;
    gap: 2vw;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.navegacao .lista-navegacao {
    display: flex;
    /* mantém horizontal */
    gap: 2vw;
    /* espaço entre os links */
    align-items: center;
    /* alinha verticalmente ao centro */
}

.navegacao .lista-navegacao li a {
    font-weight: 500;
    font-size: 1rem;
    color: rgb(var(--color-text-primary));
    /* garante letra clara */
    transition: color var(--transition-fast), transform var(--transition-fast);
    position: relative;
    padding-bottom: 0.25em;
    white-space: nowrap;
    /* evita quebra de linha */
}

.navegacao .lista-navegacao li a.active {
    color: rgb(var(--color-accent-gold));
    /* destaque do ativo */
}

.navegacao .lista-navegacao li a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgb(var(--color-accent-gold)), rgb(var(--color-accent-primary)));
    border-radius: var(--radius-sm);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.navegacao .lista-navegacao li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgb(var(--color-accent-gold) / 0.3);
    border-radius: var(--radius-sm);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease, background 0.3s ease;
}

.navegacao .lista-navegacao li a:hover::after,
.navegacao .lista-navegacao li a:focus::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cabecario .container {
    padding-inline: 6vw;
}

.cabecario-right .social-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1vw;
    color: rgb(var(--color-text-primary));
    filter: sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
    transition: filter var(--transition-fast);
    position: relative;
    z-index: 2;
}

.social-icon img {
    transition: transform 0.25s ease, opacity 0.25s ease;
    display: block;
}

.social-icon:hover img {
    transform: translateY(-0.3vh) scale(1.05);
    opacity: 0.9;
}

.social-icon:active img {
    transform: scale(0.92);
    opacity: 0.8;
}

#home {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: rgb(var(--color-accent-primary));
    text-shadow: 0 2px 8px rgb(0 0 0 / 0.7);
    text-align: left;
    background-image: url('../../assets/images/Salon/Background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

main>#home {
    background-color: rgb(var(--color-bg-primary) / 0.6);
    z-index: 99;
}

.home-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 200px at var(--x, 50%) var(--y, 50%),
            rgba(255, 255, 255, 0.1) 0%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0.85) 100%);
    transition: background 0.2s ease;
    z-index: 1;
}

.home-conteudo {
    position: relative;
    z-index: 2;
    max-height: 1000px;
    padding: 0 1rem;
}

.home-conteudo h1 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    /* usa PlayfairDisplay-Bold */
    font-style: italic;
    /* usa BoldItalic */
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: rgb(var(--color-accent-primary));
    text-shadow: 0 3px 12px rgb(0 0 0 / 0.65);
    background: linear-gradient(90deg, rgb(var(--color-accent-gold)) 0%, rgb(var(--color-accent-primary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.home-conteudo p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    /* normal */
    font-style: normal;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgb(var(--color-text-secondary));
    text-shadow: 0 2px 8px rgb(0 0 0 / 0.5);
}

@keyframes textGlow {
    0% {
        text-shadow: 0 3px 12px rgb(0 0 0 / 0.65), 0 0 5px rgb(var(--color-accent-gold) / 0.4);
    }

    50% {
        text-shadow: 0 3px 12px rgb(0 0 0 / 0.65), 0 0 15px rgb(var(--color-accent-gold) / 0.7);
    }

    100% {
        text-shadow: 0 3px 12px rgb(0 0 0 / 0.65), 0 0 25px rgb(var(--color-accent-gold) / 1);
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, rgb(var(--color-accent-gold)) 0%, rgb(var(--color-accent-primary)) 100%);
    color: rgb(var(--color-bg-primary));
    border-radius: var(--radius-lg);
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow, background;
    transition:
        transform 0.25s var(--ease-smooth),
        box-shadow 0.25s var(--ease-smooth),
        background 0.5s var(--ease-smooth),
        color 0.5s var(--ease-smooth);
    background-size: 200% 200%;
    animation: gradientMove 6s ease infinite;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-0.35vh) scale(1.08);
    box-shadow: 0 16px 36px rgb(var(--color-accent-gold) / 0.25), 0 6px 8px rgb(0 0 0 / 0.2);
    background: linear-gradient(135deg, rgb(var(--color-accent-secondary)) 0%, rgb(var(--color-accent-gold)) 100%);
    color: rgb(var(--color-bg-primary));
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 6px 12px rgb(0 0 0 / 0.25);
}

.btn-primary::after {
    display: none !important;
    content: none !important;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn-primary {
        transform: none;
        animation: none;
        transition: background-color var(--transition-medium);
    }

    .btn-primary:hover,
    .btn-primary:focus {
        transform: none;
        box-shadow: none;
    }
}

#services {
    background-color: rgb(var(--color-bg-secondary));
    color: rgb(var(--color-text-primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(4rem, 8vw, 8rem) 1.25rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3rem);
    color: rgb(var(--color-accent-gold));
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 6px rgb(0 0 0 / 0.6);
}

.section-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgb(var(--color-text-secondary));
    margin-bottom: 3rem;
    max-width: 700px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
}

.service-card {
    background-color: rgb(var(--color-bg-primary) / 0.4);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth), background-color 0.5s var(--ease-smooth);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-0.7vh) scale(1.03);
    box-shadow: var(--shadow-hover);
    background-color: rgb(var(--color-bg-primary) / 0.6);
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgb(var(--color-border) / 0.2);
    transition: transform 0.5s var(--ease-smooth);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-style: italic;
    font-size: 1.25rem;
    margin: 1rem 0 0.5rem 0;
    color: rgb(var(--color-accent-gold));
}

.service-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: rgb(var(--color-text-secondary));
    padding: 0 1rem 1.5rem 1rem;
    line-height: 1.5;
}

/* Sobre Nós */
#sobre {
    background-color: rgb(var(--color-bg-secondary));
    color: rgb(var(--color-text-primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(4rem, 8vw, 8rem) 1.25rem;
}

.about-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3rem);
    color: rgb(var(--color-accent-gold));
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 6px rgb(0 0 0 / 0.6);
}

.about-header p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgb(var(--color-text-secondary));
    max-width: 700px;
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
}

.about-text {
    flex: 1 1 400px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.8;
    color: rgb(var(--color-text-secondary));
    text-align: justify;
}

.about-text p {
    margin-bottom: 2rem;
    text-indent: 1.5em;
    letter-spacing: 0.5px;
}

.about-text strong, 
.about-text b {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-style: italic;
    color: rgb(var(--color-accent-gold));
    background: linear-gradient(90deg, rgb(var(--color-accent-gold)) 0%, rgb(var(--color-accent-secondary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 6px rgb(0 0 0 / 0.4);
}

.about-gallery {
    flex: 1 1 400px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.about-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth);
}

.about-gallery img:hover,
.about-gallery img:focus {
    transform: translateY(-10px) scale(1.05) rotateZ(-1deg);
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.35);
}


.about-gallery figure:hover {
    transform: translateY(-0.5vh) scale(1.03);
    box-shadow: var(--shadow-hover);
}

/* Galeria */
#galeria {
    background-color: rgb(var(--color-bg-primary));
    color: rgb(var(--color-text-primary));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(4rem, 8vw, 8rem) 1.25rem;
}

#galeria h2 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3rem);
    color: rgb(var(--color-accent-gold));
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 6px rgb(0 0 0 / 0.6);
}

#galeria p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgb(var(--color-text-secondary));
    max-width: 700px;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover {
    transform: translateY(-0.5vh) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Contato (footer) */
#contato {
    background-color: rgb(var(--color-bg-secondary));
    color: rgb(var(--color-text-primary));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;
    padding: clamp(4rem, 8vw, 8rem) 1.25rem;
}

#contato h2 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3rem);
    color: rgb(var(--color-accent-gold));
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgb(0 0 0 / 0.6);
}

#contato p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgb(var(--color-text-secondary));
    max-width: 700px;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1000px;
    width: 100%;
}

.contact-item {
    background-color: rgb(var(--color-bg-primary) / 0.1);
    border: 1px solid rgb(var(--color-accent-gold) / 0.3);
    border-radius: var(--radius-md);
    padding: 2rem;
    flex: 1 1 250px;
    min-width: 200px;
    text-align: center;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), background 0.4s var(--ease-smooth);
    cursor: default;
}

.contact-item h3 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-style: italic;
    color: rgb(var(--color-accent-gold));
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-family: 'Montserrat', sans-serif;
    color: rgb(var(--color-text-secondary));
    font-size: 1rem;
}

.contact-item:hover {
    transform: translateY(-0.5vh) scale(1.03);
    box-shadow: var(--shadow-hover);
    background-color: rgb(var(--color-bg-primary) / 0.15);
}

.rodape {
    background-color: rgb(var(--color-bg-secondary));
    color: rgb(var(--color-text-secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid rgb(var(--color-accent-gold) / 0.2);
}

.footer-bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: rgb(var(--color-text-muted));
    margin-top: 2rem;
}

footer {
    background-color: rgb(var(--color-bg-pri));
    color: rgb(var(--color-text-secondary));
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    font-size: 0.9rem;
}

header.cabecario {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.section-fade,
.service-card,
.gallery-grid img,
.about-gallery img,
.contact-item {
    opacity: 0.94;
    transform: translateY(15px);
    transition: 
        opacity 2.2s var(--ease-smooth),
        transform 2.2s var(--ease-smooth);
}

.section-fade.active,
.service-card.active,
.gallery-grid img.active,
.about-gallery img.active,
.contact-item.active {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .service-card:nth-child(1) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.6s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.8s; }
.services-grid .service-card:nth-child(5) { transition-delay: 1s; }
.services-grid .service-card:nth-child(6) { transition-delay: 1.2s; }

.gallery-grid img:nth-child(1) { transition-delay: 0.2s; }
.gallery-grid img:nth-child(2) { transition-delay: 0.4s; }
.gallery-grid img:nth-child(3) { transition-delay: 0.6s; }
.gallery-grid img:nth-child(4) { transition-delay: 0.8s; }
.gallery-grid img:nth-child(5) { transition-delay: 1s; }
.gallery-grid img:nth-child(6) { transition-delay: 1.2s; }

.about-gallery img:nth-child(1) { transition-delay: 0.2s; }
.about-gallery img:nth-child(2) { transition-delay: 0.4s; }
.about-gallery img:nth-child(3) { transition-delay: 0.6s; }
.about-gallery img:nth-child(4) { transition-delay: 0.8s; }
.about-gallery img:nth-child(5) { transition-delay: 1s; }
.about-gallery img:nth-child(6) { transition-delay: 1.2s; }


.contact-item:nth-child(1) { transition-delay: 0.2s; }
.contact-item:nth-child(2) { transition-delay: 0.4s; }
.contact-item:nth-child(3) { transition-delay: 0.6s; }
.contact-item:nth-child(4) { transition-delay: 0.8s; }
.contact-item:nth-child(5) { transition-delay: 1s; }
.contact-item:nth-child(6) { transition-delay: 1.2s; }

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 250; /* acima da nav */
}

.mobile-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: rgb(var(--color-text-primary));
    border-radius: var(--radius-sm);
    transform-origin: center;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .navegacao {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: rgb(var(--color-bg-secondary));
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        z-index: 100; 
        pointer-events: none; /* evita clicar quando fechada */
    }

    .navegacao.mobile-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto; /* habilita clique quando aberta */
    }

    .lista-navegacao {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}


@media (max-width: 1200px) {
    .cabecario .container { padding-inline: 5vw; }
    .logo { max-height: 54px; }
    .home-conteudo { max-width: 560px; }
    .services-grid { max-width: 1000px; }
    .btn-primary { padding: 0.85rem 1.9rem; }
}

@media (max-width: 1024px) {
    .cabecario .container { padding-inline: 4.5vw; }
    .navegacao .lista-navegacao { gap: 1.6vw; }
    .navegacao .lista-navegacao li a { font-size: 0.95rem; }
    .logo { max-height: 50px; }
    .home-conteudo { max-width: 520px; }
    .btn-primary { padding: 0.8rem 1.8rem; }
}

@media (max-width: 900px) {
    .mobile-nav-toggle { display: flex; }

    .navegacao {
        position: fixed;
        top: 0;
        right: 0;
        height: auto;
        width: auto;
        min-width: 200px;
        background-color: rgba(22, 22, 22, 0.75); /* transparente para blur */
        backdrop-filter: blur(15px); /* efeito blur moderno */
        -webkit-backdrop-filter: blur(15px); /* compatibilidade Safari */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease, backdrop-filter 0.3s ease;
        z-index: 200;
        pointer-events: none;
        border-radius: var(--radius-md);
        box-shadow: 0 10px 30px rgb(0 0 0 / 0.3); /* leve sombra pra destacar */
    }

    .navegacao.mobile-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .lista-navegacao {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .cabecario .container { padding-inline: 3.5vw; }
    .navegacao .lista-navegacao { gap: 1rem; }
    .navegacao .lista-navegacao li a { font-size: 0.9rem; }
    .logo { max-height: 46px; height: auto; }
    .home-conteudo { padding: 0 0.75rem; max-width: 460px; }
    .home-conteudo h1 { font-size: clamp(2rem, 6vw, 3rem); }
    .btn-primary { padding: 0.75rem 1.6rem; font-size: 0.98rem; }
    .about-content { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .cabecario .container { padding-inline: 2.5vw; }
    .cabecario-right { gap: 1rem; }
    
    .logo { max-height: 44px; }
    .home-conteudo { padding: 0 0.5rem; max-width: 380px; }
    .home-conteudo h1 { font-size: clamp(1.8rem, 7.5vw, 2.6rem); }
    .home-conteudo p { font-size: 0.98rem; }
    .btn-primary { padding: 0.7rem 1.4rem; font-size: 0.92rem; }
    .services-grid { gap: 1.25rem; }

    .navegacao .lista-navegacao { gap: 1.5rem; } /* ajusta o gap do menu */
}

@media (max-width: 360px) {
    .cabecario .container { padding-inline: 1rem; }
    .logo { max-height: 40px; }
    .home-conteudo { padding: 0 0.5rem; max-width: 320px; }
    .home-conteudo h1 { font-size: clamp(1.6rem, 8.5vw, 2rem); }
    .home-conteudo p { font-size: 0.95rem; }
    .btn-primary { padding: 0.6rem 1.2rem; font-size: 0.85rem; border-radius: 10px; }
    section { padding: clamp(2rem, 5vw, 3.5rem) 0.9rem; }

    .navegacao .lista-navegacao { gap: 1.2rem; } /* menu mais compacto */
}

/* Animação de fundo para mobile */
@keyframes mobileBackgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 900px) {
#contato {
    /* mantém o fundo escuro no mobile */
    background-color: rgb(var(--color-bg-secondary));
    background: linear-gradient(10deg, rgb(var(--color-bg-secondary)) 0%, rgb(var(--color-bg-primary)) 100%);
    background-size: 200% 200%;
    animation: mobileBackgroundMove 60s ease infinite;
    transition: background-color var(--transition-medium);
    color: rgb(var(--color-text-primary));
    pointer-events: auto;
}
    /* Mantém o header intacto */
    header.cabecario {
        background: linear-gradient(rgba(22,22,22,0.8), rgba(22,22,22,0));
        backdrop-filter: blur(10px);
    }
}

/* Animação suave de cores de fundo para todas as sections */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(245,245,245,0.05), rgba(200,164,106,0.08), rgba(245,245,245,0.05));
    background-size: 600% 600%;
    animation: gradientBackground 20s ease infinite;
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
