/*
Theme Name: Mottif
Description: Temă copil pentru Twenty Twenty-Five, făcută pentru magazinul Mottif — genți din mărgele lucrate manual.
Template: twentytwentyfive
Version: 1.0.3
Requires at least: 6.7
Text Domain: mottif
*/

/* ---------- Antet ---------- */
.mottif-topbar {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-align: center;
	padding: 10px 16px;
	margin: 0;
}
.mottif-topbar a { color: inherit; }

.mottif-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	padding: 22px var(--wp--style--root--padding-right, 32px) 22px var(--wp--style--root--padding-left, 32px);
}
.mottif-header > * { margin-block: 0 !important; }
.mottif-header .mottif-brand { text-align: center; line-height: 1; }
.mottif-header .wp-block-site-title { font-size: 40px; margin: 0; padding-left: 0.22em; }
.mottif-header .wp-block-site-title a { text-decoration: none; }
.mottif-header .mottif-byline {
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-size: 17px;
	color: var(--wp--preset--color--accent-4);
	margin: 4px 0 0;
}
.mottif-header .mottif-icons { justify-content: flex-end; gap: 4px; }
.mottif-header .wp-block-navigation a { text-decoration: none; }

@media (max-width: 781px) {
	.mottif-header { grid-template-columns: auto 1fr auto; padding: 14px 16px; }
	.mottif-header .wp-block-site-title { font-size: 28px; }
	.mottif-header .mottif-byline { font-size: 14px; }
}

/* ---------- Secțiuni pagina de start ---------- */
.mottif-home > * + * { margin-block-start: 96px; }
.mottif-home > .mottif-features { margin-block-start: 56px; }

.mottif-eyebrow {
	font-size: 13px !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 12px !important;
}

/* Hero */
.mottif-hero { border-radius: 4px; overflow: hidden; }
.mottif-hero .wp-block-cover__background,
.mottif-tile .wp-block-cover__background {
	background: linear-gradient(to top, rgba(20, 18, 18, 0.8), rgba(20, 18, 18, 0)) !important;
	opacity: 1 !important;
}
.mottif-hero .wp-block-cover__inner-container { max-width: 640px !important; padding: 24px; }
.mottif-hero h1 { color: var(--wp--preset--color--base); margin: 0 0 28px; }
.mottif-hero p, .mottif-tile p { color: var(--wp--preset--color--base); }

.wp-block-button.is-style-mottif-light .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-mottif-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--accent-1);
}

/* Avantaje: bandă evidențiată, cu iconițe — elementul de diferențiere */
.mottif-features {
	gap: 0 !important;
	background: var(--wp--preset--color--accent-2);
	border-radius: 4px;
	padding: 8px !important;
}
.mottif-features .wp-block-column {
	padding: 28px 28px 30px;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	column-gap: 18px;
	align-content: start;
}
.mottif-features .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--accent-6); }
.mottif-features .wp-block-column::before {
	content: "";
	grid-row: span 2;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: var(--wp--preset--color--accent-1);
	-webkit-mask: var(--mottif-icon) center / 26px no-repeat, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: var(--mottif-icon) center / 26px no-repeat exclude, linear-gradient(#000 0 0);
}
.mottif-features .wp-block-column:nth-child(1) { --mottif-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 11V6a2 2 0 0 0-4 0v5M14 10V4a2 2 0 0 0-4 0v6M10 10.5V6a2 2 0 0 0-4 0v8'/%3E%3Cpath d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/%3E%3C/svg%3E"); }
.mottif-features .wp-block-column:nth-child(2) { --mottif-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z'/%3E%3Cpath d='M11 3 8 9l4 12 4-12-3-6M2 9h20'/%3E%3C/svg%3E"); }
.mottif-features .wp-block-column:nth-child(3) { --mottif-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2M15 18H9M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); }
.mottif-features h3 { margin: 4px 0 6px; font-size: 26px !important; line-height: 1.15; }
.mottif-features p { font-size: 15px; color: #4F4542; margin: 0; line-height: 1.5; }

/* Al doilea buton din banner: discret, pe fundal închis */
.wp-block-button.is-style-mottif-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--base);
	border: 1px solid rgba(247, 242, 238, .7);
}
.wp-block-button.is-style-mottif-ghost .wp-block-button__link:hover {
	background: rgba(247, 242, 238, .12);
	color: var(--wp--preset--color--base);
}

/* Butonul de căutare din antet: doar iconiță */
.mottif-icons .wp-block-search__button {
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
	border: 0 !important;
	padding: 0 !important;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mottif-icons .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.mottif-icons .wp-block-search__inside-wrapper { border: 0; padding: 0; background: transparent; }

/* Titlu de secțiune + „Vezi toate" */
.mottif-section-head { justify-content: space-between; align-items: flex-end; margin-bottom: 32px !important; }
.mottif-section-head h2 { margin: 0; }
.mottif-section-head a { font-size: 14px; font-weight: 600; }

/* Grila de produse */
.mottif-products .wc-block-product-template { gap: 40px 24px !important; }
.mottif-products .wc-block-components-product-image {
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--wp--preset--color--accent-5);
	border-radius: 2px;
	margin-bottom: 14px !important;
}
.mottif-products .wc-block-components-product-image img {
	width: 100%; height: 100% !important; object-fit: cover;
	transition: transform 0.5s ease;
}
.mottif-products li:hover .wc-block-components-product-image img { transform: scale(1.04); }
.mottif-products .wp-block-post-title {
	font-size: 23px !important;
	font-weight: 600;
	margin: 0 0 4px !important;
}
.mottif-products .wp-block-post-title a { text-decoration: none; }
.mottif-products .wc-block-components-product-sale-badge { border-radius: 0; }
.mottif-products .wp-block-woocommerce-product-button { margin-top: 10px; }
.mottif-products .wp-block-woocommerce-product-button .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--contrast);
	padding: 10px 18px;
	font-size: 14px;
}
.mottif-products .wp-block-woocommerce-product-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Plăci promo */
.mottif-tiles { gap: 24px !important; }
.mottif-tile { border-radius: 2px; overflow: hidden; height: 100%; }
.mottif-tile .wp-block-cover__inner-container { padding: 12px; }
.mottif-tile h3 { color: var(--wp--preset--color--base); font-size: 40px; font-weight: 500; margin: 6px 0 14px; }
.mottif-tile a { color: var(--wp--preset--color--base); font-weight: 600; font-size: 14px; }

