/* ===== VARIABLES ===== */
:root {
    --primary-color: #5C3D1F;
    --primary-dark: #3D2814;
    --primary-light: #7A5A3A;
    --secondary-color: #8B6F47;
    --text-dark: #2C2416;
    --text-light: #666;
    --bg-light: #F9F7F4;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background: var(--bg-white);
    max-width: 100vw;
    position: relative;
}

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

section, article, aside, main {
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
    margin: 0;
}

.section:first-of-type {
    margin-top: 0;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    transform: translateY(0);
    overflow: visible;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 130px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

@media (max-width: 768px) {
    .nav {
        justify-content: center;
    }
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    height: 100%;
}

.nav__logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.logo-img {
    width: auto;
    height: 120px;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    animation: fadeIn 0.8s ease;
}

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

.logo-text {
    display: none;
}

.nav__menu {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav__link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.nav__link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav__link:hover::before {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 10px;
    margin-right: -10px;
    background: transparent;
    border: none;
    outline: none;
}

.nav__toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
    display: block;
}

.nav__toggle:hover span {
    background: var(--primary-dark);
}

.nav__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav__overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav__link--instagram {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(92, 61, 31, 0.3) 0%, rgba(122, 90, 58, 0.3) 100%),
                url('../../images/hero-img.png') center/cover no-repeat;
    padding-top: 130px;
    overflow: hidden;
    margin: 0;
    padding-bottom: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Overlay escuro para melhorar legibilidade do texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 22, 0.15);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__content .hero__description {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.hero__title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #D4A574;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 1s ease 0.4s both;
    line-height: 1.8;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero__description p {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero__description p span,
.hero__description p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero__icon {
    width: 1.2em;
    height: 1.2em;
    min-width: 1.2em;
    min-height: 1.2em;
    flex-shrink: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.hero__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    stroke: currentColor;
}

.hero__tagline span,
.hero__phrase span,
.hero__text span {
    display: inline-block;
    line-height: inherit;
}

.hero__description p:hover .hero__icon {
    opacity: 1;
}

.hero__tagline {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.6;
    width: 100%;
    text-align: center;
    margin: 0;
}

.hero__phrase {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: normal;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.6;
    width: 100%;
    text-align: center;
}

.hero__text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin: 0;
    flex-wrap: wrap;
    padding: 0 1rem;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 120px;
    color: var(--bg-white);
    z-index: 1;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

.hero__wave svg {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn--outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Botão outline com cor primária (marrom) */
a.btn--outline[style*="border-color: var(--primary-color)"] {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

a.btn--outline[style*="border-color: var(--primary-color)"]:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--block {
    width: 100%;
}

/* ===== NÚMEROS/DESTAQUES ===== */
.numeros {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.numeros.section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.numero-item {
    padding: 1rem;
}

.numero-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.numero-emoji {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ===== VALORES ===== */
.valores {
    background: var(--bg-white);
}

.valores__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.valores__card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.valores__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.valores__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.valores__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.valores__text {
    color: var(--text-light);
}

/* ===== PROJETOS ===== */
.projetos {
    background: var(--bg-light);
}

/* Seções de Categorias */
.categoria-section {
    position: relative;
    transition: all 0.3s ease;
}

.categoria-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.12) !important;
}

.categoria-fabrica {
    border-left: 5px solid var(--primary-color) !important;
}

.categoria-restauracao {
    border-left: 5px solid var(--secondary-color) !important;
}

.projetos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.projeto__card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.projeto__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.projeto__card:hover .projeto__title {
    color: var(--primary-dark);
}

.projeto__image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.projeto__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.projeto__card:hover .projeto__image img {
    transform: scale(1.1);
}

.projeto__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 111, 71, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.projeto__card:hover .projeto__overlay {
    opacity: 1;
}

.projeto__overlay .btn {
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.projeto__card:hover .projeto__overlay .btn {
    transform: translateY(0);
}

.projeto__content {
    padding: 1.5rem;
}

.projeto__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.projeto__description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.projetos__more {
    text-align: center;
    margin-top: 3rem;
}

.projetos__more a.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.projetos__more a.btn span:last-child {
    transition: transform 0.3s ease;
}

.projetos__more a.btn:hover span:last-child {
    transform: translateX(5px);
}

.projetos__empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* ===== CONTATO ===== */
.contato {
    background: var(--bg-white);
}

.contato__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contato__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contato__item {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contato__icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.contato__item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contato__item p {
    color: var(--text-light);
}

/* ===== FORM ===== */
.contato__form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
    transform: translateY(-2px);
}

.form__input:hover {
    border-color: var(--primary-light);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form__message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form__message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer__section ul li {
    margin-bottom: 0.5rem;
}

.footer__section a {
    transition: var(--transition);
    opacity: 0.9;
}

.footer__section a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite, fadeInUp 0.8s ease 0.5s both;
    max-width: calc(100vw - 60px);
}

.whatsapp-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn svg {
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover svg {
    transform: rotate(15deg);
}

/* ===== INSTAGRAM BUTTON ===== */
.instagram-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(188, 24, 136, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.7s both;
    max-width: calc(100vw - 60px);
}

.instagram-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 35px rgba(188, 24, 136, 0.7);
}

.instagram-btn svg {
    transition: transform 0.3s ease;
}

.instagram-btn:hover svg {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animações ao scroll */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* Desativar animações para cards de valores em mobile */
@media (max-width: 767px) {
    .valores__card.animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    .valores__card.animate-on-scroll.animated {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Também desativar para o título da seção valores em mobile */
    .valores .section__title.animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    .valores .section__title.animate-on-scroll.animated {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Tipos de animação */
.animate-on-scroll.fade-in {
    transform: translateY(0);
}

.animate-on-scroll.fade-in.animated {
    animation: fadeIn 0.8s ease forwards;
}

.animate-on-scroll.slide-up {
    transform: translateY(50px);
}

.animate-on-scroll.slide-up.animated {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-left.animated {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-right.animated {
    animation: slideInRight 0.8s ease forwards;
}

.animate-on-scroll.scale-in {
    transform: scale(0.9);
}

.animate-on-scroll.scale-in.animated {
    animation: scaleIn 0.8s ease forwards;
}

/* Delays para animações escalonadas */
.animate-on-scroll[data-delay] {
    transition-delay: 0s;
}

.animate-on-scroll.animated[data-delay="0.1"] {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.animate-on-scroll.animated[data-delay="0.2"] {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.animate-on-scroll.animated[data-delay="0.3"] {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

.animate-on-scroll.animated[data-delay="0.4"] {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

.animate-on-scroll.animated[data-delay="0.5"] {
    transition-delay: 0.5s;
    animation-delay: 0.5s;
}

.animate-on-scroll.animated[data-delay="0.6"] {
    transition-delay: 0.6s;
    animation-delay: 0.6s;
}

/* Melhorias nas animações de hover */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.valores__icon {
    transition: transform 0.3s ease;
}

.valores__card:hover .valores__icon {
    transform: scale(1.2) rotate(5deg);
}

.contato__icon {
    transition: transform 0.3s ease;
}

.contato__item:hover .contato__icon {
    transform: scale(1.2);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 15px rgba(92, 61, 31, 0.3);
    max-width: calc(100vw - 60px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(92, 61, 31, 0.4);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.projeto__image.skeleton-loading {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projeto__image.skeleton-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Não aplicar skeleton-loading em containers com vídeos */
.projeto__image:has(video),
.postagem-img-container:has(video),
.projeto-admin-image:has(video) {
    background: transparent !important;
}

.projeto__image:has(video)::after,
.postagem-img-container:has(video)::after,
.projeto-admin-image:has(video)::after {
    display: none !important;
}

/* Fallback para navegadores que não suportam :has() */
.projeto__image video ~ *,
.postagem-img-container video ~ *,
.projeto-admin-image video ~ * {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== VALIDAÇÃO DE FORMULÁRIO ===== */
.form__group {
    position: relative;
}

.form__error {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form__error.show {
    opacity: 1;
}

.form__input.error,
.form__textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form__input.success,
.form__textarea.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.btn-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox__image,
.lightbox__video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.lightbox__video {
    width: 100%;
    max-width: 1200px;
}

.lightbox__title {
    color: white;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.lightbox__counter {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox.active .lightbox__prev,
.lightbox.active .lightbox__next {
    display: flex;
}

.lightbox__prev {
    left: 20px;
}

.lightbox__next {
    right: 20px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== COMPARTILHAMENTO SOCIAL ===== */
.projeto__share {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.share-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.share-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-menu__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.share-menu__item:hover {
    background: var(--bg-light);
}

.share-menu__item svg {
    width: 20px;
    height: 20px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
    margin-left: 0.5rem;
}

.breadcrumbs__link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
    color: var(--primary-color);
}

.breadcrumbs__link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .projetos__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .valores__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Tablet */
@media (max-width: 968px) and (min-width: 769px) {
    .nav__menu {
        gap: 0.8rem;
    }
    
    .nav__link {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .nav {
        height: 100px;
    }
    
    .logo-img {
        height: 90px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        position: relative;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        width: auto;
        height: 55px;
        max-width: none;
        margin: 0 auto;
    }
    
    .logo-text {
        display: none !important;
    }
    
    .nav__logo {
        font-size: 0.85rem;
        gap: 0;
        flex: 1;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
        justify-content: center;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    .nav {
        padding: 0.5rem 15px;
        height: 70px;
        position: relative;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        justify-content: space-between;
    }
    
    .nav__link {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
    
    .nav__overlay {
        display: block;
        width: 100vw;
        max-width: 100vw;
    }

    .nav__menu {
        gap: 0;
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        max-height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 80px 0 2rem 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999;
        -webkit-overflow-scrolling: touch;
    }

    .nav__menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        animation: slideInLeft 0.3s ease forwards;
        opacity: 0;
    }

    .nav__menu.active li {
        opacity: 1;
    }

    .nav__menu.active li:nth-child(1) { animation-delay: 0.05s; }
    .nav__menu.active li:nth-child(2) { animation-delay: 0.1s; }
    .nav__menu.active li:nth-child(3) { animation-delay: 0.15s; }
    .nav__menu.active li:nth-child(4) { animation-delay: 0.2s; }
    .nav__menu.active li:nth-child(5) { animation-delay: 0.25s; }

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

    .nav__menu.active {
        left: 0;
    }

    .nav__link {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-dark);
        transition: all 0.3s ease;
        position: relative;
    }

    .nav__link:hover,
    .nav__link.active {
        background: var(--bg-light);
        color: var(--primary-color);
        padding-left: 2.5rem;
    }

    .nav__link::before {
        display: none;
    }

    .nav__link.active::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary-color);
    }

    .nav__link--instagram {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav__link--instagram svg {
        flex-shrink: 0;
    }

    .nav__toggle {
        display: flex;
        flex-shrink: 0;
        order: 2;
        margin-left: auto;
        position: relative;
        z-index: 1001;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Prevenir scroll do body quando menu está aberto */
    body.menu-open {
        overflow: hidden;
        max-width: 100vw;
        position: fixed;
        width: 100%;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding-top: 70px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.5rem;
    }

    .hero__description {
        font-size: 1rem;
        max-width: 100%;
        width: 100%;
        padding: 0 0.75rem;
        text-align: center;
        align-items: center;
        box-sizing: border-box;
    }

    .hero__description p {
        font-size: 0.95rem;
        margin: 0;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        text-align: center;
        flex-wrap: wrap;
        padding: 0 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero__tagline,
    .hero__phrase,
    .hero__text {
        font-size: 0.95rem;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        text-align: center;
        flex-wrap: wrap;
        padding: 0 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero__description p {
        align-items: baseline;
    }
    
    .hero__tagline,
    .hero__phrase,
    .hero__text,
    .hero__description p {
        align-items: center;
    }
    
    .hero__icon {
        width: 1em;
        height: 1em;
        min-width: 1em;
        min-height: 1em;
    }
    
    .hero__icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .hero__icon {
        width: 1em;
        height: 1em;
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section__title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .section__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    /* Números/Destaques */
    .numeros.section {
        padding: 40px 0;
    }

    .numeros-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .counter-number {
        font-size: 2.5rem !important;
    }

    .numero-emoji {
        font-size: 2.5rem !important;
    }

    .numero-label {
        font-size: 1rem;
    }

    /* Por que Escolher */
    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    /* Contato */
    .contato__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contato__form {
        padding: 1.5rem;
    }

    .contato__item {
        flex-direction: column;
        text-align: center;
    }

    .contato__icon {
        font-size: 1.5rem;
    }

    /* Projetos */
    .projetos__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projeto__image {
        height: 220px;
    }

    .projeto__content {
        padding: 1.25rem;
    }

    .projeto__title {
        font-size: 1.2rem;
    }

    /* Seções de Categorias - Mobile */
    .categoria-section {
        padding: 2rem 1.5rem !important;
        margin-bottom: 3rem !important;
    }

    .categoria-section h3 {
        font-size: 1.8rem !important;
    }

    .categoria-section h3 span:first-child {
        font-size: 2rem !important;
    }

    /* Valores */
    .valores__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .valores__card {
        padding: 1.5rem;
    }

    .valores__icon {
        font-size: 2.5rem;
    }

    .valores__title {
        font-size: 1.2rem;
    }

    /* Buttons */
    .hero__buttons {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        padding: 10px 25px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

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

    /* Botões Flutuantes */
    .whatsapp-btn {
        bottom: 20px;
        right: 15px;
        width: 55px;
        height: 55px;
        max-width: calc(100vw - 30px);
    }

    .instagram-btn {
        bottom: 85px;
        right: 15px;
        width: 55px;
        height: 55px;
        max-width: calc(100vw - 30px);
    }

    .back-to-top {
        bottom: 150px;
        right: 15px;
        width: 45px;
        height: 45px;
        max-width: calc(100vw - 30px);
    }

    /* Formulário */
    .form__input {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 14px 15px;
    }

    .form__textarea {
        font-size: 16px;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 12px;
    }

    .hero {
        min-height: 70vh;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.3rem;
    }

    .hero__description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .hero__description p {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .hero__tagline,
    .hero__phrase,
    .hero__text {
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 0;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .section__subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    /* Números/Destaques */
    .numeros-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .counter-number {
        font-size: 2rem !important;
    }

    .numero-emoji {
        font-size: 2rem !important;
    }

    .numero-label {
        font-size: 0.95rem;
    }

    .numero-item {
        padding: 0.75rem;
    }

    /* Cards */
    .feature-card,
    .valores__card {
        padding: 1.25rem;
    }

    .feature-card h3,
    .valores__title {
        font-size: 1.1rem;
    }

    .valores__icon {
        font-size: 2rem;
    }

    /* Projetos */
    .projeto__image {
        height: 200px;
    }

    .projeto__content {
        padding: 1rem;
    }

    .projeto__title {
        font-size: 1.1rem;
    }

    .projeto__description {
        font-size: 0.9rem;
    }

    /* Contato */
    .contato__form {
        padding: 1.25rem;
    }

    .contato__item h3 {
        font-size: 1.1rem;
    }

    .contato__item p {
        font-size: 0.9rem;
    }

    /* Botões Flutuantes */
    .instagram-btn {
        bottom: 80px;
        right: 10px;
        width: 50px;
        height: 50px;
        max-width: calc(100vw - 20px);
    }

    .whatsapp-btn {
        bottom: 15px;
        right: 10px;
        width: 50px;
        height: 50px;
        max-width: calc(100vw - 20px);
    }

    .back-to-top {
        bottom: 140px;
        right: 10px;
        width: 40px;
        height: 40px;
        max-width: calc(100vw - 20px);
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0 0.75rem;
    }

    .footer__section h3 {
        font-size: 1.1rem;
    }

    .footer__section p,
    .footer__section a {
        font-size: 0.9rem;
    }

    /* Botões */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Share button */
    .share-btn {
        width: 35px;
        height: 35px;
    }

    .share-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .section__title {
        font-size: 1.3rem;
    }

    .counter-number {
        font-size: 1.75rem !important;
    }
}

