/* CSS Reset & Variables */
:root {
    --bg-color: #111111;
    --text-color: #f4f4f4;
    --text-muted: #aaaaaa;
    --primary-color: #d4af37;
    /* Gold */
    --primary-hover: #b5952f;
    --card-bg: #1a1a1a;
    --header-bg: rgba(17, 17, 17, 0.95);
    --border-color: rgba(255, 255, 255, 0.05);
    --footer-bg: #0a0a0a;
    --footer-border: #222;
    --mobile-nav-bg: #111;
    --hero-overlay: linear-gradient(rgba(0, 0, 0, 0.6), rgba(17, 17, 17, 1));
    --hero-text: #ffffff;
    --hero-p-color: #dddddd;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #111111;
    --text-muted: #555555;
    --card-bg: #f9f9f9;
    --header-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.1);
    --footer-bg: #f1f1f1;
    --footer-border: #ddd;
    --mobile-nav-bg: #fff;
    --hero-overlay: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 1));
    --hero-text: #111111;
    --hero-p-color: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title .underline {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 20px;
}

.section-title p {
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(1px 0 0 var(--bg-color)) 
            drop-shadow(-1px 0 0 var(--bg-color)) 
            drop-shadow(0 1px 0 var(--bg-color)) 
            drop-shadow(0 -1px 0 var(--bg-color));
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(1px 0 0 var(--bg-color)) 
            drop-shadow(-1px 0 0 var(--bg-color)) 
            drop-shadow(0 1px 0 var(--bg-color)) 
            drop-shadow(0 -1px 0 var(--bg-color))
            drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

.nav-menu {
    display: none;
    /* Mobile first: hidden until hamburger is clicked */
}

.nav-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--mobile-nav-bg);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.nav-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: block;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--border-color);
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: inline-block;
}

:not([data-theme="light"]) .icon-moon {
    display: none;
}

:not([data-theme="light"]) .icon-sun {
    display: inline-block;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/image7.jpeg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    /* Changed from positive margin since header is fixed */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    /* Offset for fixed header */
}

.highlight-title span {
    color: var(--primary-color);
    font-size: 3rem;
    display: block;
    margin-bottom: 5px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--hero-text);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--hero-p-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sobre Nós */
.sobre-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sobre-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.sobre-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    overflow: visible;
}

/* Auréola brilhante dourada e vermelha atrás do logotipo */
.sobre-image::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(144, 36, 36, 0.15) 0%, rgba(226, 202, 123, 0.08) 50%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.sobre-image img.sobre-logo {
    position: relative;
    z-index: 1;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: none;
    transition: var(--transition);
    filter: drop-shadow(1px 0 0 var(--bg-color)) 
            drop-shadow(-1px 0 0 var(--bg-color)) 
            drop-shadow(0 1px 0 var(--bg-color)) 
            drop-shadow(0 -1px 0 var(--bg-color));
}

.sobre-image img.sobre-logo:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: drop-shadow(1px 0 0 var(--bg-color)) 
            drop-shadow(-1px 0 0 var(--bg-color)) 
            drop-shadow(0 1px 0 var(--bg-color)) 
            drop-shadow(0 -1px 0 var(--bg-color))
            drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
}

[data-theme="light"] .sobre-image img.sobre-logo {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sobre-image img.sobre-logo:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 30px 60px rgba(212, 175, 55, 0.1);
}

/* Serviços */
.servicos {
    background-color: var(--card-bg);
}

.servicos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.servico-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.servico-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.servico-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.servico-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.servico-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfólio / Masonry */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 15px;
}

.masonry-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.masonry-item:nth-child(even) {
    grid-row: span 2;
}

.masonry-item:nth-child(3n) {
    grid-row: span 1;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--footer-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    transition: var(--transition);
    filter: drop-shadow(1px 0 0 var(--bg-color)) 
            drop-shadow(-1px 0 0 var(--bg-color)) 
            drop-shadow(0 1px 0 var(--bg-color)) 
            drop-shadow(0 -1px 0 var(--bg-color));
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(1px 0 0 var(--bg-color)) 
            drop-shadow(-1px 0 0 var(--bg-color)) 
            drop-shadow(0 1px 0 var(--bg-color)) 
            drop-shadow(0 -1px 0 var(--bg-color))
            drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer ul li {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.phone-link {
    color: var(--primary-color);
    font-weight: 600;
}

.phone-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--footer-border);
    color: #666;
    font-size: 0.85rem;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

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

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

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

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: var(--transition);
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.5);
}

.lightbox-next {
    right: -20px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: -20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-color);
    color: #000;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .highlight-title span {
        font-size: 4.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .sobre-content {
        flex-direction: row;
        align-items: center;
    }

    .sobre-text {
        flex: 1;
    }

    .sobre-image {
        flex: 1;
    }

    .servicos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: block;
    }

    .nav-menu ul {
        flex-direction: row;
        gap: 30px;
    }

    .nav-menu.active {
        position: static;
        background-color: transparent;
        padding: 0;
        border: none;
    }
}