/* Madeireira Silpinus - Galeria Styles */

:root {
    /* Paleta Verde e Natural - Sincronizada com o index */
    --primary-color: #2E5D31;      /* Verde escuro floresta */
    --secondary-color: #4A7C59;    /* Verde médio */
    --accent-color: #C8A882;       /* Bege dourado */
    --accent-green: #6B8E23;       /* Verde oliva */
    --background-color: #F8FAF5;   /* Verde muito claro */
    --background-alt: #FFFFFF;     /* Branco puro */
    --neutral-light: #8FBC8F;      /* Verde acinzentado claro */
    --neutral-dark: #5F7A61;       /* Verde acinzentado escuro */
    --text-dark: #1C3A1F;          /* Verde muito escuro para texto */
    --white: #FFFFFF;
    --success: #228B22;            /* Verde sucesso */
    --warning: #DAA520;            /* Dourado */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--warning));
    --gradient-nature: linear-gradient(135deg, var(--accent-green), var(--secondary-color));
    --shadow-light: 0 5px 20px rgba(46, 93, 49, 0.1);
    --shadow-medium: 0 8px 25px rgba(46, 93, 49, 0.15);
    --shadow-dark: 0 15px 35px rgba(46, 93, 49, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Moderno - Sincronizado com index */
header {
    background: var(--gradient-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo Redesenhado - Idêntico ao index */
.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-nature);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 142, 35, 0.4);
}

.logo-icon::before {
    content: '🌲';
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-family: 'Georgia', serif;
}

.logo-text h1, .logo-text h3 {
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

/* Navigation Melhorada - Idêntica ao index */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

nav a.active {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Page Hero para páginas internas */
.page-hero {
    background: linear-gradient(135deg, 
        rgba(46, 93, 49, 0.9) 0%, 
        rgba(74, 124, 89, 0.8) 50%, 
        rgba(107, 142, 35, 0.9) 100%), 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23F8FAF5"/><stop offset="50%" style="stop-color:%23E8F5E8"/><stop offset="100%" style="stop-color:%23D4F1D4"/></linearGradient></defs><rect fill="url(%23bg)" width="1200" height="400"/><path fill="%234A7C59" d="M0,200 Q300,150 600,200 T1200,200 V400 H0 Z" opacity="0.3"/><circle fill="%236B8E23" cx="800" cy="100" r="80" opacity="0.2"/><circle fill="%23C8A882" cx="150" cy="300" r="60" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center top, 
        rgba(255,255,255,0.1) 0%, 
        rgba(46, 93, 49, 0.2) 70%, 
        rgba(28, 58, 31, 0.4) 100%
    );
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 0.8rem;
    font-weight: 800;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, var(--white), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background-color) 100%);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(107, 142, 35, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 124, 89, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.gallery-intro h2 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    font-weight: 800;
}

.gallery-intro h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-nature);
    border-radius: 3px;
}

.gallery-intro p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--neutral-dark);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* Gallery Grid - Atualizado para imagens reais */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--white);
    cursor: pointer;
    height: 250px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-nature);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 3;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-dark);
}

.gallery-item:hover::before {
    transform: scaleX(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay para as imagens */
.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(46, 93, 49, 0.9);
    color: var(--white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Modal para visualização ampliada */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background: rgba(46, 93, 49, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10000;
}

.nav-btn {
    pointer-events: auto;
    background: rgba(46, 93, 49, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 93, 49, 0.8);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 10000;
}

/* Gallery Info Section */
.gallery-info-section {
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.info-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-dark);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.info-card:hover i {
    transform: scale(1.15);
    color: var(--accent-color);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.info-card p {
    color: var(--neutral-dark);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Applications Section */
.applications-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-green) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.applications-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(200,168,130,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107,142,35,0.15) 0%, transparent 50%);
}

.applications-section .container {
    position: relative;
    z-index: 2;
}

.applications-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.applications-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--accent-color);
    border-radius: 3px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.application-card {
    background: rgba(255,255,255,0.15);
    padding: 3rem;
    border-radius: 24px;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255,255,255,0.1);
    position: relative;
}

.application-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.application-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.application-card:hover .application-icon {
    transform: rotateY(360deg) scale(1.1);
}

.application-card h3 {
    margin-bottom: 1.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.application-card ul {
    list-style: none;
}

.application-card li {
    padding: 0.8rem 0;
    color: var(--white);
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
    line-height: 1.5;
    opacity: 0.95;
    transition: all 0.3s ease;
}

.application-card li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.application-card li::before {
    content: '▸';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.application-card li:hover::before {
    transform: scale(1.2);
}

/* Contact Info Simple */
.contact-info-simple {
    padding: 5rem 0;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-green) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-info-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(200,168,130,0.1) 0%, transparent 50%);
}

.contact-center {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-info-simple h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.contact-info-simple p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    text-decoration: none;
    padding: 1.3rem 2.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.contact-method:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.contact-method.primary {
    background: var(--gradient-accent);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(200, 168, 130, 0.4);
}

.contact-method.primary:hover {
    background: linear-gradient(135deg, #B8460E, #B8A177);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(200, 168, 130, 0.6);
}

.contact-method.whatsapp {
    background: var(--success);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4);
}

.contact-method.whatsapp:hover {
    background: #229954;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(34, 139, 34, 0.6);
}

.schedule-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    margin-top: 2rem;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.schedule-info:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
}

.schedule-info i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.schedule-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.schedule-info p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info .logo {
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: #cccccc;
    line-height: 1.7;
    font-size: 1.05rem;
}

.footer-contact h4, .footer-services h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #cccccc;
    font-size: 1.05rem;
}

.footer-contact i {
    color: var(--accent-green);
    width: 20px;
}

.footer-services ul {
    list-style: none;
}

.footer-services li {
    color: #cccccc;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.footer-services li:hover {
    color: var(--accent-color);
}

.footer-services li::before {
    content: '▸';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.95rem;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .info-cards, .applications-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 0;
    }

    .gallery-section, .applications-section, .contact-info-simple {
        padding: 4rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .gallery-item {
        height: 200px;
    }

    .info-cards {
        gap: 1.5rem;
    }

    .info-card, .application-card {
        padding: 2rem;
    }

    .applications-grid {
        gap: 1.5rem;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .schedule-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .modal-content {
        width: 95%;
        height: 85vh;
    }

    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modal-navigation {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .page-hero, .gallery-section, .applications-section, .contact-info-simple {
        padding: 3rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 180px;
    }

    .info-card, .application-card {
        padding: 1.5rem;
    }

    .contact-method {
        padding: 1rem 1.8rem;
        font-size: 1rem;
    }

    .logo-text h1, .logo-text h3 {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .logo-icon::before {
        font-size: 22px;
    }

    nav ul {
        gap: 0.8rem;
    }

    nav a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .gallery-item, .info-card, .application-card {
        border: 2px solid var(--text-dark);
    }
    
    .contact-method {
        border: 3px solid var(--white);
    }
}

/* Focus States */
.contact-method:focus,
nav a:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(107, 142, 35, 0.2);
}