/* =========================================================
   Willa Sky — Jastrzębia Góra
   Paleta z logo: #E9E9E9 / #B09E80 / #716551
   ========================================================= */

:root {
  --navy: #192537;
  --navy-light: #1f2c40;
  --navy-2: #243349;
  --navy-deep: #0f1925;
  --navy-soft: #2e3e57;
  --cream: #f5f1ea;
  --cream-2: #ebe5d8;
  --sand: #e9e9e9;
  --gold: #b09e80;
  --gold-light: #c8b694;
  --gold-dark: #9a8868;
  --brown: #716551;
  --brown-dark: #4a4234;
  --ink: #f5f1ea;
  --muted: #8b94a6;
  --line: rgba(176, 158, 128, 0.18);
  --line-strong: rgba(176, 158, 128, 0.32);
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(25, 37, 55, 0.08);
  --shadow-md: 0 12px 40px rgba(25, 37, 55, 0.14);
  --shadow-lg: 0 24px 60px rgba(25, 37, 55, 0.22);
  --radius: 6px;
  --radius-lg: 14px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--cream);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: .75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: .8rem;
  display: inline-block;
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 1rem 0;
}
.site-header.scrolled {
  background: rgba(15, 25, 37, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .35);
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  transition: filter .3s ease, height .3s ease;
}
.site-header.scrolled .brand-logo {
  height: 44px;
  filter: none;
}

/* Logo recoloring trick: in hero, the logo sits on dark image — let it stay as-is.
   When scrolled (light bg), invert the cream parts manually via SVG fill cannot be done from CSS,
   but we can apply a subtle drop-shadow swap. For now, rely on legibility against blur. */
.site-header:not(.scrolled) .brand-logo {
  /* Make the cream/light parts of the logo readable on dark hero by adding contrast */
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.4));
}

.nav { display: flex; align-items: center; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--cream);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  padding: .25rem 0;
}
.nav-menu a:hover { color: var(--gold); }

.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-menu a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-menu a.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  line-height: 1;
  display: inline-block;
  transition: background .25s ease, transform .25s ease;
}
.nav-menu a.nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }
.site-header.scrolled .nav-menu a.nav-cta { color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--cream);
  transition: transform .3s ease, opacity .25s ease, top .3s ease, background .25s ease;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.site-header.scrolled .nav-toggle span { background: var(--cream); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .03em;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all .25s ease;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--cream); }

