/* ============================================
   Ostoja Gromadzyń — arkusz stylów
   Paleta: czerwień + czerń z logo, kremowe tło,
   drewniany brąz jako akcent (klimat bieszczadzki)
   ============================================ */

:root {
  --color-red: #c0392b;
  --color-red-dark: #96271c;
  --color-black: #201c1a;
  --color-cream: #faf5ec;
  --color-cream-dark: #f0e6d4;
  --color-wood: #6b4226;
  --color-wood-light: #8a5a35;
  --color-white: #ffffff;

  --font-display: "Arial Black", "Segoe UI Black", "Segoe UI", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(32, 28, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 3px solid var(--color-red);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-black);
}

.brand img {
  height: 56px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-wood);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-black);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-red);
  color: var(--color-white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-black);
  color: var(--color-black);
}

.btn-outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 90px 0 70px;
  background: linear-gradient(180deg, var(--color-cream-dark), var(--color-cream));
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-red) 0 24px,
    var(--color-black) 24px 48px
  );
  opacity: 0.15;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}

.hero p.lead {
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 30px;
  color: #4a423d;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  padding: 60px 0 40px;
  background: var(--color-cream-dark);
  text-align: center;
  border-bottom: 3px solid var(--color-red);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 10px;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: #4a423d;
}

/* ---------- Sections ---------- */

section {
  padding: 70px 0;
}

section.alt {
  background: var(--color-white);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
  margin: 0 0 12px;
}

.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
  color: #55504b;
}

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-body {
  padding: 22px 24px 26px;
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.card p {
  margin: 0 0 12px;
  color: #4a423d;
  font-size: 0.97rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  background: var(--color-cream-dark);
  color: var(--color-wood);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
}

/* ---------- Photo placeholder ---------- */

.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-cream-dark);
}

a.photo {
  display: block;
  text-decoration: none;
}

a.photo img {
  transition: transform 0.3s ease;
}

a.photo:hover img {
  transform: scale(1.04);
}

.photo-link {
  display: block;
  text-decoration: none;
  cursor: zoom-in;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo .photo-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(32, 28, 26, 0.72);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
}

.video-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.video-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-cream-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-card video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  background: #000;
}

.video-card .video-caption {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--color-wood);
}

.video-card-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}

.mini-photos {
  display: grid;
  grid-template-columns: repeat(2, 270px);
  gap: 18px;
}

.mini-photos .photo {
  aspect-ratio: 4 / 3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-grid .photo {
  cursor: zoom-in;
}

.gallery-grid .photo:nth-child(5n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---------- Apartament / pokoje ---------- */

.apartment-plan {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-red);
  padding: 24px 28px;
  margin-top: 8px;
}

.room-body .apartment-plan h3 {
  font-family: var(--font-display);
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.apartment-plan dl {
  margin: 0;
}

.apartment-plan dt {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  margin-top: 14px;
}

.apartment-plan dt:first-child {
  margin-top: 0;
}

.apartment-plan dt a {
  color: var(--color-red);
  text-decoration: none;
}

.apartment-plan dt a:hover {
  text-decoration: underline;
}

.apartment-plan dt span {
  font-size: 0.85rem;
  color: var(--color-wood);
}

.apartment-plan dd {
  margin: 2px 0 0;
  color: #4a423d;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-cream-dark);
}

.apartment-plan dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.room {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 70px;
  scroll-margin-top: 100px;
}

.room > * {
  min-width: 0;
}

.room:last-child {
  margin-bottom: 0;
}

.room-number {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.room-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 14px;
}

.room-body p {
  color: #4a423d;
  margin: 0 0 16px;
}

.bed-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.bed-list li {
  font-size: 1.05rem;
  padding: 6px 0;
}

.bed-list strong {
  display: inline-block;
  min-width: 2.2em;
  color: var(--color-red);
}

.room-photo,
.room-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-black);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  user-select: none;
}

.room-photo img,
.room-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.room-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(32, 28, 26, 0.55);
  color: var(--color-white);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.room-gallery-nav:hover {
  background: var(--color-red);
}

.room-gallery-prev {
  left: 12px;
}

.room-gallery-next {
  right: 12px;
}

.room-gallery-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(32, 28, 26, 0.72);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.room-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(32, 28, 26, 0.72);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
}

.room-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scroll-snap-type: x proximity;
}

.room-gallery-thumbs button {
  flex: 0 0 auto;
  width: 108px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-cream-dark);
  cursor: pointer;
  opacity: 0.65;
  scroll-snap-align: start;
  transition: opacity 0.15s, border-color 0.15s;
}

.room-gallery-thumbs button:hover {
  opacity: 1;
}

.room-gallery-thumbs button.active {
  border-color: var(--color-red);
  opacity: 1;
}

.room-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .room {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .room-gallery-thumbs button {
    width: 84px;
  }
  .room-gallery-caption,
  .photo .photo-label {
    display: none;
  }
  .room-gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: var(--color-white);
  text-align: center;
  margin-top: 14px;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: var(--color-white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

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

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 720px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

/* ---------- Voucher banner ---------- */

.voucher-banner {
  background: var(--color-red);
  color: var(--color-white);
  padding: 46px 0;
}

.voucher-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.voucher-badge {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  box-shadow: var(--shadow);
}

.voucher-badge strong {
  font-size: 1.6rem;
  line-height: 1;
}

.voucher-badge span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.voucher-content {
  flex: 1 1 320px;
}

.voucher-content h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.voucher-content p {
  margin: 0 0 18px;
  opacity: 0.95;
  max-width: 640px;
}

.voucher-content .btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.voucher-content .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-red);
}

@media (max-width: 560px) {
  .voucher-inner {
    text-align: center;
    justify-content: center;
  }
}

/* ---------- Info strip ---------- */

.info-strip {
  background: var(--color-wood);
  color: var(--color-white);
}

.info-strip .grid-3 {
  padding: 40px 0;
  text-align: center;
}

.info-strip h4 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.info-strip p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-details dt {
  font-weight: 700;
  color: var(--color-wood);
  margin-top: 18px;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 4px 0 0;
}

.map-frame {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: -8px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 2px solid var(--color-cream-dark);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-red);
}

.form-note {
  font-size: 0.85rem;
  color: #6b625c;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-black);
  color: var(--color-cream);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-grid h5 {
  font-family: var(--font-display);
  margin: 0 0 14px;
  color: var(--color-white);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  text-decoration: none;
  color: var(--color-cream);
  opacity: 0.85;
}

.footer-grid a:hover {
  opacity: 1;
  color: var(--color-red);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 245, 236, 0.15);
  padding-top: 18px;
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid .photo:nth-child(5n + 1) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .video-card-group {
    flex-direction: column;
  }
  .mini-photos {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 3px solid var(--color-red);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 10px 24px 18px;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
