/* ===================================
   RESOLUTEC - IDENTIDADE VISUAL 2026
   Camada carregada depois de style.css e responsive.css. Segue o Resolutec Design System:
   Helvena em títulos, Inter no texto, azul tecnológico / digital / noturno, cantos 12-24px.
   =================================== */

@font-face { font-family: "Helvena"; src: url("../brand/fonts/Helvena-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Helvena"; src: url("../brand/fonts/Helvena-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Helvena"; src: url("../brand/fonts/Helvena-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --font-display: "Helvena", "Inter", "Segoe UI", system-ui, sans-serif;
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --azul-noturno: #121C2D;
    --azul-digital: #4DBBE2;
    --brand-subtle: #EFF4FD;
    --border: #DDE2EA;
    --radius-card: 16px;
    --radius-lg: 24px;
    --header-h: 76px;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

::selection { background: rgba(36, 89, 202, 0.18); }

/* Link "Pular para o conteúdo": só aparece ao receber foco pelo teclado */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.main-content:focus { outline: none; }

/* Alvos de toque: mínimo de 44px nos controles principais */
.btn,
.btn-cliente,
.mobile-menu-toggle,
.social-links a,
.back-to-top { min-height: 44px; }

.mobile-menu-toggle {
    min-width: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.social-links a { width: 44px; height: 44px; }

.footer-content ul a {
    display: inline-block;
    padding: 0.25rem 0;
}

/* 16px nos campos evita o zoom automático do iPhone ao tocar no campo */
.form-group input,
.form-group textarea { font-size: 1rem; }

/* Submenu também abre pelo teclado e pelo clique (não só no hover) */
@media (min-width: 769px) {
    .dropdown:has(:focus-visible) .dropdown-menu,
    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- Cabeçalho --- */
.main-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    box-shadow: none;
    border-bottom: 1px solid var(--border);
}

.navbar { padding: 0; }
.nav-wrapper { min-height: var(--header-h); gap: 1.5rem; }
/* O SVG da marca tem respiro interno: 52px dá o tamanho visual do logo antigo */
.logo img { height: 52px; width: auto; }

.nav-menu { gap: 0.25rem; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    color: var(--gray-dark);
}

.nav-link::after { display: none; }

.nav-link:hover,
.dropdown:hover > .nav-link {
    background: var(--brand-subtle);
    color: var(--primary-color);
}

.dropdown-toggle i { font-size: 0.7rem; }

.dropdown-menu {
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-menu a {
    border-radius: 10px;
    font-size: 0.9375rem;
}

.dropdown-menu a:hover {
    background: var(--brand-subtle);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Botão Portal do Cliente: leva ao portal dos apps (Studio Creator) */
.btn-cliente {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
}

.btn-cliente:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 20px -6px rgba(36, 89, 202, 0.55);
}

.btn-cliente:active { transform: scale(0.98); }

.main-content { margin-top: var(--header-h); }

/* --- Botões --- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

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

.btn-primary:hover {
    background: var(--brand-subtle);
    transform: none;
    box-shadow: var(--shadow-lg);
}

.btn-secondary { background: var(--primary-color); }
.btn-secondary:hover { background: var(--primary-dark); transform: none; box-shadow: var(--shadow-md); }

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
}

/* Fora de fundo escuro o botão primário é o azul da marca (formulário de contato) */
.contact-form .btn-primary,
.contact-form-wrapper .btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.contact-form .btn-primary:hover,
.contact-form-wrapper .btn-primary:hover { background: var(--primary-dark); }

/* --- Hero: azul noturno com o pattern da marca --- */
.hero {
    background:
        radial-gradient(ellipse 70% 60% at 85% 10%, rgba(36, 89, 202, 0.55), transparent 70%),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(77, 187, 226, 0.18), transparent 70%),
        var(--azul-noturno);
}

.hero::before {
    background: url("../brand/pattern-branco.svg") center / 1600px auto repeat;
    opacity: 0.03;
    animation: none;
}

.hero-content { max-width: 1040px; }

.hero-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .hero-features { grid-template-columns: 1fr; }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid rgba(77, 187, 226, 0.35);
    background: rgba(77, 187, 226, 0.08);
    color: var(--azul-digital);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.08;
    text-shadow: none;
}

.hero-subtitle {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
}

.hero-feature {
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.hero-feature i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(77, 187, 226, 0.12);
    color: var(--azul-digital);
    font-size: 1.125rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.scroll-indicator i { font-size: 1.25rem; opacity: 0.6; }

/* --- Seções --- */
.section-header h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 600;
}

.divider {
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--azul-digital));
}

.lead { font-size: 1.125rem; line-height: 1.65; }

.about-section,
.services-section { background: var(--light); }

/* --- Cartões --- */
.feature-card,
.service-card,
.client-logo,
.partner-logo {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #B9CCF3;
}

.feature-icon,
.service-icon {
    background: var(--brand-subtle);
    color: var(--primary-color);
    border-radius: 16px;
}

.feature-icon { width: 64px; height: 64px; font-size: 1.5rem; }
.service-icon { width: 56px; height: 56px; font-size: 1.375rem; }

.feature-card h3,
.service-card h3 { font-size: 1.25rem; }

.feature-card p,
.service-card p { font-size: 0.9875rem; line-height: 1.65; }

.service-card .btn-secondary {
    align-self: flex-start;
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 0;
}

.service-card .btn-secondary:hover {
    background: transparent;
    box-shadow: none;
    color: var(--primary-dark);
    gap: 0.75rem;
}

.client-logo:hover,
.partner-logo:hover { transform: translateY(-2px); }

/* --- Chamada final --- */
.cta-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(77, 187, 226, 0.25), transparent 70%),
        var(--primary-color);
}

