/* ============================================================
   Endorfina Sarbinowo — odświeżona strona domku wakacyjnego
   ============================================================ */

:root {
  --sand:      #F7F1E7;
  --sand-2:    #EFE6D8;
  --cream:     #FFFFFF;
  --ink:       #2A231C;
  --ink-soft:  #6E6357;
  --ink-faint: #9A8E80;
  --sea:       #1F5E5B;
  --sea-deep:  #154443;
  --sea-soft:  #E4EFEC;
  --coral:     #DD7150;
  --coral-deep:#C85C3C;
  --coral-soft:#F6E0D5;
  --line:      rgba(42, 35, 28, 0.10);
  --line-2:    rgba(42, 35, 28, 0.06);
  --shadow-sm: 0 2px 10px rgba(42, 35, 28, 0.06);
  --shadow-md: 0 14px 40px rgba(42, 35, 28, 0.12);
  --shadow-lg: 0 30px 80px rgba(21, 68, 67, 0.22);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --maxw: 1180px;
  --display: "Marcellus", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--body);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; }

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

.kicker {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--coral);
}

.section { padding: clamp(64px, 9vw, 132px) 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin-top: 18px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); margin-top: 18px; font-size: 18px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 10px 26px rgba(221,113,80,.34); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(221,113,80,.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------------- Header (always light) ---------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: rgba(247, 241, 231, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, border-color .35s ease;
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(247, 241, 231, 0.95);
  box-shadow: 0 6px 28px rgba(42,35,28,.08);
  border-color: var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand .name { font-family: var(--display); font-size: 27px; letter-spacing: 0.02em; }
.brand .sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase; color: var(--coral-deep); margin-top: 5px; padding-left: 3px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  position: relative; transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--coral); transition: width .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Language switch */
.lang { display: inline-flex; background: var(--sand-2); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.lang button {
  font-family: var(--body); font-weight: 700; font-size: 12.5px; letter-spacing: .08em;
  border: none; background: transparent; color: var(--ink-soft); cursor: pointer;
  padding: 7px 13px; border-radius: 100px; transition: all .2s ease;
}
.lang button.active { background: var(--sea); color: #fff; box-shadow: var(--shadow-sm); }

.header-phone { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.header-phone svg { width: 17px; height: 17px; color: var(--coral); }
.header-phone:hover { color: var(--coral-deep); }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; color: var(--ink); }
.burger span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: .3s; }

/* ---------------- Hero (contained split, like About) ---------------- */
.hero {
  position: relative; background: var(--sand); overflow: hidden;
  padding: 150px 0 96px;
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-decor::before, .hero-decor::after { content: ""; position: absolute; border-radius: 50%; }
.hero-decor::before { width: 520px; height: 520px; top: -180px; left: -140px; background: radial-gradient(circle, rgba(221,113,80,.12), transparent 68%); }
.hero-decor::after { width: 600px; height: 600px; bottom: -260px; right: -180px; background: radial-gradient(circle, rgba(31,94,91,.10), transparent 68%); }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.hero-text { max-width: 560px; }
.hero h1 { font-size: clamp(33px, 3.9vw, 56px); letter-spacing: -0.015em; margin-top: 20px; color: var(--ink); max-width: 14ch; }
.hero .lead { font-size: clamp(16px, 1.35vw, 19px); max-width: 46ch; margin-top: 20px; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.hero-stats .chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cream); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: 100px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero-stats .chip svg { width: 17px; height: 17px; color: var(--sea); }

.hero-media { position: relative; }
.hero-media .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--sea); color: #fff; border-radius: var(--r-md);
  padding: 22px 28px; box-shadow: var(--shadow-md); max-width: 210px;
}
.hero-media .badge .big { font-family: var(--display); font-size: 42px; line-height: 1; }
.hero-media .badge .lbl { font-size: 13px; opacity: .88; margin-top: 8px; letter-spacing: .03em; }

/* ---------------- About ---------------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-text h2 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.01em; }
.about-text .lead-line { font-family: var(--display); font-size: clamp(19px, 1.9vw, 23px); line-height: 1.35; color: var(--ink); margin: 22px 0 26px; }
.about-text p { color: var(--ink-soft); margin-bottom: 18px; }
.about-media { position: relative; }
.about-media .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; }
.about-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media .badge {
  position: absolute; bottom: -26px; left: -26px;
  background: var(--sea); color: #fff; border-radius: var(--r-md);
  padding: 22px 26px; box-shadow: var(--shadow-md); max-width: 200px;
}
.about-media .badge .big { font-family: var(--display); font-size: 40px; line-height: 1; }
.about-media .badge .lbl { font-size: 13px; opacity: .85; margin-top: 8px; letter-spacing: .04em; }

/* ---------------- Details ---------------- */
.details { background: var(--sand); }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 64px; }
.room-card {
  background: var(--cream); border-radius: var(--r-md); padding: 30px 28px;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.room-card .rc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.room-card .rc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; }
.room-card .rc-icon svg { width: 24px; height: 24px; }
.room-card .rc-cap { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--coral-deep); background: var(--coral-soft); padding: 5px 12px; border-radius: 100px; }
.room-card h3 { font-size: 23px; margin-bottom: 14px; }
.room-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.room-card li { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.room-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); flex: none; }

.detail-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.panel { background: var(--cream); border-radius: var(--r-md); padding: 34px; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 22px; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.panel h3 svg { width: 22px; height: 22px; color: var(--sea); }

.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; }
.amenity { display: flex; align-items: center; gap: 13px; font-size: 15px; font-weight: 600; color: var(--ink); }
.amenity .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--sand-2); color: var(--sea); display: grid; place-items: center; flex: none; }
.amenity .ic svg { width: 20px; height: 20px; }

