/*
Theme Name:   Logic Wise (Astra Child)
Theme URI:    https://www.logicwise.com.br
Description:  Tema filho do Astra para a landing page da Logic Wise. Identidade visual, fontes locais e cabeçalho/rodapé da marca. Não altera arquivos do Astra.
Author:       Logic Wise — Soluções Tecnológicas
Template:     astra
Version:      1.0.0
Requires PHP: 8.1
Text Domain:  astra-child-logicwise
License:      GPL-2.0-or-later
*/

/* Nomes "LW …" evitam colisão com fontes registradas por plugins (ex.: Spectra também registra "Inter"). Fontes locais (SIL OFL 1.1 — ver assets/fonts/LICENSE-*.txt). Sem requisições ao Google Fonts (LGPD/desempenho). */
@font-face {
	font-family: "LW Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "LW Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "LW Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "LW Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens da marca ─────────────────────────────────────────────── */
:root {
	--lw-deep: #151d38;
	--lw-blue: #3d438f;
	--lw-digital: #5869c8;
	--lw-yellow: #f5ba39;
	--lw-white: #ffffff;
	--lw-neutral: #f1f4f9;
	--lw-text: #151d38;
	--lw-muted: rgb(21 29 56 / 0.72);
	--lw-radius: 16px;
	--lw-radius-sm: 10px;
	--lw-shadow: 0 10px 30px -12px rgb(21 29 56 / 0.18);
	--lw-font-display: "LW Montserrat", ui-sans-serif, system-ui, sans-serif;
	--lw-font-body: "LW Inter", ui-sans-serif, system-ui, sans-serif;
	--lw-header-h: 84px;
}

body,
button,
input,
select,
textarea {
	font-family: var(--lw-font-body);
	color: var(--lw-text);
}

h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4) {
	font-family: var(--lw-font-display);
	color: inherit;
	letter-spacing: -0.01em;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Âncoras não ficam sob o cabeçalho fixo */
[id] { scroll-margin-top: calc(var(--lw-header-h) + 12px); }

:focus-visible {
	outline: 2px solid var(--lw-yellow);
	outline-offset: 2px;
}

/* ── Cabeçalho (Astra) ───────────────────────────────────────────── */
/* Cabeçalho fixo: CSS puro (o "sticky header" nativo do Astra é recurso Pro). */
#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 1px 0 rgb(255 255 255 / 0.06);
}
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }

#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar {
	background: var(--lw-deep);
	border-bottom: 0;
	min-height: var(--lw-header-h);
}

#masthead .custom-logo-link img,
#masthead .site-logo-img img {
	max-height: 64px;
	width: auto;
}

#masthead .main-header-menu .menu-link,
#masthead .ast-header-break-point .main-header-menu .menu-link {
	color: rgb(255 255 255 / 0.9);
	font-weight: 600;
	font-size: 15px;
}
#masthead .main-header-menu .menu-link:hover,
#masthead .main-header-menu .current-menu-item > .menu-link {
	color: var(--lw-yellow);
}

/* Item de menu com classe "lw-menu-cta" vira o botão amarelo "Solicitar orçamento" */
#masthead .main-header-menu .lw-menu-cta > .menu-link {
	background: var(--lw-yellow);
	color: var(--lw-deep);
	border-radius: 999px;
	padding: 10px 22px;
	margin-left: 10px;
	line-height: 1.2;
}
#masthead .main-header-menu .lw-menu-cta > .menu-link:hover { filter: brightness(0.95); color: var(--lw-deep); }

/* Menu mobile do Astra sobre fundo escuro */
#masthead .ast-mobile-header-content,
#masthead .ast-header-break-point .main-navigation,
#ast-mobile-popup .ast-mobile-popup-drawer .ast-mobile-popup-inner {
	background: var(--lw-deep);
}
/* Painel do menu mobile (Astra aplica fundo branco aos links): azul profundo + links brancos */
#masthead #ast-hf-mobile-menu,
#masthead #ast-hf-mobile-menu .menu-item > .menu-link {
	background: var(--lw-deep) !important;
	color: #fff !important;
	border-color: rgb(255 255 255 / 0.08) !important;
}
#masthead #ast-hf-mobile-menu .menu-item > .menu-link:hover,
#masthead #ast-hf-mobile-menu .menu-item > .menu-link:focus-visible { color: var(--lw-yellow) !important; }
#masthead #ast-hf-mobile-menu .lw-menu-cta > .menu-link {
	background: var(--lw-yellow) !important;
	color: var(--lw-deep) !important;
	border-radius: 999px;
}
#masthead .menu-toggle,
#masthead .ast-mobile-menu-trigger-minimal { color: #fff; }
#masthead .menu-toggle .ast-mobile-svg { fill: #fff; }
@media (max-width: 921px) {
	#masthead .main-header-menu .lw-menu-cta > .menu-link {
		display: flex;
		box-sizing: border-box;
		width: calc(100% - 40px) !important;
		margin: 12px 20px 18px !important;
		justify-content: center;
	}
	#masthead .custom-logo-link img,
	#masthead .site-logo-img img { max-height: 54px; }
}

/* ── Rodapé (Astra) ──────────────────────────────────────────────── */
.site-footer,
.site-footer .site-below-footer-wrap,
.site-footer .ast-builder-grid-row-container {
	background: var(--lw-deep);
	color: rgb(255 255 255 / 0.72);
}
.site-footer a { color: #fff; }
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p { font-size: 13px; text-align: center; color: rgb(255 255 255 / 0.75) !important; }
.site-footer .ast-footer-copyright a { color: #fff !important; text-decoration-color: var(--lw-yellow); text-underline-offset: 3px; }

/* ── Cabeçalho desktop como no modelo aprovado: menu centralizado, botão de orçamento à direita ── */
@media (min-width: 922px) {
	#ast-desktop-header .site-header-primary-section-right,
	#ast-desktop-header .ast-builder-menu-1,
	#ast-desktop-header .ast-main-header-bar-alignment,
	#ast-desktop-header .main-header-bar-navigation,
	#ast-desktop-header .main-header-bar-navigation .site-navigation,
	#ast-desktop-header .main-header-bar-navigation .main-navigation,
	#ast-desktop-header .main-header-menu {
		flex: 1 1 auto;
		width: 100%;
	}
	#ast-desktop-header .main-header-menu { display: flex; align-items: center; gap: 6px; }
	#ast-desktop-header .main-header-menu > .menu-item:first-child { margin-left: auto; }
	#ast-desktop-header .main-header-menu > .lw-menu-cta { margin-left: auto; }
}
