/* nocleg-krasnobrod.pl - przewodnik po Krasnobrodzie */
:root {
  --green: #2f5d3a;
  --green-dark: #22452b;
  --green-light: #e6efe6;
  --amber: #c9a227;
  --text: #24302a;
  --muted: #5c6b61;
  --bg: #f6f7f3;
  --card: #ffffff;
  --line: #d9e0d8;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header */
.site-header {
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: bold;
  letter-spacing: .3px;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}
.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .92rem;
}
.site-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav a.active { background: var(--amber); color: var(--green-dark); }

/* hero */
.hero {
  background-color: var(--green-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,40,25,.15) 0%, rgba(20,40,25,.78) 100%);
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 32px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: 2.3rem;
  line-height: 1.15;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.hero .lead {
  margin: 0;
  max-width: 760px;
  font-size: 1.08rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* content */
.content { padding-top: 28px; padding-bottom: 40px; }
.content h2 {
  font-size: 1.45rem;
  color: var(--green-dark);
  margin: 1.6em 0 .5em;
  padding-bottom: .25em;
  border-bottom: 2px solid var(--green-light);
}
.content h2:first-child, .content section:first-child h2 { margin-top: .4em; }
.content p { margin: 0 0 1em; }
.content ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.content li { margin-bottom: .45em; }
.content figure {
  margin: 1.5em 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  max-width: 560px;
}
.content figure img { border-radius: 4px; width: 100%; }
.content figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; font-family: Arial, Helvetica, sans-serif; }

/* homepage */
.intro p { font-size: 1.05rem; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 1.5em;
}
.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); color: var(--text); }
.tile img { width: 100%; height: 170px; object-fit: cover; }
.tile span { display: block; padding: 12px 14px 14px; font-size: .95rem; color: var(--muted); font-family: Arial, Helvetica, sans-serif; }
.tile strong { display: block; color: var(--green-dark); font-size: 1.05rem; margin-bottom: 4px; font-family: Georgia, serif; }
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.two-col h2:first-child { margin-top: .4em; }
.map-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 1.2em;
  text-align: center;
}
.map-box img { margin: 0 auto 12px; }
.map-box p { font-size: .95rem; color: var(--muted); margin: 0; font-family: Arial, Helvetica, sans-serif; }

/* footer */
.site-footer {
  background: var(--green-dark);
  color: #d7e3d8;
  padding: 24px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
}
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-nav { line-height: 1.9; }

/* responsive */
@media (max-width: 860px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: 5px 8px; font-size: .85rem; }
  .hero { min-height: 220px; }
  .hero-inner { padding-top: 48px; padding-bottom: 24px; }
  .hero h1 { font-size: 1.7rem; }
  .hero .lead { font-size: 1rem; }
  .tile-grid { grid-template-columns: 1fr; }
  .tile img { height: 180px; }
  .content h2 { font-size: 1.25rem; }
}
