/* ============================================
   ONALEDTECH - CYBERSECURITY & SYSTEM INTEGRATOR
   DESIGN CLEAN | PROFISSIONAL | CONFIÁVEL
   Versão Completa com todas as seções
   ============================================ */

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* ========== VARIÁVEIS ========== */
:root {
    --primary: #0a1a2f;
    --primary-dark: #04101f;
    --primary-light: #1a2c3f;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --accent-light: #e6f0ff;
    --text-dark: #1a2c3f;
    --text-medium: #4a5b6e;
    --text-light: #8a9bb0;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-light: #f0f4f8;
    --border: #e2e8f0;
    --border-light: #eef2f6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ========== TIPOGRAFIA ========== */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo a {
    text-decoration: none;
    color: var(--primary-dark);
}

.logo span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-medium);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 160px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    color: var(--text-medium);
    padding: 0.6rem 1rem;
    display: block;
    text-decoration: none;
    font-size: 0.85rem;
}

.lang-dropdown a:hover {
    background: var(--bg-gray);
    color: var(--accent);
}

/* ========== HERO SECTION ========== */
.hero {
    max-width: 1280px;
    margin: 4rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-image {
    background: linear-gradient(135deg, var(--accent-light), var(--bg-gray));
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image span {
    font-size: 6rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}

/* ========== SERVICES SECTION ========== */
.services {
    background: var(--bg-gray);
    padding: 5rem 2rem;
}

.services-container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

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

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

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== NETWORK SERVICES SECTION ========== */
.network-section {
    background: var(--bg-white);
    padding: 4rem 2rem;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.network-card {
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.network-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.network-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ========== PARTNERS SECTION WITH LOGOS ========== */
.partners-section {
    background: var(--bg-gray);
    padding: 4rem 2rem;
    text-align: center;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 3rem 0;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    min-width: 100px;
}

.partner-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.partner-logo img {
    max-height: 40px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo .logo-fallback {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partner-note {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

/* ========== TECH DETAILS SECTION ========== */
.tech-details-section {
    background: var(--bg-white);
    padding: 4rem 2rem;
}

.tech-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: var(--transition);
}

.tech-detail-card:hover {
    box-shadow: var(--shadow-md);
}

.tech-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-light);
}

.tech-detail-header img {
    height: 35px;
    width: auto;
}

.tech-detail-header h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.tech-detail-list {
    list-style: none;
    padding: 0;
}

.tech-detail-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.tech-detail-list li:last-child {
    border-bottom: none;
}

.tech-detail-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

/* ========== NEWS SECTION ========== */
.news-section {
    background: var(--bg-gray);
    padding: 4rem 2rem;
}

.news-container {
    max-width: 1280px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.news-source {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.news-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-dark);
    font-weight: 600;
}

.news-summary {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.7rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.news-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: #fff5f5;
    border-radius: 12px;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    background: var(--bg-white);
    padding: 5rem 2rem;
}

.testimonials-container {
    max-width: 1280px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-gray);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--border-light);
}

.testimonial-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: normal;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem;
}

.testimonial-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ========== CTA SECTION ========== */
.cta {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

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

.cta .btn-primary:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

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

/* ========== FORMULÁRIO (DIAGNÓSTICO) ========== */
.form-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.form-group label,
.form-group-full label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group-full input,
.form-group-full select,
.form-group-full textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group-full input:focus,
.form-group-full select:focus,
.form-group-full textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

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

.required-star {
    color: #dc3545;
    margin-left: 2px;
}

.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.form-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    font-size: 0.85rem;
    cursor: pointer;
}

.form-checkbox-group input {
    width: auto;
    margin-right: 0.25rem;
}

/* ========== TELEFONE COM CÓDIGO DE PAÍS ========== */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.country-code-select {
    width: 120px;
    flex-shrink: 0;
}

.country-code-select select {
    width: 100%;
    padding: 0.75rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--bg-white);
    font-family: inherit;
}

.phone-number-input {
    flex: 1;
}

/* ========== ADMIN PANEL ========== */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-table {
    width: 100%;
    background: var(--bg-white);
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--text-dark);
}

.admin-table tr:hover {
    background: var(--bg-light);
}

.status-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        margin: 2rem auto;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        min-height: 250px;
    }
    
    .tech-details-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .services-grid,
    .network-grid,
    .tech-details-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .partners-grid {
        gap: 1.5rem;
    }
    
    .partner-logo img {
        max-height: 30px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card p {
        font-size: 1rem;
    }
    
    .cta h2 {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .country-code-select {
        width: 100%;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .service-card,
    .network-card,
    .tech-detail-card {
        padding: 1.5rem;
    }
    
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* ========== RTL SUPPORT (ÁRABE) ========== */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-links {
    direction: rtl;
}

body.rtl .lang-dropdown {
    right: auto;
    left: 0;
}

body.rtl .hero-stats {
    direction: rtl;
}

body.rtl .stat-item {
    text-align: right;
}

body.rtl .tech-detail-list li::before {
    content: "✓";
    margin-left: 0.5rem;
    margin-right: 0;
}

body.rtl .form-checkbox-group label {
    justify-content: flex-end;
}

body.rtl .phone-input-group {
    flex-direction: row-reverse;
}

/* ========== UTILIDADES ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

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

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ========== SELEÇÃO DE TEXTO ========== */
::selection {
    background: var(--accent-light);
    color: var(--accent);
}

/* ========== TESTIMONIALS CARROSSEL ========== */
.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonials-slide.active {
    display: block;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 102, 204, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #0066cc;
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-dots {
    text-align: center;
    margin-top: 2rem;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #0066cc;
    width: 25px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-prev { left: 0; }
    .carousel-next { right: 0; }
    .carousel-btn { width: 30px; height: 30px; font-size: 0.8rem; }
}