.mini-list { display: flex; flex-direction: column; gap: 16px; }
.mini-list .mi { display: flex; gap: 14px; align-items: flex-start; }
.mini-list .mi .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--coral-soft); color: var(--coral-deep); display: grid; place-items: center; flex: none; }
.mini-list .mi .ic svg { width: 21px; height: 21px; }
.mini-list .mi .tx strong { display: block; font-size: 15.5px; }
.mini-list .mi .tx span { font-size: 14px; color: var(--ink-soft); }
.panel + .panel { margin-top: 24px; }

/* ---------------- Gallery ---------------- */
.gallery-section { background: var(--cream); }
.gallery-section.alt { background: var(--sand); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; flex-wrap: wrap; }
.gallery-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin-top: 14px; }
.gallery-count { font-size: 14px; color: var(--ink-faint); font-weight: 600; }

.gallery {
  columns: 3; column-gap: 16px;
}
.gallery .g-item {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer; position: relative; background: var(--sand-2);
  box-shadow: var(--shadow-sm);
}
.gallery .g-item img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); display: block; }
.gallery .g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21,40,45,.5));
  opacity: 0; transition: opacity .35s ease;
}
.gallery .g-item .zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; opacity: 0; transform: scale(.8) translateY(6px); transition: all .35s ease;
  color: var(--sea-deep);
}
.gallery .g-item .zoom svg { width: 19px; height: 19px; }
.gallery .g-item:hover img { transform: scale(1.06); }
.gallery .g-item:hover::after { opacity: 1; }
.gallery .g-item:hover .zoom { opacity: 1; transform: scale(1) translateY(0); }

/* ---------------- CTA band ---------------- */
.cta-band { position: relative; padding: clamp(70px, 9vw, 120px) 0; color: #fff; text-align: center; overflow: hidden; }
.cta-band .cta-bg { position: absolute; inset: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,68,67,.86), rgba(21,40,45,.82)); }
.cta-band .inner { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(30px, 5vw, 54px); max-width: 18ch; margin: 16px auto 0; }
.cta-band .phone-big {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 34px;
  font-family: var(--display); font-size: clamp(28px, 4vw, 42px); color: #fff;
}
.cta-band .phone-big svg { width: 34px; height: 34px; color: var(--coral); }
.cta-band .phone-big:hover { color: var(--coral-soft); }
.cta-sub { color: rgba(255,255,255,.8); margin-top: 14px; font-size: 16px; }

/* ---------------- Location ---------------- */
.location { background: var(--sand); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cream); }
.loc-map { min-height: 460px; }
.loc-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.loc-info { padding: clamp(36px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.loc-info h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 26px; }
.loc-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.loc-row:first-of-type { border-top: none; }
.loc-row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; flex: none; }
.loc-row .ic svg { width: 23px; height: 23px; }
.loc-row .tx .lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.loc-row .tx .val { font-size: 18px; font-weight: 700; margin-top: 3px; }
.loc-row .tx .val:hover { color: var(--coral-deep); }
.loc-phones { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.loc-phone { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.loc-phone .flag { width: 30px; height: 20px; border-radius: 4px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.loc-phone:hover { color: var(--coral-deep); }

/* ---------------- Footer ---------------- */
.footer { background: var(--sea-deep); color: rgba(255,255,255,.78); padding: 64px 0 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand .name { color: #fff; }
.footer .brand .sub { color: var(--coral); opacity: 1; }
.footer-tag { max-width: 30ch; margin-top: 16px; font-size: 15px; color: rgba(255,255,255,.6); }
.footer-links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.82); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.5); }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 28, 30, .94); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 8px; box-shadow: var(--shadow-lg); object-fit: contain; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s ease, transform .2s ease; }
.lb-btn:hover { background: rgba(255,255,255,.25); transform: scale(1.06); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 26px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; letter-spacing: .05em; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Mobile nav panel ---------------- */
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: var(--sea-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transform: translateY(-100%); transition: transform .4s cubic-bezier(.6,.05,.2,1); }
.mobile-nav.open { transform: none; }
.mobile-nav a { color: #fff; font-family: var(--display); font-size: 30px; padding: 12px; }
.mobile-nav a:hover { color: var(--coral); }
.mobile-nav .mn-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #fff; cursor: pointer; }
.mobile-nav .mn-close svg { width: 32px; height: 32px; }
.mobile-nav .mn-phone { margin-top: 24px; color: var(--coral); font-weight: 700; font-size: 20px; font-family: var(--body); }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero { padding: 120px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-media { max-width: 440px; margin: 0 auto; order: 2; }
  .hero-media .badge { left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin: 20px auto 0; }
  .about-media .badge { left: 0; }
  .rooms { grid-template-columns: 1fr; }
  .detail-cols { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .loc-grid { grid-template-columns: 1fr; }
  .loc-map { min-height: 340px; }
  .loc-map iframe { min-height: 340px; }
}
@media (max-width: 720px) {
  .nav, .header-phone { display: none; }
  .burger { display: flex; }
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .amenities { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 12px; }
  .hero-stats { gap: 10px; }
  .hero-stats .chip { font-size: 13px; padding: 9px 14px; }
  .footer-top { flex-direction: column; gap: 28px; }
}
@media (max-width: 460px) {
  .gallery { columns: 1; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
