/*
Theme Name: Hotel & SPA Demo
Theme URI: https://fibogacci.pl
Author: Fibogacci
Author URI: https://fibogacci.pl
Description: Elegancki block theme dla hotelu i SPA. Quiet Luxury - Cormorant Garamond + Montserrat, zloto #C5A059.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotel-demo
Tags: block-patterns, full-site-editing, hotel, spa
*/

/* === DESIGN TOKENS === */
:root {
	--bg-body: #F9F8F6;
	--bg-surface: #FFFFFF;
	--bg-accent: #EBE9E4;
	--text-main: #2C3333;
	--text-muted: #6E6E6E;
	--color-gold: #C5A059;
	--color-gold-light: #D4B57A;
	--color-dark: #1A1A1A;
	--font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	--shadow-soft: 0 20px 40px -10px rgba(0,0,0,0.05);
	--shadow-card: 0 2px 12px rgba(0,0,0,0.06);
}

/* === BASE === */
html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
	font-family: var(--font-sans);
	background-color: var(--bg-body);
	color: var(--text-main);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	color: var(--color-dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); }

p { color: var(--text-muted); font-weight: 300; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; }

/* Eyebrow label */
.subtitle {
	text-transform: uppercase;
	letter-spacing: 3px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-gold);
	margin-bottom: 1rem;
	display: block;
}

/* === WORDPRESS BLOCK OVERRIDES === */
.wp-site-blocks { background-color: var(--bg-body); }

.wp-block-site-title a {
	font-family: var(--font-display);
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--color-dark);
	letter-spacing: -0.5px;
}

.wp-block-navigation a {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-family: var(--font-sans);
	color: var(--text-main);
	font-weight: 400;
}

.wp-block-navigation a:hover { color: var(--color-gold); }

.wp-element-button,
.wp-block-button__link {
	font-family: var(--font-sans) !important;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-size: 0.78rem;
	font-weight: 500;
}

/* Header glassmorphism */
.wp-block-template-part[data-area="header"] {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(249, 248, 246, 0.85) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* === HOTEL HERO === */
.hotel-hero {
	position: relative;
	min-height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	overflow: hidden;
	background: linear-gradient(rgba(0,0,0,0.25), rgba(44,51,51,0.55)),
	            linear-gradient(135deg, #8E9EAB 0%, #eef2f3 100%);
}

.hotel-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 50%, rgba(26,26,26,0.5));
	z-index: 1;
}

.hotel-hero > * { position: relative; z-index: 2; }

.hotel-hero h1 {
	color: #fff;
	text-shadow: 0 4px 20px rgba(0,0,0,0.15);
	margin-bottom: 1.5rem;
}

.hotel-hero p {
	color: rgba(255,255,255,0.9);
	font-size: 1.15rem;
	font-weight: 300;
}

/* Floating Booking Bar */
.booking-bar {
	position: absolute;
	bottom: 50px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	padding: 16px 32px;
	border-radius: 60px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	display: flex;
	gap: 32px;
	align-items: center;
	max-width: 90%;
	z-index: 10;
	white-space: nowrap;
}

.booking-item { display: flex; flex-direction: column; }

.booking-label {
	font-size: 0.65rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 3px;
	font-family: var(--font-sans);
}

.booking-value {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--color-dark);
	font-family: var(--font-sans);
}

.booking-divider {
	width: 1px;
	height: 30px;
	background: #eee;
	flex-shrink: 0;
}

/* === ROOM SHOWCASE === */
.room-showcase {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
}

.room-item {
	position: relative;
	height: 580px;
	overflow: hidden;
	cursor: pointer;
}

.room-bg {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.6s ease;
	background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.7)),
	            linear-gradient(135deg, #c8d8c0, #e8f0e4);
}

.room-item:nth-child(2) .room-bg {
	background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.7)),
	            linear-gradient(135deg, #d4b57a, #f5e6c8);
}

.room-item:nth-child(3) .room-bg {
	background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.7)),
	            linear-gradient(135deg, #b0a090, #ddd4c8);
}

.room-item:hover .room-bg { transform: scale(1.05); }

.room-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 2.5rem 2rem;
	color: #fff;
	z-index: 2;
}

.room-overlay h3 {
	color: #fff;
	margin-bottom: 0.4rem;
	font-size: 1.6rem;
}

.room-price {
	font-family: var(--font-sans);
	font-size: 0.85rem;
	opacity: 0.85;
	font-weight: 400;
}

.room-hover-details {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	font-size: 0.8rem;
	font-family: var(--font-sans);
	font-weight: 300;
	color: rgba(255,255,255,0.85);
}

.room-item:hover .room-hover-details {
	max-height: 80px;
	margin-top: 0.75rem;
}

