/* ==========================================================================
   Roubenka Přední Výtoň — design system
   Mobile-first, contemporary cottage aesthetic.
   ========================================================================== */

:root {
  --color-bg: #faf6f0;
  --color-surface: #ffffff;
  --color-text: #2a2320;
  --color-text-muted: #6b5d54;
  --color-wood: #4a2f1c;
  --color-wood-dark: #33200f;
  --color-accent: #5c7048;      /* moss green */
  --color-accent-dark: #465737;
  --color-amber: #c97b3d;       /* warm amber for highlights/CTAs */
  --color-amber-dark: #a8622c;
  --color-border: #e6dccf;
  --color-booked: #d98a8a;
  --color-available: #8aab7a;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(42, 35, 32, 0.08);
  --shadow-lg: 0 10px 40px rgba(42, 35, 32, 0.16);
  --container-max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1c1712;
    --color-surface: #241d17;
    --color-text: #f2ece3;
    --color-text-muted: #c8b9ab;
    --color-border: #3a2f26;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--color-wood-dark);
}
@media (prefers-color-scheme: dark) {
  h1, h2, h3, h4 { color: var(--color-text); }
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-wood);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------- Layout ------------------------------- */

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

section { padding-block: clamp(2rem, 5vw, 3.5rem); }
section + section { border-top: 1px solid var(--color-border); }

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

.site-header {
  background: var(--color-wood);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header__bar {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand__mark { font-size: 1.6rem; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand__tagline {
  font-size: 0.75rem;
  color: #d9c9b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle__box { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.nav-toggle__bar { height: 2px; background: #fff; border-radius: 1px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  max-height: 0;
  overflow: hidden;
  background: var(--color-wood-dark);
  transition: max-height 0.25s ease;
}
.site-nav.is-open { max-height: 480px; }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px 20px;
  display: flex;
  flex-direction: column;
}
.site-nav__list a {
  display: block;
  padding: 12px 4px;
  color: #f0e6da;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}
.site-nav__list a.is-active { color: #fff; }
.site-nav__list a.is-active::after { content: " •"; color: var(--color-amber); }

.lang-switch {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 10px 20px 16px;
}
.lang-switch a {
  color: #d9c9b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
}
.lang-switch a.is-active { background: var(--color-amber); border-color: var(--color-amber); color: #2a1a0d; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    max-height: none;
    background: transparent;
  }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    padding: 0 20px;
    max-width: var(--container-max);
    margin-inline: auto;
  }
  .site-nav__list a { border-bottom: none; padding: 10px 12px; border-radius: var(--radius-sm); }
  .site-nav__list a:hover, .site-nav__list a.is-active { background: rgba(255,255,255,0.08); }
  .site-nav__list a.is-active::after { content: ""; }
  .lang-switch { max-width: var(--container-max); margin-inline: auto; padding: 0 20px 10px; justify-content: flex-end; }
}

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

.hero {
  position: relative;
  min-height: min(70vh, 560px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(20,14,9,0.15), rgba(20,14,9,0.75)), var(--hero-img) center/cover no-repeat;
}
.hero__content { padding-block: clamp(2rem, 6vw, 4rem); max-width: 640px; }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.hero p { color: #f0e6da; font-size: 1.1rem; }

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
}
.btn--primary { background: var(--color-amber); color: #2a1a0d; }
.btn--primary:hover { background: var(--color-amber-dark); }
.btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }

/* -------------------------------- Prose ---------------------------------- */

.prose { max-width: 70ch; }
.prose p { color: var(--color-text-muted); }

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

.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -4px;
  scrollbar-width: thin;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.gallery__item {
  flex: 0 0 min(320px, 80vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-block { margin-block: 1.5rem 2.5rem; }
.gallery-block h3 { margin-bottom: 0.25em; }
.gallery-block .prose { margin-bottom: 1em; }

/* -------------------------------- Feature grid ---------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.feature-card img {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }

/* -------------------------------- Places / cards --------------------------- */

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.place-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.place-card p { color: var(--color-text-muted); margin-bottom: 0; }

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

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pricing-table th, .pricing-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.pricing-table thead th {
  background: var(--color-wood);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover { background: rgba(92,112,72,0.06); }

.notes-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  color: var(--color-text-muted);
}
.notes-list li { padding: 6px 0 6px 26px; position: relative; }
.notes-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* -------------------------------- Forms ------------------------------------ */

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea {
  font: inherit;
  padding: 0.7em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 12px; display: none; }
.form-status.is-success { display: block; background: rgba(92,112,72,0.12); color: var(--color-accent-dark); }
.form-status.is-error { display: block; background: rgba(217,138,138,0.15); color: #8a2f2f; }

/* -------------------------------- Booking week-picker ------------------------ */

.booking-rules {
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-top: -0.5em;
}

.week-picker {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 440px;
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-header button {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 1rem;
}
.cal-header strong { font-family: var(--font-display); }
.cal-status { color: var(--color-text-muted); font-size: 0.9rem; margin: 0 0 10px; }

.week-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.week-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.week-row--empty { color: var(--color-text-muted); text-align: center; border-style: dashed; }
.week-row__date { font-weight: 600; margin-bottom: 6px; }
.week-row__options { display: flex; gap: 8px; flex-wrap: wrap; }

.week-option {
  flex: 1 1 auto;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
  font: inherit;
  color: var(--color-text);
}
.week-option__label { font-weight: 600; font-size: 0.88rem; }
.week-option__status { font-size: 0.78rem; color: var(--color-text-muted); }
.week-option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  text-decoration: line-through;
}
.week-option.is-selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.week-option.is-selected .week-option__status { color: #eaf0e4; }

.selected-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.7em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  min-height: 2.6em;
}
.selected-range em { color: var(--color-text-muted); font-style: normal; }
.selected-range__price { font-weight: 700; color: var(--color-accent-dark); }

.booking-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .booking-layout { grid-template-columns: 420px 1fr; align-items: start; }
}

.contact-alt {
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}

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

.site-footer {
  background: var(--color-wood-dark);
  color: #cbbba9;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
}
