/*
Theme Name: iXpr Grow & Glow
Theme URI: https://ixpr.ro
Author: iXpr Development & Consulting
Author URI: https://ixpr.ro
Description: Temă custom pentru iXpr — agenție de content marketing, SEO și GEO. Zero dependențe de framework-uri sau page builder. Integrată cu RankMath și schema markup custom existent.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: ixpr-grow-glow
*/

/* =========================================================
 * DESIGN TOKENS — paleta extrasă exact din logo (sigla-mica2.png)
 * mov #5f3a74, portocaliu #e77817
 * ======================================================= */
:root {
	/* Brand */
	--ixpr-mov:          #5f3a74;
	--ixpr-mov-deschis:  #7c5499;
	--ixpr-mov-intens:   #432a54;
	--ixpr-portocaliu:   #e77817;
	--ixpr-portocaliu-deschis: #f29a4d;

	/* Roluri semantice — folosim brandul, nu denumiri hardcodate */
	--accent-primary:    var(--ixpr-mov);
	--accent-secondary:  var(--ixpr-portocaliu);
	--accent-soft:       #f3ece8; /* fundal cald, derivat din portocaliu, foarte deschis */
	--accent-mov-soft:   #ece6f0; /* fundal derivat din mov, foarte deschis */

	/* Text & fundal */
	--ink:               #251a2e;
	--ink-muted:         #5c5266;
	--ink-light:         #8a8294;
	--body-bg:           #fdfcfb;
	--band:              #f7f4f7;
	--card-bg:           #ffffff;
	--border-soft:       #e7e1eb;

	/* Tipografie */
	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--text-base: 1.0625rem;
	--leading: 1.7;

	/* Spațiere & formă */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.75rem;
	--space-lg: 3rem;
	--space-xl: 5.5rem;
	--radius-sm: 6px;
	--radius-md: 14px;
	--radius-lg: 24px;
	--shadow-card: 0 4px 24px rgba(37, 26, 46, 0.06);
	--shadow-card-hover: 0 10px 32px rgba(37, 26, 46, 0.10);
	--max-width: 1180px;
	--max-width-text: 720px;
}

/* =========================================================
 * RESET MINIMAL
 * ======================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading);
	color: var(--ink);
	background: var(--body-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: none; }
a:hover { color: var(--accent-secondary); }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.18;
	color: var(--ink);
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.2em; }
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--ixpr-mov); color: #fff; padding: 0.6em 1em;
	border-radius: var(--radius-sm);
}
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); }

/* =========================================================
 * LAYOUT
 * ======================================================= */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--space-md);
}
.container--text {
	max-width: var(--max-width-text);
	margin: 0 auto;
	padding: 0 var(--space-md);
}
.section {
	padding: var(--space-xl) 0;
}
.section--band {
	background: var(--band);
}
.section--mov {
	background: var(--ixpr-mov);
	color: #fff;
}
.section--mov h2, .section--mov h3 { color: #fff; }
.eyebrow {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-secondary);
	margin-bottom: var(--space-xs);
}

/* =========================================================
 * HEADER & NAVIGARE
 * ======================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(253, 252, 251, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	padding: 0.85rem var(--space-md);
	max-width: var(--max-width);
	margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; }
.site-logo img { height: 38px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.main-nav ul {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	padding: 0.6rem 0.9rem;
	color: var(--ink);
	font-size: 0.94rem;
	font-weight: 500;
	border-radius: var(--radius-sm);
}
.main-nav a:hover { color: var(--ixpr-mov); background: var(--accent-mov-soft); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a { color: var(--ixpr-mov); font-weight: 600; }

.main-nav .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px; height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-left: 0.4em;
	opacity: 0.6;
	vertical-align: middle;
}
.main-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 280px;
	background: var(--card-bg);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-card-hover);
	padding: 0.5rem;
	margin: 0.4rem 0 0;
	list-style: none;
	z-index: 50;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { padding: 0.6rem 0.75rem; font-weight: 400; }
.main-nav .sub-menu a:hover { background: var(--accent-mov-soft); }

.header-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--ixpr-portocaliu);
	color: #fff !important;
	padding: 0.6rem 1.2rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
}
.header-cta:hover { background: var(--ixpr-mov); }

.nav-toggle {
	display: none;
	background: none; border: none; cursor: pointer;
	padding: 0.5rem;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--ixpr-mov); }

@media (max-width: 880px) {
	.main-nav { display: none; }
	.main-nav.is-open {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--card-bg);
		border-bottom: 1px solid var(--border-soft);
		padding: var(--space-sm);
		box-shadow: var(--shadow-card-hover);
	}
	.main-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav.is-open .sub-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
	.nav-toggle { display: block; }
	.header-cta { display: none; }
}

/* =========================================================
 * HERO
 * ======================================================= */
.hero {
	padding: var(--space-xl) 0 var(--space-lg);
}
.hero__grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--space-lg);
	align-items: center;
}
.hero__title { margin-bottom: var(--space-sm); }
.hero__title em {
	font-style: normal;
	color: var(--ixpr-portocaliu);
}
.hero__lead {
	font-size: 1.15rem;
	color: var(--ink-muted);
	max-width: 46ch;
}
.hero__actions { display: flex; gap: 1rem; margin-top: var(--space-md); flex-wrap: wrap; }
.hero__visual {
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}
@media (max-width: 880px) {
	.hero__grid { grid-template-columns: 1fr; }
}

