/*
Theme Name: Coworking SJC
Theme URI: https://www.coworkingsjc.com.br
Author: Coworking SJC
Description: Tema leve e de código aberto para o Coworking SJC (São José dos Campos). Página inicial completa, textos e preços editáveis pelo Personalizador, depoimentos e perguntas frequentes editáveis no painel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coworking-sjc
*/

/* =========================================================
   1. VARIÁVEIS (cores e medidas)
   As cores principais também podem ser trocadas em
   Aparência > Personalizar > Coworking SJC > Cores.
   ========================================================= */
:root {
	--ink: #02127F;          /* cor principal (azul da logo) */
	--accent: #F2994A;       /* cor de destaque dos botões */
	--link: #0069A3;         /* links e detalhes */
	--sand: #F7F4EE;         /* fundo principal */
	--mist: #E8EEF7;         /* faixas e ícones */
	--muted: #4A5870;        /* texto de apoio */
	--line: #D8DFEA;         /* bordas */
	--on-dark: #C9D3F0;      /* texto de apoio sobre fundo escuro */
	--white: #FFFFFF;
	--radius: 16px;
	--radius-sm: 10px;
	--container: 1200px;
	--font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--sand);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--white); color: var(--ink); padding: 12px 18px; border-radius: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding: 80px 0; }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.muted { color: var(--muted); }
.icon { flex: none; }

/* =========================================================
   3. BOTÕES
   ========================================================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
	font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: #8E9CD6; color: var(--white); background: transparent; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--link); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* =========================================================
   4. TOPO E MENU
   ========================================================= */
