/*
Theme Name: Coroa de Flores
Theme URI: https://coroadeflorescampinas.net.br
Author: Coroa de Flores
Author URI: https://coroadeflorescampinas.net.br
Description: Tema WordPress clássico, leve e acessível para catálogo digital de coroas de flores, com atendimento centralizado via WhatsApp. Sem carrinho, sem checkout, sem WooCommerce — o catálogo é a funcionalidade principal.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coroa-de-flores
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root {
	/* Paleta */
	--cf-lavanda: #A9A0AE;
	--cf-champagne: #D5C8B7;
	--cf-creme: #F3EEE6;
	--cf-offwhite: #FCFAF6;
	--cf-bege: #DED7CD;
	--cf-cinza: #77736E;
	--cf-grafite: #46434A;
	--cf-branco: #FFFFFF;

	/* Papéis semânticos */
	--cf-bg: var(--cf-offwhite);
	--cf-bg-alt: var(--cf-creme);
	--cf-surface: var(--cf-branco);
	--cf-border: var(--cf-bege);
	--cf-text: var(--cf-grafite);
	--cf-text-muted: var(--cf-cinza);
	--cf-accent: var(--cf-lavanda);
	--cf-accent-soft: var(--cf-champagne);
	--cf-cta-bg: var(--cf-grafite);
	--cf-cta-bg-hover: #322f35;
	--cf-cta-text: var(--cf-offwhite);
	--cf-focus: #6c6275;

	/* Tipografia */
	--cf-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--cf-font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Escala tipográfica */
	--cf-fs-xs: 0.8125rem;
	--cf-fs-sm: 0.9375rem;
	--cf-fs-base: 1.0625rem;
	--cf-fs-md: 1.25rem;
	--cf-fs-lg: 1.75rem;
	--cf-fs-xl: 2.5rem;
	--cf-fs-xxl: 3.4rem;

	/* Espaçamento */
	--cf-space-1: 0.5rem;
	--cf-space-2: 1rem;
	--cf-space-3: 1.5rem;
	--cf-space-4: 2.5rem;
	--cf-space-5: 4rem;
	--cf-space-6: 6.5rem;

	/* Layout */
	--cf-radius-sm: 3px;
	--cf-radius-md: 6px;
	--cf-max-width: 1220px;
	--cf-shadow-soft: 0 8px 24px -16px rgba(70, 67, 74, 0.28);
}

/* =========================================================
   1. RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cf-bg);
	color: var(--cf-text);
	font-family: var(--cf-font-body);
	font-size: var(--cf-fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
figure { margin: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Foco visível — acessibilidade */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--cf-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	background: var(--cf-grafite);
	color: var(--cf-offwhite);
	padding: 0.75rem 1.25rem;
	z-index: 10000;
	border-radius: var(--cf-radius-sm);
	transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* =========================================================
   2. TIPOGRAFIA
   ========================================================= */
h1, h2, h3, h4 {
	font-family: var(--cf-font-display);
	font-weight: 500;
	line-height: 1.18;
	color: var(--cf-grafite);
	margin: 0 0 0.6em;
	letter-spacing: -0.01em;
}
h1 { font-size: var(--cf-fs-xxl); font-weight: 480; }
h2 { font-size: var(--cf-fs-xl); }
h3 { font-size: var(--cf-fs-lg); }
h4 { font-size: var(--cf-fs-md); }
p { margin: 0 0 1.1em; max-width: 62ch; }
.cf-lede { font-size: var(--cf-fs-md); color: var(--cf-text-muted); max-width: 46ch; }

.cf-section-heading { max-width: 640px; margin-bottom: var(--cf-space-4); }
.cf-section-heading h2 { margin-bottom: 0.4em; }
.cf-section-heading p { margin: 0; color: var(--cf-text-muted); }
.cf-section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }

/* =========================================================
   3. LAYOUT UTILITÁRIO
   ========================================================= */