.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(25,37,55,.78), rgba(15,25,37,.92)),
    url('../img/434380519.jpg') center/cover no-repeat;
  z-index: -2;
  animation: heroZoom 18s ease-out forwards;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(176, 158, 128, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(25,37,55,.35) 0%, rgba(15,25,37,.85) 100%);
  z-index: -1;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-inner {
  position: relative;
  padding: 8rem 1.5rem 6rem;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
  opacity: 0;
  animation: fadeUp .9s ease .2s forwards;
}
.hero-title {
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease .4s forwards;
}
.hero-lead {
  font-size: 1.15rem;
  max-width: 620px;
  color: rgba(255,255,255,.92);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease .6s forwards;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s ease .8s forwards;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  opacity: 0;
  animation: fadeUp 1s ease 1s forwards;
}

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

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  z-index: 1;
}
.scroll-cue span {
  width: 3px; height: 8px;
  background: var(--cream);
  border-radius: 2px;
  animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============ Sections ============ */
.section {
  padding: 6rem 0;
}
.section-head {
  margin-bottom: 3.5rem;
  max-width: 720px;
}
.section-head.center {
  margin-left: auto; margin-right: auto;
  text-align: center;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-text p,
.section-head p,
.location p,
.contact > .container > div > p { color: rgba(245, 241, 234, 0.78); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ============ About ============ */
.about { background: var(--navy); }
.about-text h2 { margin-bottom: 1.5rem; }
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1.2rem;
}
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--cream);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}
.about-card {
  background: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  color: var(--cream);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.about-card.alt {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy);
  border-color: var(--gold);
}
.about-card.alt .about-card-num { color: var(--navy-deep); }
.about-card.alt .about-card-label { color: rgba(25, 37, 55, 0.78); }
.about-card-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.about-card-label {
  font-size: .95rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ============ Rooms ============ */
.rooms { background: var(--navy-light); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.card-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-img-1 { background-image: url('../img/2osobowy.jpg'); }
.card-img-2 { background-image: url('../img/2pietrowy.jpg'); }
.card-img-3 { background-image: url('../img/4os.jpg'); }

.card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: rgba(245, 241, 234, 0.7); font-size: .95rem; flex: 1; }
.card-meta {
  list-style: none;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1rem 0;
}
.card-meta li {
  font-size: .8rem;
  color: var(--gold-light);
  background: var(--navy-2);
  border: 1px solid var(--line);
  padding: .3rem .8rem;
  border-radius: 999px;
  letter-spacing: .03em;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.card.featured { border: 2px solid var(--gold); }
.badge {
  position: absolute;
  top: -1.8rem;
  right: 1.5rem;
  background: var(--gold);
  color: var(--white);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ============ Amenities ============ */
.amenities { background: var(--navy); }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}
.amenity {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.amenity:hover { background: var(--navy-light); border-color: var(--line); transform: translateY(-3px); }
.amenity svg {
  width: 40px; height: 40px;
  fill: var(--gold);
  margin-bottom: 1rem;
}
.amenity h3 { font-size: 1.05rem; margin-bottom: .3rem; color: var(--cream); }
.amenity p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ============ Location ============ */
.location { background: var(--navy-light); }
.distance-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.distance-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.distance-list li:last-child { border-bottom: 0; }
.distance-list li span { color: var(--muted); }
.distance-list li b { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  background: var(--navy-2);
  border: 1px solid var(--line-strong);
}
.map-wrap iframe {
  width: 100%; height: 100%; border: 0;
  display: block;
}

/* ============ Gallery ============ */
.gallery { background: var(--navy); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
.gal {
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  overflow: hidden;
}
.gal::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.35));
  opacity: 0;
  transition: opacity .3s ease;
}
.gal:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.gal:hover::before { opacity: 1; }

.gal-1 { background-image: url('../img/4os.jpg'); grid-column: span 2; grid-row: span 2; }
.gal-2 { background-image: url('../img/2osobowy.jpg'); }
.gal-3 { background-image: url('../img/343063019.jpg'); }
.gal-4 { background-image: url('../img/2pietrowy.jpg'); }
.gal-5 { background-image: url('../img/434379465.jpg'); }
.gal-6 { background-image: url('../img/434380519.jpg'); grid-column: span 2; }

/* ============ Contact ============ */
.contact { background: var(--navy-light); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-card {
  background: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: var(--cream);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.contact-card:not(.no-link):hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  color: var(--cream);
}
.contact-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(176, 158, 128, 0.12);
  border: 1px solid var(--line);
  margin-bottom: .8rem;
  transition: background .3s ease;
}
.contact-card:not(.no-link):hover .contact-card-icon { background: rgba(176, 158, 128, 0.22); }
.contact-card-icon svg { width: 24px; height: 24px; fill: var(--gold); }
.contact-card-label {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.contact-card-value {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--cream);
  line-height: 1.4;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 1.5rem;
}
.site-footer h4 {
  color: var(--cream);
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { height: 56px; margin-bottom: 1rem; }
.muted { color: rgba(255,255,255,.55); font-size: .9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,.95);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: 90vw;
  height: 85vh;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-cards { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .section { padding: 4rem 0; }
  .nav-toggle { display: block; z-index: 70; }
  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: var(--navy-deep);
    background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s ease, visibility 0s linear .35s;
    padding: 4rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .35s ease, visibility 0s linear 0s;
  }
  .nav-menu a { color: var(--cream); font-size: 1.3rem; font-family: var(--serif); }
  .nav-menu a.nav-cta { color: var(--white); padding: .9rem 2rem; }

  .cards { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem .5rem; }
  .checklist { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: .6rem; }
  .gal-1 { grid-column: span 2; grid-row: span 2; }
  .gal-6 { grid-column: span 2; }

  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-inner { padding: 7rem 1.5rem 5rem; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .hero-meta span:nth-child(even) { display: none; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
