/*
Theme Name: Flavia
Theme URI: https://example.com/flavia
Author: Flavia Iurean Pasca
Description: Lightweight theme that reproduces the Flavia Iurean Pasca site migrated from Wix. Used together with the Flavia Migration plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavia
*/

:root {
	--flavia-accent: #da6c23;
	--flavia-accent-dark: #c05f1d;
	--flavia-teal: #79bec4;
	--flavia-teal-dark: #0a5661;
	--flavia-mist: #d5e1df;
	--flavia-fog: #f0f2f2;
	--flavia-ink: #424746;
	--flavia-text: #637d85;
	--flavia-heading: #3d4d52;
	--flavia-font-display: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
	--flavia-font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--flavia-font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.65;
	color: var(--flavia-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--flavia-teal-dark); }

.entry-content > * { max-width: 980px; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- header */

.site-header {
	background: #fff;
	border-bottom: 1px solid #ececec;
	position: relative;
	z-index: 20;
}

.site-header__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-brand {
	font-family: var(--flavia-font-display);
	font-weight: 400;
	font-size: 19px;
	color: var(--flavia-heading);
	text-decoration: none;
	letter-spacing: .01em;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; flex-wrap: wrap; }

.site-nav a {
	font-family: var(--flavia-font-display);
	font-weight: 300;
	font-size: 15px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--flavia-text);
	text-decoration: none;
	padding: 6px 0;
	display: inline-block;
	border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--flavia-accent); border-bottom-color: var(--flavia-accent); }

.site-nav .menu-item-has-children { position: relative; }
.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 200px;
	padding: 8px 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	display: none;
	flex-direction: column;
	gap: 0;
}
.site-nav li:hover > .sub-menu { display: flex; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid #dcdcdc;
	border-radius: 4px;
	padding: 7px 12px;
	font-size: 20px;
	line-height: 1;
	color: var(--flavia-heading);
	cursor: pointer;
}

/* ---------------------------------------------------------------- blocks */

.entry-content { padding-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--flavia-font-display);
	font-weight: 300;
	color: var(--flavia-heading);
	line-height: 1.25;
}

.flavia-h1 { color: var(--flavia-accent); font-size: 46px; margin: 0 0 18px; }
.flavia-h2 { color: var(--flavia-accent); font-size: 38px; margin: 0 0 28px; }
.flavia-h3 { font-size: 21px; margin: 0 0 14px; color: var(--flavia-text); font-weight: 400; }
.flavia-h4 { font-size: 20px; margin: 0 0 8px; color: var(--flavia-heading); font-weight: 400; }
.flavia-h2-sub { display: block; font-size: 24px; color: #fff; margin-top: 6px; }
.flavia-h5-light { color: #fff; font-size: 20px; font-weight: 400; }

.flavia-lead { font-size: 22px; font-weight: 300; color: var(--flavia-text); margin: 0 0 22px; }
.flavia-intro { font-size: 18px; color: var(--flavia-heading); margin: 0 0 26px; }
.flavia-small { font-size: 14px; line-height: 1.7; margin: 0 0 14px; }

/* hero ------------------------------------------------------------------ */

.flavia-hero { padding: 0; }
.entry-content > .flavia-hero { max-width: none; }

.flavia-hero__cols { margin: 0 !important; align-items: stretch !important; gap: 0 !important; }

/*
 * Zero-out padding only on the media column so the photo is edge-to-edge.
 * It must NOT match the text column (.flavia-hero__body), which needs its
 * own generous padding; a blanket `.wp-block-column { padding: 0 }` rule
 * wins on specificity over `.flavia-hero__body` and silently removes the
 * text's right padding, pushing content to the viewport edge.
 */
.flavia-hero__cols > .flavia-hero__media { padding: 0 !important; display: flex; }

.flavia-hero__img { margin: 0 !important; width: 100%; display: flex; }
.flavia-hero__img img {
	width: 100%;
	height: 100%;
	min-height: 640px;
	object-fit: cover;
	object-position: center 15%;
	display: block;
}
.flavia-hero__img .wp-block-image__inner-container,
.flavia-hero__img > img { height: 100%; }

.flavia-hero__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 76px 86px 76px 72px !important;
	background: #fff;
}

/* service cards --------------------------------------------------------- */

.entry-content > h2.flavia-h2,
.entry-content > h1.flavia-h1 { margin-top: 62px; }

/*
 * Titlurile de nivel superior folosesc o coloană de citire îngustă
 * (max-width 760px, vezi .entry-content > h2 de mai jos), deci trebuie
 * centrate. Dar .flavia-h2 { margin: 0 0 28px } apare după
 * .entry-content > * { margin-left: auto; margin-right: auto } și are
 * aceeași specificitate, deci scurtătura câștigă și lasă titlul
 * lipit de marginea stângă. Restabilim centrul aici.
 */
.entry-content > h2.flavia-h2,
.entry-content > h3.flavia-h3 {
	margin-left: auto;
	margin-right: auto;
}

/*
 * The service section is a full-bleed band with an inner 940px grid,
 * so the mist background has to live on an outer wrapper and the heading
 * needs to be pulled inside it. WordPress 6.6 renders group blocks as
 *   <div class="... wp-block-group__inner-container">children</div>
 * and forces display:flow-root via .is-layout-flow, hence the specificity.
 */
.entry-content .flavia-band {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	background: var(--flavia-mist);
	padding: 56px 0 64px;
}

.entry-content .flavia-band > .wp-block-group__inner-container {
	display: block;
	width: 100%;
}

.entry-content .flavia-cards {
	max-width: 940px;
	margin: 0 auto;
	background: transparent;
	padding: 0;
}

.entry-content .flavia-cards > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	align-items: stretch;
	width: 100%;
}