.cf-container {
	width: 100%;
	max-width: var(--cf-max-width);
	margin: 0 auto;
	padding: 0 var(--cf-space-3);
}
.cf-section { padding: var(--cf-space-6) 0; }
.cf-section--alt { background: var(--cf-bg-alt); }
.cf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 782px) {
	:root {
		--cf-fs-xxl: 2.3rem;
		--cf-fs-xl: 1.85rem;
		--cf-fs-lg: 1.4rem;
		--cf-space-6: 3.5rem;
	}
	.cf-container { padding: 0 var(--cf-space-2); }
}

/* =========================================================
   4. BOTÕES
   ========================================================= */
.cf-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0.85em 1.6em;
	border-radius: var(--cf-radius-sm);
	font-size: var(--cf-fs-sm);
	font-weight: 600;
	border: 1px solid transparent;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
	line-height: 1.2;
	white-space: normal;
}
.cf-btn:hover { transform: translateY(-1px); }
.cf-btn:active { transform: translateY(0); }

.cf-btn--whatsapp {
	background: var(--cf-cta-bg);
	color: var(--cf-cta-text);
}
.cf-btn--whatsapp:hover { background: var(--cf-cta-bg-hover); color: var(--cf-cta-text); }
.cf-btn--whatsapp svg { width: 1.15em; height: 1.15em; flex: none; }

.cf-btn--ghost {
	background: transparent;
	color: var(--cf-grafite);
	border-color: var(--cf-grafite);
}
.cf-btn--ghost:hover { background: var(--cf-grafite); color: var(--cf-offwhite); }

.cf-btn--soft {
	background: var(--cf-accent-soft);
	color: var(--cf-grafite);
}
.cf-btn--soft:hover { background: #c7b7a1; }

.cf-btn--block { width: 100%; justify-content: center; }
.cf-btn--sm { padding: 0.6em 1.1em; font-size: var(--cf-fs-xs); }

.cf-link {
	display: inline-block;
	color: var(--cf-grafite);
	font-weight: 600;
	border-bottom: 1px solid var(--cf-border);
	padding-bottom: 0.1em;
	transition: border-color 0.18s ease, color 0.18s ease;
}
.cf-link:hover { border-color: var(--cf-grafite); }

/* =========================================================
   5. HEADER
   ========================================================= */
.cf-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(252, 250, 246, 0.92);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--cf-border);
}
.cf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--cf-space-3);
	padding: 1.1rem 0;
}
.cf-brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--cf-font-display); font-size: 1.35rem; color: var(--cf-grafite); }
.cf-brand img { max-height: 46px; width: auto; }
.cf-brand span { font-weight: 500; }

.cf-nav { display: flex; align-items: center; gap: var(--cf-space-4); }
.cf-nav ul { display: flex; gap: var(--cf-space-3); align-items: center; }
.cf-nav a {
	font-size: var(--cf-fs-sm);
	font-weight: 500;
	color: var(--cf-text);
	padding: 0.4em 0.1em;
	border-bottom: 1px solid transparent;
	transition: border-color 0.18s ease, color 0.18s ease;
}
.cf-nav a:hover, .cf-nav .current-menu-item > a { color: var(--cf-grafite); border-color: var(--cf-accent); }

.cf-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.cf-menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--cf-border);
	border-radius: var(--cf-radius-sm);
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
}
.cf-menu-toggle span, .cf-menu-toggle::before, .cf-menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; background: var(--cf-grafite); position: relative; }
.cf-menu-toggle::before { position: absolute; transform: translateY(-6px); }
.cf-menu-toggle::after { position: absolute; transform: translateY(6px); }

@media (max-width: 900px) {
	.cf-menu-toggle { display: inline-flex; }
	.cf-nav { position: fixed; inset: 0 0 0 30%; background: var(--cf-offwhite); flex-direction: column; align-items: flex-start; padding: 5.5rem var(--cf-space-3) var(--cf-space-3); transform: translateX(100%); transition: transform 0.25s ease; box-shadow: -12px 0 30px -20px rgba(0,0,0,0.3); }
	.cf-nav.is-open { transform: translateX(0); }
	.cf-nav ul { flex-direction: column; align-items: flex-start; gap: var(--cf-space-2); width: 100%; }
	.cf-nav a { font-size: var(--cf-fs-md); display: block; }
	.cf-header__actions .cf-btn span.cf-btn-label-full { display: none; }
}

