/*
Theme Name: Inovar PorAI
Description: Tema personalizado para a Inovar PorAI.
Author: Inovar PorAI
Version: 1.0
*/

:root {
    --bg-main: #070417;
    --bg-card: #100b2a;
    --bg-card-soft: #120e2e;
    --bg-gradient-card: radial-gradient(circle at top, #1b1040 0, #070417 50%);
    --color-text: #f4f4ff;
    --color-muted: #a3a3c2;
    --color-border: #26233f;
    --accent-start: #8b5cf6;
    --accent-mid: #6366f1;
    --accent-end: #22c55e;
    --accent-green: #22c55e;
    --accent-soft: rgba(99, 102, 241, 0.18);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at top, #140b3c 0, #070417 50%, #050313 100%);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

/* UTILIDADES GERAIS */

.container {
    width: min(1120px, 100% - 3rem);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        width: min(1120px, 100% - 2rem);
    }
}

.section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

.section-header {
    margin-bottom: 3rem;
}

.section-header-centered {
    text-align: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.5);
    background: rgba(15, 23, 42, 0.9);
}

.section-title {
    font-size: clamp(2rem, 2.4rem, 2.6rem);
    line-height: 1.2;
    margin: 1.25rem 0 0.75rem;
}

.section-description {
    max-width: 640px;
    font-size: 0.98rem;
    color: var(--color-muted);
    margin: 0.75rem 0 0;
}

.section-header-centered .section-description {
    margin-left: auto;
    margin-right: auto;
}

/* TEXT GRADIENT */

.text-gradient {
    background: linear-gradient(90deg, var(--accent-start), #4f46e5, #0ea5e9, var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* GRID HELPERS */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
}

@media (max-width: 960px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* CARDS */

.card {
    background: linear-gradient(145deg, var(--bg-card), #08051c);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.6rem;
    border: 1px solid rgba(148, 163, 253, 0.08);
    box-shadow: var(--shadow-soft);
}

.card-title {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.card-description {
    font-size: 0.94rem;
    color: var(--color-muted);
    margin: 0;
}

/* BOTÕES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    color: #f9fafb;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.6);
}

.btn-outline {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 253, 0.5);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.9);
}

.btn-secondary {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.7);
}

.btn-secondary:hover {
    background: rgba(34, 197, 94, 0.18);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(7, 4, 23, 0.97));
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 253, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo do cabeçalho - responsivo */
.site-logo img {
    height: 120px;
    width: auto;
    display: block;
    max-width: 100%;
}

@media (max-width: 768px) {
    .site-logo img {
        height: 60px;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    color: #e5e7eb;
    font-size: 0.92rem;
    text-decoration: none;
    opacity: 0.85;
}

.main-nav a:hover {
    opacity: 1;
}

.header-cta {
    margin-left: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 0 1.5rem 1.25rem;
    gap: 0.75rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(7, 4, 23, 0.97));
    border-top: 1px solid rgba(148, 163, 253, 0.08);
}

.mobile-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 253, 0.05);
}

.mobile-nav a:hover {
    color: var(--accent-start);
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-nav.open {
        display: flex;
    }
}

/* HERO CENTRAL */

.hero-section {
    padding: 6rem 0 5rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
    }
}

.hero-container {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.5);
    background: rgba(15, 23, 42, 0.9);
}

.hero-title {
    font-size: clamp(2rem, 4vw + 1.5rem, 3.8rem);
    line-height: 1.1;
    margin: 1.8rem auto 1rem;
    max-width: 900px;
}

.hero-description {
    font-size: 1.02rem;
    color: var(--color-muted);
    max-width: 720px;
    margin: 0 auto 2.4rem;
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 0.95rem;
    }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.8rem;
}

.hero-btn-main {
    min-width: 260px;
}

.hero-btn-secondary {
    min-width: 230px;
}

@media (max-width: 640px) {
    .hero-btn-main,
    .hero-btn-secondary {
        min-width: 100%;
        max-width: 300px;
    }
}

/* HERO STATS */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.hero-stat-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.18));
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.2rem;
    border: 1px solid rgba(148, 163, 253, 0.16);
    text-align: left;
}

.hero-stat-card h3 {
    margin: 0 0 0.2rem;
    font-size: 1.25rem;
}

.hero-stat-card p {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
}

.hero-stat-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--color-muted);
}