/* =========================================================
 * BUTOANE
 * ======================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.98rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease;
}
.btn-primary { background: var(--ixpr-mov); color: #fff; }
.btn-primary:hover { background: var(--ixpr-mov-intens); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--ixpr-mov); color: var(--ixpr-mov); }
.btn-secondary:hover { background: var(--accent-mov-soft); color: var(--ixpr-mov); }
.btn-on-mov { background: var(--ixpr-portocaliu); color: #fff; }
.btn-on-mov:hover { background: #fff; color: var(--ixpr-mov); }

/* =========================================================
 * CARDURI — servicii, articole, testimoniale
 * ======================================================= */
.grid {
	display: grid;
	gap: var(--space-md);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
	.grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
	background: var(--card-bg);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	box-shadow: var(--shadow-card);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5rem; }
.card a.card-link {
	display: inline-flex; align-items: center; gap: 0.4rem;
	margin-top: 0.6rem; font-weight: 600; font-size: 0.92rem;
}

.service-icon {
	width: 46px; height: 46px;
	border-radius: var(--radius-sm);
	background: var(--accent-mov-soft);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 0.9rem;
	color: var(--ixpr-mov);
}
.service-icon svg { width: 24px; height: 24px; }

/* =========================================================
 * TESTIMONIALE
 * ======================================================= */
.testimonial {
	background: var(--card-bg);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	border-left: 4px solid var(--ixpr-portocaliu);
	box-shadow: var(--shadow-card);
}
.testimonial blockquote { margin: 0 0 1rem; font-style: italic; color: var(--ink-muted); }
.testimonial cite { display: flex; align-items: center; gap: 0.7rem; font-style: normal; }
.testimonial cite img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial cite .name { font-weight: 600; color: var(--ink); display: block; }
.testimonial cite .role { font-size: 0.85rem; color: var(--ink-light); }

/* =========================================================
 * FAQ — accordion nativ, fără JS
 * ======================================================= */
.faq { max-width: var(--max-width-text); margin: 0 auto; }
.faq details {
	border-bottom: 1px solid var(--border-soft);
	padding: 1.1rem 0;
}
.faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--ink);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: '+';
	font-size: 1.4rem;
	color: var(--ixpr-portocaliu);
	flex-shrink: 0;
	transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { padding-top: 0.8rem; color: var(--ink-muted); }

/* =========================================================
 * ARTICOLE BLOG
 * ======================================================= */
.post-card img { border-radius: var(--radius-md); margin-bottom: 0.9rem; aspect-ratio: 16/10; object-fit: cover; }
.post-card .meta { font-size: 0.82rem; color: var(--ink-light); margin-bottom: 0.3rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--ixpr-mov); }

.single-article {
	max-width: var(--max-width-text);
	margin: 0 auto;
}
.single-article .entry-meta {
	color: var(--ink-light);
	font-size: 0.88rem;
	margin-bottom: var(--space-sm);
}
.single-article img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.single-article h2 { margin-top: 2rem; }
.single-article blockquote {
	border-left: 3px solid var(--ixpr-portocaliu);
	padding-left: 1.2rem;
	color: var(--ink-muted);
	font-style: italic;
	margin: 1.5rem 0;
}

/* =========================================================
 * FORMULAR CONTACT
 * ======================================================= */
.ixpr-form { display: grid; gap: 1rem; }
.ixpr-form label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.3rem; }
.ixpr-form input, .ixpr-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--border-soft);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	background: #fff;
}
.ixpr-form input:focus, .ixpr-form textarea:focus {
	outline: none;
	border-color: var(--ixpr-mov);
}
.ixpr-form .checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--ink-muted); }
.ixpr-form .checkbox-row input { width: auto; margin-top: 0.2rem; }
.form-success { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 1rem; color: var(--ink); }
.form-error { background: #fdeaea; border-radius: var(--radius-sm); padding: 1rem; color: #8a2424; }

/* =========================================================
 * FOOTER
 * ======================================================= */
.site-footer {
	background: var(--ixpr-mov-intens);
	color: #e9e4ee;
	padding: var(--space-lg) 0 var(--space-md);
	font-size: 0.92rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ixpr-portocaliu-deschis); }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
}
.footer-grid h4 {
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-brand img { height: 34px; margin-bottom: 0.8rem; }
.footer-brand p { color: #cdc3d6; max-width: 32ch; }
.footer-sal img { height: 50px; width: 250px; margin-top: 0.6rem; background: #fff; border-radius: 4px; padding: 2px; }
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: var(--space-sm);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.8rem;
	font-size: 0.85rem;
	color: #b6abc1;
}
.footer-bottom a { color: #cdc3d6; }
@media (max-width: 880px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
 * UTILITARE
 * ======================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-muted); }
.divider { height: 1px; background: var(--border-soft); margin: var(--space-lg) 0; }
.badge {
	display: inline-flex; align-items: center; gap: 0.4rem;
	background: var(--accent-mov-soft); color: var(--ixpr-mov);
	padding: 0.35rem 0.8rem; border-radius: 999px;
	font-size: 0.82rem; font-weight: 600;
}
.stat-row { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.stat { text-align: left; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--ixpr-mov); }
.stat span { color: var(--ink-light); font-size: 0.9rem; }

/* =========================================================
 * WHATSAPP FLOTANT
 * ======================================================= */
.whatsapp-float {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 56px;
	height: 56px;
	background: #25D366;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
	z-index: 150;
	transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* =========================================================
 * BIZOO RATING BOX — lățimea vine fixă din widget-ul lor (1190px);
 * îl facem responsive ca să nu producă scroll orizontal.
 * ======================================================= */
.bizoo-widget { max-width: 100%; overflow-x: auto; margin: 0 auto; }