/* Povestea */
.mottif-story { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.mottif-story .wp-block-columns { gap: 64px !important; align-items: center; }
.mottif-story h2 { color: var(--wp--preset--color--base); font-size: clamp(2.4rem, 4vw, 3.25rem); margin: 0 0 28px; }
.mottif-story p { color: #DCD3CD; font-size: 17px; line-height: 1.7; }
.mottif-story .mottif-eyebrow { color: var(--wp--preset--color--accent-3); }
.mottif-story .mottif-signature { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 30px; color: var(--wp--preset--color--base); }
/* Portret 3:4 în stânga, două pătrate unul sub altul în dreapta */
.mottif-story .mottif-gallery { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.mottif-story .mottif-gallery > * { margin: 0 !important; }
.mottif-story .mottif-gallery figure:first-child { grid-row: span 2; }
.mottif-story .mottif-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.mottif-story .mottif-gallery figure:first-child img { aspect-ratio: auto; height: 100%; object-position: 50% 40%; }

/* Recenzii */
.mottif-reviews { gap: 24px !important; }
.mottif-review {
	background: var(--wp--preset--color--white);
	padding: 36px !important;
	border: 0 !important;
	border-radius: 2px;
	margin: 0;
	height: 100%;
	box-sizing: border-box;
}
.mottif-review p { font-family: var(--wp--preset--font-family--display); font-size: 26px; line-height: 1.35; }
.mottif-review cite { font-size: 14px; font-style: normal; color: var(--wp--preset--color--accent-4); }
.mottif-seen img { width: 100%; height: 220px; object-fit: cover; border-radius: 2px; }

/* Comandă personalizată */
.mottif-cta {
	background: var(--wp--preset--color--accent-2);
	padding: 56px !important;
	border-radius: 2px;
}
.mottif-cta h2 { font-size: 40px; margin: 0 0 10px; }
.mottif-cta p { color: #5A4F4C; margin: 0; }
.mottif-cta .wp-block-button__link { background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--white); }
.mottif-cta .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); }

/* ---------- Pagina Povestea ---------- */
.mottif-lead {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	line-height: 1.3;
}
.mottif-story-hero { max-width: 560px !important; margin-inline: auto !important; }
/* Povestea: text în stânga, portretul Oxanei în dreapta */
.mottif-intro { gap: 56px !important; align-items: flex-start !important; margin-block-start: 8px !important; }
.mottif-intro > .wp-block-column:first-child > :first-child { margin-top: 0; }
main:has(.mottif-intro) .wp-block-post-title { max-width: var(--wp--style--global--wide-size) !important; }
.mottif-intro-photo .mottif-story-hero { max-width: none !important; margin: 0 !important; }
.mottif-intro-photo .mottif-story-hero img { aspect-ratio: 2 / 3; object-position: 50% 45%; }
@media (max-width: 781px) {
	.mottif-intro { gap: 28px !important; }
	.mottif-intro-photo { order: -1; }
	.mottif-intro-photo .mottif-story-hero { max-width: 440px !important; margin-inline: auto !important; }
	.mottif-intro-photo .mottif-story-hero img { aspect-ratio: 3 / 4; }
}
.mottif-story-hero img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 40%; border-radius: 2px; }
.entry-content .mottif-story, .wp-block-post-content .mottif-story { margin-block: 80px; }
.mottif-signature { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 30px; }
.mottif-inspo { gap: 32px !important; }
.mottif-inspo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.mottif-inspo h3 { margin: 18px 0 6px; }
.mottif-inspo p { font-size: 15px; color: var(--wp--preset--color--accent-4); }
.mottif-inspo p a { color: var(--wp--preset--color--contrast); font-weight: 600; white-space: nowrap; }
.mottif-seen-row { gap: 48px !important; margin-block: 80px !important; }
.mottif-seen-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.mottif-seen-row ul { padding-left: 1.1em; line-height: 1.9; }

