/*
Theme Name: Concreto Usinado
Description: Landing page de concreto usinado convertida do Lovable. Página única com pedidos pelo WhatsApp. Todos os textos e botões editáveis em Aparência → Personalizar → Concreto Usinado.
Version: 1.2.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: concreto-usinado
License: GPLv2 or later
*/

/* ============ Cores (iguais ao styles.css do Lovable) ============ */
:root {
	--brand: oklch(0.628 0.258 29.2);
	--brand-deep: oklch(0.515 0.211 29.2);
	--brand-soft: oklch(0.955 0 0);
	--highlight: oklch(0.687 0.203 28);
	--hero-muted: oklch(0.82 0 0);
	--hero-panel: oklch(0.20 0 0);
	--hero-copy: oklch(0.92 0 0);
	--footer-muted: oklch(0.72 0 0);
	--whatsapp: oklch(0.62 0.17 151);
	--ink-hover: oklch(0.25 0 0);

	--background: oklch(1 0 0);
	--foreground: oklch(0.145 0 0);
	--ink: var(--foreground);
	--card: oklch(1 0 0);
	--primary: oklch(0.628 0.258 29.2);
	--primary-foreground: oklch(1 0 0);
	--secondary: oklch(0.955 0 0);
	--muted-foreground: oklch(0.45 0 0);
	--accent: oklch(0.955 0 0);
	--border: oklch(0.88 0 0);
	--ring: oklch(0.628 0.258 29.2);

	--font-sans: "Inter", sans-serif;
	--font-display: "Archivo", sans-serif;
	--radius-md: 6px;
	--radius-lg: 8px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-sans);
	letter-spacing: 0;
	line-height: 1.5;
	background: var(--background);
	color: var(--foreground);
	-webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; padding: 0; }
svg { display: block; }
[hidden] { display: none !important; }

.cu-page { min-height: 100vh; }

/* ============ Utilitários ============ */
.cu-container { max-width: 72rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.cu-container-inner { max-width: 72rem; margin: 0 auto; }
.cu-container-5xl { max-width: 64rem; margin: 0 auto; }
.cu-container-3xl { max-width: 48rem; margin: 0 auto; }
.cu-flex-gap2 { display: flex; align-items: center; gap: .5rem; }
.cu-stack-2 { display: flex; flex-direction: column; gap: .5rem; }
.cu-stack-4 { display: flex; flex-direction: column; gap: 1rem; }
.cu-stack-10 { display: flex; flex-direction: column; gap: 2.5rem; }
.cu-text-highlight { color: var(--highlight); }
.cu-shrink-0 { flex-shrink: 0; }
.cu-muted { color: var(--muted-foreground); line-height: 1.625; }
.cu-text-lg { font-size: 1.125rem; }
.cu-hover-underline:hover { text-decoration: underline; }
.cu-center { display: flex; justify-content: center; }
.cu-self-start { align-self: flex-start; }
.cu-items-center { align-items: center; }
.cu-pt2 { padding-top: .5rem; }
.cu-mt2 { margin-top: .5rem; }
.cu-mb4 { margin-bottom: 1rem; }
.cu-px4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.cu-px5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.cu-px6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.cu-bg-secondary { background: var(--secondary); }

/* ============ Botões ============ */
.cu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	white-space: nowrap;
	border-radius: var(--radius-md);
	font-size: .875rem;
	line-height: 1.25rem;
	font-weight: 600;
	cursor: pointer;
	transition: color .15s, background-color .15s, border-color .15s, transform .15s;
}
.cu-btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }
.cu-btn:focus-visible, .cu-faq__q:focus-visible, .cu-menu-toggle:focus-visible, .cu-wa-float:focus-visible {
	outline: none;
	box-shadow: 0 0 0 1px var(--ring);
}
.cu-btn--h44 { min-height: 44px; padding: 0 1rem; }
.cu-btn--h46 { min-height: 46px; }
.cu-btn--h48 { min-height: 48px; }
.cu-btn--h50 { min-height: 50px; padding: 0 1.5rem; }
.cu-btn--lg { min-height: 52px; padding: 0 1.75rem; font-size: 17px; line-height: 1.5; }
.cu-btn--center { justify-content: center; }

.cu-btn--primary { background: var(--primary); color: var(--primary-foreground); }
.cu-btn--primary:hover { background: var(--brand-deep); }

.cu-btn--ink { background: var(--ink); color: var(--primary-foreground); }
.cu-btn--ink:hover { background: var(--ink-hover); }
.cu-btn--ink.cu-hover-primary:hover { background: var(--primary); }

.cu-btn--outline-light { border: 1px solid color-mix(in oklab, var(--primary-foreground) 70%, transparent); color: var(--primary-foreground); }
.cu-btn--outline-light:hover { background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }

