/*
Theme Name: ApegoPet
Theme URI:
Author:
Author URI:
Description: Tema WordPress para landing page, com hero em foto de fundo, título com palavra circulada e busca.
Version: 0.10.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apegopet
*/

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
	--lp-bg: #ffffff;
	--lp-text: #111114;
	--lp-muted: #6b6b74;
	--lp-border: #e7e7ec;
	--lp-radius: 20px;
	/* Cores principal/secundária e suas versões claras: valores de fallback — os reais vêm do Customizer (Personalizar → Cores) via <style> no wp_head (calculados em PHP), e recolorem o site inteiro de uma vez. */
	--lp-primary: #16a34a;
	--lp-primary-light: #8fd0aa;
	--lp-secondary: #f2b705;
	--lp-secondary-light: #f8dc82;
	--lp-header-h: 76px;
}

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
	font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 2px; }

.lp-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 5vw;
}

/* ---------- Buttons ---------- */
.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.lp-btn:hover { transform: translateY(-1px); opacity: 0.92; }

.lp-btn-primary {
	background-image: linear-gradient( 90deg, var(--lp-primary), var(--lp-primary-light) );
	background-size: 200% 100%;
	color: #fff;
	border: none;
	animation: lp-gradient-x 4s ease-in-out infinite alternate;
}

@keyframes lp-gradient-x {
	from { background-position: 0% 50%; }
	to { background-position: 100% 50%; }
}

.lp-btn-secondary {
	background: transparent;
	color: var(--lp-text);
	border: 1px solid var(--lp-border);
}

.lp-btn-accent {
	background-image: linear-gradient( 90deg, var(--lp-secondary), var(--lp-secondary-light) );
	background-size: 200% 100%;
	color: #14151a;
	border: none;
	animation: lp-gradient-x 4s ease-in-out infinite alternate;
}

/* ---------- Header ---------- */
.lp-header {
	position: relative;
	z-index: 20;
	padding: 18px 0;
	background: var(--lp-bg);
	border-bottom: 1px solid var(--lp-border);
}

.lp-header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}

.lp-logo {
	display: flex;
	align-items: center;
	justify-self: start;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--lp-text);
}

.lp-logo img { max-height: 40px; width: auto; }

.lp-nav { display: flex; align-items: center; justify-self: center; gap: 28px; }

.lp-nav a {
	font-size: 0.92rem;
	color: var(--lp-muted);
	transition: color 0.15s ease;
}

.lp-nav a:hover { color: var(--lp-primary); }

.lp-header-cta {
	justify-self: end;
	padding: 10px 22px;
	font-size: 0.88rem;
}

@media (max-width: 780px) {
	.lp-nav { display: none; }
}

/* ---------- Hero section ---------- */
.lp-hero {
	position: relative;
	min-height: calc(100vh - var(--lp-header-h));
	min-height: calc(100svh - var(--lp-header-h));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #14151a;
	background-image: linear-gradient(135deg, #14151a, var(--lp-primary));
	background-size: cover;
	background-position: center;
}

.lp-hero-overlay {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(90deg, rgba(8, 9, 12, 0.72) 0%, rgba(8, 9, 12, 0.4) 45%, rgba(8, 9, 12, 0.05) 72%),
		linear-gradient(to top, rgba(8, 9, 12, 0.75), rgba(8, 9, 12, 0) 42%);
	pointer-events: none;
}

.lp-hero-body {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.lp-hero-content {
	padding: 64px 0 36px;
	max-width: 640px;
}

.lp-hero-title {
	color: #fff;
	font-size: clamp(2.25rem, 5vw, 4rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 0 0 20px;
}

.lp-hero-highlight {
	position: relative;
	display: inline-block;
}

.lp-hero-highlight::after {
	content: "";
	position: absolute;
	inset: -0.14em -0.3em -0.2em;
	border: 3px solid var(--lp-primary);
	border-radius: 50% 50% 48% 52% / 58% 44% 56% 42%;
	transform: rotate(-3deg);
	pointer-events: none;
}

.lp-hero-subtitle {
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.1rem;
	line-height: 1.6;
	margin: 0 0 32px;
	max-width: 480px;
}

.lp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 24px;
}

.lp-hero-actions .lp-btn {
	gap: 8px;
}

.lp-hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 560px;
}

.lp-hero-tag {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	font-size: 0.85rem;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lp-hero-tag:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.85);
}

.lp-hero-logos {
	margin-top: auto;
	padding: 28px 0 32px;
}

.lp-hero-logos-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(20px, 4vw, 48px);
}

.lp-hero-logos-inner img {
	height: 22px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	filter: brightness(0) invert(1);
	opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
	.lp-btn-primary,
	.lp-btn-accent { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	:root { --lp-header-h: 70px; }
}

@media (max-width: 640px) {
	:root { --lp-header-h: 64px; }

	.lp-hero-content { padding: 40px 0 28px; }

	.lp-hero-actions .lp-btn { width: 100%; justify-content: center; }

	.lp-hero-logos-inner img { height: 18px; }
}
