/*
Theme Name:   Alice Hariel
Description:  Tema do site alicehariel.com.br — tarô e orientação espiritual.
Author:       Soyuz Digital Studio
Template:     hello-elementor
Version:      2.1.0
Text Domain:  alice-hariel
*/

/* ── Tokens (design v2: vermelho e vinho) ─────────────────────────────────── */
:root {
	--ah-abyss: #12030a;
	--ah-wine-900: #22050f;
	--ah-wine-800: #350817;
	--ah-wine-700: #4f0c22;
	--ah-blood: #8a0e2a;
	--ah-crimson: #c3112f;
	--ah-scarlet: #ff3352;
	--ah-gold: #d9ac5b;
	--ah-gold-soft: #f0d29a;
	--ah-cream: #f7e9d7;
	--ah-rose: #efb8c0;

	--ah-serif: "DM Serif Display", Georgia, serif;
	--ah-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	/* --ah-ico-* (máscaras SVG) são definidos em functions.php com URL absoluta. */
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }

body {
	margin: 0;
	background: var(--ah-abyss);
	color: var(--ah-cream);
	font-family: var(--ah-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 3px; }
::selection { background: var(--ah-scarlet); color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Movimento ───────────────────────────────────────────────────────────── */
@keyframes ah-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-8%, 6%) scale(1.15); } }
@keyframes ah-drift-b { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(10%, -8%) scale(.9); } }
@keyframes ah-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ah-shimmer { to { stroke-dashoffset: -400; } }
@keyframes ah-spin { to { transform: rotate(360deg); } }
@keyframes ah-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes ah-ticker { to { transform: translateX(-50%); } }
@keyframes ah-live { 0% { box-shadow: 0 0 0 0 rgb(255 51 82 / 70%); } 70%, 100% { box-shadow: 0 0 0 10px rgb(255 51 82 / 0%); } }

/* O retrato é centralizado com translate; a flutuação precisa preservar esse deslocamento. */
@keyframes ah-float-center { 0%, 100% { translate: -50% 0; } 50% { translate: -50% -14px; } }

/* Luz que segue o cursor */
.ah-cursor-light {
	position: fixed; z-index: 1; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
	border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s; will-change: transform;
	background: radial-gradient(circle, rgb(255 80 100 / 18%), rgb(255 51 82 / 6%) 40%, transparent 70%);
	mix-blend-mode: screen;
}
body:hover .ah-cursor-light { opacity: 1; }
@media (max-width: 600px), (hover: none) { .ah-cursor-light { display: none; } }

/* ── Faixa do topo ───────────────────────────────────────────────────────── */
.ah-topbar {
	background: var(--ah-crimson); color: #fff; text-align: center; padding: 9px 12px;
	font-family: var(--ah-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; line-height: 1.5;
}
.ah-topbar p { margin: 0; }

/* ── Cabeçalho ───────────────────────────────────────────────────────────── */
.ah-header { position: absolute; z-index: 20; left: 0; right: 0; transition: background .3s, box-shadow .3s, transform .3s; }
.ah-header.is-stuck {
	position: fixed; top: 0; background: rgb(18 3 10 / 88%);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 rgb(217 172 91 / 25%); animation: ah-header-in .35s ease-out;
}
@keyframes ah-header-in { from { transform: translateY(-100%); } to { transform: none; } }
.admin-bar .ah-header.is-stuck { top: 32px; }
@media (max-width: 782px) { .admin-bar .ah-header.is-stuck { top: 46px; } }

.ah-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	width: min(1220px, 100% - 48px); height: 92px; margin: 0 auto;
}
.ah-header.is-stuck .ah-header__inner { height: 72px; }