@media (max-width: 960px) {
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* CARDS DE ÍCONE GENÉRICOS */

.card-icon-pill,
.service-icon,
.sector-icon {
    width: 56px;
    height: 56px;
    border-radius: 1.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

/* DIFERENCIAIS */

.bg-gradient-card {
    background: var(--bg-gradient-card);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
}

@media (max-width: 960px) {
    .diferenciais-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}

.diferenciais-left h2 {
    font-size: clamp(1.8rem, 2.8rem, 3.2rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.diferenciais-left p {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.diferenciais-left .highlight-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.7);
    max-width: 420px;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .diferenciais-left .highlight-card {
        max-width: 100%;
    }
}

.highlight-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent-green);
    flex-shrink: 0;
}

.highlight-text {
    font-size: 0.95rem;
    color: #bbf7d0;
    font-weight: 500;
}

.diferenciais-right {
    display: grid;
    gap: 1.3rem;
}

.diferencial-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.3));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 253, 0.2);
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.diferencial-icon {
    width: 56px;
    height: 56px;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.diferencial-card h3 {
    margin: 0.5rem 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.diferencial-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.badge-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 253, 0.5);
    color: #a5b4fc;
    background: rgba(15, 23, 42, 0.95);
}

.badge-result {
    border-color: rgba(59, 130, 246, 0.7);
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.badge-human {
    border-color: rgba(236, 72, 153, 0.7);
    background: rgba(236, 72, 153, 0.1);
    color: #f472b6;
}

.badge-safe {
    border-color: rgba(34, 197, 94, 0.7);
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.badge-personalizado {
    border-color: rgba(139, 92, 246, 0.7);
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

/* SERVIÇOS */

.service-card {
    text-align: left;
    padding: 2rem 1.8rem;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1rem 0 0.8rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.services-cta-wrapper {
    text-align: center;
    margin-top: 3rem;
}

/* SETORES */

.sector-card {
    padding: 2rem 1.8rem;
}

.sector-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1rem 0 0.8rem;
}

.sector-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.sector-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 1.5rem 0 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sector-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    font-size: 0.92rem;
    color: var(--color-muted);
}

.sector-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.sector-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* BENEFÍCIOS */

.benefits-grid {
    align-items: stretch;
}

.benefits-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.benefit-card {
    padding: 1.4rem 1.3rem;
}

.benefits-summary {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.benefits-summary h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.benefits-summary ul {
    margin: 0 0 1.2rem;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.benefits-summary li + li {
    margin-top: 0.35rem;
}

@media (max-width: 960px) {
    .benefits-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* PORTFÓLIO */

.portfolio-grid {
    align-items: stretch;
}

.portfolio-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(148, 163, 253, 0.3);
}

.portfolio-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 253, 0.4);
    color: #e5e7eb;
}

/* TIME */

.anchor-helper {
    display: block;
    position: relative;
    top: -80px;
    visibility: hidden;
}

.team-grid {
    align-items: stretch;
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.team-avatar {
    width: 52px;
    height: 52px;
    border-radius: 1.4rem;
    background: radial-gradient(circle at top left, #4f46e5, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.team-name {
    margin: 0;
    font-size: 1rem;
}

.team-role {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: #a5b4fc;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* CONTATO / CTA FINAL */

.contact-card {
    text-align: center;
    padding: 3.5rem 2rem;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 2rem 1.5rem;
    }
}

.contact-card .section-title {
    margin-top: 1rem;
}

.contact-card .section-description {
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid rgba(148, 163, 253, 0.16);
    padding: 3rem 0 1.5rem;
    background: #050314;
    font-size: 0.88rem;
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
}

.footer-logo img {
    height: 120px;
    width: auto;
    margin-bottom: 1rem;
    max-width: 100%;
}

@media (max-width: 768px) {
    .footer-logo img {
        height: 80px;
    }
}

.footer-description {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 1rem 0;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(148, 163, 253, 0.2);
    color: #a5b4fc;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(148, 163, 253, 0.4);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #e5e7eb;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a5b4fc;
    flex-shrink: 0;
}

.footer-contact-text {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: minmax(0, 1fr);
    }
}

.footer-nav a {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 253, 0.16);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 0.35rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
/* ============================================
   CORREÇÕES MOBILE - RODAPÉ
   ============================================ */

@media (max-width: 768px) {
    /* Logo do rodapé menor no mobile */
    .footer-logo img {
        height: 60px !important;
        margin-bottom: 0.75rem;
    }
    
    /* Ajusta espaçamento do rodapé */
    .site-footer {
        padding: 2rem 0 1rem !important;
    }
    
    /* Grid do rodapé em 1 coluna */
    .footer-grid,
    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Centraliza conteúdo no mobile */
    .footer-logo,
    .footer-description,
    .footer-social {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Centraliza redes sociais */
    .footer-social {
        justify-content: center;
    }
    
    /* Ajusta links do rodapé */
    .footer-links {
        text-align: center;
    }
    
    .footer-title {
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Lista de contatos centralizada */
    .footer-contact-list {
        text-align: center;
    }
    
    .footer-contact-list li {
        justify-content: center;
        text-align: left;
    }
    
    /* Rodapé bottom centralizado */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding-top: 1rem !important;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Remove margem extra das seções */
    .footer-grid > div {
        margin-bottom: 0;
    }
}

/* Ajuste geral de padding do container no mobile */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-logo img {
        height: 50px !important;
    }
    
    .footer-description {
        font-size: 0.85rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}