/* Custom Properties / Tokens */
:root {
    --color-offwhite: #FAFAF7;
    /* Background */
    --color-gray-warm: #E2DFD8;
    /* Secondary BG */
    --color-text-dark: #2A2A2A;
    --color-text-light: #5A5855;
    --color-gold: #C5A059;
    /* Accents */
    --color-olive: #3B4231;
    /* Primary Buttons/Headers */
    --color-olive-hover: #4B543F;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 12px;
}

.hidden-item {
    display: none !important;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-olive);
}

.text-center {
    text-align: center;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-olive-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 66, 49, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background-color: var(--color-olive);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled .logo,
header.scrolled .main-nav a {
    color: white;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 100px;
    /* Ajuste a altura conforme necessário */
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
}

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

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

.main-nav a:hover {
    color: white;
}

.nav-cta {
    background-color: var(--color-gold);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: #b38b4a;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('f16.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 0;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Stats Section */
.stats {
    background-color: white;
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 1px;
    background-color: var(--color-gray-warm);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.about-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 500px;
    width: 100%;
}

/* Gallery Section */
.gallery {
    background-color: white;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

.masonry-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

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

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

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

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    height: 350px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(59, 66, 49, 0.9) 0%, rgba(59, 66, 49, 0.4) 100%);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-gold);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: translateY(0);
    opacity: 1;
}

.service-title {
    color: white;
    font-size: 1.5rem;
    transform: translateY(10px);
    transition: var(--transition);
}

.service-card:hover .service-title {
    transform: translateY(0);
}

/* Videos Section */
.videos {
    background-color: var(--color-gray-warm);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-thumb {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.video-thumb:hover::after {
    background: rgba(0, 0, 0, 0.5);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.video-thumb:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--color-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    padding-left: 5px;
    transition: var(--transition);
}

.video-thumb:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-olive);
}

.video-thumb>* {
    pointer-events: none;
}

/* Footer Section */
.footer {
    background-color: var(--color-olive);
    color: white;
    padding: 80px 0 0 0;
}

.footer .section-title {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

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

.contact-list {
    list-style: none;
    margin: 30px 0;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--color-gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-map {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-container,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 400px;
    }

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

    .stats {
        margin: 20px;
    }
}

@media (max-width: 768px) {

    .main-nav,
    .nav-cta {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-item:not(:last-child)::after {
        width: 50px;
        height: 1px;
        right: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(50%);
    }

    .services-grid,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
}

.lightbox-content img.active,
.lightbox-content video.active {
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-gold);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: var(--transition);
    user-select: none;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* Video Thumbnail Enhancements */
.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-thumb:hover video {
    transform: scale(1.05);
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    display: block;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}


.gallery-actions {
    margin-top: 40px;
    width: 100%;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 1;
    }
}