@import url('https://cdn.tailwindcss.com');

/* ====================================
   FRIG ENGENHARIA - STYLESHEET GLOBAL
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #000000 0%, #1F2937 100%) fixed !important;
    color: #f5f5f7 !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* ==================== NAVBAR ==================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.navbar-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: #1d1d1f;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #f5f5f7;
}

.logo-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f5f7;
    letter-spacing: -0.01em;
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #86868b;
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: #f5f5f7;
}

.nav-cta {
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.nav-cta:hover {
    background-color: #FBBF24;
    color: #000;
}

/* ==================== MOBILE MENU ==================== */
#menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
}

#menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #f5f5f7;
    transition: all 0.3s ease;
}

#mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background-color: #1d1d1f;
    padding: 1rem;
    border-bottom: 1px solid #333;
}

#mobile-menu a {
    padding: 0.75rem 1rem;
    color: #86868b;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

#mobile-menu a:hover {
    color: #f5f5f7;
    background-color: #2d2d2f;
    border-radius: 0.375rem;
}

#mobile-menu a.active {
    color: #f5f5f7;
    font-weight: 600;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    #menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none !important;
    }
}

@media (min-width: 769px) {
    #menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex;
    }
}

/* ==================== MAIN CONTENT ==================== */
main {
    margin-top: 4rem;
    min-height: 100vh;
}

section {
    padding: 5rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* ==================== HERO ==================== */
section.hero {
    background: #000;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.highlight {
    background: linear-gradient(90deg, #FCD34D 0%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: #86868b;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.01em;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 980px;
    font-weight: 500;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary {
    background-color: #f5f5f7;
    color: #000;
}

.btn-primary:hover {
    background-color: #fff;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* ==================== CARDS ==================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.card-text {
    color: #4B5563;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-link {
    color: #FBBF24;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: #000;
}

/* ==================== GRIDS ==================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.client-card {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    text-align: center;
    color: #9CA3AF;
    transition: all 0.3s ease;
}

.client-card:hover {
    border-color: #FBBF24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.project-image {
    background: linear-gradient(135deg, #D1D5DB, #9CA3AF);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}

.project-body {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.project-desc {
    color: #4B5563;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #F3F4F6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* ==================== CONTACT INFO ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #FBBF24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.info-text {
    color: #4B5563;
    font-size: 0.9rem;
}

.info-text a {
    color: #FBBF24;
    font-weight: 600;
}

.info-text a:hover {
    color: #000;
}

/* ==================== FORM ==================== */
.form-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #E5E7EB;
    max-width: 600px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

input, textarea, select {
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #FBBF24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.form-btn {
    background-color: #000;
    color: #fff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.form-btn:hover {
    background-color: #FBBF24;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* ==================== FOOTER ==================== */
footer {
    background-color: #000;
    color: #fff;
    padding: 3rem 1rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #374151;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #FBBF24;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background-color: #FBBF24;
    color: #000;
    border: none;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: scale(1.1);
    background-color: #FCD34D;
}

.footer-bottom {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== UTILITY CLASSES ==================== */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.py-4 { padding: 1rem 0; }
.py-8 { padding: 2rem 0; }

.bg-gray-50 { background-color: #F9FAFB; }
.bg-white { background-color: #fff; }
.bg-black { background-color: #000; }

.text-sm { font-size: 0.9rem; }
.text-lg { font-size: 1.2rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    section {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .card-grid,
    .clients-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== DARK MODE OVERRIDES (APPLE PRO) ==================== */
/* Força a remoção de fundos brancos inline deixados pelo design anterior */
section, 
div[style*="background-color: #fff"], 
div[style*="background-color: #F9FAFB"],
section[style*="background-color: #fff"], 
section[style*="background-color: #F9FAFB"] {
    background-color: transparent !important;
}

/* Força cores de texto para contrastar no fundo preto, ignorando inlines antigos */
h1, h2, h3, h4, h5, h6, 
[style*="color: #000"], 
.timeline-content h3, 
.value-card h3, 
.team-info h3,
.client-card span {
    color: #f5f5f7 !important;
}

p, 
[style*="color: #4B5563"], 
[style*="color: #9CA3AF"],
.timeline-content p,
.value-card p,
.team-info p,
.contact-info p {
    color: #86868b !important;
}

/* Protege botões, links e destaques */
.btn-primary, .btn-primary * {
    color: #000 !important;
}

a, .nav-links a {
    color: inherit;
}

.highlight {
    -webkit-text-fill-color: transparent !important;
}

/* ==================== BENTO GRID SYSTEM ==================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 350px;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bento-item {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-large { grid-column: span 8; }
.bento-medium { grid-column: span 4; }
.bento-wide { grid-column: span 12; }

.bento-title {
    font-size: 2rem;
    color: #f5f5f7;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.bento-description {
    color: #86868b;
    font-size: 1.1rem;
    line-height: 1.5;
}

.bento-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.bento-item:hover .bento-bg-image {
    opacity: 0.5;
}

.bento-content {
    position: relative;
    z-index: 10;
    margin-top: auto;
}

@media (max-width: 900px) {
    .bento-large, .bento-medium, .bento-wide {
        grid-column: span 12;
    }
}

/* Ajusta cartões internos que eram brancos */
.value-card, .testimonial-card, .stat-card, .contact-card, .office-card {
    background-color: #111111 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

