/* ============================================================
   MILADA CHALUPOVÁ — Global Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@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');

/* --- Design Tokens --- */
:root {
  --ochre:        #C8860A;
  --ochre-dark:   #9B6508;
  --ochre-light:  #F5E6C8;
  --ochre-pale:   #FDF3E0;
  --bg:           #FAF7F2;
  --surface:      #FFFFFF;
  --text:         #2C2218;
  --text-muted:   #6B5744;
  --border:       #E8DDD0;
  --radius:       8px;
  --shadow:       0 2px 12px rgba(44, 34, 24, 0.08);
  --shadow-hover: 0 6px 24px rgba(44, 34, 24, 0.14);
  --transition:   0.25s ease;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;

  --max-width: 1100px;
  --gap: 2rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--ochre); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ochre-dark); }

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--alt { background: var(--ochre-pale); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--ochre);
  border: none;
  margin: 0.75rem auto 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--ochre);
  color: #fff;
  border-color: var(--ochre);
}
.btn--primary:hover {
  background: var(--ochre-dark);
  border-color: var(--ochre-dark);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background: transparent;
  color: var(--ochre);
  border-color: var(--ochre);
}
.btn--outline:hover {
  background: var(--ochre);
  color: #fff;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--ochre-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(44,34,24,0.08);
}

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

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--ochre); }
.site-logo:hover { color: var(--ochre-dark); }

.nav-list {
  display: flex;
  gap: 0.1rem;
  align-items: center;
}

.nav-list a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--ochre);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-list a:hover {
  color: var(--ochre);
  background: var(--ochre-pale);
}
.nav-list a:hover::after {
  transform: scaleX(1);
}
.nav-list a.active {
  color: var(--ochre);
  background: var(--ochre-pale);
}
.nav-list a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--ochre-pale); }
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav-toggle.open span { background: var(--ochre); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--ochre-pale) 0%, var(--ochre-light) 100%);
  padding: 5rem 0 4rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text { max-width: 520px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1rem;
}

.hero-title { margin-bottom: 1.25rem; color: var(--text); }
.hero-title em { color: var(--ochre); font-style: italic; }

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image {
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: 380px;
  max-width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: var(--shadow-hover);
  border: 5px solid var(--surface);
  outline: 3px solid var(--ochre-light);
}

/* ============================================================
   CARDS (feature cards on homepage)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  border-top: 4px solid var(--ochre);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card h3 { color: var(--ochre-dark); }

.card p { color: var(--text-muted); font-size: 0.97rem; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--ochre-pale) 0%, var(--ochre-light) 60%);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; }

/* ============================================================
   O MNĚ (about page)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 90px;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 4px solid var(--ochre-light);
}

.about-text h2 { margin-top: 2rem; }
.about-text h2:first-child { margin-top: 0; }

/* Timeline */
.timeline { margin-top: 1.5rem; }

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 2rem;
  bottom: -2rem;
  width: 2px;
  background: var(--ochre-light);
}
.timeline-item:last-child::before { display: none; }

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ochre);
  font-size: 1.05rem;
  text-align: center;
  padding-top: 0.15rem;
}

.timeline-content {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--ochre);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--ochre-dark);
}

/* Tags / expertise */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  background: var(--ochre-light);
  color: var(--ochre-dark);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ============================================================
   EVENTS (akce)
   ============================================================ */
.events-list { display: flex; flex-direction: column; gap: 1.5rem; }

.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  align-items: start;
  border-left: 4px solid var(--ochre);
  transition: box-shadow var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-hover); }

.event-date {
  text-align: center;
  background: var(--ochre);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.6rem;
}
.event-date .day   { font-size: 1.8rem; font-weight: 700; line-height: 1; font-family: var(--font-heading); }
.event-date .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }

.event-info h3 { margin-bottom: 0.25rem; }
.event-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.6rem; }
.event-meta span + span::before { content: ' · '; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state h3 {
  font-family: var(--font-heading);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.contact-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  text-align: center;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-value { font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}

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

.footer-brand .site-logo { color: #fff; font-size: 1.1rem; }
.footer-brand .site-logo span { color: var(--ochre); }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; }

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--ochre); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Nav */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--ochre-light);
    border-bottom: 2px solid var(--ochre-light);
    box-shadow: 0 8px 24px rgba(44,34,24,0.12);
    padding: 0.75rem 1.5rem 1rem;
  }
  .site-nav.open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .nav-list a {
    padding: 0.7rem 1rem;
    width: 100%;
    display: block;
    font-size: 1.05rem;
    border-radius: var(--radius);
  }
  .nav-list a::after { display: none; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-image { order: -1; }
  .hero-image img {
    width: 260px;
    height: 300px;
    margin: 0 auto;
  }
  .hero-actions { justify-content: center; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo { position: static; }
  .about-photo img { max-width: 320px; margin: 0 auto; }

  /* Timeline */
  .timeline-item { grid-template-columns: 60px 1fr; gap: 1rem; }
  .timeline-item::before { left: 30px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Event card */
  .event-card { grid-template-columns: 75px 1fr; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }

  .hero-image img { width: 220px; height: 260px; }

  .event-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .event-date { display: flex; align-items: center; gap: 0.5rem; width: fit-content; padding: 0.5rem 1rem; }
  .event-date .day { font-size: 1.4rem; }
}
