/* =========================================================================
   Lucom Systems — folha de estilo principal
   CSS moderno, sem framework. Modo claro/escuro via tokens.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	color-scheme: light;

	/* Marca */
	--brand: #1d4ed8;
	--brand-strong: #1e3a8a;
	--brand-soft: #dbe6ff;
	--accent: #e11d48;

	/* Neutros (tema claro) */
	--bg: #ffffff;
	--bg-alt: #f5f7fb;
	--surface: #ffffff;
	--border: #e6e9f2;
	--text: #10162a;
	--text-muted: #55607a;
	--shadow: 0 1px 2px rgba(16, 22, 42, .04), 0 12px 32px -12px rgba(16, 22, 42, .12);
	--shadow-sm: 0 1px 2px rgba(16, 22, 42, .06);

	/* Tipografia */
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: "Space Grotesk", var(--font-sans);

	/* Escala fluida */
	--step--1: clamp(.83rem, .8rem + .15vw, .9rem);
	--step-0: clamp(1rem, .96rem + .2vw, 1.075rem);
	--step-1: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
	--step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
	--step-3: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
	--step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4rem);

	/* Espaçamento / forma */
	--wrap: 1120px;
	--gutter: clamp(1.1rem, .6rem + 2.4vw, 2rem);
	--radius: 14px;
	--radius-lg: 22px;
	--ease: cubic-bezier(.2, .7, .3, 1);
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--brand: #6ea0ff;
	--brand-strong: #9dc0ff;
	--brand-soft: #17233f;
	--accent: #ff5c7a;

	--bg: #0b1220;
	--bg-alt: #0f1729;
	--surface: #121b30;
	--border: #22304d;
	--text: #eef2fb;
	--text-muted: #9aa7c2;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 40px -18px rgba(0, 0, 0, .6);
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--brand: #6ea0ff;
		--brand-strong: #9dc0ff;
		--brand-soft: #17233f;
		--accent: #ff5c7a;
		--bg: #0b1220;
		--bg-alt: #0f1729;
		--surface: #121b30;
		--border: #22304d;
		--text: #eef2fb;
		--text-muted: #9aa7c2;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 40px -18px rgba(0, 0, 0, .6);
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
	}
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hide-mobile { display: none; }
@media (min-width: 860px) { .hide-mobile { display: inline-flex; } }

.eyebrow {
	font-family: var(--font-display);
	font-size: var(--step--1);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--brand);
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
	--btn-bg: var(--brand);
	--btn-fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
	padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
	background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--brand) 70%, transparent); }
