/*
Theme Name: Urban20
Theme URI: https://cazareieftinafagaras.ro
Author: Urban20
Description: Tema custom pentru Urban20 — cazare accesibilă în Făgăraș.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: urban20
*/

:root {
	--orange: #f2911e;
	--orange-dark: #d97b0e;
	--black: #1a1a1a;
	--cream: #fbeee1;
	--cream-dark: #f5d9bc;
	--white: #ffffff;
	--gray: #6b6b6b;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
	--container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--black);
	background: var(--white);
	line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--white);
	padding: 10px 16px; z-index: 10000;
}
.skip-link:focus { left: 10px; top: 10px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
	border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-lg { padding: 18px 38px; font-size: 17px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,0.97);
	border-bottom: 1px solid rgba(0,0,0,0.06); backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.site-logo img { height: 48px; width: auto; }
.primary-nav { display: flex; }
.primary-nav ul { display: flex; gap: 6px; flex-wrap: wrap; }
.primary-nav a {
	display: block; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
	transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--cream); color: var(--orange-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-whatsapp {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border-radius: 50%; background: #25d366; color: #fff;
}
.icon-whatsapp svg { width: 22px; height: 22px; fill: #fff; }
.nav-toggle {
	display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--black); border-radius: 2px; }

@media (max-width: 900px) {
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
		border-bottom: 1px solid rgba(0,0,0,0.08); box-shadow: var(--shadow);
		display: none; padding: 12px;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 2px; }
	.nav-toggle { display: flex; }
	.header-actions .btn-text { display: none; }
}

/* Hero */
.hero {
	position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; color: var(--white);
}
.hero-bg {
	position: absolute; inset: 0; background-size: cover; background-position: center 65%;
	animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
	0% { transform: scale(1); }
	100% { transform: scale(1.12); }
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(26,18,10,0.55) 0%, rgba(26,18,10,0.35) 45%, rgba(26,18,10,0.75) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 60px 24px; }
.hero-eyebrow {
	display: inline-block; background: var(--orange); color: var(--white); font-weight: 700; font-size: 13px;
	letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; }
.hero p { font-size: 18px; opacity: 0.92; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
	.hero-bg { animation: none; }
}

/* Sections */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { color: var(--orange-dark); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-head p { color: var(--gray); }

.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
	background: var(--white); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow);
	border: 1px solid rgba(0,0,0,0.04);
}
.feature-card .icon {
	width: 52px; height: 52px; border-radius: 14px; background: var(--cream); display: flex;
	align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card .icon svg { width: 26px; height: 26px; fill: var(--orange-dark); }
.feature-card h3 { font-size: 18px; }
.feature-card p { color: var(--gray); font-size: 15px; margin: 0; }

/* Cards (rooms / facilities) */
.card {
	background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	border: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: column; height: 100%;
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 18px; margin-bottom: 0; }
.card-meta { display: flex; gap: 14px; font-size: 13px; color: var(--gray); font-weight: 600; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-body p.excerpt { color: var(--gray); font-size: 14px; margin: 0; }
.card-link { margin-top: auto; font-weight: 700; color: var(--orange-dark); font-size: 14px; }

.cta-band {
	background: var(--black); color: var(--white); border-radius: 24px; padding: 56px 40px; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* Single room / facility page */
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08); }
.detail-meta-row { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0; }
.detail-meta-row .item { }
.detail-meta-row .item .label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); font-weight: 700; }
.detail-meta-row .item .value { font-size: 20px; font-weight: 700; }
.dotari-list li {
	position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--black);
}
.dotari-list li::before {
	content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange);
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange-dark); margin-bottom: 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; border: 1px solid rgba(0,0,0,0.04); }
.contact-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form input, .contact-form textarea {
	width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.15); font-size: 15px;
	font-family: inherit; background: var(--cream);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--orange); background: var(--white); }
.hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.form-notice.success { background: #e4f8ec; color: #1c7a3f; }
.form-notice.error { background: #fdecec; color: #a12727; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.contact-whatsapp-cta { margin-top: 22px; text-align: center; }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,0.8); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.footer-grid img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
	margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.5);
}

.whatsapp-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 60px; height: 60px; border-radius: 50%;
	background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

.page-hero {
	background: var(--cream); padding: 64px 0 48px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { color: var(--gray); max-width: 640px; margin: 0 auto; }

.entry-content { max-width: 760px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }

.empty-state {
	text-align: center; padding: 60px 24px; background: var(--cream); border-radius: var(--radius); color: var(--gray);
}
