/* =========================================================
   Jota Camargo - layout próprio (cabeçalho, rodapé, base)
   ========================================================= */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-vf.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-vf.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--jc-bg: #F4F6FA;
	--jc-surface: #FFFFFF;
	--jc-ink: #0F1C33;
	--jc-muted: #4A5873;
	--jc-line: #DCE2EC;
	--jc-brand: #003583;
	--jc-brand-deep: #06204F;
	--jc-accent: #DC143C;
	--jc-accent-dark: #B50F30;
	--jc-wa: #1FA855;
	--jc-wa-dark: #178A45;
	--jc-highlight: #FFC500;
	--jc-font-display: "Archivo", "Figtree", system-ui, sans-serif;
	--jc-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--jc-radius: 12px;
	--jc-radius-sm: 6px;
	--jc-shadow: 0 18px 40px -18px rgba(6, 32, 79, .35);
	--jc-container: 1200px;
	--jc-gutter: 20px;
	--jc-admin: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Divi neutralizado quando o novo layout está ativo ---------- */
body.jc-layout #page-container { padding-top: 0 !important; margin-top: 0 !important; }
body.jc-layout #main-header,
body.jc-layout #top-header { display: none !important; }
body.jc-layout { background: var(--jc-surface); }

/* ---------- Base compartilhada (escopo .jc-*) ---------- */
.jc-header, .jc-drawer, .jc-footer, .jc-home {
	font-family: var(--jc-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--jc-ink);
	-webkit-font-smoothing: antialiased;
}
.jc-header *, .jc-drawer *, .jc-footer *, .jc-home * { box-sizing: border-box; }
:where(.jc-header, .jc-drawer, .jc-footer, .jc-home) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) {
	margin: 0; padding: 0;
}
:where(.jc-header, .jc-drawer, .jc-footer, .jc-home) :where(ul, ol) { list-style: none; }
:where(.jc-header, .jc-drawer, .jc-footer, .jc-home) :where(h1, h2, h3, h4) {
	font-family: var(--jc-font-display);
	color: inherit;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
:where(.jc-header, .jc-drawer, .jc-footer, .jc-home) :where(a) { color: inherit; text-decoration: none; }
:where(.jc-header, .jc-drawer, .jc-footer, .jc-home) :where(img) { max-width: 100%; height: auto; display: block; }
.jc-ico { flex: none; display: block; }

.jc-container {
	width: 100%;
	max-width: calc(var(--jc-container) + var(--jc-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--jc-gutter);
}

.jc-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100000;
	background: var(--jc-brand); color: #fff; padding: 10px 16px; border-radius: var(--jc-radius-sm);
	font: 600 15px/1 var(--jc-font-body);
}
.jc-skip:focus { top: 12px; }

/* ---------- Botões ---------- */
.jc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 24px;
	border-radius: 999px; border: 2px solid transparent;
	font-family: var(--jc-font-body); font-weight: 700; font-size: 16px; line-height: 1.1;
	white-space: nowrap; cursor: pointer; text-decoration: none !important;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.jc-btn:active { transform: translateY(1px); }
.jc-btn:focus-visible, .jc-nav__link:focus-visible, .jc-burger:focus-visible, .jc-link:focus-visible {
	outline: 3px solid var(--jc-highlight); outline-offset: 2px;
}
.jc-btn--whatsapp { background: var(--jc-wa); color: #fff !important; }
.jc-btn--whatsapp:hover { background: var(--jc-wa-dark); }
.jc-btn--primary { background: var(--jc-accent); color: #fff !important; }
.jc-btn--primary:hover { background: var(--jc-accent-dark); }
.jc-btn--outline { border-color: var(--jc-brand); color: var(--jc-brand) !important; background: transparent; }
.jc-btn--outline:hover { background: var(--jc-brand); color: #fff !important; }
.jc-btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff !important; background: transparent; }
.jc-btn--ghost-light:hover { background: #fff; color: var(--jc-brand-deep) !important; border-color: #fff; }
.jc-btn--sm { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.jc-btn--block { width: 100%; }
.jc-btn--outline .jc-ico--whatsapp { color: var(--jc-wa); }
.jc-btn--outline:hover .jc-ico--whatsapp { color: #fff; }

/* =========================================================
   CABEÇALHO
   ========================================================= */
.jc-header {
	position: sticky;
	top: var(--jc-admin);
	z-index: 9990;
	background: var(--jc-surface);
	box-shadow: 0 1px 0 var(--jc-line), 0 10px 24px -20px rgba(6, 32, 79, .5);
}
@media (max-width: 600px) { .jc-header { top: 0; } }

.jc-topbar { background: var(--jc-brand-deep); color: rgba(255,255,255,.86); font-size: 14px; }
.jc-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.jc-topbar__note { color: rgba(255,255,255,.72); }
.jc-topbar__phones { display: flex; gap: 28px; }
.jc-topbar__phones a { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.jc-topbar__phones a:hover strong { color: var(--jc-highlight); }
.jc-topbar__phones .jc-ico { color: var(--jc-highlight); }
.jc-topbar__city { color: rgba(255,255,255,.72); }
.jc-topbar__city em { font-style: normal; }
.jc-btn--number span { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.jc-topbar__phones strong { font-weight: 700; letter-spacing: .01em; }

.jc-mainbar__inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.jc-brand { flex: none; display: block; }
.jc-brand img { height: 66px; width: auto; }

.jc-nav { flex: 1; display: flex; justify-content: center; }
.jc-nav .jc-nav__list { display: flex; align-items: center; gap: 4px; }
.jc-nav .jc-nav__item { position: relative; display: flex; align-items: center; }
.jc-nav__link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 12px; border-radius: var(--jc-radius-sm);
	font: 600 15.5px/1.2 var(--jc-font-body); color: var(--jc-ink);
	background: none; border: 0; cursor: pointer;
	transition: color .15s ease, background-color .15s ease;
}
.jc-nav .jc-nav__link:hover, .jc-nav .jc-nav__item.current-menu-item > .jc-nav__link { color: var(--jc-brand); background: var(--jc-bg); }
.jc-nav .jc-nav__item.current-menu-item > .jc-nav__link { box-shadow: inset 0 -2px 0 var(--jc-accent); border-radius: 0; background: none; }
.jc-nav__sub-toggle { display: none; }
.jc-nav__toggle .jc-ico { transition: transform .2s ease; }

/* "Orçamento Online" vira o botão de destaque */
.jc-nav .jc-nav__item.menu-orcamento > .jc-nav__link {
	background: var(--jc-accent); color: #fff; border-radius: 999px; padding: 11px 18px; margin-left: 8px; font-weight: 700;
}
.jc-nav .jc-nav__item.menu-orcamento > .jc-nav__link:hover { background: var(--jc-accent-dark); color: #fff; }

.jc-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); right: 0; min-width: 250px;
	background: var(--jc-surface); border: 1px solid var(--jc-line); border-radius: var(--jc-radius);
	box-shadow: var(--jc-shadow); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
	z-index: 20;
}
.jc-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.jc-nav .jc-nav__item:hover > .sub-menu,
.jc-nav .jc-nav__item:focus-within > .sub-menu,
.jc-nav .jc-nav__item.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.jc-nav .jc-nav__item.is-open > .jc-nav__toggle .jc-ico { transform: rotate(180deg); }
.jc-nav .sub-menu .jc-nav__item { display: block; }
.jc-nav .sub-menu .jc-nav__link { display: flex; width: 100%; padding: 11px 12px; font-weight: 600; }

.jc-mainbar__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.jc-burger {
	display: none; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: var(--jc-radius-sm);
	border: 1px solid var(--jc-line); background: var(--jc-surface); color: var(--jc-brand); cursor: pointer; padding: 0;
}

@media (max-width: 1140px) {
	.jc-nav__link { padding: 10px 9px; font-size: 15px; }
	.jc-mainbar__inner { gap: 16px; }
}
@media (max-width: 1024px) {
	.jc-nav { display: none; }
	.jc-burger { display: inline-flex; }
	.jc-mainbar__actions { margin-left: auto; }
	.jc-topbar__note { display: none; }
	.jc-topbar__inner { justify-content: center; }
}
@media (max-width: 600px) {
	.jc-mainbar__inner { min-height: 68px; }
	.jc-brand img { height: 52px; }
	.jc-topbar { font-size: 13px; }
	.jc-topbar__phones { gap: 14px; width: 100%; justify-content: space-between; }
	.jc-topbar__phones .jc-ico { display: none; }
	.jc-topbar__phones a { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.25; padding: 4px 0; }
	.jc-topbar__city { font-size: 12px; }
	.jc-mainbar__actions .jc-btn--whatsapp span { display: none; }
	.jc-mainbar__actions .jc-btn--whatsapp { width: 46px; padding: 0; min-height: 46px; }
}

/* ---------- Gaveta (celular) ---------- */
.jc-drawer[hidden] { display: none; }
.jc-drawer { position: fixed; inset: 0; z-index: 100001; }
.jc-drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 20, 45, .55); }
.jc-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
	background: var(--jc-surface); display: flex; flex-direction: column; overflow-y: auto;
	box-shadow: -20px 0 40px -20px rgba(6, 32, 79, .5);
}
.jc-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--jc-line); }
.jc-drawer__logo { height: 48px; width: auto; }
.jc-drawer__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--jc-bg); border-radius: var(--jc-radius-sm); color: var(--jc-ink); cursor: pointer; padding: 0; }
.jc-drawer__nav { padding: 10px 12px; }
.jc-drawer__nav .jc-nav__list { display: block; }
.jc-drawer__nav .jc-nav__item { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--jc-line); }
.jc-drawer__nav .jc-nav__link {
	flex: 1; display: flex; justify-content: space-between; padding: 15px 8px;
	font: 700 17px/1.2 var(--jc-font-body); color: var(--jc-ink); background: none; border: 0; text-align: left; cursor: pointer;
}
.jc-drawer__nav .jc-nav__sub-toggle {
	display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: none; color: var(--jc-ink); cursor: pointer;
}
.jc-drawer__nav .sub-menu { display: none; width: 100%; padding: 0 0 10px 12px; }
.jc-drawer__nav .is-open > .sub-menu { display: block; }
.jc-drawer__nav .is-open > .jc-nav__toggle .jc-ico, .jc-drawer__nav .is-open > .jc-nav__sub-toggle .jc-ico { transform: rotate(180deg); }
.jc-drawer__nav .sub-menu .jc-nav__item { border: 0; }
.jc-drawer__nav .sub-menu .jc-nav__link { font-weight: 600; font-size: 16px; padding: 11px 8px; color: var(--jc-muted); }
.jc-drawer__nav .menu-orcamento > .jc-nav__link { color: var(--jc-accent); }
.jc-drawer__contact { margin-top: auto; padding: 20px; display: grid; gap: 12px; background: var(--jc-bg); }
.jc-drawer__phone { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--jc-brand); font-weight: 700; font-size: 17px; }
.jc-drawer__phone small { display: block; font-size: 13px; font-weight: 500; color: var(--jc-muted); }
body.jc-drawer-open { overflow: hidden; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.jc-footer { background: var(--jc-brand-deep); color: rgba(255,255,255,.8); font-size: 15px; padding-bottom: 8px; }
.jc-footer a { color: #fff; }
.jc-footer a:hover { color: var(--jc-highlight); }

.jc-footer__cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
	padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.jc-footer__cta-title { font: 800 clamp(24px, 3vw, 32px)/1.1 var(--jc-font-display); color: #fff; letter-spacing: -0.01em; }
.jc-footer__cta-text { margin-top: 8px; color: rgba(255,255,255,.75); }
.jc-footer__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.jc-footer__grid {
	display: grid; grid-template-columns: 1.35fr .9fr .9fr 1.35fr; gap: 40px;
	padding: 56px 0 48px;
}
.jc-footer__logo { display: inline-block; background: #fff; border-radius: var(--jc-radius); padding: 10px 14px; margin-bottom: 20px; }
.jc-footer__logo img { height: 74px; width: auto; }
.jc-footer__brand p { max-width: 38ch; line-height: 1.65; }
.jc-footer__title { font: 700 13px/1.2 var(--jc-font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--jc-highlight); margin-bottom: 18px; }
.jc-footer__links { display: grid; gap: 11px; }
.jc-footer__links a { color: rgba(255,255,255,.86); }
.jc-footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.jc-footer__units { display: grid; gap: 24px; align-content: start; }
.jc-unit__city { font: 700 17px/1.2 var(--jc-font-display); color: #fff; margin-bottom: 8px; }
.jc-unit__city span { font: 500 14px var(--jc-font-body); color: rgba(255,255,255,.6); }
.jc-unit__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.jc-unit__addr { display: flex; gap: 8px; line-height: 1.5; color: rgba(255,255,255,.72); }
.jc-unit .jc-ico { color: var(--jc-highlight); margin-top: 3px; }

.jc-footer__bottom {
	display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
	padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12);
	font-size: 14px; color: rgba(255,255,255,.62);
	padding-right: 84px;
}
.jc-footer__bottom strong { color: rgba(255,255,255,.86); font-weight: 600; }

@media (max-width: 980px) {
	.jc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.jc-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
	.jc-footer__cta-actions, .jc-footer__cta-actions .jc-btn { width: 100%; }
	.jc-footer__bottom { flex-direction: column; }
}

/* ---------- WhatsApp flutuante ---------- */
.jc-wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 9989;
	width: 60px; height: 60px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--jc-wa); color: #fff !important;
	box-shadow: 0 10px 24px -8px rgba(23, 138, 69, .7);
	transition: transform .15s ease, background-color .15s ease;
}
.jc-wa-float:hover { background: var(--jc-wa-dark); transform: scale(1.06); }

/* =========================================================
   Componentes compartilhados (FAQ pode ir em qualquer página)
   ========================================================= */
.jc-h2 { font-family: var(--jc-font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -0.015em; color: var(--jc-brand-deep); }
.jc-lead { font-size: 18px; line-height: 1.6; color: var(--jc-muted); max-width: 62ch; }

.jc-faq { padding: clamp(64px, 8vw, 104px) 0; background: var(--jc-surface); }
.jc-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.jc-faq__head { position: sticky; top: calc(var(--jc-admin) + 150px); display: grid; gap: 18px; justify-items: start; }
.jc-faq__list { border-top: 1px solid var(--jc-line); }
.jc-faq__item { border-bottom: 1px solid var(--jc-line); }
.jc-faq__item summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 22px 0; font: 700 18px/1.35 var(--jc-font-display); color: var(--jc-ink);
}
.jc-faq__item summary::-webkit-details-marker { display: none; }
.jc-faq__item summary:hover { color: var(--jc-brand); }
.jc-faq__item summary .jc-ico { color: var(--jc-accent); transition: transform .2s ease; }
.jc-faq__item[open] summary .jc-ico { transform: rotate(45deg); }
.jc-faq__answer { padding: 0 40px 24px 0; color: var(--jc-muted); }
.jc-faq__answer p { margin: 0 0 12px; padding: 0; }
.jc-faq__answer p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
	.jc-faq__grid { grid-template-columns: 1fr; }
	.jc-faq__head { position: static; }
	.jc-faq__answer { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.jc-header *, .jc-footer *, .jc-home *, .jc-drawer *, .jc-wa-float { transition: none !important; }
}