.cta-section h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.cta-section p { color: rgba(255, 255, 255, 0.85); font-size: 1.125rem; }

/* --- Contato e rodapé --- */
/* Contato em azul noturno (texto claro), um degrau acima do rodapé */
.main-footer { background: var(--azul-noturno); }
.contact-form-section {
    background:
        radial-gradient(ellipse 50% 70% at 0% 0%, rgba(36, 89, 202, 0.30), transparent 70%),
        #172338;
}

.contact-info h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.contact-form-wrapper {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.contact-form-wrapper label { color: var(--dark); }

.info-item i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(77, 187, 226, 0.12);
    color: var(--azul-digital);
    font-size: 1.125rem;
    margin-top: 0;
}

.info-item a { color: var(--azul-digital); }

.form-group input,
.form-group textarea {
    border-radius: 12px;
    border: 1px solid #C7CFDA;
    font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(36, 89, 202, 0.22);
}

.footer-bottom {
    background: var(--azul-noturno);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-logo img { height: 52px; width: auto; }
.footer-content h4 { font-family: var(--font-display); color: var(--white); }
.footer-content a:hover { color: var(--azul-digital); }

.social-links a {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.social-links a:hover { background: var(--primary-color); }

.back-to-top {
    border-radius: 14px;
    background: var(--primary-color);
}

/* --- Celular --- */
@media (max-width: 1100px) {
    .nav-link { padding: 0.5rem 0.625rem; font-size: 0.875rem; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .logo img { height: 40px; }

    /* Portal do Cliente fica visível ao lado do menu, só com o ícone e o texto curto */
    .nav-wrapper { gap: 0.75rem; }
    .btn-cliente { margin-left: auto; padding: 0.5rem 0.875rem; font-size: 0.875rem; }
    .mobile-menu-toggle { order: 3; }

    .nav-menu {
        top: var(--header-h);
        height: calc(100vh - var(--header-h));
        padding: 1rem;
        justify-content: flex-start;
        box-shadow: none;
    }

    .nav-menu li { border-bottom: 0; }

    .nav-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0.875rem 0.75rem;
        border-radius: 12px;
        font-size: 1rem;
    }

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

@media (max-width: 340px) {
    .btn-cliente span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
