/* ==========================================================
   Subpages — DATEC · Licenciados · Blog · FAQ
   Builds on site.css + components.css tokens
   ========================================================== */

/* ---------- Generic page hero ---------- */
.jc-page-hero { padding: 120px 0 72px; position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border-soft); }
.jc-page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(88,89,91,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88,89,91,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 85% 10%, #000 0%, transparent 65%);
}
.jc-page-hero .container { position: relative; }
.jc-page-crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 28px; display: flex; gap: 10px; align-items: center; }
.jc-page-crumb a { color: var(--fg-muted); }
.jc-page-crumb a:hover { color: var(--accent); }
.jc-page-crumb .sep { color: var(--border); }
.jc-page-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.4vw, 76px); line-height: 0.98; letter-spacing: -0.035em; color: var(--jet-grey); max-width: 18ch; margin: 22px 0 0; }
.jc-page-lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--jet-grey); max-width: 60ch; margin-top: 28px; }
.jc-page-lead strong { color: var(--accent); font-weight: 600; }

.jc-sec { padding: 110px 0; }
.jc-sec.alt { background: var(--grey-50); }
.jc-sec.dark { background: #1A1A1A; color: #fff; }
.jc-sec.dark h2, .jc-sec.dark h3 { color: #fff; }

/* ---------- DATEC ---------- */
.jc-datec-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: end; }
.jc-datec-stamp {
  border: 1px solid var(--border); background: #fff; padding: 28px;
  display: flex; flex-direction: column; gap: 0; box-shadow: var(--shadow-2);
}
.jc-datec-stamp .row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--border); gap: 16px; }
.jc-datec-stamp .row:last-child { border-bottom: 0; }
.jc-datec-stamp .k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.jc-datec-stamp .v { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--jet-grey); text-align: right; }
.jc-datec-stamp .v.big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }

.jc-explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--jet-grey); }
.jc-explain-item { padding: 40px 32px 40px 0; border-right: 1px solid var(--border-soft); position: relative; }
.jc-explain-item:not(:first-child) { padding-left: 32px; }
.jc-explain-item:last-child { border-right: 0; }
.jc-explain-item::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 3px; background: var(--accent); }
.jc-explain-item:not(:first-child)::before { left: 32px; }
.jc-explain-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--jet-grey); margin: 18px 0 14px; letter-spacing: -.01em; }
.jc-explain-item p { font-size: 14.5px; line-height: 1.6; color: var(--jet-grey); }
.jc-explain-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); }

.jc-authority { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid rgba(255,255,255,.14); }
.jc-authority li { list-style: none; flex: 1 1 200px; padding: 28px 28px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.jc-authority .n { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: #fff; letter-spacing: -.02em; line-height: 1; }
.jc-authority .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 10px; }

.jc-media-wide { aspect-ratio: 21/9; overflow: hidden; border: 1px solid var(--border-soft); }
.jc-media-wide img { width: 100%; height: 100%; object-fit: cover; }

.jc-note { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); letter-spacing: .03em; border-left: 2px solid var(--border); padding-left: 16px; line-height: 1.6; max-width: 60ch; }

/* ---------- Page CTA strip ---------- */
.jc-pagecta { background: #1A1A1A; color: #fff; padding: 96px 0; position: relative; }
.jc-pagecta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.jc-pagecta-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.jc-pagecta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 46px); max-width: 20ch; }
.jc-pagecta h2 .serif-em { color: var(--accent); }

/* ---------- Licenciados ---------- */
.jc-net-photo { position: relative; aspect-ratio: 21/8; overflow: hidden; border: 1px solid var(--border-soft); margin-bottom: 0; }
.jc-net-photo img { width: 100%; height: 100%; object-fit: cover; }
.jc-net-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,26,26,.65) 0%, rgba(26,26,26,.15) 50%, rgba(26,26,26,.55) 100%); }
.jc-net-photo .cap { position: absolute; left: 24px; bottom: 22px; color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; z-index: 2; }
.jc-net-photo .cap strong { font-family: var(--font-display); font-weight: 700; font-size: 22px; display: block; letter-spacing: -.01em; }

.jc-pracas-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--jet-grey); margin-top: 48px; }
.jc-praca { padding: 26px 28px 26px 0; border-right: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 6px; }
.jc-praca:nth-child(3n) { border-right: 0; }
.jc-praca .city { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--jet-grey); letter-spacing: -.01em; }
.jc-praca .uf { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.jc-praca .cap-note { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); letter-spacing: .04em; margin-top: 4px; }

.jc-block-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.jc-block-2 .media { aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--border-soft); }
.jc-block-2 .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Blog ---------- */
.jc-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.jc-cat-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--jet-grey); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; }
.jc-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.jc-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-soft); transition: border-color 320ms, transform 320ms; }
.jc-post:hover { border-color: var(--jet-grey); transform: translateY(-3px); }
.jc-post-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--grey-100); }
.jc-post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms cubic-bezier(0.2,0.8,0.2,1); }
.jc-post:hover .jc-post-cover img { transform: scale(1.05); }
.jc-post-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.jc-post-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.jc-post-title { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.15; letter-spacing: -.015em; color: var(--jet-grey); }
.jc-post-sum { font-size: 14.5px; line-height: 1.6; color: var(--jet-grey); flex: 1; }
.jc-post-more { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }

