/* ==========================================================================
   Infocentrum Rakvice — hlavní styl
   ========================================================================== */

:root {
  --wine:        #7a2e3f;
  --wine-dark:   #58202c;
  --wine-light:  #a24a5d;
  --sun:         #e2a13c;
  --sun-light:   #f3cd8c;
  --green:       #4e7c59;
  --green-dark:  #3a5c42;
  --cream:       #fdf8f0;
  --cream-2:     #f6ece0;
  --ink:         #2b2320;
  --muted:       #7a6e66;
  --line:        #e6dacc;
  --white:       #ffffff;

  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 8px rgba(43, 35, 32, .06), 0 12px 32px rgba(43, 35, 32, .08);
  --shadow-sm:   0 1px 3px rgba(43, 35, 32, .08);
  --maxw:        1160px;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--wine-dark);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--wine); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--wine-dark);
  color: rgba(255,255,255,.85);
  font-size: .875rem;
}
.topbar .container {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: space-between;
  min-height: 40px; padding-top: 6px; padding-bottom: 6px;
}
.topbar a { color: #fff; }
.topbar-items { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar-items span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--sun) 0%, var(--wine) 100%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.logo-text b {
  display: block; font-family: var(--serif); font-size: 1.32rem;
  color: var(--wine-dark); line-height: 1.15; font-weight: 700;
}
.logo-text small {
  display: block; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Navigace ---------- */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px; cursor: pointer;
  color: var(--wine-dark); font-size: 1rem; align-items: center; gap: 8px;
  font-family: var(--sans);
}
.main-nav ul {
  display: flex; flex-wrap: wrap; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-size: .95rem; font-weight: 600;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--cream-2); color: var(--wine); text-decoration: none; }
.main-nav a.is-active { background: var(--wine); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 15% 0%, rgba(226,161,60,.35), transparent 60%),
    linear-gradient(160deg, var(--wine) 0%, var(--wine-dark) 55%, #3f1620 100%);
  color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23fdf8f0' d='M0 80c180 40 360 40 540 10s360-50 540-20 300 40 360 40v10H0z'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 74px 24px 110px; text-align: center; }
.hero--sub .hero-inner { padding: 52px 24px 84px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  max-width: 720px; margin: 0 auto 1.6em; color: rgba(255,255,255,.9);
}
.eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sun-light); font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .875rem; color: var(--muted);
  padding: 16px 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--line); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .97rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s;
  font-family: var(--sans);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sun); color: #43301a; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #efb055; color: #43301a; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline { border-color: var(--wine); color: var(--wine); }
.btn-outline:hover { background: var(--wine); color: #fff; }

/* ---------- Sekce ---------- */
.section { padding: 68px 0; }
.section--tight { padding: 46px 0; }
.section--cream { background: var(--cream-2); }
.section--white { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Mřížky ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* ---------- Karty ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .2s;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
a.card:hover h3 { color: var(--wine); }
.card-icon {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.45rem;
  background: var(--cream-2); color: var(--wine);
}
.card-more { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--wine); font-size: .93rem; }

/* Karta s obrázkem */
.tile {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .2s;
}
a.tile { color: inherit; }
a.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-media {
  aspect-ratio: 16 / 10; background: var(--cream-2);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media .ph {
  font-size: 2.6rem; opacity: .5;
}
.tile-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.tile-body h3 { margin-bottom: .4em; }
.tile-body p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.tile-body .card-more { margin-top: auto; padding-top: 14px; }

/* ---------- Info pruh / highlight ---------- */
.callout {
  background: var(--white); border-left: 5px solid var(--sun);
  border-radius: var(--radius-sm); padding: 22px 26px;
  box-shadow: var(--shadow-sm); margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--wine { border-left-color: var(--wine); }
.callout--green { border-left-color: var(--green); }

/* ---------- Split (text + obrázek) ---------- */
.split {
  display: grid; gap: 44px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.split-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--cream-2), var(--sun-light));
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .ph { font-size: 3.4rem; opacity: .55; }

/* ---------- Seznamy ---------- */
.list-check { list-style: none; padding: 0; margin: 0 0 1.2em; }
.list-check li {
  position: relative; padding-left: 30px; margin-bottom: 11px;
}
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}

/* ---------- Otevírací doba ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--ink); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--wine-dark); font-weight: 600; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

/* ---------- Menu / ceník ---------- */
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-list li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
}
.menu-list li:last-child { border-bottom: 0; }
.menu-list .name { font-weight: 600; }
.menu-list .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.menu-list .note { display: block; font-size: .88rem; color: var(--muted); font-weight: 400; }

/* ---------- Akce ---------- */
.event {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.event-date {
  flex: 0 0 74px; text-align: center; border-radius: var(--radius-sm);
  background: var(--wine); color: #fff; padding: 10px 4px;
}
.event-date b { display: block; font-size: 1.5rem; font-family: var(--serif); line-height: 1; }
.event-date span { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.event-body h3 { margin-bottom: .25em; font-size: 1.1rem; }
.event-body p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Ubytování ---------- */
.stay-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.stay {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  border-top: 3px solid var(--sun);
}
.stay h3 { font-size: 1.12rem; margin-bottom: .4em; }
.stay-note {
  font-size: .93rem; color: var(--muted);
  margin-bottom: 16px;
}
.stay-contact {
  list-style: none; padding: 16px 0 0; margin: auto 0 0;
  border-top: 1px solid var(--line); font-size: .93rem;
}
.stay-contact li { display: flex; gap: 11px; padding: 5px 0; align-items: flex-start; }
.stay-contact .ico { flex: 0 0 20px; text-align: center; }
.stay-contact a { word-break: break-word; }
.stay-contact .muted { font-size: .86rem; }

/* ---------- Kontaktní blok ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 13px; padding: 10px 0; align-items: flex-start; }
.contact-list .ico { flex: 0 0 22px; text-align: center; color: var(--wine); }
.contact-list b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }

.map-embed {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  min-height: 380px; background: var(--cream-2);
}
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Formulář ---------- */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .94rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--sun); outline-offset: 1px; border-color: var(--sun);
}
.form-note { font-size: .86rem; color: var(--muted); }

/* ---------- CTA pruh ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--green-dark), var(--green));
  color: #fff; text-align: center; padding: 56px 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 1.6em; }

/* ---------- Patička ---------- */
.site-footer {
  background: #2b2320; color: rgba(255,255,255,.72);
  padding: 56px 0 0; font-size: .95rem;
}
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: .84rem;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--sun-light); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-brand .logo-mark { margin-bottom: 14px; }
.footer-legal {
  margin-top: 44px; border-top: 1px solid rgba(255,255,255,.13);
  padding: 20px 0 26px; font-size: .85rem; color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 26px; }
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--cream-2); color: var(--wine); font-size: .8rem; font-weight: 700;
}

/* ---------- Responzivita ---------- */
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 24px 18px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 10px; border-radius: var(--radius-sm); }
  .site-header { position: relative; }
  .header-inner { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .hero-inner { padding: 54px 20px 90px; }
  .container, .container-narrow { padding: 0 18px; }
  .card { padding: 22px; }
  .topbar .container { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .topbar, .nav-toggle, .cta-band, .hero-actions { display: none; }
  body { background: #fff; }
}
