/*
Theme Name: ViiLaEne
Theme URI: https://viilaene.ro/
Author: Zestrero
Author URI: https://zestrero.ro/
Description: Temă personalizată pentru pensiunea ViiLaEne din Deta – camere și tarife, galerie foto, video, atracții turistice și formular de contact securizat.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: viilaene
*/

:root {
	--wine: #6e1f2a;
	--wine-d: #521520;
	--ochre: #d4a24c;
	--ochre-l: #f3e2bd;
	--cream: #faf6ef;
	--sand: #f1e9dc;
	--ink: #241e1c;
	--muted: #6b625d;
	--line: #e3d8c7;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(36, 30, 28, .10);
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
	margin: 0;
	font: 17px/1.65 var(--sans);
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
body.nav-open,
body.lb-open { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-d); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.small { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }
.ico { flex: none; vertical-align: -5px; }

.screen-reader-text,
.vle-hp {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--wine); color: #fff; padding: .6em 1em; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.kicker {
	font: 600 .78rem/1 var(--sans);
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ochre);
	margin-bottom: .9em;
}

/* Butoane */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .85em 1.5em;
	border-radius: 999px;
	font: 600 .95rem/1.2 var(--sans);
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--wine); color: #fff; }
.btn--primary:hover { background: var(--wine-d); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--wine); }
.btn--light { background: #fff; color: var(--wine); border-color: var(--line); }

/* Topbar */
.topbar { background: var(--wine-d); color: #f5e9e2; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; margin-left: 1.2rem; }
.topbar a:hover { color: var(--ochre); }
.topbar .ico { width: 16px; height: 16px; vertical-align: -3px; color: var(--ochre); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 246, 239, .96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.brand img, .custom-logo { height: 72px; width: auto; }
.site-header.is-scrolled .brand img { height: 58px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: block; padding: .6em .9em;
	color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px;
}
.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a { color: var(--wine); background: var(--sand); }
.site-nav .menu-item-has-children > a::after { content: "▾"; font-size: .7em; margin-left: .4em; }
.site-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem;
	position: absolute; top: 100%; left: 0; min-width: 300px;
	background: #fff; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: all .18s ease;
}
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { font-weight: 400; font-size: .95rem; }
.nav-toggle { display: none; }

/* Hero */
.hero {
	position: relative; min-height: min(86vh, 820px);
	display: flex; align-items: flex-end;
	color: #fff; overflow: hidden; background: var(--ink);
}
.hero__media, .hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media > * { object-fit: cover; }
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20,12,10,.15) 0%, rgba(20,12,10,.25) 40%, rgba(30,10,12,.85) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 6rem 0 4.5rem; }
.hero h1 { max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero h1 span { color: var(--ochre); }
.hero__lead { font-size: 1.2rem; max-width: 46ch; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Facts */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.fact { padding: 1.6rem 1rem; text-align: center; display: grid; gap: .2rem; justify-items: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .ico { width: 30px; height: 30px; color: var(--wine); margin-bottom: .3rem; }
.fact strong { font-family: var(--serif); font-size: 1.1rem; }
.fact span { font-size: .85rem; color: var(--muted); }

/* Secțiuni */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--sand); }
.section--dark { background: var(--ink); color: #f3ece4; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }

/* Despre */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__text p { color: #3b3330; }
.about__cta { margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--white); border-left: 4px solid var(--ochre); border-radius: 8px; }
.about__media { position: relative; min-height: 460px; }
.about__img { position: absolute; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.about__img--a { inset: 0 18% 18% 0; width: 82%; height: 82%; }
.about__img--b { right: 0; bottom: 0; width: 52%; height: 48%; border: 6px solid var(--cream); }
.checks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .45rem; }
.checks li { display: flex; gap: .55rem; align-items: flex-start; }
.checks .ico { color: var(--wine); width: 20px; height: 20px; margin-top: 3px; }

/* Card camere */
.room-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; margin-bottom: 2.4rem; }
.room-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.room-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.room-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover .room-card__media img { transform: scale(1.04); }
.room-card__price { position: absolute; right: 1rem; bottom: 1rem; background: var(--wine); color: #fff; padding: .5em .9em; border-radius: 10px; font: 600 1.1rem var(--serif); }
.room-card__price small { font: 400 .75rem var(--sans); opacity: .85; }
.room-card__body { padding: 1.5rem 1.6rem 1.7rem; }
.tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { background: var(--ochre-l); color: #5b4113; font-size: .82rem; padding: .3em .75em; border-radius: 999px; }

/* Galerie */
.vle-gallery { display: grid; gap: 10px; }
.vle-gallery__item { display: block; overflow: hidden; border-radius: 10px; background: var(--line); }
.vle-gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .45s ease, filter .3s ease; }
.vle-gallery__item:hover img { transform: scale(1.05); filter: brightness(1.05); }
.vle-gallery--mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.vle-gallery--mosaic .vle-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.vle-gallery--mosaic .vle-gallery__item:first-child img { aspect-ratio: auto; }
.vle-gallery--grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.vle-gallery--3 { grid-template-columns: repeat(3, 1fr); }

/* Video */
.videos__grid { max-width: 980px; margin-inline: auto; }
.videos__grid video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); background: #000; }

/* Atracții */
.attr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.attr-grid--small { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.attr-card {
	position: relative; display: block; border-radius: var(--radius); overflow: hidden;
	aspect-ratio: 4/3; color: #fff; text-decoration: none; background: var(--ink);
}
.attr-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; opacity: .9; }
.attr-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,10,10,.85)); }
.attr-card:hover img { transform: scale(1.05); opacity: 1; }
.attr-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.2rem 1.3rem; display: grid; gap: .25rem; }
.attr-card__body strong { font: 600 1.2rem/1.2 var(--serif); }
.attr-card__body span { font-size: .88rem; opacity: .88; }
.attr-grid--small .attr-card__body strong { font-size: .98rem; }
.attr-card:hover { color: #fff; }

/* Contact strip */
.contact-strip__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.list-ico { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .7rem; }
.list-ico li { display: flex; gap: .7rem; align-items: flex-start; }
.list-ico .ico { color: var(--wine); margin-top: 2px; }
.list-ico em { color: var(--muted); font-size: .9em; }
.list-ico--big { font-size: 1.05rem; }

/* Hartă */
.vle-map { position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--sand), var(--ochre-l)); border: 1px solid var(--line); }
.vle-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vle-map__consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: .6rem; padding: 1.5rem; color: var(--wine); }
.vle-map__consent p { max-width: 36ch; color: var(--muted); font-size: .92rem; margin: 0; }
.contact-map .vle-map { border-radius: 0; min-height: 440px; border: 0; }