/* ---------- Blog post (article) ---------- */
.jc-article { max-width: 760px; margin: 0 auto; }
.jc-article-cover { aspect-ratio: 21/9; overflow: hidden; border: 1px solid var(--border-soft); margin: 40px 0 0; }
.jc-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.jc-article-body { padding-top: 16px; }
.jc-article-body h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--jet-grey); letter-spacing: -.02em; margin: 48px 0 16px; }
.jc-article-body p { font-size: 17px; line-height: 1.7; color: var(--fg-strong); margin-bottom: 20px; }
.jc-article-body p.lead-p { font-size: 20px; line-height: 1.6; color: var(--jet-grey); }
.jc-article-body ul { margin: 0 0 20px 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.jc-article-body ul li { font-size: 16.5px; line-height: 1.6; color: var(--fg-strong); padding-left: 24px; position: relative; }
.jc-article-body ul li::before { content: "►"; position: absolute; left: 0; color: var(--accent); font-size: .7em; top: 4px; }
.jc-article-body blockquote { border-left: 4px solid var(--accent); padding: 8px 0 8px 24px; margin: 32px 0; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 24px; line-height: 1.4; color: var(--jet-grey); }

/* ---------- FAQ ---------- */
.jc-faq-group { margin-bottom: 8px; }
.jc-faq-group-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding: 48px 0 8px; border-bottom: 1px solid var(--jet-grey); }
.jc-faq-item { border-bottom: 1px solid var(--border-soft); }
.jc-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; }
.jc-faq-q h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.8vw, 21px); color: var(--jet-grey); letter-spacing: -.01em; }
.jc-faq-ic { position: relative; width: 20px; height: 20px; flex: none; }
.jc-faq-ic::before, .jc-faq-ic::after { content: ""; position: absolute; background: var(--accent); }
.jc-faq-ic::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.jc-faq-ic::after { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); transition: opacity 280ms; }
.jc-faq-item.is-open .jc-faq-ic::after { opacity: 0; }
.jc-faq-a { max-height: 0; overflow: hidden; transition: max-height 420ms cubic-bezier(0.2,0.8,0.2,1); }
.jc-faq-item.is-open .jc-faq-a { max-height: 600px; }
.jc-faq-a p { font-size: 16px; line-height: 1.65; color: var(--fg-strong); padding-bottom: 28px; max-width: 70ch; }

/* ---------- Brazil map (franchisees) ---------- */
.jc-map-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.jc-map { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1; margin: 0 auto; }
.jc-map-img { width: 100%; height: 100%; object-fit: contain; opacity: .9; }
.jc-map-py-note {
  position: absolute; left: 27%; top: 80%;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: var(--fg-muted);
}
.jc-map-pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(26,26,26,.28), 0 0 0 4px rgba(232,78,15,.16);
  transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1), box-shadow 220ms;
}
.jc-map-pin.is-foreign { background: var(--jet-grey); box-shadow: 0 2px 6px rgba(26,26,26,.28), 0 0 0 4px rgba(88,89,91,.16); }
.jc-map-pin-n { font-family: var(--font-display); font-weight: 700; font-size: 12px; line-height: 1; }
.jc-map-pin:hover, .jc-map-pin.is-active {
  transform: translate(-50%, -50%) scale(1.28); z-index: 5;
  box-shadow: 0 6px 16px rgba(232,78,15,.4), 0 0 0 5px rgba(232,78,15,.22);
}
.jc-map-pin-tip {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%);
  background: var(--jet-grey); color: #fff; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 3px; opacity: 0; pointer-events: none;
  transition: opacity 200ms; box-shadow: var(--shadow-2);
}
.jc-map-pin:hover .jc-map-pin-tip, .jc-map-pin.is-active .jc-map-pin-tip { opacity: 1; }

.jc-map-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.jc-map-leg { display: flex; align-items: baseline; gap: 12px; padding: 9px 8px; border-radius: 2px; transition: background 200ms; cursor: default; }
.jc-map-leg.is-active { background: var(--orange-tint); }
.jc-map-leg-n {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accent);
  width: 20px; flex: none; text-align: right;
}
.jc-map-leg-body { display: flex; flex-direction: column; gap: 2px; }
.jc-map-leg-city { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--jet-grey); letter-spacing: -.01em; }
.jc-map-leg-city em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--fg-muted); text-transform: uppercase; }
.jc-map-leg-cap { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); letter-spacing: .03em; }

@media (max-width: 980px) {
  .jc-map-wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .jc-map-legend { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .jc-datec-hero-grid, .jc-block-2, .jc-pagecta-inner { grid-template-columns: 1fr; gap: 32px; }
  .jc-explain { grid-template-columns: 1fr; }
  .jc-explain-item { border-right: 0; border-bottom: 1px solid var(--border-soft); padding-left: 0 !important; }
  .jc-explain-item::before { left: 0 !important; }
  .jc-posts { grid-template-columns: 1fr; }
  .jc-pracas-grid { grid-template-columns: 1fr 1fr; }
  .jc-praca:nth-child(3n) { border-right: 1px solid var(--border-soft); }
  .jc-praca:nth-child(2n) { border-right: 0; }
  .jc-sec { padding: 72px 0; }
  .jc-footer { padding-bottom: 100px; }
}
@media (max-width: 600px) {
  .jc-pracas-grid { grid-template-columns: 1fr; }
  .jc-praca { border-right: 0 !important; }
}
