/*
Theme Name: BrDocs
Theme URI: https://docs.brsistemas.net.br
Author: BrSistemas
Description: Tema inspirado no 1doc.com.br para gestão de documentos
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: brdocs
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; color: #1a2332; background: #fff; line-height: 1.6; font-size: 16px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===================== VARIABLES ===================== */
:root {
    --blue: #0059DB;
    --blue-dark: #0042A4;
    --blue-light: #BFD5F6;
    --blue-bg: #EEF4FF;
    --green: #0E9F6E;
    --green-bg: #ECFDF5;
    --pink: #D61B69;
    --pink-bg: #FDF2F8;
    --purple: #7C3AED;
    --purple-bg: #F5F3FF;
    --orange: #D97706;
    --orange-bg: #FFFBEB;
    --teal: #0891B2;
    --teal-bg: #ECFEFF;
    --gray: #8A9FA0;
    --gray-light: #E2E7E7;
    --gray-bg: #F8FAFC;
    --dark: #0F172A;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
}

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

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.625rem 1.25rem; border-radius: var(--radius); font-weight: 600;
    font-size: 0.9rem; transition: all 0.2s; cursor: pointer; border: 2px solid transparent;
    font-family: 'Manrope', sans-serif;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-bg); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { color: var(--blue-dark); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-bg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* ===================== HEADER ===================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-light);
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding: 1rem 0; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 0.25rem; }
.main-nav a { padding: 0.5rem 0.75rem; border-radius: var(--radius); font-weight: 500; color: #475569; font-size: 0.9rem; transition: all 0.15s; }
.main-nav a:hover { background: var(--gray-bg); color: var(--dark); }
.header-cta { display: flex; gap: 0.75rem; align-items: center; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: 0.3s; }
.mobile-nav { display: none; padding: 1rem 0 1.5rem; border-top: 1px solid var(--gray-light); }
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a { display: block; padding: 0.625rem 0.75rem; font-weight: 500; color: #475569; border-radius: var(--radius); transition: 0.15s; }
.mobile-nav a:hover { background: var(--gray-bg); color: var(--dark); }

/* ===================== HIGHLIGHT ===================== */
.highlight { color: var(--blue); }

/* ===================== SECTION BADGE ===================== */
.section-badge {
    display: inline-block; background: var(--blue-bg); color: var(--blue);
    font-size: 0.8rem; font-weight: 700; padding: 0.35rem 0.85rem;
    border-radius: 100px; margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.03em; }
.section-header p { color: #64748b; font-size: 1.05rem; }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 5rem 0 4rem; overflow: hidden; background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 50%, #f5f0ff 100%); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(0,89,219,0.08) 0%, transparent 70%), radial-gradient(ellipse at 20% 80%, rgba(124,58,237,0.06) 0%, transparent 60%); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; }
.hero-content {}
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--blue-light); color: var(--blue); font-size: 0.8rem; font-weight: 600; padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.04em; margin-bottom: 1.25rem; }
.hero p { font-size: 1.1rem; color: #475569; margin-bottom: 2rem; line-height: 1.7; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat span { font-size: 0.8rem; color: var(--gray); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 2.5rem; background: var(--gray-light); }

/* HERO MOCKUP */
.hero-image { display: flex; justify-content: center; }
.hero-mockup { background: #fff; border-radius: 1rem; box-shadow: var(--shadow-xl); overflow: hidden; width: 100%; max-width: 440px; border: 1px solid var(--gray-light); }
.mockup-header { background: var(--gray-bg); padding: 0.75rem 1rem; display: flex; gap: 0.4rem; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.mockup-body { display: flex; height: 280px; }
.mockup-sidebar { width: 60px; background: var(--gray-bg); border-right: 1px solid var(--gray-light); padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mockup-item { height: 32px; border-radius: var(--radius); background: var(--gray-light); }
.mockup-item.active { background: var(--blue); }
.mockup-content { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mockup-card { border-radius: var(--radius); height: 70px; }
.mockup-card.blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.mockup-card.green { background: linear-gradient(135deg, var(--green), #059669); }
.mockup-card.pink { background: linear-gradient(135deg, var(--pink), #9d174d); }
.mockup-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.mockup-card-row .mockup-card { height: 60px; }
.mockup-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mockup-line { height: 10px; background: var(--gray-light); border-radius: 100px; }
.mockup-line.short { width: 60%; }

/* ===================== CLIENTS ===================== */
.clients { padding: 2.5rem 0; border-bottom: 1px solid var(--gray-light); }
.clients-label { text-align: center; color: var(--gray); font-size: 0.85rem; font-weight: 500; margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.clients-logos { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.client-logo { color: var(--gray); font-weight: 700; font-size: 1rem; opacity: 0.6; transition: opacity 0.2s; }
.client-logo:hover { opacity: 1; }

/* ===================== SOLUÇÕES ===================== */
.solucoes { padding: 5rem 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--gray-light); border-radius: var(--radius-lg); padding: 1.75rem; transition: all 0.2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue-light); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card-icon.blue { background: var(--blue-bg); color: var(--blue); }
.card-icon.green { background: var(--green-bg); color: var(--green); }
.card-icon.pink { background: var(--pink-bg); color: var(--pink); }
.card-icon.purple { background: var(--purple-bg); color: var(--purple); }
.card-icon.orange { background: var(--orange-bg); color: var(--orange); }
.card-icon.teal { background: var(--teal-bg); color: var(--teal); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.625rem; color: var(--dark); }
.card p { color: #64748b; font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.card-link { color: var(--blue); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.25rem; transition: gap 0.2s; }
.card-link:hover { gap: 0.5rem; }

/* ===================== FEATURES ===================== */
.features { padding: 5rem 0; background: var(--gray-bg); }
.features-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.features-text .section-badge { margin-bottom: 0.75rem; }
.features-text h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 2rem; }
.features-list { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-item { display: flex; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-lg); border: 1px solid transparent; transition: all 0.2s; cursor: pointer; }
.feature-item:hover, .feature-item.active { background: #fff; border-color: var(--blue-light); box-shadow: var(--shadow); }
.feature-icon { width: 36px; height: 36px; background: var(--blue-bg); color: var(--blue); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-item.active .feature-icon { background: var(--blue); color: #fff; }
.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--dark); }
.feature-item p { font-size: 0.875rem; color: #64748b; line-height: 1.5; }

/* FEATURES MOCKUP */
.features-visual { display: flex; justify-content: center; }
.features-mockup { background: #fff; border-radius: 1rem; box-shadow: var(--shadow-xl); border: 1px solid var(--gray-light); width: 100%; max-width: 380px; overflow: hidden; }
.fmockup-search { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-light); color: var(--gray); font-size: 0.875rem; background: var(--gray-bg); }
.fmockup-items { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.fmockup-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem; border-radius: var(--radius); border: 1px solid var(--gray-light); transition: 0.2s; }
.fmockup-item:hover { background: var(--gray-bg); }
.fmockup-icon { width: 36px; height: 36px; border-radius: var(--radius); flex-shrink: 0; }
.fmockup-icon.blue { background: var(--blue-bg); }
.fmockup-icon.pink { background: var(--pink-bg); }
.fmockup-icon.green { background: var(--green-bg); }
.fmockup-icon.purple { background: var(--purple-bg); }
.fmockup-text { flex: 1; }
.fmockup-title { height: 10px; background: var(--gray-light); border-radius: 100px; margin-bottom: 0.4rem; }
.fmockup-sub { height: 8px; background: var(--gray-light); border-radius: 100px; width: 65%; }
.fmockup-badge { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 100px; white-space: nowrap; }
.fmockup-badge.green { background: var(--green-bg); color: var(--green); }
.fmockup-badge.yellow { background: #FFFBEB; color: #D97706; }
.fmockup-badge.blue { background: var(--blue-bg); color: var(--blue); }

/* ===================== PLANOS ===================== */
.planos { padding: 5rem 0; }
.planos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plano-card { background: #fff; border: 1px solid var(--gray-light); border-radius: 1rem; padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; position: relative; transition: all 0.2s; }
.plano-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plano-card.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-xl); transform: translateY(-8px); }
.plano-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: 100px; white-space: nowrap; }
.plano-header h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.plano-price { display: flex; align-items: baseline; gap: 0.2rem; margin-bottom: 0.5rem; }
.price-currency { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.price-value { font-size: 2.5rem; font-weight: 800; color: var(--dark); line-height: 1; }
.price-period { font-size: 0.875rem; color: var(--gray); }
.plano-header p { font-size: 0.875rem; color: #64748b; }
.plano-features { display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.plano-features li { display: flex; align-items: center; gap: 0.625rem; font-size: 0.9rem; color: #475569; }
.plano-features li.disabled { color: var(--gray); }
.check { color: var(--green); font-weight: 700; }
.plano-card.featured .btn-primary { background: var(--blue); }

/* ===================== CTA ===================== */
.cta-section { padding: 5rem 0; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; color: #fff; line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 1rem; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-text { color: #fff; font-size: 1.3rem; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; transition: 0.2s; }
.social-links a:hover { background: var(--blue); color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1023px) {
    .main-nav, .header-cta { display: none; }
    .menu-toggle { display: flex; margin-left: auto; }
    .hero .container { grid-template-columns: 1fr; gap: 3rem; }
    .hero-image { display: none; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .features-inner { grid-template-columns: 1fr; gap: 3rem; }
    .features-visual { display: none; }
    .planos-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .plano-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 639px) {
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-stats { gap: 1rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-actions { flex-direction: column; align-items: center; }
}
