/* ==========================================================================
   FRK Soluções Industriais - Global Premium Stylesheet
   ========================================================================== */

/* Importação das Fontes Outfit (Títulos) e Inter (Texto) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Cores e Variáveis Globais */
:root {
    --primary-dark: #0A192F;       /* Navy Blue Escuro */
    --primary-medium: #0F2038;     /* Navy Blue Médio */
    --primary-light: #172A45;      /* Navy Blue Claro */
    --accent-red: #D92525;         /* Vermelho FRK */
    --accent-red-hover: #B81E1E;   /* Vermelho Escuro Hover */
    --accent-blue: #007ACC;        /* Azul Aço */
    
    --bg-light: #F4F6F9;           /* Fundo Cinza Claro */
    --bg-white: #FFFFFF;           /* Fundo Branco */
    --text-dark: #1E293B;          /* Texto Escuro */
    --text-medium: #475569;        /* Texto Suave */
    --text-light: #94A3B8;         /* Texto Claro */
    --text-white: #F8FAFC;         /* Texto Branco */
    
    --border-color: #E2E8F0;       /* Cor da Borda */
    --border-glow: rgba(217, 37, 37, 0.2);
    
    --font-titles: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px -2px rgba(15, 32, 56, 0.08);
    --shadow-lg: 0 10px 30px -5px rgba(15, 32, 56, 0.12);
    --shadow-glow: 0 0 15px rgba(217, 37, 37, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Reset e Configurações Básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
    font-weight: 700;
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

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

/* Estilo da Barra de Rolagem */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red-hover);
}

/* ==========================================================================
   Estrutura e Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-title h2 span {
    color: var(--accent-red);
}

.section-title p {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-dark {
    background: rgba(15, 32, 56, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Header e Navegação (Premium Glassmorphism)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

header.scrolled {
    padding: 12px 0;
    background: rgba(10, 25, 47, 0.95);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Logo Imagem Oficial */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 68px;
    max-width: 100%;
    object-fit: contain;
    background-color: var(--bg-white);
    padding: 8px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.35);
}

header.scrolled .logo-img {
    height: 52px;
    padding: 5px 12px;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.2);
}

.logo-text {
    display: none; /* Escondido pois a imagem já contém o nome da empresa */
}

/* Links do Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

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

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

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

.btn-portal {
    background-color: var(--accent-red);
    color: var(--text-white) !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-portal:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Menu Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* ==========================================================================
   Botões e Elementos Globais
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

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

.btn-dark:hover {
    background-color: var(--primary-medium);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-red {
    background-color: rgba(217, 37, 37, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(217, 37, 37, 0.3);
}

.badge-blue {
    background-color: rgba(0, 122, 204, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(0, 122, 204, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, #061021 100%);
    display: flex;
    align-items: center;
    color: var(--text-white);
    padding-top: 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(217, 37, 37, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s var(--transition-smooth);
}

.hero-tag {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-red);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tag::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--accent-red);
}

.hero h1 {
    color: var(--text-white);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--accent-red);
}

.hero p {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s var(--transition-smooth);
}

.hero-image img {
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Flutuador decorativo do Hero */
.hero-floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: float 4s ease-in-out infinite;
}

.hero-floating-card h4 {
    color: var(--text-white);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.hero-floating-card p {
    color: var(--text-light);
    font-size: 0.8rem;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Footer (Rodapé)
   ========================================================================== */
footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

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

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 320px;
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-white);
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-red);
    margin-top: 8px;
}

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

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.footer-contact i {
    color: var(--accent-red);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   Contato Flutuante (WhatsApp e Link do Portal)
   ========================================================================== */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: var(--transition-smooth);
}

.btn-floating:hover {
    transform: scale(1.1) translateY(-5px);
}

.btn-float-wp {
    background-color: #25D366;
}

.btn-float-wp:hover {
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-float-portal {
    background-color: var(--accent-red);
}

.btn-float-portal:hover {
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   Animações CSS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ==========================================================================
   Responsividade (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 40px;
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-floating-card {
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        animation: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
