/* Biały Domek — design tokens from approved Concept A (mock/comps/comp-a-classic-cozy.png) */

:root {
  --canvas: #faf6ee;
  --linen: #f1ead9;
  --linen-deep: #e7ddc6;
  --ink: #2e2318;
  --ink-soft: #5c4f3f;
  --terra: #b4552d;
  --terra-dark: #96431f;
  --sage: #5f6f52;
  --sage-soft: #8a967e;
  --footer: #241a10;
  --radius: 10px;
  --shadow-soft: 0 2px 24px rgba(46, 35, 24, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: var(--terra); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linen-deep);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark svg { color: var(--sage); }

.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 10px 2px;
}
.site-nav a:hover { color: var(--terra); }

.lang-switch {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--linen-deep);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--terra); color: var(--terra); }

.nav-toggle { display: none; }

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

.hero { position: relative; isolation: isolate; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 45%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(36, 26, 16, 0.72) 0%, rgba(36, 26, 16, 0.38) 45%, rgba(36, 26, 16, 0.12) 75%),
    linear-gradient(to top, rgba(36, 26, 16, 0.35), transparent 40%);
}

.hero-inner {
  min-height: clamp(480px, 72vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 64px;
  color: #fdf9f1;
  max-width: 620px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin: 0 0 28px;
  max-width: 46ch;
  color: rgba(253, 249, 241, 0.92);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.015em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); }

.btn-ghost {
  background: transparent;
  color: #fdf9f1;
  border-color: rgba(253, 249, 241, 0.65);
}
.btn-ghost:hover { border-color: #fff; background: rgba(253, 249, 241, 0.12); }

.btn-outline {
  background: transparent;
  color: var(--terra);
  border-color: var(--terra);
}
.btn-outline:hover { background: var(--terra); color: #fff; }

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

section { padding: clamp(56px, 9vw, 96px) 0; }

.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--terra);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-head p { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }

/* ---------- Amenities ---------- */

.amenities { padding: clamp(36px, 6vw, 56px) 0; border-bottom: 1px solid var(--linen-deep); }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}

.amenity { color: var(--ink-soft); font-weight: 500; letter-spacing: 0.01em; }
.amenity svg { margin: 0 auto 10px; color: var(--sage); display: block; }

/* ---------- About / facts ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin: 0 0 18px;
}

.about-copy p { color: var(--ink-soft); margin: 0 0 16px; }

.fact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.fact-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 500;
  color: var(--ink);
}
.fact-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
  transform: translateY(-1px);
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
}
.about-photo figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: right;
}

/* ---------- Gallery ---------- */

.gallery { background: var(--linen); }

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

.gallery-grid figure { margin: 0; position: relative; }

.gallery-grid img,
.tile-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-grid figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

.tile-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--canvas);
  border: 1.5px dashed var(--linen-deep);
  color: var(--sage);
  font-weight: 500;
  text-align: center;
  padding: 16px;
}
.tile-placeholder small { color: var(--ink-soft); font-weight: 400; }

/* ---------- Region cards ---------- */

.region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}

.region-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.region-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

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

.region-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 6px;
}
.region-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.illustration-note {
  text-align: center;
  color: var(--sage-soft);
  font-size: 0.85rem;
  margin-top: 18px;
}

/* ---------- Evening strip ---------- */

.evening {
  padding: 0;
  position: relative;
}
.evening img { width: 100%; max-height: 340px; object-fit: cover; }

/* ---------- Availability ---------- */

.availability {
  background: var(--linen) url("../img/generated/texture-linen.webp");
  background-size: 480px;
  background-blend-mode: multiply;
}

.calendar-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
  max-width: 860px;
  margin: 0 auto;
}

.cal {
  background: var(--canvas);
  border: 1px solid var(--linen-deep);
  border-radius: var(--radius);
  padding: 18px 18px 22px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-head strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: capitalize;
}

.cal-nav {
  background: none;
  border: 1px solid var(--linen-deep);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 1rem;
}
.cal-nav:hover { border-color: var(--terra); color: var(--terra); }

.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.cal th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  padding: 6px 0;
  font-weight: 700;
}

.cal td {
  text-align: center;
  padding: 0;
  height: 40px;
  font-size: 0.95rem;
  color: var(--ink);
}

.cal td.out { color: var(--linen-deep); }
.cal td.past { color: var(--sage-soft); text-decoration: line-through; text-decoration-color: rgba(138,150,126,.5); }

.availability-note {
  text-align: center;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 28px auto 0;
}

/* ---------- Pricing ---------- */

.pricing-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 12px;
}

.pricing-card p { color: var(--ink-soft); margin: 0 0 12px; }

.pricing-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
  display: grid;
  gap: 10px;
  justify-content: center;
}
.pricing-points li { font-weight: 500; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 6px; }

.field label {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--linen-deep);
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 46px;
}
.field textarea { min-height: 110px; resize: vertical; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

.contact-aside { display: grid; gap: 18px; }

.contact-item {
  background: var(--linen);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.contact-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.contact-item p { margin: 0; color: var(--ink-soft); }

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

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

.site-footer {
  background: var(--footer);
  color: #d9cbb8;
  padding: 40px 0 32px;
  margin-top: 24px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .wordmark { color: #fdf9f1; }

.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: #d9cbb8; text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }

.footer-meta { width: 100%; font-size: 0.85rem; color: #a08e77; margin-top: 6px; }

/* ---------- Reveal motion ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

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

@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-shell { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 640px) {
  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--linen-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--linen); }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--linen-deep);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
  }

  .region-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
}
