/* =====================================================
   Willa Zdrój Ciechocinek — Stylesheet
   ===================================================== */

:root {
  --navy: #001F3F;
  --navy-light: #002B5C;
  --navy-dark: #001529;
  --cream: #FAF8F5;
  --cream-dark: #F0ECE5;
  --gold: #C9A96E;
  --gold-light: #D4BA88;
  --gold-dark: #B08D4A;
  --sage: #8FA98F;
  --sage-light: #A5BDA5;
  --brown-btn: #A68B5B;
  --brown-btn-hover: #8F7648;
  --text-dark: #1a1a2e;
  --text-muted: #5a5a6e;
}

html { scroll-padding-top: 80px; }

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--cream);
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--navy); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

.font-heading { font-family: 'Playfair Display', 'Georgia', serif; }

/* ---- Navigation ---- */
.navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.navbar.scrolled,
.navbar-solid {
  background-color: rgba(0, 31, 63, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---- Hero (index only) ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1.06);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,31,63,0.7) 0%, rgba(0,31,63,0.5) 50%, rgba(0,31,63,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-logo {
  width: 130px;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  animation: fadeInDown 1.2s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title   { animation: fadeInUp 1.2s ease-out 0.3s both; }
.hero-tagline { animation: fadeInUp 1.2s ease-out 0.6s both; }
.hero-widget  { animation: fadeInUp 1.2s ease-out 0.9s both; }

/* ---- Page Banner (inner pages) ---- */
.page-banner {
  position: relative;
  height: 42vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,31,63,0.8) 0%, rgba(0,31,63,0.6) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

/* ---- Reservation Widget ---- */
.reservation-widget {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 10px rgba(0,0,0,0.05);
  padding: 1.5rem 2rem;
}

.widget-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e8e4de;
  border-radius: 12px;
  background: #FAFAF8;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-width: 180px;
}

.widget-field:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.1);
}

.widget-field svg { flex-shrink: 0; color: var(--gold-dark); }
.widget-field-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.widget-field-value { font-size: 0.95rem; color: var(--text-dark); font-weight: 500; }

.btn-check-availability {
  background: var(--brown-btn);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn-check-availability:hover {
  background: var(--brown-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166,139,91,0.35);
}

/* ---- Section Headings ---- */
.section-heading { position: relative; display: inline-block; }

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gold-dark);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---- About ---- */
.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.about-image-wrapper img { transition: transform 0.6s ease; }
.about-image-wrapper:hover img { transform: scale(1.05); }

.about-accent-box {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--gold);
  border-radius: 12px;
  z-index: -1;
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Room Cards ---- */
.room-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.room-card-image { position: relative; height: 260px; overflow: hidden; }
.room-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.room-card:hover .room-card-image img { transform: scale(1.08); }

.room-price-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,31,63,0.9);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.room-amenity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--cream);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.room-amenity svg { width: 14px; height: 14px; color: var(--gold-dark); }

/* ---- Gallery ---- */
.masonry-grid { columns: 3; column-gap: 1rem; }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.masonry-item img { width: 100%; display: block; transition: transform 0.5s ease; }

.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,31,63,0.4), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.masonry-item:hover img { transform: scale(1.06); }
.masonry-item:hover::after { opacity: 1; }

.masonry-zoom-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.masonry-item:hover .masonry-zoom-icon { opacity: 1; transform: translateY(0); }

@media (max-width: 1023px) { .masonry-grid { columns: 2; } }
@media (max-width: 639px)  { .masonry-grid { columns: 1; } }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,15,30,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}

.lightbox.active .lightbox-image { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ---- Contact ---- */
.contact-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid #e0dbd4;
  border-radius: 12px;
  background: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,110,0.12); }
.contact-input::placeholder { color: #b0aca5; }
textarea.contact-input { resize: vertical; min-height: 140px; }

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.btn-submit {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,31,63,0.3);
}

.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }

.contact-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Footer ---- */
.footer-link { color: rgba(255,255,255,0.6); transition: color 0.3s ease; text-decoration: none; }
.footer-link:hover { color: var(--gold); }

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,31,63,0.98);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu a {
  color: white;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover { color: var(--gold); }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) { .hamburger { display: flex; } }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--navy);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show { transform: translateY(0); }

.toast-icon {
  width: 24px;
  height: 24px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Scroll to top ---- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 50;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--gold-dark); }

/* ---- Utilities ---- */
.gold-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ---- Mobile fixes ---- */
@media (max-width: 768px) {
  .hero-bg { background-attachment: scroll; }
  .reservation-widget { padding: 1.25rem 1rem; }
}
