/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }

:root {
  --bg: #ffffff;
  --cream: #faf6f1;
  --rose: #d6a9a3;
  --sage-green: #b7c297;
  --green: #9c5d3c;
  --sage: #a3b59a;
  --ink: #2b2422;
  --ink-soft: #6a625f;
  --line: #e8e1d8;
  --shadow: 0 4px 20px rgba(43, 36, 34, 0.06);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 300;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.narrow { max-width: 720px; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}
.nav nav { display: flex; gap: 1.75rem; }
.nav nav a { color: var(--ink); font-size: 0.95rem; font-weight: 400; }
.nav nav a:hover { color: var(--sage-green); text-decoration: none; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 0.4rem; }
.nav-toggle-label span { display: block; width: 24px; height: 2px; background: var(--ink); }

@media (max-width: 720px) {
  .nav-toggle-label { display: flex; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav nav a { padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ nav { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  padding: 6rem 0 5rem;
  text-align: center;
}
.hero h1 { margin: 0 0 1rem; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 600px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.75rem 1.6rem;
  background: var(--sage-green); color: #fff;
  border: 1px solid var(--sage-green);
  border-radius: 2px; cursor: pointer;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 400;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); text-decoration: none; color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.grid-3 {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: #fff; padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; font-size: 1.4rem; }

/* ---------- Band ---------- */
.band {
  background: var(--cream);
  padding: 4rem 0;
  text-align: center;
}
.band-inner h2 { margin-top: 0; }

/* ---------- Page heads ---------- */
.page-title { margin: 0 0 0.5rem; }
.page-lead { color: var(--ink-soft); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* ---------- Blog list ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.post-item h2 { margin: 0 0 0.25rem; }
.post-item h2 a { color: var(--ink); }
.post-item time { color: var(--ink-soft); font-size: 0.85rem; }
.post-item p { margin: 0.5rem 0 0.5rem; color: var(--ink-soft); }
.more { font-size: 0.9rem; }

/* ---------- Post ---------- */
.post header { margin-bottom: 2rem; }
.post header time { color: var(--ink-soft); }
.post-body p { margin: 1.1rem 0; }
.post-body h2, .post-body h3 { margin-top: 2rem; }
.post-body img { margin: 1.5rem auto; }
.post-body blockquote {
  border-left: 3px solid var(--rose);
  margin: 1.5rem 0; padding: 0.5rem 1.25rem;
  color: var(--ink-soft); font-style: italic;
}
.back { margin-top: 3rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-item {
  border: 0; padding: 0; cursor: pointer; background: var(--cream);
  overflow: hidden; aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.admin-photo {
  margin: 0; display: flex; flex-direction: column; gap: 0.5rem;
}
.admin-photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--cream); border-radius: 4px;
}
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 2rem;
}
.lightbox img { max-width: 95%; max-height: 95%; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: transparent; color: #fff; border: 0;
  font-size: 2.5rem; cursor: pointer; line-height: 1;
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; }
.form label > span { font-size: 0.85rem; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font-family: var(--sans); font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line); background: #fff;
  border-radius: 2px; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid var(--rose); outline-offset: -1px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: #b3261e; font-size: 0.9rem; margin: 0; }
.form-success {
  padding: 1.5rem; background: var(--cream);
  border-left: 3px solid var(--sage); margin-top: 1rem;
}
.form-success h3 { margin-top: 0; }

/* ---------- Eshop / items ---------- */
.items-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.item-card {
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.item-photo {
  aspect-ratio: 4/3; background: var(--cream);
  overflow: hidden;
}
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 2.5rem; opacity: 0.4;
}
.item-body { padding: 1.25rem; }
.item-body h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.item-qty { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.item-desc { margin: 0.75rem 0; color: var(--ink-soft); font-size: 0.95rem; }
.item-form { padding-top: 0.5rem; }

/* ---------- Admin ---------- */
.admin-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 2rem;
}
.admin-tabs button {
  background: transparent; border: 0;
  padding: 0.75rem 1rem; cursor: pointer;
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.admin-tabs button.active { color: var(--ink); border-bottom-color: var(--sage-green); }
.admin-tabs button.logout { margin-left: auto; color: var(--sage-green); }

.admin-table {
  width: 100%; border-collapse: collapse; margin-top: 1rem;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  text-align: left; padding: 0.75rem; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.admin-table th { font-weight: 500; background: var(--cream); }
.admin-table td.notes { max-width: 280px; white-space: pre-wrap; }
.admin-table input, .admin-table textarea {
  width: 100%; font-family: var(--sans);
  border: 1px solid var(--line); padding: 0.4rem;
}
.admin-table .thumb { width: 60px; height: 60px; object-fit: cover; }
.admin-table .actions { display: flex; gap: 0.4rem; }

.badge {
  display: inline-block; font-size: 0.75rem; padding: 0.2rem 0.5rem;
  background: var(--cream); border: 1px solid var(--line); border-radius: 2px;
}
.badge.booking { background: #f4eae8; }
.badge.service { background: #ebf0e8; }

.status {
  display: inline-block; font-size: 0.8rem; padding: 0.15rem 0.55rem;
  border-radius: 2px; text-transform: capitalize;
}
.status.pending { background: #fff4dc; color: #846100; }
.status.confirmed { background: #e1efd9; color: #3e6a26; }
.status.rejected { background: #f6dad7; color: #8a3128; }
.status.seen { background: var(--cream); color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0; margin-top: 4rem;
  color: var(--ink-soft); font-size: 0.9rem; text-align: center;
}
