/* =============================================
   CENTRAL DE AJUDA – FATURAS CLARO
   Design: Modern Help Center / Knowledge Base
   ============================================= */

:root {
  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --border: #E8EBF2;
  --text: #1A1D2E;
  --text-muted: #6B7280;
  --accent: #E63329;
  --accent-light: #FEF2F2;
  --c1: #EEF2FF;
  --c2: #F0FDF4;
  --c3: #FFF7ED;
  --c4: #FFF1F2;
  --c5: #F5F3FF;
  --c6: #F0F9FF;
  --shadow: 0 2px 12px rgba(26,29,46,0.08);
  --shadow-lg: 0 8px 32px rgba(26,29,46,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---- TOP NOTICE ---- */
.top-notice {
  background: #1A1D2E;
  color: #E8EBF2;
  text-align: center;
  padding: 10px 24px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
}
.top-notice a { color: #93C5FD; text-decoration: underline; }
.notice-icon { margin-right: 6px; }

/* ---- HEADER ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 40px; height: 40px;
  background: var(--accent);
  color: white; font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 20px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.logo-main { display: block; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.1; }
.logo-sub { display: block; font-size: 11px; color: var(--text-muted); }
.main-nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { background: var(--accent-light); color: var(--accent); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 18px; cursor: pointer;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-weight: 500; }
.mobile-nav a:hover { background: var(--bg); }

/* ---- HERO ---- */
.hero {
  background: var(--surface);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg-shape {
  position: absolute; top: -100px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(230,51,41,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}
.text-accent { color: var(--accent); }
.hero-subtitle { color: var(--text-muted); font-size: 18px; margin-bottom: 32px; }

.search-box {
  display: flex; align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
  max-width: 560px;
}
.search-box:focus-within { border-color: var(--accent); }
.search-icon { padding: 0 16px; font-size: 18px; color: var(--text-muted); }
.search-box input {
  flex: 1; padding: 16px 0;
  border: none; background: transparent;
  font-size: 16px; color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--accent); color: white;
  border: none; padding: 16px 24px;
  font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; transition: opacity 0.2s;
}
.search-btn:hover { opacity: 0.9; }
.search-results {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  overflow: hidden;
  max-width: 560px;
  box-shadow: var(--shadow);
}
.search-results.hidden { display: none; }
.search-result-item {
  display: block; padding: 12px 16px;
  text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 14px; transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); color: var(--accent); }
.no-results { padding: 12px 16px; color: var(--text-muted); font-size: 14px; }
.search-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tag {
  padding: 6px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px;
  cursor: pointer; transition: all 0.2s;
  color: var(--text-muted);
}
.tag:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.hero-visual {
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-end;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px; width: 180px;
  box-shadow: var(--shadow-lg);
}
.card-header-mini { display: flex; gap: 6px; margin-bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }
.card-content-mini { text-align: center; }
.mini-icon { font-size: 32px; margin-bottom: 8px; }
.card-content-mini p { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.mini-bar { height: 6px; background: var(--border); border-radius: 4px; margin-bottom: 6px; }
.mini-bar.short { width: 60%; }
.hero-stat {
  background: var(--text);
  color: white;
  border-radius: var(--radius-sm);
  padding: 14px 20px; text-align: center;
}
.hero-stat.alt { background: var(--accent); }
.hero-stat strong { display: block; font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; }
.hero-stat span { font-size: 12px; opacity: 0.8; }

/* ---- CATEGORIES ---- */
.categories { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 32px; margin-bottom: 8px;
}
.section-header p { color: var(--text-muted); font-size: 16px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none; color: var(--text);
  display: flex; align-items: flex-start; gap: 16px;
  transition: all 0.25s;
  position: relative;
}
.help-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(230,51,41,0.3);
  transform: translateY(-2px);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.card-body { flex: 1; }
.card-body h3 { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card-body p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.card-articles {
  font-size: 12px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px; border-radius: 20px;
}
.card-arrow { font-size: 18px; color: var(--border); align-self: center; transition: all 0.2s; }
.help-card:hover .card-arrow { color: var(--accent); transform: translateX(4px); }

/* ---- QUICK HELP ---- */
.quick-help { background: var(--surface); padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.qh-inner { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; }
.section-badge {
  display: inline-block;
  background: var(--accent-light); color: var(--accent);
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.qh-left h2 { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.qh-left p { color: var(--text-muted); font-size: 15px; }
.quick-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}
.quick-item:hover { border-color: rgba(230,51,41,0.3); }
.quick-item.open { border-color: var(--accent); }
.qi-question {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  font-weight: 500; font-size: 15px;
  background: var(--surface);
  transition: background 0.15s;
}
.quick-item.open .qi-question { background: var(--accent-light); }
.qi-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 13px; color: var(--accent); min-width: 28px; }
.qi-toggle { margin-left: auto; font-size: 20px; color: var(--accent); font-weight: 300; }
.qi-answer {
  display: none; padding: 16px 20px 20px 62px;
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
  border-top: 1px solid var(--border);
}
.quick-item.open .qi-answer { display: block; }

/* ---- CTA BANNER ---- */
.cta-banner { background: #1A1D2E; padding: 48px 0; }
.cta-inner {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.cta-icon { font-size: 40px; }
.cta-inner h3 { font-family: 'Syne', sans-serif; color: white; font-size: 20px; margin-bottom: 6px; }
.cta-inner p { color: #9CA3AF; font-size: 14px; }
.cta-info { margin-left: auto; text-align: center; }
.cta-channel { display: block; font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; color: white; }
.cta-channel-label { font-size: 12px; color: #9CA3AF; }

/* ---- FOOTER ---- */
.site-footer { background: #F0F1F5; border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo {
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700;
  margin-bottom: 12px; line-height: 1.3;
}
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-company { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ---- INNER PAGE STYLES ---- */
.page-hero {
  background: var(--surface);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }
.page-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(28px, 3vw, 44px); font-weight: 800; margin-bottom: 12px; }
.page-hero .page-desc { color: var(--text-muted); font-size: 17px; max-width: 640px; }

.content-layout {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 40px; padding: 60px 0;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.sidebar a {
  display: block; padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none; font-size: 14px; color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.sidebar a:hover, .sidebar a.active { background: var(--accent-light); color: var(--accent); border-left-color: var(--accent); }
.article-content {}
.article-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px;
}
.article-section h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.article-section h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.article-section p { color: var(--text-muted); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.article-section ul, .article-section ol { color: var(--text-muted); font-size: 15px; line-height: 1.75; padding-left: 24px; margin-bottom: 14px; }
.article-section li { margin-bottom: 8px; }
.info-box {
  background: #EFF6FF; border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: 14px; color: #1E40AF; margin: 16px 0;
}
.warning-box {
  background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: 14px; color: #92400E; margin: 16px 0;
}
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex; gap: 16px; margin-bottom: 16px;
  padding: 16px; background: var(--bg);
  border-radius: var(--radius-sm);
}
.step-list li::before {
  content: counter(steps);
  width: 28px; height: 28px; min-width: 28px;
  background: var(--accent); color: white;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px;
  font-family: 'Syne', sans-serif;
}
.method-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px; margin-bottom: 16px;
  display: flex; gap: 16px;
}
.method-icon { font-size: 28px; flex-shrink: 0; }
.method-card h4 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.method-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
  cursor: pointer;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; font-weight: 600; font-size: 15px;
  transition: background 0.15s;
}
.faq-item.open .faq-question { background: var(--accent-light); color: var(--accent); }
.faq-toggle { font-size: 20px; font-weight: 300; color: var(--accent); }
.faq-answer {
  display: none; padding: 16px 20px;
  font-size: 14px; color: var(--text-muted); line-height: 1.75;
  border-top: 1px solid var(--border); background: var(--surface);
}
.faq-item.open .faq-answer { display: block; }

/* ---- CONTACT FORM ---- */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px; font-family: 'DM Sans', sans-serif;
  color: var(--text); background: var(--bg);
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); background: white; }
.form-group textarea { resize: vertical; min-height: 140px; }
.submit-btn {
  background: var(--accent); color: white;
  border: none; padding: 16px 40px;
  border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s;
}
.submit-btn:hover { opacity: 0.9; }
.privacy-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.success-msg {
  display: none; background: #F0FDF4;
  border: 1px solid #BBF7D0; border-radius: var(--radius-sm);
  padding: 16px 20px; color: #166534;
  font-size: 14px; margin-top: 16px;
}

/* ---- LEGAL PAGES ---- */
.legal-content { max-width: 800px; margin: 0 auto; padding: 60px 0; }
.legal-content h2 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.legal-content h3 { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal-content p { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { color: var(--text-muted); font-size: 15px; line-height: 1.8; padding-left: 24px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-date { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero .container { flex-direction: column; gap: 40px; }
  .hero-visual { flex-direction: row; align-items: center; justify-content: center; width: 100%; }
  .qh-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-info { margin-left: 0; }
  .hero { padding: 50px 0 60px; }
  .categories { padding: 50px 0; }
  .cards-grid { grid-template-columns: 1fr; }
}