.btn--primary:hover { background: color-mix(in oklab, var(--brand) 88%, #000); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--whatsapp { --btn-bg: #25d366; --btn-fg: #05320f; }
.btn--sm { padding: .55rem .95rem; }
.btn--lg { padding: .9rem 1.5rem; font-size: var(--step-0); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 40;
	background: color-mix(in oklab, var(--bg) 82%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header[data-elevated="true"] {
	border-bottom-color: var(--border);
	box-shadow: var(--shadow-sm);
}
.site-header__inner {
	display: flex; align-items: center; gap: 1rem;
	min-height: 68px;
}
.site-header__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 32px; width: auto; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand__logo--light { display: none; }
	:root:not([data-theme="light"]) .brand__logo--dark { display: block; }
}
.brand--footer .brand__logo { height: 36px; }

.site-nav { display: none; }
@media (min-width: 860px) {
	.site-nav { display: block; }
	.site-header__inner { gap: 2rem; }
}
.site-nav__list { display: flex; gap: .3rem; list-style: none; padding: 0; }
.site-nav__list a {
	display: block; padding: .5rem .85rem; border-radius: 999px;
	font-size: var(--step--1); font-weight: 500; color: var(--text-muted);
	transition: color .18s var(--ease), background .18s var(--ease);
}
.site-nav__list a:hover { color: var(--text); background: var(--bg-alt); }
.site-nav__list a[aria-current="true"] { color: var(--brand); background: var(--brand-soft); }

.theme-toggle {
	display: inline-grid; place-items: center; width: 38px; height: 38px;
	border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
	cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
	:root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}

/* Botão hambúrguer */
.nav-toggle {
	display: inline-grid; place-items: center; gap: 4px; width: 38px; height: 38px;
	border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
@media (min-width: 860px) { .nav-toggle { display: none; } }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Drawer mobile ---------- */
.drawer {
	position: fixed; inset: 0; z-index: 60;
	background: color-mix(in oklab, var(--bg) 60%, rgba(0,0,0,.4));
	backdrop-filter: blur(4px);
	opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.drawer[data-open="true"] { opacity: 1; pointer-events: auto; }
.drawer__panel {
	position: absolute; top: 0; right: 0; height: 100%; width: min(80vw, 320px);
	background: var(--surface); border-left: 1px solid var(--border);
	display: flex; flex-direction: column; gap: .4rem;
	padding: 88px 20px 20px;
	transform: translateX(100%); transition: transform .25s var(--ease);
}
.drawer[data-open="true"] .drawer__panel { transform: translateX(0); }
.drawer__panel a {
	padding: .85rem .6rem; border-radius: 10px; font-family: var(--font-display); font-weight: 500;
	color: var(--text-muted);
}
.drawer__panel a:hover { color: var(--text); background: var(--bg-alt); }
.drawer__panel .btn { margin-top: .6rem; color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 2rem + 9vw, 7.5rem) 0 clamp(3rem, 2rem + 6vw, 6rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero__glow--a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle at 30% 30%, var(--brand), transparent 65%); }
.hero__glow--b { width: 38vw; height: 38vw; right: -10vw; top: 4vw; background: radial-gradient(circle at 60% 40%, var(--accent), transparent 62%); opacity: .35; }
.hero__grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 46px 46px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
	opacity: .5;
}

.hero__title { font-size: var(--step-4); max-width: 16ch; margin-bottom: 1.1rem; }
.grad { background: linear-gradient(100deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: var(--step-1); color: var(--text-muted); max-width: 52ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__facts {
	list-style: none; padding: 0;
	margin-top: clamp(2.5rem, 1rem + 6vw, 4rem);
	display: grid; gap: .9rem;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.hero__facts li {
	background: color-mix(in oklab, var(--surface) 70%, transparent);
	border: 1px solid var(--border); border-radius: var(--radius);
	padding: 1.15rem 1.2rem;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.hero__facts li:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
.hero__facts-ic {
	display: inline-grid; place-items: center; width: 36px; height: 36px;
	border-radius: 10px; background: var(--brand-soft); color: var(--brand); margin-bottom: .75rem;
}
.hero__facts-k { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: var(--step-0); }
.hero__facts-v { color: var(--text-muted); font-size: var(--step--1); line-height: 1.5; margin-top: .15rem; }

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 2rem + 7vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 1rem + 4vw, 3.5rem); }
.section__head h2 { font-size: var(--step-3); margin: .6rem 0 .9rem; }
.section__lead { color: var(--text-muted); font-size: var(--step-1); }

/* ---------- Cards / grids ---------- */
.pillars, .services { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.pillars { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.services { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
	padding: 1.5rem; box-shadow: var(--shadow-sm);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--brand) 40%, var(--border)); }
.card h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: var(--step--1); }
.card__icon {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem;
}

/* ---------- Callout (modelo de parceria) ---------- */
.callout {
	margin-top: 1.6rem;
	display: grid; gap: 1.4rem 2rem; align-items: center;
	padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
	border: 1px solid transparent; border-radius: var(--radius-lg);
	background:
		linear-gradient(var(--surface), var(--surface)) padding-box,
		linear-gradient(100deg, var(--brand), var(--accent)) border-box;
	box-shadow: var(--shadow-sm);
}
@media (min-width: 820px) { .callout { grid-template-columns: 1fr auto; } }
.callout h3 { font-size: var(--step-2); margin: .5rem 0 .7rem; }
.callout p:last-child { color: var(--text-muted); font-size: var(--step--1); max-width: 62ch; }
.callout strong { color: var(--text); }
.callout__cta { display: flex; }
.callout__cta .btn { color: #fff; }

/* ---------- Contato ---------- */
.contact { display: grid; gap: clamp(2rem, 1rem + 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.05fr .95fr; } }
.contact__info h2 { font-size: var(--step-3); margin: .6rem 0 .9rem; }
.contact__list { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 1rem; }
.contact__list li { display: grid; grid-template-columns: 20px 1fr; gap: .8rem; align-items: start; font-size: var(--step--1); color: var(--text-muted); }
.contact__list a { color: var(--text); border-bottom: 1px solid transparent; }
.contact__list a:hover { border-bottom-color: currentColor; }
.contact__ic { color: var(--brand); margin-top: 2px; }

.contact__form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: var(--step--1); }
.field input, .field textarea {
	font: inherit; font-size: var(--step--1); color: var(--text);
	background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .85rem;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus {
	outline: none; border-color: var(--brand);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent);
}
.field textarea { resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--accent); }
.form-note { font-size: var(--step--1); min-height: 1.2em; }
.form-note[data-state="ok"] { color: #1a7f37; }
.form-note[data-state="error"] { color: var(--accent); }
:root[data-theme="dark"] .form-note[data-state="ok"] { color: #3fb950; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) 0 1.5rem; }
.site-footer__inner { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.site-footer__brand p { color: var(--text-muted); font-size: var(--step--1); max-width: 46ch; margin-top: .9rem; }
.brand--footer { margin-bottom: .2rem; }
.site-footer__nav { display: grid; gap: .6rem; }
.site-footer__nav a { color: var(--text-muted); font-size: var(--step--1); width: fit-content; }
.site-footer__nav a:hover { color: var(--brand); }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between;
	margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
	color: var(--text-muted); font-size: var(--step--1);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