/* === DINING (Dark) === */
.dining-section {
	background-color: var(--color-dark);
	color: #fff;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.dining-img {
	height: 100%;
	min-height: 560px;
	background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
	            linear-gradient(45deg, #6b4c2a, #3C2415);
	background-size: cover;
	background-position: center;
}

.dining-content {
	padding: 5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.dining-content h2 { color: #fff; }
.dining-content p { color: rgba(255,255,255,0.7); }

.menu-preview {
	margin-top: 2.5rem;
	border: 1px solid rgba(255,255,255,0.2);
	padding: 1.75rem;
}

.menu-preview h4 {
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: var(--color-gold);
	margin-bottom: 0.5rem;
	font-weight: 400;
}

.menu-preview p { color: rgba(255,255,255,0.9); font-weight: 300; font-size: 0.95rem; }

/* === SPA === */
.spa-section {
	background-color: var(--bg-accent);
	text-align: center;
	padding: 6rem 2rem;
}

.spa-cards {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-top: 3.5rem;
	flex-wrap: wrap;
}

.spa-card {
	background: var(--bg-surface);
	padding: 2.5rem 2rem;
	width: 280px;
	transition: all 0.3s;
	border: 1px solid rgba(0,0,0,0.03);
}

.spa-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-soft); }
.spa-card h4 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.75rem; }
.spa-card p { font-size: 0.85rem; }

.price-tag {
	font-family: var(--font-display);
	font-size: 1.6rem;
	color: var(--color-gold);
	margin-top: 1rem;
	display: block;
}

/* === ROOM CARDS (Archive) === */
.rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
}

.room-card {
	background: var(--bg-surface);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.room-card__image { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.room-card__content { padding: 1.5rem; }
.room-card__title { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 0.5rem; }
.room-card__meta { display: flex; gap: 1rem; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 1rem; }
.room-card__price { font-size: 1rem; font-weight: 600; color: var(--color-gold); }
.room-card__price span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

/* === SECTION HEADERS === */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-family: var(--font-display); }
.section-header .divider {
	display: inline-block;
	width: 50px;
	height: 1px;
	background: var(--color-gold);
	margin-top: 1rem;
}

/* === MENU CARDS (Restaurant) === */
.menu-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	padding: 1rem 0;
	border-bottom: 1px dashed var(--bg-accent);
}
.menu-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.menu-card__desc { grid-column: 1; color: var(--text-muted); font-size: 0.85rem; }
.menu-card__price { font-weight: 600; color: var(--color-gold); }

/* === SPA TREATMENTS === */
.spa-treatment {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid var(--bg-accent);
}
.spa-treatment__name { font-weight: 500; }
.spa-treatment__duration { color: var(--text-muted); font-size: 0.85rem; }
.spa-treatment__price { font-weight: 600; color: var(--color-gold); text-align: right; }

/* === CONTACT === */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}
.contact-item { text-align: center; padding: 2rem; background: var(--bg-accent); }
.contact-item__icon { font-size: 2rem; margin-bottom: 1rem; }
.contact-item__label {
	font-size: 0.75rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 0.5rem;
}

/* === BOOKING WIDGET === */
.booking-widget {
	background: rgba(26, 26, 26, 0.95);
	padding: 1.5rem 2rem;
	border-radius: 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
}
.booking-widget label {
	color: var(--color-gold);
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: block;
	margin-bottom: 0.25rem;
	font-family: var(--font-sans);
}
.booking-widget input, .booking-widget select {
	padding: 0.6rem 0.8rem;
	border: 1px solid rgba(197,160,89,0.4);
	border-radius: 4px;
	background: rgba(255,255,255,0.08);
	color: #fff;
	font-size: 0.875rem;
	min-width: 140px;
	font-family: var(--font-sans);
}
.booking-widget input:focus, .booking-widget select:focus { border-color: var(--color-gold); outline: none; }
.booking-widget button {
	background: var(--color-gold);
	color: #fff;
	border: none;
	padding: 0.7rem 2rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background 0.3s;
	font-family: var(--font-sans);
	font-size: 0.78rem;
}
.booking-widget button:hover { background: var(--color-gold-light); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
	.room-showcase { grid-template-columns: repeat(2, 1fr); }
	.room-item { height: 450px; }
}

@media (max-width: 900px) {
	.dining-section { grid-template-columns: 1fr; }
	.dining-img { min-height: 280px; }
	.dining-content { padding: 3rem 1.5rem; }
	.booking-bar { width: 95%; padding: 14px 20px; gap: 16px; border-radius: 16px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
	.room-showcase { grid-template-columns: 1fr; }
	.room-item { height: 380px; }
	.spa-cards { flex-direction: column; align-items: center; }
	.booking-widget { flex-direction: column; }
	.booking-widget input, .booking-widget select { width: 100%; }
	.rooms-grid { grid-template-columns: 1fr; }
	/* Booking bar na mobilce chowa się - nachodzi na hero content */
	.booking-bar { display: none; }
	/* Hero niższy na mobilce */
	.hotel-hero { height: auto; min-height: 85vh; padding-bottom: 60px; }
}
