/*
Theme Name: Luz Interior
Description: Tema para terapeuta holística: calmo, rápido e preparado para marcações, mesas radiónicas, tiragens, rituais, meditações e, mais tarde, uma loja (WooCommerce). Funciona em conjunto com o plugin "Terapia Holística – Funcionalidades".
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: luz-interior
*/

:root {
	--th-primary: #6b4a7a;
	--th-primary-dark: #4f3459;
	--th-accent: #b8923f;
	--th-accent-text: #8a6a1f;
	--th-sage: #8aa08a;
	--th-ink: #2d2433;
	--th-muted: #6d6475;
	--th-bg: #fbf7f0;
	--th-bg-soft: #f3ecf5;
	--th-card: #ffffff;
	--th-line: #e6dde9;
	--th-radius: 14px;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--th-bg);
	color: var(--th-ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--th-primary); }
a:hover { color: var(--th-primary-dark); }
:focus-visible { outline: 3px solid var(--th-accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; color: var(--th-ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2rem 0 1rem; }
h3 { font-size: 1.3rem; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.screen-reader-text, .skip-link {
	position: absolute; left: -9999px; top: 0;
}
.skip-link:focus {
	left: 1rem; top: 1rem; z-index: 1000; background: #fff; padding: .6rem 1rem; border-radius: 8px;
}

/* ---------- Cabeçalho ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 247, 240, .94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--th-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.site-branding { display: flex; flex-direction: column; line-height: 1.15; }
.site-title { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.5rem; color: var(--th-primary-dark); text-decoration: none; }
.site-mark { display: inline-flex; width: 42px; height: 42px; flex: none; transition: transform .6s ease; }
.site-mark svg { width: 100%; height: 100%; }
.site-title:hover .site-mark { transform: rotate(-12deg); }
@media (max-width: 480px) { .site-mark { width: 34px; height: 34px; } .site-title { font-size: 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .site-mark { transition: none; } }
.site-tagline { font-size: .82rem; color: var(--th-muted); letter-spacing: .04em; }
.custom-logo { max-height: 56px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; align-items: center; }
.main-nav a { white-space: nowrap; color: var(--th-ink); text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav .current-menu-item > a { border-color: var(--th-accent); color: var(--th-primary-dark); }
.header-cta { display: flex; align-items: center; gap: .8rem; }
.cart-link { color: var(--th-ink); text-decoration: none; font-weight: 600; }

.nav-toggle {
	display: none; background: none; border: 2px solid var(--th-primary); color: var(--th-primary);
	border-radius: 10px; padding: .45rem .8rem; font: inherit; font-weight: 600; cursor: pointer;
}
@media (max-width: 1240px) {
	.nav-toggle { display: inline-block; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--th-bg); border-bottom: 1px solid var(--th-line); padding: 1rem 1.25rem 1.4rem; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: flex-start; gap: .4rem; }
	.header-cta .th-btn { display: none; }
}

/* ---------- Secções ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--th-bg-soft); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.section__head h2 { margin-top: 0; }
.section__head p { color: var(--th-muted); margin: 0; }
.section__more { text-align: center; margin-top: 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--th-accent-text); font-weight: 700; margin: 0 0 .6rem; }

/* Hero */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(circle at 85% 20%, rgba(184, 146, 63, .22), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(138, 160, 138, .28), transparent 45%),
		linear-gradient(160deg, #f6eefa 0%, #fbf7f0 60%);
	padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__text p { font-size: 1.2rem; color: var(--th-muted); max-width: 34ch; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__art { display: flex; justify-content: center; }
.hero__art img { border-radius: 50% 50% var(--th-radius) var(--th-radius); max-height: 460px; width: auto; object-fit: cover; box-shadow: 0 20px 50px rgba(79, 52, 89, .22); }
.hero__mandala { width: min(360px, 80%); color: var(--th-primary); opacity: .55; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__mandala { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 800px) {
	.hero__inner { grid-template-columns: 1fr; gap: 1.5rem; }
	.hero__art { order: -1; }
	.hero__mandala { width: 120px; }
	.hero__art img { max-height: 280px; }
	.hero__actions .th-btn { flex: 1 1 100%; text-align: center; }
}
.hero__help { margin: 1rem 0 0; font-size: .98rem; }
.hero__help a { color: var(--th-primary); font-weight: 600; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 1.6rem 0 0; color: var(--th-muted); font-size: .92rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--th-accent); }

/* Duas formas de consulta */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }
.mode {
	background: var(--th-card); border: 1px solid var(--th-line); border-radius: var(--th-radius);
	padding: 1.8rem; box-shadow: 0 6px 24px rgba(79, 52, 89, .06);
}
.mode h3 { margin: 0 0 .5rem; }
.mode p { color: var(--th-muted); margin: 0 0 1.2rem; }
.mode__icon { color: var(--th-primary); margin-bottom: .6rem; }

/* Sobre */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.about img { border-radius: var(--th-radius); width: 100%; object-fit: cover; box-shadow: 0 14px 36px rgba(79, 52, 89, .18); }
.about__ph { aspect-ratio: 4/5; border-radius: var(--th-radius); background: linear-gradient(160deg, #efe4f3, #f7efe0); display: flex; align-items: center; justify-content: center; color: var(--th-primary); }
.about__ph svg { width: 110px; height: 110px; opacity: .7; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* Faixa final */
.cta-band { background: linear-gradient(135deg, var(--th-primary-dark), var(--th-primary)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #efe6f3; max-width: 52ch; margin: 0 auto 1.5rem; }
.cta-band .th-btn--primary { background: #fff; color: var(--th-primary-dark); }
.cta-band .th-btn--primary:hover { background: var(--th-bg-soft); color: var(--th-primary-dark); }

/* ---------- Páginas e conteúdos ---------- */
.page-header { background: var(--th-bg-soft); padding: clamp(2rem, 5vw, 3.5rem) 0; text-align: center; border-bottom: 1px solid var(--th-line); }
.page-header h1 { margin: 0; }
.page-header p { color: var(--th-muted); margin: .6rem auto 0; max-width: 56ch; }
.entry { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem); }
.entry__thumb { margin: 0 0 2rem; }
.entry__thumb img { border-radius: var(--th-radius); width: 100%; }
.entry__meta { color: var(--th-accent-text); font-weight: 700; margin: 0 0 1rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.2rem; }
.entry__cta { margin-top: 2.5rem; padding: 1.6rem; background: var(--th-bg-soft); border-radius: var(--th-radius); text-align: center; }
.entry__cta p { margin: 0 0 1rem; }
.pagination, .nav-links { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-numbers { padding: .45rem .9rem; border: 1px solid var(--th-line); border-radius: 8px; text-decoration: none; background: #fff; }
.page-numbers.current { background: var(--th-primary); color: #fff; border-color: var(--th-primary); }

/* ---------- Rodapé ---------- */
.site-footer { background: #2a2030; color: #d9cfe0; padding: 3rem 0 1.5rem; font-size: .97rem; }
.site-footer a { color: #f1e6c7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.1rem; color: #fff; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.footer-note { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #b9adc2; }

.whatsapp-float {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
	display: flex; align-items: center; gap: .5rem;
	background: #1f8f4e; color: #fff; text-decoration: none; font-weight: 600;
	padding: .75rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.whatsapp-float:hover { background: #17753f; color: #fff; }
.whatsapp-float svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 480px) { .whatsapp-float span { display: none; } .whatsapp-float { padding: .85rem; } }

/* ---------- WooCommerce (para a loja futura) ---------- */
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button {
	background: var(--th-primary) !important; color: #fff !important; border-radius: 999px !important;
	padding: .8em 1.5em !important; font-weight: 600 !important;
}
.woocommerce .button:hover, .woocommerce a.button:hover { background: var(--th-primary-dark) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-head); font-size: 1.15rem; }
.woocommerce .price, .woocommerce div.product p.price { color: var(--th-accent-text); font-weight: 700; }
.woocommerce span.onsale { background: var(--th-accent); }

.entry-content--wide > p { max-width: 70ch; }
.footer-legal { margin: .6rem 0 0; font-size: .85rem; }
.footer-legal a { color: inherit; opacity: .85; }
.site-title__txt, .header-cta .th-btn { white-space: nowrap; }
.site-branding { margin-right: .75rem; }
.site-title__stack { display: flex; flex-direction: column; line-height: 1.1; }
.site-title__stack .site-tagline { margin-top: .15rem; font-family: var(--font-body); font-size: .74rem; letter-spacing: .06em; color: var(--th-muted); white-space: nowrap; }
@media (max-width: 480px) { .site-title__stack .site-tagline { font-size: .68rem; } }
