/*
Theme Name: Twenty Twenty-Four — DC Child
Theme URI: https://wp-test.dianaciobanu.com/
Description: Child theme pentru Twenty Twenty-Four, identitatea Skincare by Diana Ciobanu.
Author: Diana Ciobanu
Author URI: https://dianaciobanu.com/
Template: twentytwentyfour
Version: 0.9.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour-dc
Tags: child-theme
*/

/* ====================================================================
   1. UTILITARE GLOBALE
   ==================================================================== */
html { scroll-behavior: smooth; }

.wp-block-site-logo img {
	border-radius: 50%;
	transition: opacity 0.2s ease;
}
.wp-block-site-logo a:hover img { opacity: 0.85; }

:focus-visible {
	outline: 2px solid var(--wp--preset--color--rose);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--wp--preset--color--rose-soft);
	color: var(--wp--preset--color--contrast);
}

/* ====================================================================
   2. BUTOANE — transitions + variante
   ==================================================================== */
.wp-block-button__link,
.wp-element-button {
	transition: background-color 0.25s ease, border-color 0.25s ease,
				color 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(226, 167, 158, 0.35);
}

.dc-cta-dark .wp-block-button__link {
	background-color: var(--wp--preset--color--dark);
	border-color: var(--wp--preset--color--dark);
	color: #ffffff;
}
.dc-cta-dark .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--burgundy);
	border-color: var(--wp--preset--color--burgundy);
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(142, 43, 62, 0.35);
}

.dc-cta-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}
.dc-cta-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--contrast);
	color: #ffffff;
	border-color: var(--wp--preset--color--contrast);
}

/* ====================================================================
   3. CARDURI homepage
   ==================================================================== */
.dc-card {
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: 28px 22px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	height: 100%;
}
.dc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(44, 36, 33, 0.10);
	border-color: var(--wp--preset--color--rose);
}
.dc-card h3 { margin-top: 0; margin-bottom: 0.75rem; }
.dc-card p {
	color: var(--wp--preset--color--contrast-2);
	font-size: 14.5px;
	line-height: 1.6;
	margin-bottom: 0;
}

/* ====================================================================
   4. HERO — Group cu IMAGE BLOCK editabil (NU Cover, NU background CSS)
   Imaginea = wp:image (editabila din Page Editor, Replace).
   Pill = paragraph pozitionat absolute peste imagine.
   ==================================================================== */
.dc-hero {
	position: relative;
	margin: 0;
}
/* Image block se comporta ca banner cover (crop controlat) */
.dc-hero__img {
	margin: 0;
}
.dc-hero__img img {
	display: block;
	width: 100%;
	height: 460px;
	object-fit: cover;
	object-position: 58% 30%;
}

/* Pill titlu pozitionat absolut peste imagine, sub header */
.dc-hero-pill {
	position: absolute;
	top: 104px;
	left: 24px;
	z-index: 3;
	background: rgba(255, 255, 255, 0.88);
	display: inline-block;
	padding: 14px 32px;
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(20px, 4vw, 32px);
	color: var(--wp--preset--color--contrast);
	letter-spacing: 0.3px;
	line-height: 1.2;
	margin: 0;
}

/* ====================================================================
   BREADCRUMB peste hero (paginile cu .dc-hero: Epilare, Remodelare).
   Copil al .dc-hero (relative) => absolute peste banner, sub header,
   deasupra .dc-hero-title (z-index:5). NU pe homepage (compact).
   Clasa .dc-hero-crumb (NU .dc-breadcrumb — aceea e a motorului din
   functions.php, pe paginile de tratament; evitam coliziunea).
   ==================================================================== */
