@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ========================================
   VARIÁVEIS CSS
   ======================================== */
:root {
    --primary: #7B3DBD;
    --primary-light: #9D65D6;
    --primary-dark: #5A2B8F;
    --secondary: #C9A7EB;
    --accent: #FAD4E5;
    --text: #2D3748;
    --text-light: #718096;
    --background: #F7FAFC;
    --white: #FFFFFF;
    --success: #48BB78;
    --warning: #ECC94B;
    --danger: #F56565;
    --info: #4299E1;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ========================================
   RESET E BASE
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:focus, button:focus, input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ========================================
   LAYOUT RESPONSIVO
   ======================================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1440px) { .container { max-width: 1400px; padding: 0 40px; } }
@media (min-width: 1920px) { .container { max-width: 1600px; } }

/* ========================================
   HEADER E NAVEGAÇÃO
   ======================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; position: relative; }
.logo { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 10px; z-index: 1001; }
.logo i { font-size: 1.5em; }
.logo span { color: var(--text); }

/* Menu Desktop */
.nav-links { display: flex; gap: clamp(15px, 2vw, 30px); align-items: center; }
.nav-links a { font-weight: 500; color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm); transition: var(--transition-fast); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--accent); }

/* Menu Mobile */
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px; cursor: pointer; z-index: 1001; }
.mobile-menu-toggle span { width: 25px; height: 3px; background: var(--primary); border-radius: 3px; transition: var(--transition); }
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ========================================
   BOTÕES RESPONSIVOS
   ======================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 24px);
    border-radius: 50px; font-weight: 600; font-size: clamp(0.875rem, 1.5vw, 1rem);
    cursor: pointer; border: none; transition: var(--transition); text-align: center;
    white-space: nowrap; min-height: 44px;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover:not(:disabled) { background: var(--primary); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 6px 16px; font-size: 0.875rem; min-height: 36px; }
.btn-lg { padding: 16px 32px; font-size: 1.125rem; min-height: 52px; }

/* ========================================
   HERO SECTION RESPONSIVO
   ======================================== */
.hero { padding: clamp(40px, 8vw, 80px) 0; display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 40px); min-height: clamp(500px, 70vh, 80vh); }
.hero-content { flex: 1; max-width: 600px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: clamp(15px, 3vw, 20px); background: linear-gradient(135deg, var(--primary) 0%, #FF6B6B 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-light); margin-bottom: clamp(20px, 4vw, 30px); line-height: 1.7; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-image img { max-width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }

/* ========================================
   GRID RESPONSIVO
   ======================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 30px); padding: clamp(20px, 4vw, 40px) 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* ========================================
   CARDS & FORMS
   ======================================== */
.card { background: var(--white); padding: clamp(20px, 4vw, 30px); border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(0, 0, 0, 0.05); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.card-icon { width: clamp(50px, 8vw, 60px); height: clamp(50px, 8vw, 60px); background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--primary); font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.card h3 { margin-bottom: 15px; color: var(--text); font-size: clamp(1.125rem, 2vw, 1.25rem); }
.card p { color: var(--text-light); font-size: clamp(0.875rem, 1.5vw, 0.95rem); line-height: 1.6; }

.form-group { margin-bottom: clamp(15px, 3vw, 20px); }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text); font-size: clamp(0.875rem, 1.5vw, 1rem); }
.form-control, select, textarea { width: 100%; padding: clamp(10px, 2vw, 12px) clamp(12px, 2.5vw, 16px); border: 2px solid #E2E8F0; border-radius: var(--radius); font-family: inherit; font-size: clamp(0.875rem, 1.5vw, 1rem); transition: var(--transition); min-height: 44px; }
.form-control:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123, 61, 189, 0.1); }
textarea { min-height: 120px; resize: vertical; }

/* ========================================
   TABELAS
   ======================================== */
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); margin: 20px 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 600px; }
thead { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); }
th { padding: clamp(12px, 2vw, 16px); text-align: left; font-weight: 600; font-size: clamp(0.875rem, 1.5vw, 1rem); white-space: nowrap; }
td { padding: clamp(10px, 2vw, 14px); border-bottom: 1px solid #E2E8F0; font-size: clamp(0.875rem, 1.5vw, 0.95rem); }
tr:hover { background: var(--background); }

/* ========================================
   SECTION & FOOTER
   ======================================== */
.section-title { text-align: center; margin-bottom: clamp(40px, 6vw, 60px); }
.section-title h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--primary); margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: clamp(1rem, 2vw, 1.125rem); }