.entry-content .flavia-card {
	background: #fff;
	padding: 40px 26px 46px;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.entry-content .flavia-card > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
}

.flavia-cards--priced { margin-top: 34px; }

.flavia-list { font-size: 14px; line-height: 1.75; color: var(--flavia-text); margin: 0; }
.flavia-price { font-family: var(--flavia-font-display); font-size: 22px; color: var(--flavia-text); margin: 22px 0 0; }
.flavia-price--left { text-align: left; }
.flavia-package { font-size: 16px; line-height: 1.9; margin: 6px 0 0; }

.flavia-btn {
	display: inline-block;
	background: var(--flavia-accent);
	color: #fff !important;
	text-decoration: none;
	font-family: var(--flavia-font-display);
	font-weight: 400;
	font-size: 14px;
	letter-spacing: .02em;
	padding: 13px 26px;
	border: 0;
	border-radius: 0;
	margin-top: 26px;
	transition: background .18s ease;
}
.flavia-btn:hover { background: var(--flavia-accent-dark); }

/* mist / teal bands ----------------------------------------------------- */

.entry-content > .flavia-section-filler { display: block; }

.flavia-quote-band {
	background: var(--flavia-teal);
	color: #fff;
	text-align: center;
	padding: 56px 24px 60px;
	margin: 0 0 0;
	max-width: none;
}
.flavia-quote { color: #fff; font-size: 32px; margin: 0 0 10px; }
.flavia-quote-author { color: #fff; font-size: 14px; margin: 0; }

.flavia-steps-band {
	background: var(--flavia-teal);
	color: #fff;
	text-align: center;
	padding: 60px 24px 66px;
	max-width: none;
}
.flavia-steps { margin: 34px 0 0 !important; }
.flavia-step { color: #fff; font-size: 16px; line-height: 1.5; margin: 0; }
.flavia-step__icon { display: block; font-size: 34px; line-height: 1; margin-bottom: 14px; color: #fff; }

.flavia-media-band {
	position: relative;
	color: #fff;
	text-align: center;
	padding: 96px 24px 100px;
	max-width: none;
	isolation: isolate;
}
.flavia-media-band::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--flavia-teal-dark) url('assets/img/hero-video-poster.jpg') center/cover no-repeat;
	z-index: -2;
}
.flavia-media-band::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(6, 46, 55, .5);
	z-index: -1;
}
.flavia-on-media { color: #fff; font-size: 15px; line-height: 1.8; max-width: 720px; margin: 0 auto 18px; }

.flavia-testimonial { background: var(--flavia-fog); padding: 56px 24px 60px; max-width: none; }
.flavia-testimonial__quote { font-size: 17px; line-height: 1.8; color: var(--flavia-heading); max-width: 760px; margin: 0 auto 14px; }
.flavia-testimonial__author { font-size: 15px; color: var(--flavia-text); margin: 0; }

.flavia-need { background: var(--flavia-mist); padding: 56px 24px 62px; max-width: none; }
.flavia-need .flavia-small { max-width: 780px; margin-left: auto; margin-right: auto; }

/* metatron -------------------------------------------------------------- */

/*
 * The Metatron and hero bands sit on top of photography, so they need a dark
 * scrim for the white text to stay readable.
 */
.flavia-metatron {
	position: relative;
	color: #fff;
	padding: 74px 24px 80px;
	max-width: none;
	isolation: isolate;
}
.flavia-metatron::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--flavia-teal-dark) url('assets/img/metatron-bg.jpg') center/cover no-repeat;
	z-index: -2;
}
.flavia-metatron::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(6, 46, 55, .62);
	z-index: -1;
}
.flavia-metatron .flavia-h2-light { color: #fff; font-size: 40px; margin: 0 0 14px; }
.flavia-metatron .flavia-on-media { max-width: 760px; margin: 0 0 26px; }
.flavia-metatron__panel {
	background: #fff;
	color: var(--flavia-text);
	max-width: 880px;
	margin: 34px auto 0;
	padding: 44px 40px;
	text-align: left;
}
.flavia-metatron__panel .flavia-h4 { font-size: 24px; margin-bottom: 12px; }
.flavia-metatron__img { margin: 30px 0 0 !important; }
.flavia-metatron__img img { width: 100%; }

.flavia-benefits { background: var(--flavia-teal); color: #fff; padding: 62px 24px 68px; max-width: none; }
.flavia-benefits .flavia-h2-light { color: #fff; font-size: 38px; }
.flavia-benefits .flavia-on-media { margin: 0; }

/* columns --------------------------------------------------------------- */

/* margin orizontal auto: fără el, grila FAQ (max-width 980px moștenit
   de la .entry-content > *) rămâne ancorată în stânga paginii. */
.entry-content .flavia-cols { margin: 0 auto 20px !important; }
.entry-content .flavia-cols > .wp-block-column { padding: 0 22px !important; }

.entry-content .flavia-contact-cols { margin: 0 auto !important; align-items: center; }
.entry-content .flavia-contact-cols > .wp-block-column:first-child { padding-left: 0; }
.entry-content .flavia-contact-cols > .wp-block-column:last-child { padding-right: 0; }
.entry-content .flavia-contact-cols figure { margin: 0; }

/* contact --------------------------------------------------------------- */

.flavia-phone { font-size: 17px; color: var(--flavia-heading); margin: 0 0 26px; }
.flavia-phone a { color: var(--flavia-heading); text-decoration: none; border-bottom: 1px solid var(--flavia-teal); }

.flavia-form { background: var(--flavia-fog); padding: 30px; max-width: 620px; }
.flavia-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.flavia-form label { display: block; font-size: 13px; color: var(--flavia-heading); margin-bottom: 6px; }
.flavia-form .field { margin-bottom: 16px; }
.flavia-form input[type="text"],
.flavia-form input[type="email"],
.flavia-form input[type="tel"],
.flavia-form select,
.flavia-form textarea {
	width: 100%;
	border: 1px solid #d9dcdc;
	background: #fff;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--flavia-heading);
}
.flavia-form textarea { min-height: 130px; resize: vertical; }
.flavia-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23637d85' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}
.flavia-form input::placeholder { color: #a3adae; }
.flavia-form input:focus, .flavia-form select:focus, .flavia-form textarea:focus { outline: 2px solid var(--flavia-teal); outline-offset: 0; }
.flavia-form__hint { font-size: 13px; line-height: 1.5; color: var(--flavia-text); margin: 6px 0 0; }
.flavia-form .req { color: var(--flavia-accent); }
.flavia-form .hp { position: absolute; left: -9999px; }
.flavia-form__msg { margin: 0 0 18px; padding: 12px 14px; font-size: 15px; }
.flavia-form__msg--ok { background: #e4f2ef; color: #145b53; }
.flavia-form__msg--err { background: #fbe9e3; color: #9c3d13; }

/* ---------------------------------------------------------------- blog */

.site-main { padding-bottom: 70px; }

.page-header { max-width: 980px; margin: 0 auto; padding: 54px 24px 6px; }
.page-header h1 { color: var(--flavia-accent); font-size: 38px; margin: 0 0 10px; }

.blog-grid {
	max-width: 980px;
	margin: 30px auto 0;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 34px;
}

.blog-card { background: #fff; display: flex; flex-direction: column; }
.blog-card__media { margin: 0 0 16px; background: var(--flavia-fog); }
.blog-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.blog-card__title { font-size: 21px; margin: 0 0 8px; }
.blog-card__title a { color: var(--flavia-heading); text-decoration: none; }
.blog-card__title a:hover { color: var(--flavia-accent); }
.blog-card__meta { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #9aa8ab; margin: 0 0 10px; }
.blog-card__excerpt { font-size: 15px; margin: 0 0 14px; }
.blog-card .flavia-btn { margin-top: auto; align-self: flex-start; }

.single .entry-header { max-width: 940px; margin: 0 auto; padding: 48px 24px 0; }
.single .entry-header h1 { color: var(--flavia-accent); font-size: 40px; margin: 0 0 10px; }
.single .entry-meta { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #9aa8ab; margin: 0 0 26px; }
.single .flavia-post-media { margin: 0 auto 30px; max-width: 940px; }
.single .flavia-post-media img { width: 100%; }
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > h2, .entry-content > h3 { max-width: 760px; }
.entry-content > ul, .entry-content > ol { padding-left: 22px; }
.entry-content > ul li, .entry-content > ol li { margin-bottom: 8px; }
.flavia-post-outro { font-weight: 400; color: var(--flavia-heading); margin-top: 30px; }

.post-nav { max-width: 760px; margin: 40px auto 0; padding: 0 24px; display: flex; justify-content: space-between; gap: 20px; font-size: 15px; }

/* ---------------------------------------------------------------- misc */

.flavia-cta { text-align: center; padding: 40px 24px 0; max-width: none; }

.site-footer { background: var(--flavia-ink); color: #cfd6d6; margin-top: 70px; }
.site-footer__inner { max-width: 980px; margin: 0 auto; padding: 26px 24px; text-align: center; font-size: 13px; }
.site-footer__inner p { margin: 0; }
.site-footer__nap { margin-bottom: 6px !important; color: #e3e8e8; }
.site-footer a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(207, 214, 214, .45); }

.flavia-404 { text-align: center; padding: 80px 24px; }

@media (max-width: 900px) {
	/*
	 * Block library column markup carries a fixed flex-basis in an inline
	 * style, so the column itself has to be reset before the stack applies.
	 */
	.flavia-hero__cols,
	.entry-content .flavia-cols,
	.entry-content .flavia-contact-cols,
	.flavia-benefits .wp-block-columns { flex-wrap: wrap; }

	.flavia-hero__cols > .wp-block-column,
	.entry-content .flavia-cols > .wp-block-column,
	.entry-content .flavia-contact-cols > .wp-block-column,
	.flavia-benefits .wp-block-columns > .wp-block-column { flex-basis: 100% !important; width: 100%; }

	.flavia-hero__body { padding: 40px 22px !important; }
	.flavia-hero__img img { min-height: 0; height: auto; aspect-ratio: 4 / 5; object-position: center 20%; }

	.entry-content .flavia-cards { padding: 0 18px; }
	.entry-content .flavia-cards > .wp-block-group__inner-container { grid-template-columns: 1fr; }

	.entry-content > .flavia-hero,
	.entry-content > .flavia-quote-band,
	.entry-content > .flavia-steps-band,
	.entry-content > .flavia-media-band,
	.entry-content > .flavia-testimonial,
	.entry-content > .flavia-need,
	.entry-content > .flavia-metatron,
	.entry-content > .flavia-benefits { padding-left: 22px; padding-right: 22px; }

	.entry-content .flavia-band { padding: 44px 0 52px; }
	.entry-content .flavia-band .flavia-h1,
	.entry-content .flavia-band .flavia-h2 { padding: 0 22px; }

	.flavia-h1 { font-size: 34px; }
	.flavia-h2, .flavia-quote, .flavia-metatron .flavia-h2-light, .flavia-benefits .flavia-h2-light { font-size: 28px; }
	.flavia-form__row { grid-template-columns: 1fr; }
	.flavia-metatron__panel { padding: 28px 22px; }
	.flavia-steps > .wp-block-column { flex-basis: 50% !important; }
}

@media (max-width: 780px) {
	.site-header__inner { flex-wrap: wrap; padding: 14px 18px; }
	.nav-toggle { display: block; order: 3; width: auto; align-self: stretch; margin-top: 12px; }
	.site-nav { order: 4; width: 100%; display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav a { display: block; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
	.site-nav .sub-menu { position: static; display: flex; box-shadow: none; padding-left: 14px; }
	.blog-grid { grid-template-columns: 1fr; }
}