/* Page hero */
.page-hero {
	position: relative; padding: clamp(5rem, 12vw, 8.5rem) 0 clamp(3rem, 6vw, 4.5rem);
	color: #fff; background: var(--wine-d) var(--bg, none) center/cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,10,14,.45), rgba(40,10,14,.82)); }
.page-hero .container { position: relative; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.2rem); }

/* Pagina camere */
.room { display: grid; grid-template-columns: 380px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 2.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.room:first-of-type { padding-top: 0; }
.room__info { position: sticky; top: 110px; align-self: start; }
.price-box { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.2rem 0 1rem; box-shadow: var(--shadow); }
.price-box__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-box__value { font: 600 2.6rem/1.1 var(--serif); color: var(--wine); }
.price-box__value small { font-size: 1.1rem; }
.price-box__per { color: var(--muted); font-size: .92rem; }
.note { display: flex; gap: .5rem; align-items: flex-start; color: #4d4440; font-size: .95rem; }
.note .ico { color: var(--ochre); }
.rules { display: grid; gap: .8rem; margin-top: 2.5rem; }
.rule { display: flex; gap: .7rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.rule .ico { color: var(--wine); }
.rule--warn { background: #fbecec; border-color: #efc9c9; color: var(--wine-d); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact__form { background: #fff; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.vle-form { display: grid; gap: 1rem; }
.vle-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vle-form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.vle-form input:not([type=checkbox]),
.vle-form textarea {
	font: inherit; font-weight: 400; width: 100%;
	padding: .8em 1em; border: 1px solid var(--line); border-radius: 10px; background: var(--cream);
}
.vle-form input:focus, .vle-form textarea:focus { outline: none; border-color: var(--wine); background: #fff; box-shadow: 0 0 0 3px rgba(110,31,42,.12); }
.vle-form .vle-check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--muted); }
.vle-check input { margin-top: .35em; accent-color: var(--wine); }
.vle-form .btn { justify-self: start; }
.vle-form__msg { padding: .9rem 1.1rem; border-radius: 10px; margin: 0; }
.vle-form__msg--ok { background: #e7f4ea; color: #1f5e2e; }
.vle-form__msg--err { background: #fbecec; color: var(--wine-d); }

/* Atracție */
.attraction { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.lead { font-size: 1.2rem; color: #3b3330; }
.attraction__stay { margin-top: 2rem; padding: 1.5rem; background: var(--sand); border-radius: var(--radius); }

/* Conținut editor */
.entry-content > * + * { margin-top: 1em; }
.entry-content img { border-radius: 10px; }
.entry-content--intro { margin-bottom: 2.5rem; }
.post-item { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { background: #1d1715; color: #cfc4bb; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #f1e6d8; text-decoration: none; }
.site-footer a:hover { color: var(--ochre); }
.site-footer__logo { height: 70px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 1rem; }
.site-footer .list-ico .ico { color: var(--ochre); }
.site-footer .small { color: #a99d94; }
.anpc { display: grid; gap: .6rem; }
.anpc img { width: 200px; border-radius: 6px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .85rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }

/* Buton apel flotant */
.call-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 60;
	display: inline-flex; align-items: center; gap: .5rem;
	background: var(--wine); color: #fff; text-decoration: none;
	padding: .85rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 25px rgba(110,31,42,.4);
	font-weight: 600;
}
.call-fab:hover { color: #fff; background: var(--wine-d); }
.call-fab .ico { animation: ring 2.4s infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(14deg); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,10,9,.94); display: grid; place-items: center; padding: 3rem 4rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #ddd; margin-top: .8rem; font-size: .9rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* WordPress */
.alignwide { margin-inline: calc(-1 * min(8vw, 120px)); }
.alignfull { margin-inline: calc(50% - 50vw); }
.wp-caption-text { font-size: .85rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
	.attr-grid--small { grid-template-columns: repeat(3, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
	.nav-toggle {
		display: inline-grid; place-items: center; width: 46px; height: 46px;
		background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
	}
	.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
		display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: .2s;
	}
	.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bar::before { top: -7px; }
	.nav-toggle__bar::after { top: 7px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }
	.site-header { backdrop-filter: none; background: var(--cream); }
	.site-nav {
		position: fixed; inset: 0; z-index: -1; background: var(--cream);
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 110px 16px 2rem; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: .9em .6em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; display: none; min-width: 0; background: transparent; }
	.site-nav .is-open > .sub-menu, .site-nav .current-menu-ancestor > .sub-menu { display: block; }
	.site-nav__cta { justify-content: center; }
	.facts__grid { grid-template-columns: repeat(3, 1fr); }
	.fact:nth-child(4) { border-left: 0; }
	.fact { border-bottom: 1px solid var(--line); }
	.about__grid, .contact-strip__grid, .contact__grid, .attraction { grid-template-columns: 1fr; }
	.about__media { min-height: 380px; }
	.room { grid-template-columns: 1fr; }
	.room__info { position: static; }
	.attr-grid { grid-template-columns: repeat(2, 1fr); }
	.vle-gallery--mosaic { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar__inner > span:first-child { display: none; }
	.topbar__right { width: 100%; display: flex; justify-content: space-between; }
	.topbar a { margin: 0; }
	.hero { min-height: 78vh; }
	.hero__content { padding: 4rem 0 3rem; }
	.facts__grid { grid-template-columns: 1fr 1fr; }
	.fact + .fact { border-left: 0; }
	.fact:nth-child(odd) { border-right: 1px solid var(--line); }
	.fact:last-child { grid-column: span 2; border-right: 0; }
	.room-cards, .attr-grid, .vle-form__row { grid-template-columns: 1fr; }
	.attr-grid--small { grid-template-columns: 1fr 1fr; }
	.vle-gallery--mosaic, .vle-gallery--3 { grid-template-columns: 1fr 1fr; }
	.vle-gallery--grid { grid-template-columns: 1fr 1fr; }
	.about__media { min-height: 300px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.call-fab span { display: none; }
	.call-fab { padding: 1rem; }
	.lightbox { padding: 3rem .5rem; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.gallery-more { margin-top: 1.6rem; }
.hero .kicker { color: var(--ochre-l); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