.cu-btn--outline-white { border: 1.5px solid var(--background); color: var(--background); }
.cu-cta .cu-btn--outline-white { border-color: var(--primary-foreground); color: var(--primary-foreground); }
.cu-btn--outline-white:hover { background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }

.cu-btn--outline-ink { border: 1.5px solid var(--ink); color: var(--foreground); }
.cu-btn--outline-ink:hover { background: var(--ink); color: var(--primary-foreground); }

.cu-btn--white { background: var(--background); color: var(--foreground); }
.cu-btn--white:hover { background: var(--card); }

.cu-btn--card { background: var(--card); color: var(--foreground); }
.cu-btn--card:hover { background: var(--background); }

.cu-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ============ Faixa de topo ============ */
.cu-topbar { background: var(--ink); color: var(--background); font-size: 13px; }
.cu-topbar__inner {
	padding-top: .5rem; padding-bottom: .5rem;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
}

/* ============ Header ============ */
.cu-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--brand);
	color: var(--primary-foreground);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}
.admin-bar .cu-header { top: var(--wp-admin--admin-bar--height, 32px); }
.cu-header__inner {
	padding-top: 1rem; padding-bottom: 1rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.cu-logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.25rem;
	line-height: 1.75rem;
	text-transform: uppercase;
	color: var(--primary-foreground);
}
.cu-nav { display: none; align-items: center; gap: 1.5rem; font-size: 15px; }
.cu-nav__link:hover { text-decoration: underline; }

.cu-menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: .5rem;
	border-radius: var(--radius-md);
	color: var(--primary-foreground);
	transition: background-color .15s;
}
.cu-menu-toggle svg { width: 16px; height: 16px; }
.cu-menu-toggle:hover { background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
.cu-menu-toggle__close { display: none; }
.cu-menu-toggle[aria-expanded="true"] .cu-menu-toggle__open { display: none; }
.cu-menu-toggle[aria-expanded="true"] .cu-menu-toggle__close { display: inline; }

.cu-mobile-nav { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.cu-mobile-nav__link { padding: .5rem 0; color: var(--primary-foreground); }

/* ============ Hero ============ */
.cu-hero { background: var(--ink); color: var(--background); }
.cu-hero__grid {
	padding-top: 4rem; padding-bottom: 4rem;
	display: grid; gap: 3rem; align-items: center;
}
.cu-hero__copy { display: flex; flex-direction: column; gap: 1.5rem; }
.cu-eyebrow { font-size: .875rem; line-height: 1.25rem; font-weight: 600; text-transform: uppercase; color: var(--highlight); }
.cu-hero__title { font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1.02; }
.cu-hero__lead { font-size: 1.125rem; line-height: 1.625; color: var(--hero-muted); max-width: 36rem; }

.cu-hero__panel {
	background: var(--hero-panel);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	display: flex; flex-direction: column; gap: 1.25rem;
}
.cu-hero__panel-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; color: var(--hero-copy); }
.cu-benefit { display: flex; gap: .875rem; align-items: flex-start; }
.cu-benefit span { font-size: 1rem; line-height: 1.625; color: var(--hero-copy); }

/* ============ Seções ============ */
.cu-section { padding: 5rem 1.5rem; }
.cu-section-head { display: flex; flex-direction: column; gap: .75rem; max-width: 42rem; }
.cu-h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.875rem; line-height: 1.25; }