.ah-brand { display: flex; align-items: center; gap: 14px; color: var(--ah-cream); text-decoration: none; }
.ah-brand__sun { display: inline-flex; width: 46px; height: 46px; color: var(--ah-gold); flex: none; }
.ah-brand__sun svg { width: 100%; height: 100%; }
.ah-brand__sun .rays { transform-box: view-box; transform-origin: 50% 50%; animation: ah-spin 40s linear infinite; }
.ah-brand__name { display: block; font-family: var(--ah-serif); font-size: 22px; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.ah-brand__name small {
	display: block; margin-top: 6px; font-family: var(--ah-sans); font-size: 11px;
	letter-spacing: .3em; text-transform: uppercase; color: var(--ah-rose);
}

.ah-nav { display: flex; align-items: center; gap: 32px; }
.ah-nav__list { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.ah-nav__list a { color: rgb(247 233 215 / 82%); text-decoration: none; font-size: 15px; transition: color .2s; }
.ah-nav__list a:hover { color: var(--ah-gold-soft); }

.ah-cta {
	display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 20px; border-radius: 999px;
	background: linear-gradient(135deg, var(--ah-scarlet), var(--ah-crimson) 55%, var(--ah-blood));
	color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-decoration: none; white-space: nowrap;
	box-shadow: 0 14px 34px -12px rgb(255 51 82 / 65%), inset 0 1px 0 rgb(255 255 255 / 25%);
}
.ah-cta svg { width: 18px; height: 18px; }
.ah-cta:hover { color: #fff; box-shadow: 0 18px 40px -12px rgb(255 51 82 / 85%); }

.ah-nav-toggle { display: none; }

@media (max-width: 1000px) {
	.ah-nav-toggle {
		display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%;
		border: 1px solid rgb(217 172 91 / 55%); background: transparent; color: var(--ah-gold-soft); cursor: pointer; order: 3;
	}
	.ah-nav-toggle__bar, .ah-nav-toggle__bar::before, .ah-nav-toggle__bar::after {
		display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s;
	}
	.ah-nav-toggle__bar { position: relative; }
	.ah-nav-toggle__bar::before, .ah-nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
	.ah-nav-toggle__bar::before { top: -6px; }
	.ah-nav-toggle__bar::after { top: 6px; }
	.ah-nav-toggle[aria-expanded="true"] .ah-nav-toggle__bar { background: transparent; }
	.ah-nav-toggle[aria-expanded="true"] .ah-nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
	.ah-nav-toggle[aria-expanded="true"] .ah-nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

	.ah-nav { gap: 12px; }
	.ah-nav__list {
		position: absolute; top: 100%; left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 10px 0;
		border-radius: 18px; background: rgb(18 3 10 / 96%); border: 1px solid rgb(217 172 91 / 30%);
		box-shadow: 0 30px 60px -20px #000; opacity: 0; visibility: hidden; translate: 0 -8px; transition: .25s;
	}
	.ah-nav__list a { display: block; padding: 14px 24px; font-size: 17px; }
	.ah-header.is-open .ah-nav__list { opacity: 1; visibility: visible; translate: 0 0; }
}
@media (max-width: 600px) {
	.ah-header__inner { width: calc(100% - 40px); height: 80px; }
	.ah-brand__name small { display: none; }
	.ah-brand__sun { width: 40px; height: 40px; }
	.ah-brand__name { font-size: 19px; }
	.ah-topbar { font-size: 10px; letter-spacing: .14em; }
}

/* ── Rodapé ──────────────────────────────────────────────────────────────── */
.ah-footer {
	background: var(--ah-abyss); padding: 70px 0 40px; border-top: 1px solid rgb(217 172 91 / 25%);
	font-size: 14px; color: rgb(247 233 215 / 55%);
}
.ah-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; width: min(1220px, 100% - 48px); margin: 0 auto; }
.ah-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ah-footer__links a { display: inline-flex; align-items: center; gap: 10px; color: var(--ah-cream); text-decoration: none; }
.ah-footer__links a:hover { color: var(--ah-gold-soft); }
.ah-footer__links svg { width: 18px; height: 18px; color: var(--ah-gold); }
.ah-footer__note { grid-column: 1 / -1; margin: 0; padding-top: 28px; border-top: 1px solid rgb(247 233 215 / 10%); font-size: 12.5px; }
@media (max-width: 600px) { .ah-footer__inner { grid-template-columns: 1fr; width: calc(100% - 40px); } }

/* ── WhatsApp flutuante ──────────────────────────────────────────────────── */
.ah-wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 30; display: grid; place-items: center;
	width: 62px; height: 62px; border-radius: 50%; background: #1fa855; color: #fff;
	box-shadow: 0 14px 30px -8px rgb(0 0 0 / 60%); transition: transform .25s;
}
.ah-wa-float:hover { transform: scale(1.06); color: #fff; }
.ah-wa-float svg { width: 32px; height: 32px; }

/* ── Movimento reduzido ──────────────────────────────────────────────────── */
/* ── Lightbox dos feedbacks (montado pelo site.js) ───────── */
.ah-lb { position: fixed; inset: 0; z-index: 9999; display: grid; grid-template-columns: 56px auto 56px; align-items: center; justify-content: center; gap: 28px;
	padding: 56px 24px 56px; background: rgb(18 3 10 / 90%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ah-lb.is-open { opacity: 1; visibility: visible; }
.ah-lb__frame { position: relative; margin: 0; height: min(82vh, 860px); aspect-ratio: var(--ar, 9 / 16); max-width: calc(100vw - 240px); border-radius: 22px; padding: 7px;
	background: linear-gradient(160deg, var(--ah-gold-soft), var(--ah-gold) 50%, #8a6a2c); box-shadow: 0 40px 90px -20px #000, 0 0 80px -10px rgb(255 51 82 / 35%);
	scale: .92; transition: scale .45s cubic-bezier(.2, .8, .2, 1); }
.ah-lb.is-open .ah-lb__frame { scale: 1; }
.ah-lb__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; background: var(--ah-wine-900); }
.ah-lb__cap { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: space-between; font: 600 12px/1 var(--ah-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ah-gold-soft); }
.ah-lb__count { color: rgb(247 233 215 / 60%); }
.ah-lb__btn { width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 1px solid rgb(217 172 91 / 55%); background: rgb(53 8 23 / 70%); color: var(--ah-gold-soft);
	display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.ah-lb__btn:hover { background: var(--ah-crimson); border-color: var(--ah-crimson); color: var(--ah-cream); }
.ah-lb__btn:focus { outline: none; }
.ah-lb__btn:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 3px; }
.ah-lb__btn svg { width: 22px; height: 22px; }
.ah-lb__close { position: absolute; top: 22px; right: 26px; width: 48px; height: 48px; }
body.ah-lb-open { overflow: hidden; }
@media (max-width: 600px) {
	.ah-lb { grid-template-columns: 1fr; padding: 70px 16px 100px; }
	.ah-lb__frame { height: auto; width: min(100%, calc((100vh - 200px) * var(--ar, 9 / 16))); max-width: 100%; justify-self: center; }
	.ah-lb__prev, .ah-lb__next { position: absolute; bottom: 24px; }
	.ah-lb__prev { left: calc(50% - 70px); }
	.ah-lb__next { right: calc(50% - 70px); }
	.ah-lb__close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.ah-cursor-light { display: none; }
}
