@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --color-gold: #c5a059;
    --color-gold-hover: #ab853c;
    --color-black: #000000;
    --color-white: #ffffff;
    --border-color: #e5e5e5;
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

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

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

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

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
}

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

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

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

/* Hamburger menu for mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Button general */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-title);
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--color-black);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}

/* Hero Section with Scroll Animation */
.hero-scroll-container {
    position: relative;
    height: 280vh; /* Reduzido de 350vh para tornar a rolagem um pouco mais rápida e curta */
    background-color: #0c0d0f;
}

.hero-sticky-inner {
    position: sticky;
    top: 0; /* Começa do topo absoluto para a imagem preencher toda a tela */
    height: 100vh; /* Ocupa 100% da viewport */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#train-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background-color: #0c0d0f;
    image-rendering: -webkit-optimize-contrast;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 13, 15, 0.95) 0%, rgba(12, 13, 15, 0.6) 50%, rgba(12, 13, 15, 0.95) 100%);
    z-index: 2;
}

/* Estilos para o cabeçalho transparente específico da Home */
.site-header.home-header {
    position: fixed; /* Mantém o cabeçalho fixo na tela durante o scroll */
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transiciona para fundo transparente desfocado (efeito vidro) quando o usuário rola a página */
.site-header.home-header.scrolled {
    background-color: rgba(255, 255, 255, 0.75); /* Transparência de 75% */
    backdrop-filter: blur(12px); /* Desfoque de fundo super moderno */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.site-header.home-header .nav-link {
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Restabelece as cores escuras dos links de menu ao rolar */
.site-header.home-header.scrolled .nav-link {
    color: var(--text-primary);
    text-shadow: none;
}

.site-header.home-header.scrolled .nav-link:hover,
.site-header.home-header.scrolled .nav-link.active {
    color: var(--color-gold);
}

.site-header.home-header .nav-link:hover,
.site-header.home-header .nav-link.active {
    color: var(--color-gold);
}

.header-logo-img {
    height: 75px; /* Aumentado para melhor visualização */
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.hero-container-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 80px; /* Compensação de altura do cabeçalho */
}

.hero-content-overlay {
    max-width: 460px; /* Mantém o texto estritamente na esquerda para não encavalar no trem à direita */
    color: var(--color-white);
}

.hero-content-overlay h1 {
    font-family: var(--font-title);
    font-size: 3.4rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content-overlay h1 span {
    color: var(--color-gold);
}

.hero-content-overlay p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-logo-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 420px;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.6));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.hero-content-overlay .hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-content-overlay .btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-content-overlay .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

@media (max-width: 992px) {
    .hero-content-overlay h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-sticky-inner {
        top: 80px;
    }
    .hero-content-overlay {
        text-align: center;
    }
    .hero-content-overlay .hero-buttons {
        justify-content: center;
    }
    .hero-content-overlay h1 {
        font-size: 2.4rem;
    }
    .hero-content-overlay p {
        font-size: 1.05rem;
    }
}

/* Image Placeholder Box */
.image-placeholder {
    background-color: #eaeaea;
    border: 2px dashed #cccccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #777777;
    font-family: var(--font-title);
    font-weight: 500;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    min-height: 350px;
    position: relative;
}

.image-placeholder::before {
    content: '📷';
    font-size: 3rem;
    margin-bottom: 10px;
}

.image-placeholder-label {
    font-size: 0.9rem;
    color: #999999;
    margin-top: 5px;
}

/* Features/Services Section */
.section-padding {
    padding: 80px 0;
}

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

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--color-gold);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--color-gold);
    transition: var(--transition);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

.feature-card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

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

/* Products Section and Grids */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--color-gold);
}

.product-card .image-placeholder {
    border-radius: 0;
    min-height: 220px;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-link {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-link:hover {
    color: var(--color-gold-hover);
}

/* Contact Page Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    line-height: 1;
}

.contact-info-text h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: var(--text-secondary);
}

.contact-form {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-title);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 60px 0 20px;
    border-top: 4px solid var(--color-gold);
}

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

.footer-brand h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-brand h3 span {
    color: var(--color-gold);
}

.footer-brand p {
    color: #aaaaaa;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
    bottom: 0;
    left: 0;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #aaaaaa;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-contact p {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

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

/* Media Queries for Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-grid,
    .contact-grid,
    .hero-grid-overlay {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-grid-overlay {
        text-align: center;
    }
    
    .hero-logo-img {
        max-height: 280px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons,
    .hero-content-overlay .hero-buttons {
        justify-content: center;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Layout Dividido no Mobile: Animação em cima, Textos embaixo */
    .hero-sticky-inner {
        display: flex;
        flex-direction: column;
        height: 100vh;
        top: 0;
    }
    
    .hero-canvas-wrapper {
        position: relative;
        width: 100%;
        height: 42vh; /* Animação ocupa 42% da altura no topo */
        z-index: 1;
        order: 1;
    }
    
    .hero-overlay {
        display: none; /* Remove a máscara escura pois o texto não está mais em cima da imagem */
    }
    
    .hero-container-overlay {
        position: relative;
        width: 100%;
        height: 58vh; /* Texto ocupa 58% da altura embaixo */
        z-index: 3;
        order: 2;
        display: flex;
        align-items: center;
        background-color: #0c0d0f; /* Fundo escuro premium para os textos */
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .hero-content-overlay {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-content-overlay h1 {
        font-size: 2.1rem;
        margin-bottom: 12px;
    }
    
    .hero-content-overlay p {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-content-overlay .hero-buttons {
        justify-content: center;
        gap: 10px;
    }
    
    .hero-content-overlay .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .features-grid,
    .products-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}