.dc-hero .dc-hero-crumb {
	position: absolute;
	top: 62px;
	left: 0;
	right: 0;
	z-index: 4; /* peste banner(0) + val .dc-hero::after(2), sub titlu(5) si header */
	padding: 8px 5%;
	font-size: 13px;
	background: transparent;
	color: #7a6450;
	pointer-events: none; /* lasa click-urile sa treaca spre banner */
}
.dc-hero .dc-hero-crumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	padding: 0;
	margin: 0 auto;
	max-width: 1200px;
	align-items: center;
}
.dc-hero .dc-hero-crumb li { display: inline-flex; align-items: center; }
.dc-hero .dc-hero-crumb li:not(:last-child)::after {
	content: "\203A";
	margin: 0 8px;
	opacity: .5;
	font-weight: 600;
}
.dc-hero .dc-hero-crumb li[aria-current="page"] { color: #3a2a1a; font-weight: 500; }
.dc-hero .dc-hero-crumb a { color: #8e2b3e; text-decoration: none; pointer-events: auto; }
.dc-hero .dc-hero-crumb a:hover { text-decoration: underline; }
@media (max-width: 781px) {
	.dc-hero .dc-hero-crumb { top: 48px; font-size: 12px; padding: 7px 16px; }
}

/* ====================================================================
   5. HEADER — layout (NU sticky: ramane sus, dispare la scroll)
   ==================================================================== */
.wp-site-blocks > header.wp-block-template-part {
	position: static;
	background-color: rgba(248, 237, 224, 0.92) !important;
}

/* Linie decorativa orizontala LANGA nume (ca pe live), nu sub el.
   ::after pe brand = al treilea element flex, centrat vertical langa nume. */
.dc-header-brand::after {
	content: "";
	display: block;
	width: 42px;
	height: 1px;
	background: var(--wp--preset--color--contrast);
	opacity: 0.35;
	align-self: center;
	flex-shrink: 0;
}
/* Brand la stanga; restul (actiuni + hamburger) grupate la dreapta, cu spatiu intre ele */
.dc-header-brand { margin-right: auto; }
.dc-header-inner { gap: 14px; }

/* --------------------------------------------------------------------
   INTEGRARE HEADER + HERO — pe ORICE pagina cu hero: body.dc-has-hero
   Headerul devine absolute peste hero => banner urca pana sub header,
   o singura zona vizuala coerenta (ca pe live). Se aplica pe homepage SI
   pe paginile cu banner (Epilare, Remodelare etc.), NU pe paginile fara hero.
   -------------------------------------------------------------------- */
body.dc-has-hero .wp-site-blocks > header.wp-block-template-part {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	margin-top: 0 !important;
	/* TRANSPARENT la top — bannerul se vede prin header, delimitat de linia de jos */
	background-color: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	border-bottom: 1px solid rgba(142, 43, 62, 0.22);
	transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
/* CHEIE: Group-ul interior .dc-header are has-base-background-color (cremos opac).
   Il facem transparent ca bannerul sa se vada cu adevarat prin header. */
body.dc-has-hero .dc-header {
	background-color: transparent !important;
	transition: background-color 0.3s ease;
}
/* Pe paginile cu hero, fundalul floral incepe DE SUB banner (inaltime hero 460/420px) */
body.dc-has-hero .wp-site-blocks {
	background-position: center 460px;
}
@media (max-width: 781px) {
	body.dc-has-hero .wp-site-blocks {
		background-position: center 420px;
	}
}
/* Continutul (<main>) urca la y=0 sub header — ca pe homepage (care are margin-top:0 pe main).
   Pe paginile normale WordPress pune automat margin-top pe <main> => golul alb de sus + bannerul nu urca. */
body.dc-has-hero .wp-site-blocks > main {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}
/* Sablonul de pagina normala adauga, inainte de continut, un grup cu 2 spacere (64px+24px)
   + .entry-content cu margine 24px. Le scoatem pe paginile cu hero, ca bannerul sa urce la y=0. */
body.dc-has-hero .wp-site-blocks > main > .wp-block-group:first-child {
	display: none !important;
}
body.dc-has-hero .entry-content {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

/* ====================================================================
   6. NAVIGATION DESKTOP — hover underline pe meniul WP inline
   ==================================================================== */
.dc-header-right .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 2px;
	transition: color 0.2s ease;
}
.dc-header-right .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--wp--preset--color--burgundy);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}
.dc-header-right .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.dc-header-right .wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* ====================================================================
   7. HAMBURGER BUTTON (custom, pe toate device-urile)
   ==================================================================== */
.dc-burger {
	display: inline-flex;  /* mereu vizibil, pe toate device-urile */
	position: fixed;  /* mereu vizibil — NU dispare cu headerul la scroll */
	top: 10px;
	right: 14px;
	z-index: 9999;
	align-items: center;
	justify-content: center;
	background: rgba(248, 237, 224, 0.95);
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 6px;
	padding: 8px 10px;
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
	line-height: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.dc-burger:hover {
	background-color: var(--wp--preset--color--rose-soft);
}
.dc-burger svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
}

/* ====================================================================
   8. SIDEBAR CUSTOM (drawer din dreapta) — GLOBAL, pe toate device-urile
   Deschis prin clasa .is-open (JS). Hamburgerul (sectiunea 7) il deschide.
   ==================================================================== */
.dc-sidebar,
.dc-sidebar-overlay {
	display: block;
}

/* Body blocheaza scroll cand sidebar deschis */
body.dc-sidebar-open {
	overflow: hidden;
}

/* Overlay fundal */
.dc-sidebar-overlay {
	position: fixed;
	top: 0; bottom: 0; left: 0; right: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.dc-sidebar-overlay.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* Drawer din dreapta */
.dc-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	width: min(82vw, 300px);
	max-width: 300px;
	/* Fundal floral subtil (aceeasi imagine ca pe restul site-ului) + overlay
	   alb-cremos semi-transparent peste, ca textul sa ramana perfect lizibil. */
	background-color: var(--wp--preset--color--base);
	background-image:
		linear-gradient(rgba(253, 246, 236, 0.10), rgba(253, 246, 236, 0.13)),
		url("/wp-content/uploads/2026/05/aaa.webp");
	background-repeat: no-repeat, repeat-y;
	background-size: cover, 100% auto;
	background-position: center, center top;
	z-index: 100001;
	padding: 22px 22px 30px;
	box-shadow: -4px 0 28px rgba(0, 0, 0, 0.18);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
	overflow-y: auto;
	visibility: hidden;
}
.dc-sidebar.is-open {
	transform: translateX(0);
	visibility: visible;
}

/* Header sidebar: titlu + X */
.dc-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: 12px;
}
.dc-sidebar-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 700;
	color: var(--wp--preset--color--burgundy);
	letter-spacing: 0.3px;
}
.dc-sidebar-close {
	background: transparent;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--wp--preset--color--burgundy);
	line-height: 0;
	transition: color 0.2s ease, transform 0.2s ease;
}
.dc-sidebar-close:hover {
	color: var(--wp--preset--color--contrast);
	transform: scale(1.05);
}
.dc-sidebar-close svg {
	stroke: currentColor;
	width: 26px;
	height: 26px;
}

