/* ============================================================
   Noclegi Kałuszyn
   Styl wg projektu Canva: granat + żółty + biel.
   ============================================================ */

:root {
  --navy: #0e1b48;
  --navy-soft: #33415e;
  --yellow: #ffde59;
  --bg: #ffffff;
  --muted: #5b6478;
  --radius: 6px;
  --shadow: 0 12px 32px rgba(14, 27, 72, 0.16);
  --shadow-sm: 0 3px 10px rgba(14, 27, 72, 0.12);
  --maxw: 1180px;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head:
    "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  font-family: var(--font-body);
  color: var(--navy-soft);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

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

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-navy {
  background: var(--navy);
  color: #fff;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  margin-bottom: 1.2rem;
}
.section-title.light {
  color: #fff;
}

.accent-bar {
  display: block;
  width: 220px;
  height: 26px;
  background: var(--yellow);
  margin-bottom: 2.2rem;
}

/* Żółte kropki — dekoracja jak w projekcie (samodzielny komponent) */
.dots-anchor {
  position: relative;
}
.dots {
  position: absolute;
  width: 110px;
  height: 130px;
  background-image: radial-gradient(var(--yellow) 3.5px, transparent 4px);
  background-size: 34px 36px;
  pointer-events: none;
  z-index: 0;
}
.dots-right {
  right: 0;
  bottom: -90px;
}
.dots-left {
  left: 0;
  bottom: -90px;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  text-align: center;
}
.btn:active {
  transform: translateY(1px);
}
.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}
.btn-yellow:hover {
  box-shadow: var(--shadow-sm);
}

/* ---------- Przycisk „do góry" ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s,
    box-shadow 0.2s ease;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* ---------- Nagłówek / menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8eaf1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: auto; /* dosuwa menu do prawej strony */
}
.logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
}
.nav-list a {
  font-weight: 600;
  color: var(--navy);
  padding: 0.4rem 0;
  position: relative;
  font-size: 0.98rem;
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 0;
  background: var(--yellow);
  transition: width 0.2s ease;
}
.nav-list a:hover::after {
  width: 100%;
}
.nav-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-text {
  text-align: center;
}
.hero-logo {
  max-width: 395px;
  margin: 0 auto 1.4rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}
.cta-box {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  padding: 1.1rem 2.6rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.cta-box:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.cta-box span {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}
.cta-box strong {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- Pokoje (karty) ---------- */
#pokoje .section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: #fff;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.card-media {
  border-bottom: 5px solid var(--yellow);
}
.card-media img {
  width: 100%;
  aspect-ratio: 785 / 620;
  object-fit: cover;
}
.card-body {
  padding: 1.4rem 1.5rem 2rem;
}
.card-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 4.6em;
}
.card-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
}
.price {
  color: var(--navy-soft);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

/* ---------- O nas ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-bottom: 3rem;
}
.about-text {
  position: relative;
  z-index: 1;
}
.about-text p {
  margin-bottom: 1.2rem;
}
.about-strong {
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.6;
}
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.photo {
  overflow: hidden; /* kadr — zdjęcie powiększa się w środku, ramka bez zmian */
}
.photo-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo:hover img {
  transform: scale(1.08);
}

/* ---------- Przydatne informacje ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.info-text {
  position: relative;
  z-index: 1;
}
.info-text .accent-bar {
  margin-left: auto; /* tekst po prawej — pasek po prawej */
  margin-bottom: 2rem;
}
.info-group {
  margin-bottom: 1.6rem;
}
.info-group h3 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.info-group ul {
  padding-left: 1.4rem;
  list-style: disc;
}
.info-group li {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.2rem;
}
.info-group li::marker {
  color: var(--yellow);
}
.info-media {
  order: -1; /* obraz po lewej, tekst po prawej (desktop) */
  align-self: center;
}
.info-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Okolica ---------- */
.sight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.sight-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.sight-text .accent-bar {
  margin-left: auto;
  margin-bottom: 2rem;
}
.sight-text h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.sight-text p {
  margin-bottom: 1rem;
}
.pin-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy-soft);
  font-weight: 500;
}
.section-navy .pin-line {
  color: #fff; /* na granatowym tle */
}
.section-navy .sight-text h3 {
  color: #fff; /* podtytuł na granatowym tle */
}
.pin-line svg {
  flex: none;
}

/* ---------- Okolica (Co warto zobaczyć?) — obraz po lewej, tekst po prawej ---------- */
#okolica .sight-media {
  order: -1;
}

/* Dojazd — własny układ: wąski tekst po lewej, duża mapa po prawej */
.dojazd-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
#dojazd .sight-text .accent-bar {
  margin-left: 0; /* tekst po lewej — pasek po lewej */
}
.map-frame {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 0;
  display: block;
  box-shadow: var(--shadow);
}

/* ---------- Kontakt ---------- */
.contact-inner {
  text-align: center;
}
.contact-logo {
  max-width: 380px;
  margin: 0 auto 1.6rem;
}
.footer-main .section-title {
  margin-bottom: 0.6rem;
}
.contact-phone {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}
.contact-phone:hover {
  color: #2a3d7c;
}
.contact-address {
  justify-content: center;
}
.contact-address strong {
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- Stopka ---------- */
.footer-stripe {
  display: flex;
  height: 30px;
  background: var(--navy);
}
.footer-stripe span {
  width: 26%;
  background: var(--yellow);
}
/* Kontakt na tle zdjęcia stopki */
.footer-main {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 3.25rem) 0;
}
.footer-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
}
.footer-main .contact-inner {
  position: relative;
  z-index: 2;
}
.footer-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 1.1rem 20px;
  font-size: 0.88rem;
}

/* ============================================================
   Responsywność
   ============================================================ */
@media (max-width: 960px) {
  .dots {
    display: none;
  }
  .hero-grid,
  .about-grid,
  .info-grid,
  .sight-grid,
  .dojazd-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .card-desc {
    min-height: 0;
  }
  .photo-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .sight-text .accent-bar,
  .info-text .accent-bar {
    margin-left: 0;
  }
  .info-media,
  #okolica .sight-media {
    order: 2; /* na mobile obraz po tekście */
  }
}

@media (max-width: 760px) {
  .nav-cta {
    display: none;
  }
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
  .logo-img {
    height: 48px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    z-index: -1; /* pod paskiem nawigacji */
    background: #fff;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .nav.open {
    max-height: 80vh;
    overflow-y: auto;
    border-bottom: 1px solid #e8eaf1;
    box-shadow: var(--shadow);
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 24px 0.5rem;
  }
  .nav-list li {
    border-bottom: 1px solid #eef0f5;
  }
  .nav-list li:last-child {
    border-bottom: 0;
  }
  .nav-list a {
    display: block;
    padding: 0.85rem 0;
  }
  .photo-row {
    grid-template-columns: 1fr;
  }
  .hero-logo {
    max-width: 260px;
  }
  .contact-logo {
    max-width: 280px;
  }
  .accent-bar {
    width: 150px;
    height: 20px;
  }
}

/* Dostępność: ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
