/* Revolution Negócios - Design Node.js em PHP */

:root {
    /* Revolution Colors */
    --primary-blue: #1e40af;
    --primary-red: #dc2626;
    --gradient-start: #1e40af;
    --gradient-mid: #7c3aed;
    --gradient-end: #dc2626;
    
    /* Neutral Colors */
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --border: #e2e8f0;
    
    /* Spacing */
    --radius: 0.65rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 64px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-blue);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

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

.btn-secondary:hover {
    background-color: #b91c1c;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background:
        url('/assets/images/hero-background.png') center/cover no-repeat;
    color: white;
    padding: 6rem 2rem;
    overflow: hidden;
    min-height: calc(100vh - 84px);
    display: flex;
    align-items: center;
    max-width: none;
    margin: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 18, 43, 0.82) 0%, rgba(8, 18, 43, 0.45) 55%, rgba(8, 18, 43, 0.15) 100%);
    z-index: 1;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto 0 clamp(2rem, 6vw, 6rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    justify-items: start;
}

.hero-content {
    z-index: 10;
    max-width: 760px;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-image-container {
    position: relative;
    z-index: 10;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    margin-left: -1.5rem;
}

.hero-stats-number {
    font-size: 3rem;
    font-weight: 700;
}

.hero-stats-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-bg-muted {
    background-color: var(--muted);
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

section .subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.card-icon.primary {
    color: var(--primary-blue);
}

.card-icon.secondary {
    color: var(--primary-red);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--card-foreground);
}

.card p {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.company-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.company-card-header {
    padding: 2rem;
}

.company-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.company-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--card-foreground);
}

.company-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.company-card-content {
    padding: 0 2rem 2rem;
}

.company-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.company-link:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
}

.company-link.secondary {
    background-color: var(--primary-red);
}

.company-link.secondary:hover {
    background-color: #b91c1c;
}

.company-link:disabled,
.company-link.disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.6;
}

.company-link:disabled:hover,
.company-link.disabled:hover {
    transform: none;
}

/* ===== COMPANY GALLERY ===== */
.company-page {
    padding: 4rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.company-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.company-page-header h1 {
    font-size: 2.5rem;
    color: var(--foreground);
}

.company-page-header p {
    color: var(--muted-foreground);
    max-width: 720px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-dialog {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    max-width: min(1100px, 90vw);
    max-height: 85vh;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    position: relative;
}

.lightbox img {
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0.75rem;
    display: block;
    background: #f8fafc;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.contact-card a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary-blue);
}

/* ===== FORM ===== */
.form-container {
    max-width: 600px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--background);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;
    display: block;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== ICONS (SVG) ===== */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 4rem 1.5rem;
        background-position: center top;
    }

    .hero-grid {
        margin: 0 auto;
        justify-items: center;
    }

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

    .hero p {
        font-size: 1.125rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.875rem;
    }

    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .cards-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        height: 48px;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ===== UTILITIES ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}
    .hero-stats {
        margin-left: 0;
    }