/* =========================================================
   6. HERO
   ========================================================= */
.cf-hero { position: relative; overflow: hidden; padding: var(--cf-space-6) 0; }
.cf-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--cf-space-5); align-items: center; }
.cf-hero__eyebrow { color: var(--cf-text-muted); font-size: var(--cf-fs-sm); margin-bottom: 1rem; }
.cf-hero h1 { margin-bottom: 0.5em; }
.cf-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: var(--cf-space-3); }
.cf-hero__figure {
	position: relative;
	border-radius: 50% 46% 52% 48% / 55% 48% 52% 45%;
	overflow: hidden;
	aspect-ratio: 4/5;
	background: var(--cf-bg-alt);
	box-shadow: var(--cf-shadow-soft);
}
.cf-hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.cf-hero__figure--empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--cf-text-muted); font-size: var(--cf-fs-sm); text-align: center; padding: 2rem; }

@media (max-width: 900px) {
	.cf-hero__grid { grid-template-columns: 1fr; }
	.cf-hero__figure { order: -1; aspect-ratio: 5/4; border-radius: 38% 62% 60% 40% / 46% 40% 60% 54%; }
}

/* =========================================================
   7. COMO FUNCIONA
   ========================================================= */
.cf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--cf-space-3); }
.cf-step { padding: var(--cf-space-3); border-top: 2px solid var(--cf-border); }
.cf-step__num { font-family: var(--cf-font-display); font-size: 1.6rem; color: var(--cf-accent); margin-bottom: 0.5rem; display: block; }
.cf-step h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.cf-step p { color: var(--cf-text-muted); font-size: var(--cf-fs-sm); margin: 0; }
@media (max-width: 900px) { .cf-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cf-steps { grid-template-columns: 1fr; } }

/* =========================================================
   8. ATENDIMENTO / ÓBITO
   ========================================================= */
.cf-callout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--cf-space-4); align-items: center; background: var(--cf-surface); border: 1px solid var(--cf-border); border-radius: var(--cf-radius-md); padding: var(--cf-space-4); }
.cf-callout h2 { margin-bottom: 0.4em; }
.cf-callout p { color: var(--cf-text-muted); margin-bottom: 1.3em; }
.cf-callout__actions { display: flex; }
.cf-callout--obito { background: var(--cf-bg-alt); border-color: var(--cf-accent-soft); }
@media (max-width: 780px) { .cf-callout { grid-template-columns: 1fr; text-align: left; } }

/* =========================================================
   9. DIFERENCIAIS
   ========================================================= */
.cf-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--cf-space-3); }
.cf-features--2col { grid-template-columns: repeat(2, 1fr); }
.cf-feature { padding: var(--cf-space-3) 0; border-top: 1px solid var(--cf-border); }
.cf-feature h3 { font-size: 1.05rem; }
.cf-feature p { color: var(--cf-text-muted); font-size: var(--cf-fs-sm); margin: 0; }
@media (max-width: 780px) { .cf-features, .cf-features--2col { grid-template-columns: 1fr; } }

/* =========================================================
   10. ÁREA DE ATENDIMENTO
   ========================================================= */
.cf-area__list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.cf-area__chip { border: 1px solid var(--cf-border); background: var(--cf-surface); padding: 0.5em 1em; border-radius: 999px; font-size: var(--cf-fs-xs); color: var(--cf-text-muted); }

/* =========================================================
   11. FAQ
   ========================================================= */
