:root {
    /* Cores - Paleta Profissional e Natureza */
    --primary-color: #0A2342;
    /* Azul profundo */
    --primary-light: #183B66;
    --secondary-color: #2C5E2E;
    /* Verde natureza */
    --secondary-light: #4A854D;
    --accent-color: #D4AF37;
    /* Dourado */
    --accent-hover: #E5C14D;
    --text-dark: #1F2937;
    --text-light: #4B5563;
    --text-white: #FFFFFF;
    --bg-light: #F3F4F6;
    --bg-white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.text-sm {
    font-size: 0.875rem;
}

/* Components: Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-gold:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 35, 66, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: padding 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fallback gradient if image fails */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-image: url('./hero_background.png');
    background-size: cover;
    background-position: center bottom;
    /* Anchor to bottom to catch the rod detail if cropped */
    background-attachment: scroll;
    /* Fixed attachment can cause issues on mobile or sometimes weird cropping */
    background-repeat: no-repeat;
    text-align: center;
    color: var(--text-white);
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 35, 66, 0.2), rgba(10, 35, 66, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpdate 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUpdate {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JS Scroll Reveal Classes */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Destaques */
.destaque-card {
    padding: 30px;
    border-radius: 12px;
    background-color: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.destaque-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.destaque-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.destaque-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
}

.link-arrow:hover {
    color: var(--secondary-color);
    gap: 5px;
}

/* Simuladores Card */
.simulator-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.simulator-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    height: 200px;
    overflow: hidden;
    background-color: var(--primary-light);
    /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.simulator-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.card-body p {
    margin-bottom: 20px;
    min-height: 48px;
    /* Alignment */
}

/* Section News */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid #eee;
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: #f9fafb;
}

.news-thumb {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    background-color: var(--primary-light);
    flex-shrink: 0;
}

.news-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: var(--font-sans);
    font-weight: 600;
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.read-more {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Community Section */
.community-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.community-content {
    position: relative;
    z-index: 2;
}

.community-content h2,
.community-content p {
    color: var(--text-white);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Sobre Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.quote-box {
    background-color: var(--primary-color);
    padding: 40px;
    border-radius: 12px;
    color: var(--text-white);
    position: relative;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: var(--font-serif);
}

.quote-box blockquote {
    font-size: 1.25rem;
    font-style: italic;
    font-family: var(--font-serif);
}

/* Newsletter */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-box {
    background-color: var(--primary-color);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    color: var(--text-white);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.newsletter-box h2 {
    color: var(--text-white);
}

.newsletter-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 2px solid var(--accent-color);
}

/* Footer */
#footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .sm-hidden {
        display: none;
    }

    #menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        padding-bottom: 50px;
    }

    .nav-links.active {
        right: 0;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}