@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');

/* ==========================================================================
   Design System & VariÃ¡veis
   ========================================================================== */
:root {
    /* Paleta de Cores Oficial da ROIST */
    --primary: #0a2540;          /* Vermelho Corporativo */
    --primary-hover: #081d33;
    --primary-glow: rgba(10, 37, 64, 0.15);
    --secondary: #0066cc;        /* Azul Marinho/PetrÃ³leo */
    --secondary-hover: #0052a3;
    --secondary-glow: rgba(0, 102, 204, 0.15);
    
    /* Cores de Fundo e Texto */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;          /* Fundo escuro para seÃ§Ãµes de contraste */
    --bg-dark-card: #1e293b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --text-light-muted: #94a3b8;
    
    /* Efeitos e Bordas */
    --border-color: #e2e8f0;
    --border-dark: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
    --shadow-primary: 0 10px 20px -5px rgba(10, 37, 64, 0.3);
    
    /* Fontes */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* TransiÃ§Ãµes */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Estilos Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
}

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

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

button, input, select, textarea {
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* SeÃ§Ãµes Gerais */
.section {
    padding: 80px 0;
    position: relative;
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-bg-dark {
    background-color: var(--secondary);
    color: var(--text-light);
}

.section-bg-dark h2, 
.section-bg-dark h3 {
    color: var(--text-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    position: relative;
}

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

.section-bg-dark .section-desc {
    color: var(--text-light-muted);
}

/* ==========================================================================
   Componentes & Elementos RepetÃ­veis
   ========================================================================== */
/* BotÃµes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -5px rgba(10, 37, 64, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   CabeÃ§alho (Header & Navigation)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.header.scrolled {
    padding: 8px 0;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-normal);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    height: 55px;
}

.logo img {
    height: 100%;
    width: auto;
}

/* Menu de NavegaÃ§Ã£o */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

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

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

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

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

.nav-link.active {
    color: var(--primary);
}

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

/* Menu Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ==========================================================================
   SeÃ§Ã£o Hero (Banner Principal)
   ========================================================================== */
.hero {
    position: relative;
    padding: 160px 0 100px 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.03) 0%, rgba(10, 37, 64, 0.03) 100%), var(--bg-white);
    min-height: 90vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-color: var(--bg-light);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-glow);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    border: 1px solid rgba(10, 37, 64, 0.1);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Imagem Hero */
.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    border: 6px solid var(--bg-white);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   SeÃ§Ã£o ServiÃ§os
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    border-top: 5px solid var(--secondary);
}

.service-card:hover {
    border-top-color: var(--primary);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: var(--secondary-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--primary);
    color: var(--text-light);
    transform: rotate(5deg);
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-link:hover {
    color: var(--secondary);
    gap: 8px;
}

/* ==========================================================================
   SeÃ§Ã£o Diferenciais
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-left {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.features-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-item {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.feature-icon-wrapper {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Banner de Suporte Documental */
.document-banner {
    margin-top: 60px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    padding: 40px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.document-banner::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -150px;
    right: -100px;
}

.document-text {
    max-width: 70%;
}

.document-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.document-desc {
    color: var(--text-light-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   SeÃ§Ã£o Quem Somos & HistÃ³ria (Com Tabs)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.about-left {
    position: sticky;
    top: 120px;
}

.about-intro-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-intro-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Abas (Tabs) */
.tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
}

.tab-btn {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--secondary);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

/* ConteÃºdo da HistÃ³ria */
.history-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.history-item {
    margin-bottom: 30px;
    position: relative;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
}

.history-year {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.history-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* MissÃ£o, VisÃ£o e Valores */
.mvv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mvv-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.mvv-card-full {
    grid-column: span 2;
}

.mvv-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mvv-title svg {
    color: var(--primary);
}

.values-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    list-style: none;
    margin-top: 15px;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.values-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ==========================================================================
   SeÃ§Ã£o Contato e LocalizaÃ§Ã£o
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
}

.contact-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-item-text {
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 500;
}

/* Redes Sociais */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.social-btn:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* FormulÃ¡rio de Contato */
.contact-form-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
    color: var(--text-main);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   SeÃ§Ã£o Mapa
   ========================================================================== */
.map-section {
    padding: 0;
    height: 400px;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   RodapÃ© (Footer)
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
    border-top: 5px solid var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    background-color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.footer-logo img {
    height: 100%;
    width: auto;
}

.footer-desc {
    color: var(--text-light-muted);
    margin-bottom: 24px;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--text-light-muted);
}

.footer-contact-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact-info svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    text-align: center;
    color: var(--text-light-muted);
}

.footer-bottom p {
    font-size: 0.85rem;
}

/* ==========================================================================
   AnimaÃ§Ãµes & Efeitos de Entrada
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AnimaÃ§Ãµes de entrada com Intersection Observer */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MÃ­dia Queries (Design Responsivo)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .about-grid, 
    .features-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-left {
        position: static;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .hero {
        padding: 120px 0 60px 0;
    }
    .hero::before {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
    .features-left {
        aspect-ratio: 16/9;
    }
    .document-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .document-text {
        max-width: 100%;
    }
    .mvv-grid {
        grid-template-columns: 1fr;
    }
    .mvv-card-full {
        grid-column: span 1;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Menu MÃ³vel Responsivo */
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        padding: 40px 24px;
        transition: var(--transition-normal);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