/* Produtos */
.cu-products { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.cu-product {
	display: grid; gap: 1rem; align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid var(--border);
	transition: background-color .15s;
}
.cu-product:last-child { border-bottom: 0; }
.cu-product:hover { background: var(--brand-soft); }
.cu-product__fck { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 2rem; color: var(--primary); }
.cu-product__info { display: flex; flex-direction: column; gap: .25rem; }
.cu-product__name { font-weight: 600; font-size: 1.125rem; line-height: 1.75rem; }
.cu-product__use { font-size: 15px; line-height: 1.625; color: var(--muted-foreground); }

/* Como funciona */
.cu-how__grid { display: grid; gap: 3rem; align-items: start; }
.cu-how__intro { display: flex; flex-direction: column; gap: 1.25rem; }
.cu-steps {
	position: relative;
	margin-left: 1.25rem;
	border-left: 2px solid var(--border);
	padding-left: 2rem;
	display: flex; flex-direction: column; gap: 2.5rem;
}
.cu-step { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.cu-step__n {
	position: absolute; left: -53px; top: 0;
	width: 2.5rem; height: 2.5rem; border-radius: 9999px;
	background: var(--primary); color: var(--primary-foreground);
	font-family: var(--font-display); font-weight: 800; font-size: 1.125rem;
	display: flex; align-items: center; justify-content: center;
}
.cu-step__title { font-weight: 600; font-size: 19px; }

/* Faixa CTA */
.cu-cta { background: var(--brand); color: var(--primary-foreground); padding: 4rem 1.5rem; }
.cu-cta__inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.cu-cta__title { font-family: var(--font-display); font-weight: 800; font-size: 1.875rem; line-height: 1.25; }
.cu-cta__text { font-size: 1.125rem; line-height: 1.75rem; color: color-mix(in oklab, var(--primary-foreground) 90%, transparent); }

/* FAQ */
.cu-faq { border-bottom: 1px solid var(--border); }
.cu-faq__q {
	width: 100%;
	min-height: 56px;
	padding: 1rem;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	text-align: left;
	font-weight: 600; font-size: 19px; line-height: 1.4;
	border-radius: var(--radius-md);
	transition: background-color .15s;
}
.cu-faq__q:hover { background: var(--accent); }
.cu-faq__chevron { width: 16px; height: 16px; transition: transform .15s; }
.cu-faq__q[aria-expanded="true"] .cu-faq__chevron { transform: rotate(180deg); }
.cu-faq__a { padding-bottom: 1.25rem; font-size: 1rem; line-height: 1.625; color: var(--muted-foreground); }
.cu-faq__more { padding-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Footer */
.cu-footer { background: var(--ink); color: var(--footer-muted); padding: 3rem 1.5rem; }
.cu-footer__grid { display: grid; gap: 2rem; }
.cu-footer__brand { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1rem; color: var(--background); }
.cu-footer__link:hover { color: var(--background); text-decoration: underline; }
.cu-footer__top { color: var(--background); }
.cu-footer__top:hover { text-decoration: underline; }

/* Botão flutuante */
.cu-wa-float {
	position: fixed; bottom: .75rem; right: .75rem; z-index: 50;
	width: 3rem; height: 3rem; border-radius: 9999px;
	background: var(--whatsapp); color: var(--primary-foreground);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
	transition: transform .15s;
}
.cu-wa-float svg { width: 16px; height: 16px; }
.cu-wa-float:hover { transform: scale(1.05); }

/* Rodapé: faixa legal */
.cu-footer__legal {
	margin-top: 2.5rem; padding-top: 1.5rem;
	border-top: 1px solid oklch(1 0 0 / 12%);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
	font-size: .875rem;
}
.cu-footer__policies { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* ============ Páginas internas (políticas) ============ */
.cu-page-hero { background: var(--ink); color: var(--background); padding: 3.5rem 1.5rem; }
.cu-page-hero__inner { display: flex; flex-direction: column; gap: .75rem; }
.cu-page-hero__back { font-size: .875rem; color: var(--hero-muted); }
.cu-page-hero__back:hover { color: var(--background); text-decoration: underline; }
.cu-page-hero__title { font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1.1; }
.cu-page-hero__date { font-size: .875rem; color: var(--highlight); font-weight: 600; }

.cu-prose { font-size: 1.0625rem; line-height: 1.7; color: oklch(0.3 0 0); }
.cu-prose > * + * { margin-top: 1rem; }
.cu-prose h2 {
	font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.25;
	color: var(--foreground); margin-top: 2.5rem;
}
.cu-prose h3 { font-weight: 600; font-size: 1.2rem; color: var(--foreground); margin-top: 1.75rem; }
.cu-prose ul, .cu-prose ol { padding-left: 1.25rem; }
.cu-prose ul { list-style: disc; }
.cu-prose ol { list-style: decimal; }
.cu-prose li + li { margin-top: .4rem; }
.cu-prose li::marker { color: var(--primary); }
.cu-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cu-prose a:hover { color: var(--brand-deep); }
.cu-prose strong { color: var(--foreground); }

/* ============ md (768px+) ============ */
@media (min-width: 768px) {
	.cu-nav { display: flex; }
	.cu-menu-toggle, .cu-mobile-nav { display: none !important; }
	.cu-hero__grid { padding-top: 6rem; padding-bottom: 6rem; }
	.cu-hero__title { font-size: 3.75rem; }
	.cu-hero__lead { font-size: 1.25rem; }
	.cu-hero__panel { padding: 2rem; }
	.cu-section { padding-top: 6rem; padding-bottom: 6rem; }
	.cu-h2 { font-size: 44px; }
	.cu-product { grid-template-columns: 130px 1fr auto; gap: 1.5rem; }
	.cu-product__fck { font-size: 1.875rem; line-height: 2.25rem; }
	.cu-cta__inner { flex-direction: row; align-items: center; }
	.cu-cta__title { font-size: 2.25rem; }
	.cu-footer__grid { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
	.cu-wa-float { bottom: 1.25rem; right: 1.25rem; width: 4rem; height: 4rem; }
	.cu-page-hero { padding: 4.5rem 1.5rem; }
	.cu-page-hero__title { font-size: 3rem; }
}

/* ============ lg (1024px+) ============ */
@media (min-width: 1024px) {
	.cu-hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
	.cu-how__grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
	.cu-how__intro { position: sticky; top: 8rem; }
}

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