/* CSS Variables & Theme */
:root {
    --bg-dark: #070B14;
    --bg-darker: #04060A;
    --bg-card: rgba(17, 24, 39, 0.6);
    
    --accent: #F59E0B; /* Safety Orange / Amber */
    --accent-hover: #D97706;
    --primary: #2563EB; /* Formal Blue */
    --primary-glow: rgba(37, 99, 235, 0.2);
    
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-darker { background-color: var(--bg-darker); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }

/* Typography */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

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

.section {
    padding: 6rem 0;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(7, 11, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.hero-bg picture { display:block; width:100%; height:100%; }

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7,11,20,0.7) 0%, rgba(7,11,20,0.855) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.site-title-hero {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.site-title-hero .text-accent {
    color: var(--accent);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-sme-focus {
    font-size: 1.05rem !important;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem !important;
    font-style: italic;
    color: rgba(156, 163, 175, 0.7) !important;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Split Layout */
.split-layout {
    display: flex;
    gap: 4rem;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

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

.content-left, .content-right {
    flex: 1;
}

/* Feature List */
.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list i {
    font-size: 1.25rem;
}

/* Images & Cards */
.image-card {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    opacity: 0.8;
}

.card-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.services-row-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 750px;
    margin: 2rem auto 0;
}

/* Service Card */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.service-card h3 {
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-details {
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
}

.service-details li {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-details li::before {
    content: "•";
    color: var(--accent);
}

/* Training Section */
.training-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.training-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.image-wrapper {
    position: relative;
    padding: 0;
}

.image-wrapper img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Differentials */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.diff-item {
    text-align: center;
    padding: 2rem;
}

.diff-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.diff-item h4 {
    margin-bottom: 0.5rem;
}

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

/* Tags / Sectors */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0;
    background: var(--bg-darker);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.footer-quote {
    max-width: 700px;
    margin: 2rem auto;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
}

.footer-quote p {
    margin-bottom: 0.5rem;
}

.quote-author {
    font-style: normal;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-up { transform: translateY(40px); }
.slide-left { transform: translateX(40px); }
.slide-right { transform: translateX(-40px); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 992px) {
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add a hamburger menu for production */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .training-grid {
        grid-template-columns: 1fr;
    }
    
    .card-float {
        bottom: -10px;
        right: 10px;
        padding: 1rem;
    }
}

/* Word Hover Effect */
.word-hover {
    transition: font-weight 0.2s ease, color 0.2s ease;
    cursor: default;
}

.word-hover:hover {
    font-weight: 800;
    color: var(--accent);
}

/* Links do Portal e Legal no rodape */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.4rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* Secao Artigos Tecnicos */
.articles-callout {
    max-width: 760px;
    margin: 0 auto;
}

.articles-callout p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 1.5rem auto 2rem;
}
