/* ============================================
   Quorus Landing Page - CSS
   Migrado de WordPress para Blazor Server
   ============================================ */

/* Google Fonts - Original WordPress */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================
   CSS Variables / Design Tokens
   Restaurado do tema original WordPress
   ============================================ */
:root {
    --primary-color:  #0066FF;
    --secondary-color: #00C9FF;

    --dark-bg:        #0A0E27;
    --dark-bg-alt:    #1A1F3A;
    --dark-bg-card:   #141832;
    --dark-border:    rgba(255, 255, 255, 0.1);

    --text-color:     #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted:     rgba(160, 174, 192, 0.6);

    --accent-1:       #0066FF;
    --accent-2:       #00C9FF;
    --accent-gradient: linear-gradient(135deg, #0066FF 0%, #00C9FF 100%);
    --accent-glow:    rgba(0, 102, 255, 0.25);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.2);
}

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

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

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dark-border);
    transition: padding 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    opacity: 0.5;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.lang-flag:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

.lang-flag.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.4);
}

.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-cta {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 102, 255, 0.4);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease both;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 102, 255, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 60%, rgba(0, 201, 255, 0.12) 0%, transparent 60%),
        var(--dark-bg);
    z-index: 0;
}

/* Subtle grid overlay */
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-image {
    flex-shrink: 0;
    width: 845px;
    max-width: 70%;
}

.hero-image img {
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    filter: brightness(1.1);
}

@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        max-width: 550px;
        width: 100%;
        order: -1;
        margin-bottom: 1rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Sections Base
   ============================================ */
.section {
    padding: 6rem 0;
}

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

.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Expertise / Serviços Grid
   ============================================ */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expertise-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    display: block;
    line-height: 1;
}

.expertise-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Sobre Section
   ============================================ */
.sobre-section {
    background: var(--dark-bg-alt);
}

.sobre-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.sobre-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 3.5rem;
}

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

.stat-item {
    padding: 2rem 1.5rem;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-3px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--dark-bg);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.75rem 2.5rem;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-card:hover {
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--dark-bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-border);
}

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

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

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

.validation-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

.form-feedback {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success {
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: #00d4aa;
}

.form-error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--dark-bg-alt);
    border-top: 1px solid var(--dark-border);
    padding: 4rem 0 2rem;
}

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

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-section ul a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 2rem;
    text-align: center;
}

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

/* ============================================
   Blazor Specific — remover estilos padrão
   ============================================ */
.main-title {
    display: none;
}

#blazor-error-ui {
    background: #2d1b1b;
    border-top: 2px solid #ff6b6b;
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0,0,0,0.4);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #ff9999;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .nav-cta {
        display: none;
    }

    .lang-flag {
        width: 24px;
        height: 17px;
    }

    .hero-section {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 4rem 0;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: var(--dark-bg);
}

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

.testimonial-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.company-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Card Link (Saiba mais)
   ============================================ */
.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a.expertise-card {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

a.expertise-card:hover .card-link {
    color: var(--secondary-color);
}

/* ============================================
   Service Pages
   ============================================ */
.service-hero {
    position: relative;
    padding: 10rem 0 4rem;
    overflow: hidden;
}

.service-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.service-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.service-hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Service Details */
.service-details {
    background: var(--dark-bg);
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

.service-main-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.service-main-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-main-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

/* Sidebar Cards */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.tech-card,
.benefits-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.tech-card h3,
.benefits-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Service CTA */
.service-cta {
    background: var(--dark-bg-alt);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Service Pages Responsive */
@media (max-width: 900px) {
    .service-content-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tech-card,
    .benefits-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 8rem 0 3rem;
    }

    .service-icon-large {
        font-size: 3rem;
    }

    .service-sidebar {
        flex-direction: column;
    }

    .tech-card,
    .benefits-card {
        min-width: 100%;
    }
}