/* Meniu cu grupuri + submeniu (ca pe live) */
.dc-sidebar-nav .dc-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.dc-sidebar-nav .dc-nav-list > li {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.dc-sidebar-nav .dc-nav-list > li:last-child {
	border-bottom: none;
}
/* link simplu (Despre Noi / Contact / Anulare) */
.dc-sidebar-nav .dc-nav-list > li > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}
.dc-sidebar-nav .dc-nav-list > li > a:hover {
	color: var(--wp--preset--color--burgundy);
	padding-left: 12px;
}
/* buton categorie (deschide submeniu) */
.dc-nav-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--contrast);
}
.dc-nav-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
}
.dc-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--wp--preset--color--burgundy);
}
.dc-arrow-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}
.dc-nav-group.dc-open .dc-arrow-icon {
	transform: rotate(180deg);
}
/* submeniu — ascuns, se deschide la click */
.dc-nav-sublist {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.dc-nav-group.dc-open .dc-nav-sublist {
	max-height: 700px;
}
.dc-nav-sublist a {
	display: block;
	padding: 11px 8px 11px 40px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}
.dc-nav-sublist a:hover {
	color: var(--wp--preset--color--burgundy);
	padding-left: 46px;
}
/* "Listă prețuri" evidențiat */
.dc-nav-pricelist a {
	font-weight: 700;
	color: var(--wp--preset--color--burgundy);
	background: rgba(200, 165, 116, 0.12);
	border-left: 3px solid var(--wp--preset--color--gold, #c8a574);
}

/* ====================================================================
   9. MOBILE (<= 781px) — toggle layout responsive
   ==================================================================== */
@media (max-width: 781px) {

	/* --- Header compact --- */
	.dc-header {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}
	.dc-header .wp-block-site-logo img {
		width: 44px !important;
		height: 44px !important;
	}
	.dc-header .wp-block-site-title {
		font-size: 14px !important;
		line-height: 1.1 !important;
	}
	.dc-header .wp-block-site-tagline {
		display: none !important;
	}

	/* (linia decorativa e acum globala langa nume — vezi sectiunea 5) */

	/* --- ASCUND WP nav + buton CTA dark din header pe mobil --- */
	.dc-header-right {
		display: none !important;
	}

	/* --- Card homepage padding redus pe mobil --- */
	.dc-card { padding: 20px 18px; }

	/* --- Hero mobil: imagine mai inalta vertical + pill mai sus-stanga --- */
	.dc-hero__img img {
		height: 420px;
		object-position: 60% 28%;
	}
	.dc-hero-pill {
		top: 86px;
		left: 14px;
		padding: 10px 20px;
		font-size: clamp(18px, 5vw, 26px);
	}
}

/* ====================================================================
   10. DESKTOP (>= 782px) — header in BANDA CENTRATA (max 1200px)
   Elementele grupate spre mijloc (NU la extremele ecranului ultra-wide).
   Logo + titlu hero la marginea STANGA a benzii;
   search [viitor] + Programeaza-te + hamburger la marginea DREAPTA a benzii.
   (Banda 1200px vine din layout-ul constrained WordPress al headerului.)
   ==================================================================== */
@media (min-width: 782px) {
	/* hamburgerul intra IN RANDUL headerului (in flow), grupat cu CTA prin flexbox.
	   Flexbox-ul garanteaza spatiu intre ele -> IMPOSIBIL sa se suprapuna. */
	.dc-burger {
		position: static;
		top: auto;
		right: auto;
		box-shadow: none;
	}
	/* titlul hero aliniat cu logo-ul (marginea STANGA a benzii) — pe orice pagina cu hero */
	body.dc-has-hero .dc-hero-title {
		left: max(24px, calc((100vw - 1200px) / 2)) !important;
	}
}

/* Sfarsit CSS */
