/*
Theme Name: Liliales
Theme URI: https://www.instagram.com/selo.liliales/
Author: Selo Liliales
Description: Tema de blocos (Full Site Editing) do Selo Liliales, recortado do layout do Figma (Desktop 1600, Tablet 768, Mobile 390).
Version: 0.5.123
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: liliales
*/

/* Componentes visuais que o theme.json não cobre */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

.is-style-eyebrow, .eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--wp--preset--color--pink-700);
}
.has-green-800-background-color .eyebrow, .has-green-800-background-color .is-style-eyebrow { color: var(--wp--preset--color--green-300); }
.has-pink-100-background-color .eyebrow, .has-surface-mist-background-color .eyebrow { color: var(--wp--preset--color--pink-700); }

.lil-section { padding-top: var(--wp--preset--spacing--section); padding-bottom: var(--wp--preset--spacing--section); }

/* Header */
.lil-header { position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--surface-default); }
.lil-header .wp-block-navigation a { font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
.lil-header .wp-block-navigation a:hover { color: var(--wp--preset--color--pink-700); }
.home .lil-header--transparent { position: absolute; left: 0; right: 0; background: transparent; }

.lil-header .wp-block-buttons, .lil-header .wp-block-button__link { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 1100px) { .lil-header .wp-block-buttons { display: none; } }

/* Botões */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: currentColor; border: 2px solid currentColor; }
.wp-block-button__link { transition: background-color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }

/* Cards: publicação, escritora, blog */
.lil-card { background: var(--wp--preset--color--surface-raised); border: 1px solid var(--wp--preset--color--surface-soft); border-radius: var(--wp--custom--radius--md); overflow: hidden; height: 100%; transition: box-shadow .25s ease, border-color .25s ease; }
.lil-card:hover { box-shadow: 0 16px 40px rgba(35, 77, 53, .12); border-color: var(--wp--preset--color--pink-500); }
.lil-card img { width: 100%; height: auto; display: block; }
.lil-card .wp-block-post-title a, .lil-card h3 a { text-decoration: none; color: inherit; }

/* Números */
.lil-stats .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--green-300); }
@media (max-width: 781px) { .lil-stats .wp-block-column + .wp-block-column { border-left: 0; } }

/* Faixa rolante */
.lil-marquee { overflow: hidden; white-space: nowrap; }
.lil-marquee__track { display: inline-flex; gap: 3rem; animation: lil-marquee 14s linear infinite; }
@keyframes lil-marquee { to { transform: translateX(-50%); } }

/* Textura de lírios (disco decorativo) */
.lil-texture { position: relative; overflow: hidden; }
.lil-texture::before { content: ""; position: absolute; width: min(60vw, 720px); aspect-ratio: 1; right: -8%; top: 50%; transform: translateY(-50%); border-radius: 50%; background: url("assets/images/texture-lilies.jpg") center/cover; mix-blend-mode: multiply; opacity: .35; pointer-events: none; }
.lil-texture > * { position: relative; }

/* WhatsApp fixo */
.lil-whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 60; }
.lil-whatsapp a { display: inline-flex; align-items: center; gap: .5rem; background: var(--wp--preset--color--whatsapp); color: #fff; font-weight: 700; padding: .85rem 1.25rem; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* Rodapé */
.lil-footer a { color: inherit; text-decoration: none; }
.lil-footer a:hover { text-decoration: underline; }

/* Foco visível */
:focus-visible { outline: 3px solid var(--wp--preset--color--green-700); outline-offset: 2px; }

/* ---------- Refino de layout (Figma) ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
main.wp-block-group > *, main.wp-block-group > .wp-block-group { margin-block-start: 0 !important; }
.wp-block-cover.lil-hero { align-items: flex-end; padding-bottom: 96px; }
.lil-hero .wp-block-cover__inner-container { max-width: 1440px; }
.lil-hero h1 { max-width: 760px; }

/* Header transparente sobre o hero da Home, sólido ao rolar */
.home .lil-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; transition: background-color .25s ease, box-shadow .25s ease; }
.home .lil-header .wp-block-navigation a, .home .lil-header .wp-block-navigation-item__content { color: var(--wp--preset--color--surface-raised); }
.lil-header { position: sticky; top: 0; }
.lil-header.is-scrolled { position: fixed; left: 0; right: 0; top: 0; background: var(--wp--preset--color--surface-default); box-shadow: 0 6px 24px rgba(35,77,53,.1); }
.home .lil-header.is-scrolled .wp-block-navigation a, .home .lil-header.is-scrolled .wp-block-navigation-item__content { color: var(--wp--preset--color--green-800); }
.admin-bar .lil-header.is-scrolled { top: 32px; }

