/* TakeCap FT branding for the Chatwoot Help Center (help.takecapft.com).
 * Served from /takecap-brand/ and injected by Nginx (deploy/nginx/chatwoot.conf, sub_filter).
 * Matches takecapft.com/pt/faqs: navy header and hero, Sora, the fox, shortcut chips.
 * Chatwoot CE has no custom-CSS setting; these selectors follow its v4.20 portal markup.
 * After a Chatwoot upgrade, open the portal and check the header, hero and footer. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

:root {
  --tc-navy: #081229;
  --tc-navy-2: #0d1a3a;
  --tc-ink: #040A1C;
  --tc-blue: #2F5AEB;
  --tc-muted: #b8c3dc;
}

body, #portal, #portal button, #portal input, #portal select { font-family: Sora, "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- Header: navy, white logo only (no repeated portal name) ---------- */
#portal header.sticky {
  background: var(--tc-navy) !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
#portal header img.dark\:hidden { display: none !important; }
#portal header img.dark\:block { display: block !important; height: 26px !important; width: auto !important; }
#portal header a[href^="/hc/"] > span.text-lg { display: none !important; }
#portal header a, #portal header button, #portal header select, #portal header span, #portal header div {
  color: #e6ebf5 !important;
  stroke: #e6ebf5 !important;
}
#portal header select { background: transparent !important; width: auto !important; }
#portal header select option { color: #0f172a; background: #fff; }
#portal header #appearance-dropdown, #portal header #appearance-dropdown * { color: #0f172a !important; stroke: #334155 !important; }
.dark #portal header #appearance-dropdown, .dark #portal header #appearance-dropdown * { color: #e2e8f0 !important; stroke: #e2e8f0 !important; }
#portal header .tc-header-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none;
  padding: 6px 4px;
}
#portal header .tc-header-link.tc-cta {
  background: var(--tc-blue); color: #fff !important; border-radius: 999px; padding: 7px 14px;
}
#portal header .tc-header-link.tc-cta:hover { filter: brightness(1.1); }

/* ---------- Hero: navy gradient, white text, fox on the right ---------- */
#portal-bg {
  background:
    radial-gradient(90% 140% at 85% 0%, rgb(27, 49, 112) 0%, rgba(27, 49, 112, 0) 60%),
    linear-gradient(var(--tc-navy), var(--tc-navy-2)) !important;
  box-shadow: none !important;
  /* no overflow:hidden here: the search box's results list drops below the hero */
}
#portal-bg-gradient { background: none !important; position: relative; }
#portal-bg-gradient > div { position: relative; z-index: 1; }
#portal-bg h1 { color: #fff !important; font-weight: 700 !important; letter-spacing: -0.01em; }
/* Not inside the search box: its results list is white, and this light hero colour made the titles and snippets
   look greyed out. The results keep Chatwoot's own colours (light and dark mode). */
#portal-bg p:not(#search-wrap *), #portal-bg span:not(#search-wrap *) { color: var(--tc-muted) !important; }
/* The search box's focus ring animated over 500 ms, which felt like lag when clicking into it. */
#search-wrap .duration-500 { transition-duration: 120ms !important; }
#portal-bg .tc-eyebrow {
  display: block; color: #7fa2ff !important; font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px;
}
#portal-bg #search-wrap { max-width: 640px; }
#portal-bg .tc-fox {
  position: absolute; right: max(16px, calc((100vw - 64rem) / 2 + 16px)); bottom: 0;
  height: calc(100% - 36px); max-height: 230px; width: auto; z-index: 0; pointer-events: none;
}
@media (max-width: 900px) { #portal-bg .tc-fox { display: none; } }
/* keep hero text clear of the fox */
@media (min-width: 901px) { #portal-bg h1, #portal-bg p, #portal-bg .tc-shortcuts { max-width: calc(100% - 230px); } }

/* Shortcut chips under the search box */
#portal-bg .tc-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
#portal-bg .tc-shortcuts .tc-label { color: var(--tc-muted) !important; font-size: 13px; margin-right: 2px; }
#portal-bg .tc-shortcuts a {
  color: #fff !important; font-size: 13px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
  border-radius: 999px; padding: 5px 12px; transition: background .15s;
}
#portal-bg .tc-shortcuts a:hover { background: rgba(255, 255, 255, .16); }

/* Category and article accents in the brand blue */
#portal a:hover h3, #portal h3:hover { color: var(--tc-blue); }
#portal [class*="i-ri-"] { color: var(--tc-blue); }
#portal .tc-hidden { display: none !important; }

/* Related articles block added at the end of an article */
#portal .tc-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(100, 116, 139, .2); }
#portal .tc-related h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
#portal .tc-related ul { list-style: none; padding: 0; margin: 0; }
#portal .tc-related li { margin: 8px 0; }
#portal .tc-related a { color: var(--tc-blue); text-decoration: none; }
#portal .tc-related a:hover { text-decoration: underline; }

/* Footer: ours instead of "Criado com Chatwoot" */
#portal .tc-footer { text-align: center; font-size: 13px; color: #64748b; line-height: 1.8; }
#portal .tc-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Chat launcher with the TakeCap mark (same CSS as deploy/widget/snippet.html) */
.woot-widget-bubble:not(.woot--close){background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 156 80%22%3E%3Cpath fill=%22%23ffffff%22 d=%22M55,.07l45.5,79h32l1.01-1.98-28.4-48.62c-.98-1.77-1.53-3.65-.94-5.68,2.84-9.74,49.01-16.76,49.83-20.24l-1.5-2.49H55Z M2.65.03L0,8.07l12.7,1.81c12.14,3.95,41.54,67.98,45.8,69.2h32.5L45.54,0,2.65.03Z%22/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:center!important;background-size:46% auto!important;}
.woot-widget-bubble:not(.woot--close) svg{display:none!important;}

/* Chatwoot repeats the portal name above the hero title on small screens; the eyebrow already says it. */
#portal-bg span.lg\:hidden { display: none !important; }
