:root {
  --bg: #f5f0e5;
  --bg-soft: #fffaf2;
  --text: #1f2c3a;
  --accent: #b38b40;
  --accent-dark: #8c6a2e;
  --panel: #ffffff;
}

html {
  scroll-behavior: smooth;
}

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

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

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.hero {
  background: url('../images/chateau.jpg') center/cover no-repeat #1e2f45;
  color: #fff;
  padding: 1.25rem 1.25rem 4rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 30, 43, 0.5)  0%,
    rgba(20, 30, 43, 0)    20%,
    rgba(20, 30, 43, 0)    40%,
    rgba(20, 30, 43, 0.7)  65%,
    rgba(20, 30, 43, 0.88) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.city-logo {
  height: 10rem;
  width: auto;
  object-fit: contain;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.hero-content,
.section,
.footer {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  margin-top: 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 13ch;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.2rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 0.3rem;
  font-weight: 700;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

.button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.section {
  padding: 3rem 1.25rem;
}

.about-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex-shrink: 0;
}

.section-head h2 {
  margin-bottom: 0.6rem;
}

.panel {
  background: var(--bg-soft);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

/* Hlavní chody has many more items — give it the full right column */
.grid article:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.grid article {
  background: var(--panel);
  padding: 1rem;
  border-radius: 0.4rem;
  box-shadow: 0 6px 18px rgba(31, 44, 58, 0.08);
}

.grid article ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.grid article li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #efe5d5;
  padding: 0.6rem 0;
}

.grid article li:last-child {
  border-bottom: 0;
}

.hours {
  max-width: 450px;
}

.hours p {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.footer {
  padding: 1.5rem 1.25rem 2.5rem;
  color: #3b4d63;
}

.footer p {
  margin: 0.2rem 0;
}
.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}
@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .grid article:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-content {
    margin-top: 2.5rem;
  }

  .hours p {
    flex-direction: column;
    gap: 0.15rem;
  }

  .about-layout {
    flex-direction: column;
  }

  .about-image {
    align-self: center;
  }
}