.topbar { background: var(--ink); color: var(--on-dark); font-size: 13px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; padding-top: 10px; padding-bottom: 10px; }
.topbar__group { display: flex; flex-wrap: wrap; gap: 6px 24px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand__name { font: 700 20px/1 var(--font-head); letter-spacing: -0.01em; }
.brand__name span { color: var(--link); }
.custom-logo-link img { max-height: 52px; width: auto; }

.nav__list { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; display: inline-block; padding: 8px 0; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: var(--link); }
.nav__cta { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   5. HERO
   ========================================================= */
.hero { background: var(--ink); color: var(--white); padding: 72px 0 88px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero__sub { font-size: 18px; color: var(--on-dark); max-width: 560px; margin-bottom: 28px; }
.hero__prices { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--on-dark); }
.hero__prices strong { color: var(--white); }
.hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 14px; color: var(--on-dark); }
.stars { display: inline-flex; gap: 3px; color: var(--accent); }
.hero__media img { width: 100%; aspect-ratio: 1 / 1; max-height: 560px; object-fit: cover; border-radius: 20px; }

/* =========================================================
   6. NÚMEROS
   ========================================================= */
.stats { background: var(--white); border-bottom: 1px solid var(--line); padding: 40px 0; }
.stats__grid { display: flex; flex-wrap: wrap; gap: 24px 16px; }
.stat { flex: 1 1 220px; }
.stat strong { display: block; font: 700 40px/1 var(--font-head); letter-spacing: -0.02em; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 15px; }

/* =========================================================
   7. SERVIÇOS
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); flex: 1; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.card__price { font-size: 14px; color: var(--muted); }
.card__price strong { color: var(--ink); font-size: 19px; white-space: nowrap; }
.card--featured { background: var(--ink); border-color: var(--ink); }
.card--featured h3, .card--featured .card__price strong { color: var(--white); }
.card--featured p, .card--featured .card__price { color: var(--on-dark); }
.card--featured .card__icon { background: rgba(255, 255, 255, .12); color: var(--accent); }
.card--featured .link-arrow { color: var(--accent); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { font: 600 11px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--ink); border-radius: 6px; padding: 6px 8px; }

/* =========================================================
   8. DOMICÍLIO FISCAL
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--link); margin-top: 2px; }
.photo { border-radius: 20px; overflow: hidden; }
.photo img { width: 100%; height: 100%; min-height: 380px; max-height: 520px; object-fit: cover; }

/* =========================================================
   9. O ESPAÇO
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; margin-bottom: 48px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 14px; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.feature h3 { font-size: 18px; margin: 0 0 4px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* =========================================================
   10. COMO FUNCIONA / DEPOIMENTOS / FAQ
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step__num { width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font: 700 18px/1 var(--font-head); margin-bottom: 14px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }

.testimonials-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.testimonials-head .section__head { margin-bottom: 0; }
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { margin: 0; background: var(--sand); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote .stars { color: #B8641A; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.65; flex: 1; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption b { display: block; font-size: 15px; }
.quote figcaption span { font-size: 13px; color: var(--muted); }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font: 600 18px/1.3 var(--font-head); color: var(--ink); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--link); flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq__answer { padding: 0 0 22px; color: var(--muted); font-size: 15px; }
.faq__answer p:last-child { margin-bottom: 0; }

/* =========================================================
   11. FORMULÁRIO / CONTATO
   ========================================================= */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-grid h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
.cta-grid p.lead { color: var(--on-dark); max-width: 480px; margin-bottom: 24px; }
.lead-form { background: var(--white); color: var(--ink); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { min-height: 48px; border: 1.5px solid #8B97B5; border-radius: var(--radius-sm); padding: 0 14px; font: 400 16px var(--font-body); color: var(--ink); background: var(--white); width: 100%; }
.lead-form small { font-size: 13px; line-height: 1.5; color: var(--muted); }

.location { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.location address { font-style: normal; display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.location__links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.location__links a { font-weight: 600; }
.map { min-height: 360px; border-radius: 20px; overflow: hidden; background: var(--mist); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* =========================================================
   12. RODAPÉ E WHATSAPP FLUTUANTE
   ========================================================= */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 64px 0 32px; font-size: 15px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 48px; }
.footer__brand { font: 700 20px/1 var(--font-head); color: var(--white); margin-bottom: 14px; }
.site-footer h4 { font: 600 15px/1.2 var(--font-body); color: var(--white); margin: 0 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-footer li a { display: inline-block; padding: 4px 0; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 24px; font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1FAF54; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.wa-float:hover { filter: brightness(1.08); text-decoration: none; }

/* =========================================================
   13. PÁGINAS INTERNAS, BLOG E 404
   ========================================================= */
.page-hero { background: var(--ink); color: var(--white); padding: 56px 0; }
.page-hero h1 { color: var(--white); margin: 0; font-size: clamp(30px, 4vw, 44px); }
.page-hero .meta { color: var(--on-dark); font-size: 14px; margin-top: 10px; }
.content { max-width: 820px; margin: 0 auto; padding: 56px 32px 80px; }
.entry-content { font-size: 17px; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 12px; margin: 1.2em 0; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.alignwide { max-width: 1100px; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: var(--container); margin: 0 auto; padding: 56px 32px 80px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2 { font-size: 21px; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { font-size: 15px; color: var(--muted); margin: 0; }
.pagination { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); text-decoration: none; padding: 0 12px; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.notfound { text-align: center; padding: 96px 32px; }

/* =========================================================
   14. RESPONSIVO
   ========================================================= */
@media (max-width: 1080px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.container { padding-left: 20px; padding-right: 20px; }
	.section { padding: 56px 0; }
	.hero { padding: 40px 0 56px; }
	.hero__grid, .split, .cta-grid, .location { grid-template-columns: 1fr; gap: 32px; }
	.hero__media img { aspect-ratio: 4 / 3; }
	.nav-toggle { display: flex; }
	.header__cta { display: none; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(2, 18, 127, .08); }
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
	.nav__cta { display: flex; margin-top: 16px; }
	.steps, .testimonials, .faq { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
	.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
	.photo img { min-height: 260px; }
	.lead-form { padding: 22px; }
	.post-list { grid-template-columns: 1fr; padding: 40px 20px 64px; }
	.content { padding: 40px 20px 64px; }
}
@media (max-width: 600px) {
	.cards, .features { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.btn-row .btn { flex: 1 1 100%; }
	.topbar__group:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
