/* ucimeomorave.cz — landing page */
:root {
  --primary: #1b4f72;
  --primary-dark: #0e3350;
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --gold: #d4a853;
  --bg: #faf8f5;
  --bg-alt: #f0ebe3;
  --text: #2c2c2c;
  --muted: #5a5a5a;
  --white: #fff;
  --shadow: 0 4px 24px rgba(27, 79, 114, 0.12);
  --radius: 8px;
  --max: 1140px;
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover { color: var(--accent); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary-dark);
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.main-nav a:hover { color: var(--primary); }

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-light); color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover { background: var(--primary-dark); color: var(--white); }

.btn-secondary { background: var(--primary); color: var(--white); }
.btn-secondary:hover { background: var(--primary-dark); color: var(--white); }

/* Hero — text ON background image */
.hero {
  position: relative;
  min-height: 560px;
  padding: 5rem 0;
  color: #1a1a1a;
  background-color: var(--bg);
  background-image:
    linear-gradient(to top, var(--bg) 0%, transparent 80px),
    linear-gradient(to right, rgba(250, 248, 245, 0.92) 0%, rgba(250, 248, 245, 0.55) 55%, transparent 100%),
    url("../images/hero-bg.jpg"); /* v3 */
  background-size: auto, auto, cover;
  background-position: center bottom, center, center;
  background-repeat: no-repeat;
}

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

.hero-inner {
  max-width: 720px;
}

.hero h1 a,
.hero-subtitle a {
  color: inherit;
  text-decoration: underline;
}

.hero-subtitle a {
  color: var(--accent);
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: #333;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #2c2c2c;
  margin-bottom: 2rem;
  max-width: 560px;
}

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

.hero .btn-outline {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.hero .btn-outline:hover {
  background: #1a1a1a;
  color: var(--white);
}

/* Sections */
section { padding: 4.5rem 0; }
section:nth-child(even):not(.hero) { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  max-width: 640px;
  margin-inline: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #dde6ef, #c8d6e2);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.about-text p { margin-bottom: 1rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.75rem;
  color: var(--accent);
}

.stat span { font-size: 0.8rem; color: var(--muted); }

/* Content */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.content-main p {
  margin-bottom: 1.15rem;
  text-align: justify;
}

.content-main h3 {
  font-family: var(--font-head);
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
}

.content-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.content-images figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.content-images img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(145deg, #e8ddd0, #d4c4b0);
}

.content-images figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-family: var(--font-head);
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.sidebar-card ul { list-style: none; }
.sidebar-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.95rem;
}

.sidebar-card li:last-child { border-bottom: none; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}

thead { background: var(--primary); color: var(--white); }

th, td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-alt);
}

tbody tr:hover { background: rgba(27, 79, 114, 0.04); }

caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--gold);
  transition: transform 0.2s;
}

.benefit-card:hover { transform: translateY(-4px); }

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.benefit-card h3 {
  font-family: var(--font-head);
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

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

.feature-image {
  max-width: 800px;
  margin: 2rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #dde6ef, #c8d6e2);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FAQ */
.faq-list { max-width: 780px; margin-inline: auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 1.5rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-a { display: block; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
}

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

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--font-head);
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  opacity: 0.7;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.85); }

.mt-2 { margin-top: 2rem; }

@media (max-width: 900px) {
  .about-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav ul { justify-content: center; }
}

@media (max-width: 600px) {
  .about-stats, .content-images { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
}