footer { background: var(--white); padding: clamp(40px, 6vw, 60px) 0 20px; margin-top: clamp(60px, 8vw, 80px); border-top: 1px solid #E2E8F0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(30px, 4vw, 40px); margin-bottom: clamp(30px, 4vw, 40px); }
.footer-col h4 { color: var(--primary); margin-bottom: 20px; font-size: clamp(1rem, 2vw, 1.125rem); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-light); font-size: clamp(0.875rem, 1.5vw, 0.95rem); }
.footer-col ul li a:hover { color: var(--primary); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #E2E8F0; color: var(--text-light); font-size: clamp(0.875rem, 1.5vw, 0.95rem); }

/* ========================================
   UTILITIES & HELPER CLASSES (Bootstrap-like)
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-4 { margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.mt-4 { margin-top: clamp(1rem, 2vw, 1.5rem); }
.p-4 { padding: clamp(1rem, 2vw, 1.5rem); }
.hidden { display: none !important; }

/* Grid Flex Helpers */
.row { display: flex; flex-wrap: wrap; margin: -10px; }
.col, .col-auto, .col-md-2, .col-md-3, .col-md-4, .col-md-6, .col-md-12 { padding: 10px; }
.col { flex: 1; }
.col-auto { flex: 0 0 auto; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }

@media(max-width: 768px) {
    .col-md-2, .col-md-3, .col-md-4, .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Colors & Components */
.g-3 { gap: 1rem; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.text-white { color: white !important; }
.text-dark { color: #2D3748 !important; }
.text-muted { color: #718096 !important; }
.bg-primary { background-color: var(--primary) !important; color: white; }
.bg-success { background: linear-gradient(135deg, #48BB78 0%, #38a169 100%) !important; color: white; }
.bg-info { background: linear-gradient(135deg, #4299E1 0%, #3182ce 100%) !important; color: white; }
.bg-danger { background: linear-gradient(135deg, #F56565 0%, #e53e3e 100%) !important; color: white; }
.bg-warning { background: linear-gradient(135deg, #ECC94B 0%, #d69e2e 100%) !important; color: #2D3748; }
.bg-light { background-color: #EDF2F7 !important; color: #2D3748; }
.h-100 { height: 100% !important; }
.display-4 { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.2; }
.me-2 { margin-right: 0.5rem; }
.float-right { float: right; }
.alert { padding: 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.25rem; }
.alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.badge { display: inline-block; padding: 0.25em 0.4em; font-size: 75%; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.25rem; }

/* ========================================
   BREAKPOINTS ORIGINAIS (Restaurados)
   ======================================== */
@media (max-width: 320px) {
    html { font-size: 14px; }
    .container { padding: 0 15px; }
}

@media (max-width: 480px) {
    .hero { flex-direction: column; text-align: center; padding: 30px 0; }
    .hero-content { max-width: 100%; }
    .hero-image { width: 100%; max-width: 400px; }
    .grid { grid-template-columns: 1fr; }
    .mobile-menu-toggle { display: flex; }
    .nav-links { position: fixed; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: var(--transition); max-height: calc(100vh - 80px); overflow-y: auto; }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { width: 100%; padding: 12px; text-align: left; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .mobile-menu-toggle { display: flex; }
    .nav-links { position: fixed; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: var(--transition); }
    .nav-links.active { transform: translateX(0); }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 0 30px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1441px) { html { font-size: 18px; } }
@media (min-width: 1920px) { html { font-size: 20px; } }

/* Acessibilidade e Print */
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
@media print { header, footer, .btn, .mobile-menu-toggle { display: none !important; } body { background: white; color: black; } .card { box-shadow: none; border: 1px solid #ccc; } }
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded { opacity: 1; }
@media (hover: none) and (pointer: coarse) { .btn, a, button, input { min-height: 44px; min-width: 44px; } .card:hover { transform: none; } }