/* ---------- Descrieri de produs ---------- */
.mottif-specs { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 24px; }
.mottif-specs th, .mottif-specs td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.mottif-specs th { width: 34%; font-weight: 600; }

/* ---------- Subsol ---------- */
.mottif-footer { border-top: 1px solid var(--wp--preset--color--accent-6); font-size: 14px; line-height: 1.9; margin-top: 112px; }
.mottif-footer .wp-block-columns { gap: 40px !important; }
.mottif-footer h4 { font-family: var(--wp--preset--font-family--body); font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.mottif-footer p { margin: 0; }
.mottif-footer a { text-decoration: none; display: block; }
.mottif-footer .mottif-footer-brand { font-family: var(--wp--preset--font-family--display); font-size: 30px; font-weight: 600; letter-spacing: 0.2em; }
.mottif-footer .mottif-muted { color: var(--wp--preset--color--accent-4); }
/* Pe telefon: linkuri din subsol ușor de atins (minim 44 px) */
@media (max-width: 781px) {
	.mottif-footer p a { display: flex; align-items: center; min-height: 44px; line-height: 1.3; }
	.mottif-footer .wp-block-columns { gap: 28px !important; }
}
/* Rânduri de citit de cel mult ~75 de caractere și în coloana de text din Povestea */
.mottif-intro > .wp-block-column:first-child > * { max-width: 640px; }

@media (max-width: 781px) {
	.mottif-home > * + * { margin-block-start: 64px; }
	/* Pe telefon: poza deasupra, textul și butoanele dedesubt, pe fundal închis */
	.mottif-hero {
		min-height: 0 !important;
		padding: 0 !important;
		display: block !important;
		background: var(--wp--preset--color--contrast);
	}
	.mottif-hero .wp-block-cover__image-background {
		position: relative !important;
		display: block;
		width: 100%;
		height: 300px !important;
		object-fit: cover;
	}
	.mottif-hero .wp-block-cover__background { display: none !important; }
	.mottif-hero .wp-block-cover__inner-container {
		position: relative;
		box-sizing: border-box;
		width: 100% !important;
		max-width: none !important;
		padding: 24px 20px 28px;
	}
	.mottif-hero h1 { font-size: 2.1rem !important; margin-bottom: 20px; }
	.mottif-hero .wp-block-buttons { gap: 10px; }
	.mottif-hero .wp-block-button, .mottif-hero .wp-block-button__link { width: 100%; text-align: center; }
	.mottif-features .wp-block-column { padding: 20px 18px; }
	.mottif-features .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--wp--preset--color--accent-6); }
	.mottif-tile { min-height: 360px !important; }
	.mottif-cta { padding: 32px 20px !important; }
}

