﻿/* ========================================
   NovidadeAutoEscolas Clone — Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #7E4BD3;
  --primary-dark: #6635b8;
  --primary-light: #f3eeff;
  --text-dark: #1F2937;
  --text-medium: #4B5563;
  --text-light: #6B7280;
  --bg-gray: #F3F4F6;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --success: #10B981;
  --warning-bg: #FFF7ED;
  --warning-border: #FED7AA;
  --warning-text: #9A3412;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   HEADER / NAVBAR
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--text-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-medium);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ========================================
   ANNOUNCEMENT BAR
   ======================================== */
.announcement-bar {
  background: #FFF7ED;
  border-bottom: 1px solid #FED7AA;
  padding: 9px 20px;
  text-align: center;
}

.announcement-bar p {
  font-size: 0.82rem;
  color: #92400E;
  margin: 0;
  line-height: 1.4;
}

.announcement-bar strong {
  font-weight: 700;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  background: var(--bg-gray);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb-inner a {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--border);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: linear-gradient(135deg, #f5f0ff 0%, #edf2ff 100%);
  padding: 60px 0 50px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ========================================
   HERO CARDS
   ======================================== */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
  text-align: left;
}

.hero-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  line-height: 1.55;
  margin: 0;
}

.hero-card .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.hero-card .btn-link:hover {
  text-decoration: underline;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(126, 75, 211, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(126, 75, 211, 0.35);
}

/* ========================================
   MAIN CONTENT SECTIONS
   ======================================== */
.section {
  padding: 56px 0;
}

.section-gray {
  background: var(--bg-gray);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-medium);
  max-width: 620px;
  margin-bottom: 36px;
}

/* ========================================
   ARTICLE / INNER PAGE CONTENT
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, #f5f0ff 0%, #edf2ff 100%);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-medium);
  font-size: 1rem;
}

.page-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 14px;
  font-weight: 500;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}

/* Table of Contents */
.toc {
  position: sticky;
  top: 80px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  font-size: 0.85rem;
  color: var(--text-medium);
  display: block;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.toc-list a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

/* Article body */
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 40px;
  margin-bottom: 14px;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}

.article-body h2:first-child {
  margin-top: 0;
  border-top: none;
}

.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-body p {
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.7;
}

.article-body ul,
.article-body ol {
  color: var(--text-medium);
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.7;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 6px;
}

.article-body a {
  color: var(--primary);
  font-weight: 500;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.step-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin: 0;
}

/* Requirements list */
.req-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.req-check {
  width: 20px;
  height: 20px;
  background: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.req-check svg {
  width: 12px;
  height: 12px;
  stroke: #065F46;
  stroke-width: 2.5;
}

.req-item span {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ========================================
   WARNING BOX
   ======================================== */
.warning-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.warning-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #EA580C;
}

.warning-box p {
  font-size: 0.9rem;
  color: var(--warning-text);
  margin: 0;
  line-height: 1.6;
}

.warning-box strong {
  font-weight: 700;
}

/* ========================================
   INFO BOX / TIP
   ======================================== */
.info-box {
  background: var(--primary-light);
  border: 1px solid #d8c7f8;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}

.info-box p {
  font-size: 0.9rem;
  color: #4C1D95;
  margin: 0;
}

.info-box strong {
  font-weight: 700;
}

/* ========================================
   OFFICIAL LINKS GRID
   ======================================== */
.official-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.official-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: background 0.2s, border-color 0.2s;
}

.official-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  text-decoration: none;
}

.official-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #9B59D6 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.cta-banner-text h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cta-banner-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  margin: 0;
}

.cta-banner .btn {
  background: white;
  color: var(--primary);
  flex-shrink: 0;
}

.cta-banner .btn:hover {
  background: #f3f4f6;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--bg-white);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  gap: 12px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg-gray);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  color: var(--primary);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========================================
   SECURITY TIPS
   ======================================== */
.security-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.security-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.security-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.security-item p {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.55;
}

.security-item strong {
  color: var(--text-dark);
}

/* ========================================
   TABLE (for cookies page)
   ======================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.875rem;
}

.data-table th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-medium);
  vertical-align: top;
}

.data-table tr:nth-child(even) td {
  background: var(--bg-gray);
}

/* ========================================
   ABOUT LIST
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.about-card {
  background: var(--bg-gray);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
}

.about-card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.about-card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.about-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin: 0;
  line-height: 1.55;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #111827;
  color: #9CA3AF;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 300px;
}

.footer-brand .company-info {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #6B7280;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #9CA3AF;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
  text-decoration: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.footer-contact-item a {
  color: #9CA3AF;
}

.footer-contact-item a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1F2937;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #6B7280;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1F2937;
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.875rem;
  color: #D1D5DB;
  flex: 1;
}

.cookie-text a {
  color: var(--primary);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-btn-accept:hover {
  background: var(--primary-dark);
}

.cookie-btn-reject {
  padding: 8px 18px;
  background: transparent;
  color: #9CA3AF;
  border: 1px solid #374151;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.cookie-btn-reject:hover {
  border-color: #6B7280;
  color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 10px 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}