:root {
  --bg:         #FDF8F0;
  --bg-alt:     #F5EDE0;
  --border:     #E0C9B0;
  --text:       #3D2B1F;
  --text-muted: #7A5C47;
  --accent:     #C97B3A;
  --accent-h:   #A85E22;
  --header-bg:  #4A2F1E;
  --header-fg:  #FDF8F0;
  --footer-bg:  #3D2B1F;
  --footer-fg:  #E8D5C0;
  --link:       #8B4513;
  --link-h:     #C97B3A;
  --card-shadow: 0 2px 8px rgba(61,43,31,0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
}

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

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

h1, h2, h3, h4 {
  font-family: Georgia, serif;
  color: var(--text);
  line-height: 1.3;
  margin-top: 0;
}

h2 { font-size: 1.6rem; color: var(--accent); border-bottom: 2px solid var(--border); padding-bottom: .4rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; color: var(--accent); margin-bottom: .8rem; }

/* ── SITE WRAPPER ── */
#site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ── */
#site-header {
  background: var(--header-bg);
  color: var(--header-fg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: .7rem 1.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: .04em;
  color: var(--header-fg);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }
.site-logo:hover { color: var(--header-fg); text-decoration: none; }

#site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  align-items: center;
  flex: 1;
}

#site-nav a {
  color: var(--header-fg);
  font-family: Georgia, serif;
  font-size: .9rem;
  padding: .35rem .75rem;
  border-radius: 4px;
  transition: background .15s;
  white-space: nowrap;
}
#site-nav a:hover,
#site-nav a.active { background: var(--accent); color: #fff; text-decoration: none; }

.nav-sep { width: 1px; height: 1.2em; background: rgba(255,255,255,.25); margin: 0 .1rem; }

/* ── BANNER ── */
#site-banner {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  max-height: 200px;
}
#site-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 600px) {
  #site-banner img { height: 120px; }
}

/* ── MAIN ── */
#site-main {
  flex: 1;
  padding: 2rem 1.5rem;
}

/* ── CONTENT PAGES ── */
.page-content {
  max-width: 720px;
  margin: 0 auto;
}

.page-content p { margin-bottom: 1.1rem; }
.page-content ul { padding-left: 1.5rem; }
.page-content li { margin-bottom: .4rem; }

/* ── GALLERY LIST ── */
.gallery-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: .95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gallery-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(61,43,31,.15);
  text-decoration: none;
}

.gallery-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-alt);
}
.gallery-card-thumb.no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--border);
}

.gallery-card-body {
  padding: .75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.gallery-card-body strong {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.3;
}
.gallery-card-body span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── GALLERY DETAIL ── */
.gallery-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.back-link {
  font-size: .9rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: .3rem .8rem;
  border-radius: 4px;
  white-space: nowrap;
}
.back-link:hover { background: var(--bg-alt); text-decoration: none; color: var(--text); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem;
}

.photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--bg-alt);
}
.photo-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}
.photo-grid a:hover img { transform: scale(1.05); }

/* ── TABLES ── */
table.styled {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
table.styled th,
table.styled td {
  border: 1px solid var(--border);
  padding: .5rem .9rem;
  text-align: left;
}
table.styled th {
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: normal;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
table.styled tr:nth-child(even) td { background: #fffaf5; }

/* ── SIDEBAR LAYOUT (gallery detail) ── */
.content-and-sidebar {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}

.gallery-sidebar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.gallery-sidebar h4 {
  margin: 0 0 .8rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.gallery-sidebar a {
  display: block;
  font-size: .82rem;
  padding: .2rem 0;
  color: var(--link);
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.gallery-sidebar a:last-child { border-bottom: none; }
.gallery-sidebar a:hover { color: var(--link-h); text-decoration: none; }

/* ── FOOTER ── */
#site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 0 auto;
}

.footer-contact h4,
.footer-quote h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .7rem;
}
.footer-contact p,
.footer-quote blockquote {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--footer-fg);
  margin: 0;
}
.footer-quote blockquote {
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: .8rem;
}
.footer-quote cite {
  display: block;
  margin-top: .5rem;
  font-size: .78rem;
  font-style: normal;
  color: #a08070;
}

.footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .78rem;
  color: #7a5545;
  border-top: 1px solid #5a3a2a;
  padding-top: 1rem;
}
.footer-bottom a { color: #a07060; }

/* ── HOME PAGE ── */
.home-welcome {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}
.home-welcome h2 {
  border: none;
  font-size: 1.9rem;
  margin-bottom: .5rem;
}
.home-welcome .tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.offer-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.offer-list li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: .9rem;
  color: var(--text);
}
.offer-list-clean {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  max-width: 360px;
  text-align: left;
}
.offer-list-clean li {
  padding: .55rem 0 .55rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 1rem;
  color: var(--text);
}
.offer-list-clean li:last-child { border-bottom: none; }
.offer-list-clean li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .75rem;
  top: .65rem;
}

.cta-box {
  background: var(--header-bg);
  color: var(--header-fg);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  font-size: 1rem;
  line-height: 1.8;
}
.cta-box strong { color: var(--accent); }

/* ── DYZURY ── */
table.dyzury {
  border-collapse: collapse;
  font-size: .95rem;
}
table.dyzury td {
  border: 1px solid var(--border);
  padding: .45rem .9rem;
}
table.dyzury tr:nth-child(even) td { background: var(--bg-alt); }

/* ── RESPONSIVE ── */
@media (max-width: 740px) {
  .content-and-sidebar {
    grid-template-columns: 1fr;
  }
  .gallery-sidebar {
    position: static;
    max-height: 200px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .header-inner {
    padding: .6rem 1rem;
  }
  #site-nav a {
    font-size: .8rem;
    padding: .3rem .55rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
