/* ============================================
   Kavárna Chotěboř – Hlavní styly
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #FAF7F2;
  --warm:     #F3EDE3;
  --espresso: #2C1810;
  --coffee:   #7A5230;
  --caramel:  #C09A6B;
  --gold:     #B8895A;
  --light:    #EDE4D7;
  --text:     #3A2A1F;
  --muted:    #7A6A5F;
  --white:    #FFFFFF;
  --shadow:   rgba(44,24,16,.10);
  --radius:   12px;
  --radius-lg:20px;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1,h2,h3,h4 {
  font-family: 'Playfair Display', serif;
  color: var(--espresso);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.6rem,3.5vw,2.4rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.6rem); }
p  { color: var(--muted); font-size: 1.05rem; }

/* ---- Utility ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.tag {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coffee);
  background: var(--light);
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--coffee);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--espresso);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--coffee);
  border-color: var(--coffee);
}
.btn-outline:hover {
  background: var(--coffee);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Header / Navbar ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,154,107,.15);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo span:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: .02em;
}
.nav-logo span:last-child {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--caramel);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--caramel);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--coffee); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Nav ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid var(--light);
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: .9rem 0;
    font-size: 1rem;
  }
  .nav-links a::after { left: 50%; transform: translateX(-50%); }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(160deg, rgba(44,24,16,.55) 0%, rgba(44,24,16,.2) 60%, rgba(44,24,16,.0) 100%),
    url('https://www.kavarnachotebor.cz/media/img/kavarna-1.jpg') center/cover no-repeat;
  margin-top: 0;
  padding-top: 72px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(44,24,16,.1) 0%, rgba(250,247,242,1) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 4rem 0;
}
.hero-content .tag { color: var(--caramel); background: rgba(255,255,255,.15); backdrop-filter: blur(6px); }
.hero-content h1 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.3); margin-bottom: 1.2rem; }
.hero-content p  { color: rgba(255,255,255,.88); font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions    { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,.4);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---- Section Titles ---- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .tag { margin-bottom: .75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { max-width: 580px; margin: 0 auto; }

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin: .75rem 0 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--caramel);
  opacity: .5;
}
.divider span {
  width: 6px; height: 6px;
  background: var(--caramel);
  border-radius: 1px;
  transform: rotate(45deg);
  opacity: .7;
  display: inline-block;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(44,24,16,.15);
}

/* ---- Services Grid (Home) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: 0 2px 16px var(--shadow);
  border-left: 4px solid var(--caramel);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(44,24,16,.13);
}
.service-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--coffee);
  margin-bottom: 1rem;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: .5rem; color: var(--espresso); }
.service-card p  { font-size: .97rem; }

/* ---- About Section (Home preview) ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 40px rgba(44,24,16,.15);
}
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.about-img-wrap:hover img { transform: scale(1.04); }
.about-badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--white);
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
  text-align: center;
}
.about-badge strong { display: block; font-size: 1.8rem; color: var(--coffee); font-family: 'Playfair Display',serif; }
.about-badge span   { font-size: .78rem; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.about-text h2 { margin-bottom: 1.2rem; }
.about-text p  { margin-bottom: 1.2rem; }
.about-list    { list-style: none; margin: 1.5rem 0; }
.about-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 0;
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--light);
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
  content: '✦';
  color: var(--caramel);
  font-size: .8rem;
  flex-shrink: 0;
}

/* ---- Gallery photo grid (home) ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.photo-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  box-shadow: 0 2px 12px var(--shadow);
}
.photo-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo-tile:hover img { transform: scale(1.06); }
.photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(44,24,16,.75) 0%, transparent 100%);
  color: #fff;
  padding: 2rem .9rem .75rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Events ---- */
.events-list { display: flex; flex-direction: column; gap: 1.5rem; }
.event-card  {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.2rem;
  box-shadow: 0 2px 16px var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(44,24,16,.14);
}
.event-date {
  background: var(--coffee);
  color: var(--white);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  text-align: center;
  min-width: 68px;
}
.event-date .day   { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.event-date .month { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; }
.event-date .year  { font-size: .65rem; opacity: .8; }
.event-body h3     { margin-bottom: .4rem; font-size: 1.15rem; }
.event-body p      { font-size: .96rem; }
.event-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .6rem;
  flex-wrap: wrap;
}
.event-meta span {
  font-size: .82rem;
  color: var(--coffee);
  font-weight: 700;
  background: var(--light);
  padding: .25rem .75rem;
  border-radius: 50px;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--coffee);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item-body strong { display: block; color: var(--espresso); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.contact-item-body a:hover { color: var(--coffee); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours-table tr { border-bottom: 1px solid var(--light); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: .45rem 0; font-size: .95rem; color: var(--text); }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--coffee); }

.contact-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  aspect-ratio: 1/1;
  min-height: 380px;
}
.contact-map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ---- O nás page ---- */
.onas-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.onas-intro img {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(44,24,16,.15);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.services-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.4rem;
}
.service-full-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: 0 2px 16px var(--shadow);
  transition: var(--transition);
}
.service-full-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(44,24,16,.14);
}
.service-full-card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--coffee);
  margin-bottom: .9rem;
}
.service-full-card .icon svg { width: 28px; height: 28px; }
.service-full-card h3   { margin-bottom: .5rem; font-size: 1.1rem; }
.service-full-card p    { font-size: .95rem; }

/* ---- Footer icons ---- */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .93rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item + .footer-contact-item { margin-top: .45rem; }
.footer-contact-item svg { width: 15px; height: 15px; opacity: .7; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--caramel); }

/* ---- Album cards with photos ---- */
.album-thumb {
  margin: -2rem -1.8rem 1rem;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.album-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.album-card:hover .album-thumb img { transform: scale(1.06); }

/* ---- Provozovatel ---- */
.provozovatel {
  background: var(--warm);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  border: 1px solid var(--light);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.provozovatel strong { color: var(--espresso); }

/* ---- Page Hero (subpages) ---- */
.page-hero {
  padding: 9rem 0 4rem;
  background: linear-gradient(135deg, var(--espresso) 0%, var(--coffee) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.1rem; }
.page-hero .tag { color: var(--caramel); background: rgba(255,255,255,.12); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  justify-content: center;
  margin-top: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* ---- Footer ---- */
.site-footer {
  background: var(--espresso);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 2rem;
}
.footer-brand .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  display: block;
  margin-bottom: .3rem;
}
.footer-brand .logo-sub {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--caramel);
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: .92rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--white);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: .5rem; }
.footer-col ul a {
  font-size: .93rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--caramel); }
.footer-col p  { font-size: .93rem; }
.footer-col p + p { margin-top: .4rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .83rem;
  color: rgba(255,255,255,.4);
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* stagger delay */
.fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in:nth-child(2) { transition-delay: .1s; }
.fade-in:nth-child(3) { transition-delay: .2s; }
.fade-in:nth-child(4) { transition-delay: .3s; }
.fade-in:nth-child(5) { transition-delay: .4s; }
.fade-in:nth-child(6) { transition-delay: .5s; }

/* ---- Highlight band ---- */
.highlight-band {
  background: linear-gradient(135deg, var(--coffee) 0%, var(--espresso) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.highlight-band h2 { color: var(--white); margin-bottom: .75rem; }
.highlight-band p  { color: rgba(255,255,255,.8); margin-bottom: 2rem; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .about-grid, .onas-intro, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section  { padding: 3.5rem 0; }
  .hero-content h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .event-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .provozovatel { flex-direction: column; gap: .75rem; }
}