/* ---------- Pagina „În curând" (WooCommerce Coming soon, templates/coming-soon.html) ---------- */
.mottif-cs {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: 48px clamp(16px, 6vw, 96px);
	box-sizing: border-box;
	background: var(--wp--preset--color--base) url(assets/coming-soon.webp) 70% center / cover no-repeat;
	color: var(--wp--preset--color--contrast);
}
.mottif-cs::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(247, 242, 238, 0.82) 0%, rgba(247, 242, 238, 0.55) 40%, rgba(247, 242, 238, 0) 65%);
	pointer-events: none;
}
.mottif-cs-panel { position: relative; max-width: 520px; }
.mottif-cs-panel > * { margin: 0; }
.mottif-cs-brand { margin-bottom: 40px; }
.mottif-cs-brand .wp-block-site-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 40px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1;
	margin: 0;
}
.mottif-cs-brand .mottif-byline { margin: 4px 0 0; font-size: 18px; }
.mottif-cs-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-1);
	margin-bottom: 12px;
}
.mottif-cs-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(38px, 5vw, 60px);
	font-weight: 500;
	line-height: 1.08;
	margin-bottom: 18px;
}
.mottif-cs-lead { font-size: 18px; line-height: 1.6; max-width: 440px; margin-bottom: 32px; }
.mottif-cs-countdown { display: flex; gap: 10px; margin-bottom: 32px; }
.mottif-cs-countdown div {
	min-width: 72px;
	padding: 12px 8px 10px;
	text-align: center;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(126, 42, 71, 0.18);
	border-radius: 4px;
}
.mottif-cs-countdown span {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 34px;
	font-weight: 600;
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
	font-variant-numeric: tabular-nums;
}
.mottif-cs-countdown small { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.mottif-cs-contact { font-size: 15px; }
.mottif-cs-contact a { color: var(--wp--preset--color--accent-1); text-underline-offset: 3px; }

@media (max-width: 781px) {
	.mottif-cs { align-items: flex-start; padding-top: 40px; background-position: 72% center; }
	.mottif-cs::before {
		background: linear-gradient(180deg, rgba(247, 242, 238, 0.94) 0%, rgba(247, 242, 238, 0.86) 55%, rgba(247, 242, 238, 0.2) 85%);
	}
	.mottif-cs-brand { margin-bottom: 28px; }
	.mottif-cs-brand .wp-block-site-title { font-size: 30px; }
	.mottif-cs-lead { font-size: 16px; margin-bottom: 24px; }
	.mottif-cs-countdown { gap: 8px; }
	.mottif-cs-countdown div { min-width: 0; flex: 1; padding: 10px 4px 8px; }
	.mottif-cs-countdown span { font-size: 28px; }
}

/* ---------- Date legale (mu-plugin mottif-legal) ---------- */
mark.mottif-todo { background: #fff3a3; color: var(--wp--preset--color--contrast); padding: 0 0.2em; border-radius: 2px; }

.mottif-footer-legal { border-top: 1px solid var(--wp--preset--color--accent-6); padding: 24px 0 32px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; font-size: 13px; }
.mottif-footer .mottif-footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; grid-column: 1; }
.mottif-footer .mottif-footer-links a { display: inline; }
.mottif-footer .mottif-footer-company { grid-column: 1; line-height: 1.6; }
.mottif-footer .mottif-footer-sal { grid-column: 2; grid-row: 1 / span 2; }
.mottif-footer .mottif-footer-sal img { display: block; height: 50px; width: auto; }

@media (max-width: 781px) {
	.mottif-footer-legal { grid-template-columns: 1fr; }
	.mottif-footer .mottif-footer-sal { grid-column: 1; grid-row: auto; }
	.mottif-footer .mottif-footer-links a { display: flex; min-height: 44px; align-items: center; }
	.mottif-footer .mottif-footer-links { gap: 0 20px; }
}

/* Formularul de retragere */
.mottif-wd { max-width: var(--wp--style--global--content-size, 640px) !important; margin: 24px auto; }
.mottif-wd p { margin: 0 0 18px; }
.mottif-wd label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.mottif-wd label span { font-weight: 400; color: var(--wp--preset--color--accent-4); }
.mottif-wd input[type="text"], .mottif-wd input[type="email"], .mottif-wd select, .mottif-wd textarea {
	width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 16px;
	border: 1px solid var(--wp--preset--color--accent-6); border-radius: 4px; background: var(--wp--preset--color--white, #fff);
}
.mottif-wd input:focus, .mottif-wd select:focus, .mottif-wd textarea:focus { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 1px; }
.mottif-wd small { display: block; margin-top: 4px; font-size: 13px; color: var(--wp--preset--color--accent-4); }
.mottif-wd .mottif-wd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mottif-wd button { min-height: 48px; padding: 12px 28px; }
.mottif-wd-ok, .mottif-wd-error { padding: 16px 20px; border-radius: 4px; margin: 24px 0; }
.mottif-wd-ok { background: #eef5ee; border: 1px solid #b7d3b7; }
.mottif-wd-error { background: #fbeeee; border: 1px solid #e3b5b5; }