.cf-faq { max-width: 780px; }
.cf-faq-item { border-bottom: 1px solid var(--cf-border); }
.cf-faq-item__q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: none;
	border: none;
	text-align: left;
	padding: 1.25rem 0;
	font-family: var(--cf-font-display);
	font-size: 1.1rem;
	color: var(--cf-grafite);
}
.cf-faq-item__icon { flex: none; width: 20px; height: 20px; position: relative; }
.cf-faq-item__icon::before, .cf-faq-item__icon::after { content: ""; position: absolute; background: var(--cf-grafite); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cf-faq-item__icon::before { width: 14px; height: 2px; }
.cf-faq-item__icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.cf-faq-item[data-open="true"] .cf-faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.cf-faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.cf-faq-item__a p { color: var(--cf-text-muted); padding-bottom: 1.25rem; }

/* =========================================================
   12. CONTATO
   ========================================================= */
.cf-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cf-space-4); }
.cf-contact__list { display: grid; gap: 1rem; }
.cf-contact__item { display: flex; gap: 0.9rem; border-top: 1px solid var(--cf-border); padding-top: 1rem; }
.cf-contact__item strong { display: block; font-size: var(--cf-fs-xs); text-transform: none; color: var(--cf-text-muted); font-weight: 600; margin-bottom: 0.2em; }
.cf-contact__map { border-radius: var(--cf-radius-md); overflow: hidden; border: 1px solid var(--cf-border); min-height: 280px; }
.cf-contact__map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }
@media (max-width: 900px) { .cf-contact { grid-template-columns: 1fr; } }

/* =========================================================
   13. FOOTER
   ========================================================= */
.cf-footer { background: var(--cf-grafite); color: var(--cf-bg-alt); padding: var(--cf-space-5) 0 var(--cf-space-3); margin-top: var(--cf-space-6); }
.cf-footer a { color: var(--cf-bg-alt); }
.cf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--cf-space-4); }
.cf-footer__brand { font-family: var(--cf-font-display); font-size: 1.3rem; margin-bottom: 0.6rem; color: var(--cf-offwhite); }
.cf-footer p { color: #cfc9c4; font-size: var(--cf-fs-sm); }
.cf-footer h4 { color: var(--cf-offwhite); font-size: var(--cf-fs-sm); text-transform: none; font-family: var(--cf-font-body); font-weight: 600; margin-bottom: 0.9rem; }
.cf-footer ul li { margin-bottom: 0.55rem; }
.cf-footer ul a { font-size: var(--cf-fs-sm); color: #d8d3ce; opacity: 0.9; }
.cf-footer ul a:hover { opacity: 1; text-decoration: underline; }
.cf-footer__social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.cf-footer__social a { width: 38px; height: 38px; border: 1px solid #5c5960; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cf-footer__social svg { width: 16px; height: 16px; }
.cf-footer__bottom { border-top: 1px solid #5c5960; margin-top: var(--cf-space-4); padding-top: 1.3rem; font-size: var(--cf-fs-xs); color: #b7b2ac; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 900px) { .cf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cf-footer__grid { grid-template-columns: 1fr; } }

/* =========================================================
   14. BOTÃO FLUTUANTE WHATSAPP
   ========================================================= */
.cf-float-whatsapp {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 600;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--cf-cta-bg);
	color: var(--cf-cta-text);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 26px -10px rgba(0,0,0,0.45);
	transition: transform 0.18s ease, background-color 0.18s ease;
}
.cf-float-whatsapp:hover { transform: translateY(-2px); background: var(--cf-cta-bg-hover); }
.cf-float-whatsapp svg { width: 26px; height: 26px; }

/* =========================================================
   15. PÁGINA / CONTEÚDO PADRÃO WP
   ========================================================= */
.cf-page-header { padding: var(--cf-space-5) 0 var(--cf-space-4); border-bottom: 1px solid var(--cf-border); }
.cf-breadcrumb { font-size: var(--cf-fs-xs); color: var(--cf-text-muted); margin-bottom: 0.8rem; }
.cf-breadcrumb a { color: var(--cf-text-muted); border-bottom: 1px solid transparent; }
.cf-breadcrumb a:hover { border-color: var(--cf-text-muted); }
.cf-entry-content { max-width: 74ch; }
.cf-entry-content img { border-radius: var(--cf-radius-md); }
.cf-404 { padding: var(--cf-space-6) 0; text-align: center; }

/* Comment form (fallback for page/single templates) */
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
	width: 100%; padding: 0.75em 1em; border: 1px solid var(--cf-border); border-radius: var(--cf-radius-sm); margin-bottom: 1em; background: var(--cf-surface); color: var(--cf-text);
}
