/* ============================================================
   Dom nad Baryczą — styles
   Warm, rustic, earthy. Serif display + clean sans body.
   ============================================================ */

:root {
  --cream:     #f8f2e6;
  --cream-2:   #f1e7d5;
  --paper:     #fffaf1;
  --clay:      #9c5a38;
  --clay-dark: #7c4529;
  --forest:    #3f4a38;
  --sage:      #8a9575;
  --ink:       #2c2822;
  --muted:     #6d6353;
  --line:      rgba(60,50,40,.14);
  --shadow:    0 18px 44px -24px rgba(60,40,25,.55);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --wrap: 1160px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--clay-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: .2px; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 600;
  color: var(--clay); margin: 0 0 .6rem;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 64ch; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-muted { background: var(--cream-2); }
.section-head.center { text-align: center; margin: 0 auto clamp(40px,5vw,64px); max-width: 760px; }
.section-head.center .lead { margin-inline: auto; }

.ic { width: 22px; height: 22px; flex: none; stroke: currentColor; }
svg.ic use, .card-ic svg use { pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .82em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .18s ease; white-space: nowrap;
}
.btn-sm { padding: .58em 1.1em; font-size: .9rem; }
.btn-lg { padding: .95em 1.9em; font-size: 1.05rem; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 10px 22px -12px rgba(120,60,25,.7); }
.btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
  color: #fff;
}
.site-header.scrolled { background: var(--paper); color: var(--ink); box-shadow: 0 4px 20px -12px rgba(50,35,20,.5); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--clay); border-radius: 9px; color: #fff; }
.brand-mark svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.brand-text { white-space: nowrap; }

.site-nav { display: flex; gap: 26px; }
.site-nav a { color: inherit; text-decoration: none; font-weight: 500; font-size: .98rem; opacity: .92; }
.site-nav a:hover { opacity: 1; color: var(--clay); }
.site-header:not(.scrolled) .site-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: .9rem; }
.lang-switch button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; opacity: .6; padding: 2px 3px; }
.lang-switch button.is-active { opacity: 1; color: var(--clay); text-decoration: underline; text-underline-offset: 4px; }
.site-header:not(.scrolled) .lang-switch button.is-active { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 0; height: 2.5px; width: 100%; background: currentColor; border-radius: 2px; transition: .25s; }
.nav-toggle span:nth-child(1){ top: 2px; } .nav-toggle span:nth-child(2){ top: 11px; } .nav-toggle span:nth-child(3){ top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; transform: scale(1.04); filter: brightness(.82) saturate(.96); }
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(22,17,11,.68) 0%, rgba(22,17,11,.42) 45%, rgba(22,17,11,.20) 100%),
  linear-gradient(180deg, rgba(22,17,11,.30) 0%, rgba(22,17,11,.18) 42%, rgba(18,14,8,.66) 100%); }
.hero-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 120px 24px 90px; width: 100%; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .24em; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; color: rgba(255,255,255,.9); }
.hero-title { font-size: clamp(3rem, 8vw, 6rem); line-height: .98; text-shadow: 0 3px 30px rgba(0,0,0,.35); }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem); margin: .5rem 0 1rem; color: #fdf6e9; }
.hero-sub { max-width: 52ch; font-size: 1.1rem; color: rgba(255,255,255,.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; }
.hero-scroll::after { content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{opacity:0; transform: translate(-50%,0)} 40%{opacity:1} 80%{opacity:0; transform: translate(-50%,10px)} }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-text h2 { margin-bottom: 1.2rem; }
.feature-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .ic { color: var(--clay); margin-top: 3px; }
.about-media { display: grid; gap: 18px; }
.ph { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-tall img { aspect-ratio: 16/10; }
.ph figcaption { font-size: .82rem; color: var(--muted); padding: 8px 12px; background: var(--paper); }

/* ---------- Area ---------- */
.section-area { background: var(--forest); color: #f3efe4; padding-bottom: 0; }
.section-area .eyebrow { color: #d7c9a8; }
.section-area .lead { color: rgba(243,239,228,.82); }
.section-area h2, .section-area h3 { color: #fbf6ea; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 30px 26px; transition: transform .18s ease, background .18s ease; }
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.card-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(215,201,168,.16); color: #e7d9b6; margin-bottom: 16px; }
.card-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; }
.card h3 { margin-bottom: .5rem; }
.card p { color: rgba(243,239,228,.8); margin: 0; font-size: .98rem; }
.distances { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; padding: 46px 0; color: #f3efe4; }
.distances span { display: inline-flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.distances .ic { color: #d7c9a8; }
.distances strong { color: #fff; }
.band { height: clamp(240px, 34vw, 440px); background-size: cover; background-position: center; }

/* ---------- Rooms ---------- */
.rooms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.rooms-facts { display: grid; gap: 20px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .ic { width: 26px; height: 26px; color: var(--clay); margin-top: 4px; }
.fact strong { display: block; font-size: 1.06rem; }
.fact span { color: var(--muted); font-size: .95rem; }
.rooms-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rooms-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.amen-title { text-align: center; margin: clamp(48px,6vw,72px) 0 26px; }
.amenities { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.amenities li { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-weight: 500; }
.amenities .ic { color: var(--clay); }

.audience { text-align: center; margin-top: clamp(40px,5vw,56px); }
.audience-label { font-weight: 600; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag { background: var(--sage); color: #fff; padding: .5em 1.1em; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.audience-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }

.price-box { text-align: center; margin: clamp(48px,6vw,72px) auto 0; max-width: 560px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow); }
.price-label { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; color: var(--clay); font-weight: 600; margin: 0; }
.price-main { font-family: var(--serif); font-size: 2.1rem; margin: .2rem 0 .4rem; }
.price-sub { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item { padding: 0; border: 0; cursor: pointer; border-radius: 12px; overflow: hidden; background: var(--cream-2); aspect-ratio: 1/1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-wide { grid-column: span 2; aspect-ratio: 2/1; }

/* ---------- Inquiry form ---------- */
.section-inquiry { background: var(--cream-2); }
.inquiry-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,4vw,44px); box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field span { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
  font: inherit; padding: .72em .85em; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(156,90,56,.15); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--clay); width: 17px; height: 17px; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 22px; }
.form-status { margin: 0; font-weight: 500; font-size: .95rem; }
.form-status.ok { color: var(--forest); }
.form-status.err { color: #b0442f; }
.inquiry-form.sent .fields, .inquiry-form.sent .consent, .inquiry-form.sent .btn { opacity: .5; pointer-events: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px,4vw,56px); align-items: stretch; }
.contact-address { font-style: normal; font-size: 1.1rem; line-height: 1.7; margin: 1rem 0 1.4rem; }
.contact-note { color: var(--muted); }
.contact-map { min-height: 320px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e1d3; padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.4rem; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-tag { color: #b6ab98; font-size: .92rem; margin: 0; }
.footer-copy { color: #8f8674; font-size: .86rem; margin: .3rem 0 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,16,10,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; border-radius: 999px; display: grid; place-items: center; transition: background .15s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 22px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 1.4rem; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav, .header-actions .btn-sm { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .site-nav {
    display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--paper); color: var(--ink); padding: 18px 24px; gap: 6px; box-shadow: var(--shadow);
  }
  body.nav-open .site-nav a { padding: 10px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
  body.nav-open .site-header { background: var(--paper); color: var(--ink); }
  .about-grid, .rooms-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-map { min-height: 300px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .amenities, .fields { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-wide { grid-column: span 2; }
  .hero-inner { padding-top: 100px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .hero-scroll::after { animation: none; }
}