/* Entrada das seções */
.lil-reveal { opacity: 0; transform: translateY(24px); transition: opacity .4s ease, transform .4s ease; }
.lil-reveal.is-in { opacity: 1; transform: none; }

/* Page hero das listagens */
.lil-page-hero { min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.lil-page-hero .eyebrow { display: none; }
.lil-page-hero a { color: inherit; text-decoration: none; }
.lil-page-hero a:hover { text-decoration: underline; }

/* Cartões */
.lil-card .wp-block-post-featured-image img { object-fit: cover; }
.lil-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.lil-card .wp-block-post-featured-image { overflow: hidden; margin: 0; }
.lil-card .wp-block-post-featured-image img { transition: transform .4s ease; }
.wp-block-details { border: 1px solid var(--wp--preset--color--surface-soft); border-radius: var(--wp--custom--radius--md); padding: 1rem 1.25rem; background: var(--wp--preset--color--surface-raised); margin-bottom: .75rem; }
.wp-block-details summary { cursor: pointer; font-weight: 700; }

@media (max-width: 781px) {
	.lil-hero { min-height: 640px !important; }
	.home .lil-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--surface-raised); }
}

/* Hero igual ao Figma */
.lil-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(61,59,73,.88) 0%, rgba(61,59,73,.55) 45%, rgba(61,59,73,0) 80%); pointer-events: none; }
.lil-hero .wp-block-cover__inner-container { position: relative; z-index: 2; width: 100%; }
.lil-chip { display: inline-block; background: #fff; color: var(--wp--preset--color--pink-700); font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 999px; }
.lil-accent { color: var(--wp--preset--color--pink-400); font-style: italic; }
.lil-hero h1 { font-size: clamp(2.5rem, 4.4vw, 4.5rem); }
.lil-hero__lile { position: absolute; right: 6%; bottom: -96px; height: 750px; z-index: 1; }
.lil-hero__lile img { height: 100%; width: auto; display: block; animation: lil-float 3.6s ease-in-out infinite; }
@keyframes lil-float { 50% { transform: translateY(-12px); } }
.lil-hero__controls { position: absolute; left: 0; bottom: -40px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: .875rem; }
.lil-hero__arrow { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--wp--preset--color--green-800); display: grid; place-items: center; font-weight: 700; }
.lil-hero__dots { display: inline-flex; gap: 6px; margin-left: 8px; }
.lil-hero__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--green-300); }
.lil-hero__dots i.on { width: 26px; border-radius: 6px; background: var(--wp--preset--color--pink-600); }
@media (max-width: 1100px) { .lil-hero__lile { display: none; } }
.lil-hero { position: relative; }
.lil-hero .wp-block-cover__inner-container { position: static; padding-left: var(--wp--preset--spacing--margin); max-width: 1600px; margin: 0 auto; box-sizing: border-box; }
.lil-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
.lil-hero__lile { right: 8%; bottom: 0; height: 780px; }
.lil-hero__controls { left: var(--wp--preset--spacing--margin); bottom: 48px; }
.wp-block-cover.lil-hero { align-items: center; padding-bottom: 120px; }
