:root {
  --bg-main: #FAFAFA;
  --bg-card: #FFFFFF;
  --text-main: #111111;
  --text-muted: #555555;
  --accent: #B89947;
  --accent-hover: #9c8038;
  --nav-bg: rgba(250, 250, 250, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.08);
  --radius: 16px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}
[data-theme="dark"] {
  --bg-main: #0F0F11;
  --bg-card: #1A1A1D;
  --text-main: #F4F4F5;
  --text-muted: #A1A1AA;
  --accent: #E5C158;
  --accent-hover: #f1d275;
  --nav-bg: rgba(15, 15, 17, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typografie */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Komponenty */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 1.75rem; border-radius: 99px;
  font-weight: 600; font-family: var(--font-heading); font-size: 1.125rem;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary { background-color: var(--accent); color: #fff; }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
[data-theme="dark"] .btn-primary { color: #111; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color); padding: 1rem 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-brand img { height: 32px; width: auto; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 1rem; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background-color: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle {
  background: transparent; border: 1px solid var(--border-color);
  color: var(--text-main); font-size: 1.25rem; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.theme-toggle:hover { background: var(--bg-card); }
.menu-toggle { display: none; background: transparent; border: none; color: var(--text-main); font-size: 2rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative; min-height: 80vh; display: flex; align-items: center;
  margin-top: 73px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(to bottom, rgba(15,15,17,0.8) 0%, rgba(15,15,17,0.9) 100%);
}
.hero-content {
  text-align: center; color: #fff; max-width: 800px; margin: 0 auto;
}
.hero-content p { color: #E4E4E7; font-size: 1.25rem; }
[data-theme="dark"] .hero-content p { color: #A1A1AA; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.badge {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  padding: 0.5rem 1rem; border-radius: 99px; border: 1px solid rgba(255,255,255,0.2);
  font-weight: 500; font-size: 0.875rem; color: #fff; transition: all 0.3s;
}
.badge:hover { background: var(--accent); border-color: var(--accent); color: #111; }

/* Mřížky a Karty */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-img-wrapper { overflow: hidden; height: 240px; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.05); }
.card-body { padding: 2rem; }
.btn-link { color: var(--text-main); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Důvěra / Kroky */
.step-card { text-align: center; padding: 2rem; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%; background: var(--bg-card);
  color: var(--accent); font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-color);
}

/* Page Header pro podstránky */
.page-header {
  position: relative; padding: 12rem 0 6rem; text-align: center; color: #fff; margin-top: 73px;
}
.page-header h1 { margin-bottom: 0; }

/* Kontakt sekce */
.contact-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 4rem 2rem;
  text-align: center; border: 1px solid var(--border-color); box-shadow: var(--shadow-md);
}
.contact-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 600;
  color: var(--text-main); background: var(--bg-main); padding: 1rem 2rem;
  border-radius: 99px; border: 1px solid var(--border-color); transition: all 0.3s;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-link svg { width: 24px; height: 24px; }

/* Patička */
footer { text-align: center; padding: 2rem; border-top: 1px solid var(--border-color); margin-top: 4rem; color: var(--text-muted); }

/* Animace a utility */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }

/* Responzivita */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-card);
    flex-direction: column; padding: 2rem; gap: 1.5rem; box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: clip-path 0.4s ease;
  }
  .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .hero { min-height: 60vh; }
}
