/* =============================================
   MICHAL ŠMARDA — OSOBNÍ WEB
   Styl: světlý minimalistický + tmavý mód
   Písma: DM Sans (moderní, čistý) + DM Serif Display
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700;900&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── LIGHT MODUS (výchozí) ── */
:root {
  --bg:          #ffffff;
  --bg-2:        #f7f7f7;
  --bg-3:        #f0f0f0;
  --surface:     #ffffff;
  --border:      #ebebeb;
  --border-mid:  #d8d8d8;
  --text:        #111111;
  --text-2:      #555555;
  --text-3:      #999999;
  --accent:      #2563eb;
  --accent-bg:   #eff6ff;
  --accent-text: #1d4ed8;
  --social-bg:   #111111;
  --social-text: rgba(255,255,255,0.65);
  --social-hover:#ffffff;
  --btn-bg:      #111111;
  --btn-text:    #ffffff;
  --btn-hover:   #333333;
  --btn2-border: #d0d0d0;
  --btn2-text:   #111111;
  --btn2-hover-bg: #f5f5f5;
  --card-bg:     #f7f7f7;
  --card-border: #ebebeb;
  --quote-bg:    #111111;
  --quote-text:  #ffffff;
  --input-bg:    #ffffff;
  --input-border:#e0e0e0;
  --input-focus: #2563eb;
  --shadow:      0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover:0 8px 40px rgba(0,0,0,0.10);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --gap: 88px;
  --radius: 8px;
  --radius-lg: 14px;

  color-scheme: light;
}

/* ── DARK MODUS ── */
[data-theme="dark"] {
  --bg:          #0d0d0d;
  --bg-2:        #161616;
  --bg-3:        #1f1f1f;
  --surface:     #161616;
  --border:      #272727;
  --border-mid:  #333333;
  --text:        #f0f0f0;
  --text-2:      #aaaaaa;
  --text-3:      #666666;
  --accent:      #3b82f6;
  --accent-bg:   #172554;
  --accent-text: #93c5fd;
  --social-bg:   #1a1a1a;
  --social-text: rgba(255,255,255,0.45);
  --social-hover:#ffffff;
  --btn-bg:      #f0f0f0;
  --btn-text:    #111111;
  --btn-hover:   #ffffff;
  --btn2-border: #333333;
  --btn2-text:   #f0f0f0;
  --btn2-hover-bg:#1f1f1f;
  --card-bg:     #161616;
  --card-border: #272727;
  --quote-bg:    #1f1f1f;
  --quote-text:  #f0f0f0;
  --input-bg:    #161616;
  --input-border:#333333;
  --input-focus: #3b82f6;
  --shadow:      0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover:0 8px 40px rgba(0,0,0,0.5);

  color-scheme: dark;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: var(--gap) 0; }

/* =============================================
   NAVIGACE
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 28px;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }

.nav-logo-mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  color: #1d4ed8;
  font-size: 0.78rem; font-weight: 700; font-family: var(--font-body);
  flex-shrink: 0;
  letter-spacing: 0;
}

.nav-right { display: flex; align-items: center; gap: 32px; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-3); border-color: var(--border-mid); }
.theme-toggle svg { width: 16px; height: 16px; color: var(--text-2); }
.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding-top: 64px;
  background: var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 60px 0 80px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-bg);
  color: var(--accent-text);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-name .line2 {
  color: var(--accent);
  font-style: italic;
  display: block;
}

.hero-tagline {
  font-size: 1rem; font-weight: 400;
  color: var(--text-2);
  max-width: 420px; line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 13px 24px;
  font-size: 0.88rem; font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer; font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--btn-hover); text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--btn2-text);
  padding: 12px 22px;
  font-size: 0.88rem; font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--btn2-border);
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--btn2-hover-bg); text-decoration: none;
}

/* HERO FOTKY */
.hero-photos {
  position: relative; height: 560px;
}

.hero-photo {
  position: absolute; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-3);
  transition: box-shadow 0.3s;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hp-main {
  width: 64%; aspect-ratio: 3/4;
  top: 0; right: 0;
  box-shadow: var(--shadow);
  z-index: 2;
}
.hp-side {
  width: 48%; aspect-ratio: 1/1;
  bottom: 0; left: 0; z-index: 3;
  box-shadow: var(--shadow-hover);
  border: 3px solid var(--bg);
}
.hp-accent {
  width: 34%; aspect-ratio: 4/3;
  top: 38%; left: 14%; z-index: 1;
  opacity: 0.6;
}

/* Placeholder */
.photo-ph {
  width: 100%; height: 100%;
  background: var(--bg-3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; color: var(--text-3);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; padding: 16px;
}
.photo-ph svg { width: 24px; height: 24px; opacity: 0.4; }

/* =============================================
   SOCIÁLNÍ SÍTĚ
   ============================================= */
.social-bar {
  background: var(--social-bg);
  padding: 16px 0;
  transition: background 0.3s;
}

.social-bar-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 32px; flex-wrap: wrap;
}

.social-link {
  display: flex; align-items: center; gap: 8px;
  color: var(--social-text);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.social-link:hover { color: var(--social-hover); text-decoration: none; }
.social-link svg { width: 18px; height: 18px; }
.social-sep { width: 1px; height: 18px; background: rgba(255,255,255,0.1); }

/* =============================================
   SEKCE UTILITY
   ============================================= */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ''; display: block;
  width: 20px; height: 1.5px; background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; line-height: 1.2;
  color: var(--text); margin-bottom: 20px;
}

.section-lead {
  font-size: 1rem; color: var(--text-2);
  max-width: 540px; line-height: 1.8;
}

/* =============================================
   O MNĚ
   ============================================= */
.about { background: var(--bg); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 72px; align-items: start;
}

.about-photo-wrap { position: relative; }

.about-photo-main {
  width: 100%; aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-3);
  box-shadow: var(--shadow);
}
.about-photo-main img { width: 100%; height: 100%; object-fit: cover; }

.about-quote {
  background: var(--quote-bg); color: var(--quote-text);
  padding: 20px 22px 20px 32px;
  border-radius: var(--radius);
  margin-top: 20px;
  font-family: var(--font-display); font-style: italic;
  font-size: 0.95rem; line-height: 1.65;
  position: relative;
  transition: background 0.3s, color 0.3s;
}
.about-quote::before {
  content: '\201C';
  font-size: 3.5rem; line-height: 0.8;
  position: absolute; top: 14px; left: 10px;
  color: rgba(255,255,255,0.12);
  font-family: var(--font-display);
}

.about-text p { color: var(--text-2); margin-bottom: 14px; }

.priorities {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 28px;
}

.priority-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; gap: 12px; align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}
.priority-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow);
}
.priority-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.priority-name { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.priority-desc { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; }

/* =============================================
   GALERIE
   ============================================= */
.gallery { background: var(--bg-2); transition: background 0.3s; }

.gallery-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}
.gi { border-radius: var(--radius); overflow: hidden; background: var(--bg-3); transition: background 0.3s; }
.gi:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gi:nth-child(2) { grid-column: span 4; }
.gi:nth-child(3) { grid-column: span 3; }
.gi:nth-child(4) { grid-column: span 4; }
.gi:nth-child(5) { grid-column: span 3; }
.gi:nth-child(6) { grid-column: span 5; grid-row: span 2; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gi:hover img { transform: scale(1.04); }

/* =============================================
   VIDEA
   ============================================= */
.videos { background: var(--bg); }

.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, background 0.3s;
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.video-body { padding: 18px 20px 20px; }
.video-platform {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.video-platform svg { width: 13px; height: 13px; }
.video-title {
  font-family: var(--font-display);
  font-size: 0.98rem; font-weight: 400;
  color: var(--text); margin-bottom: 6px; line-height: 1.35;
}
.video-desc { font-size: 0.82rem; color: var(--text-2); line-height: 1.55; }

/* =============================================
   KONTAKT
   ============================================= */
.contact { background: var(--bg-2); transition: background 0.3s; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 72px; align-items: start;
}

.contact-intro p { color: var(--text-2); margin-bottom: 28px; line-height: 1.8; }

.cinfo { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.cinfo-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cinfo-icon svg { width: 17px; height: 17px; color: var(--accent); }
.cinfo-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 3px;
}
.cinfo-value { font-size: 0.92rem; color: var(--text); }
.cinfo-value a { color: var(--accent); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: background 0.3s, border-color 0.3s;
}

.form-row { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 7px;
}
.form-input, .form-textarea {
  width: 100%; padding: 11px 14px;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.3s; outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--input-focus);
}
.form-textarea { min-height: 120px; resize: vertical; }

.form-submit {
  background: var(--btn-bg); color: var(--btn-text);
  border: none; padding: 13px 28px;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%; margin-top: 4px; letter-spacing: 0.01em;
}
.form-submit:hover { background: var(--btn-hover); transform: translateY(-1px); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  transition: background 0.3s, border-color 0.3s;
}

.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px; flex-wrap: wrap; gap: 20px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--text);
}
.footer-slogan { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.76rem; color: var(--text-3);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--accent); text-decoration: none; }

/* =============================================
   ANIMACE
   ============================================= */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge   { animation: fadeUp 0.5s ease 0.1s both; }
.hero-name    { animation: fadeUp 0.6s ease 0.22s both; }
.hero-tagline { animation: fadeUp 0.6s ease 0.34s both; }
.hero-actions { animation: fadeUp 0.6s ease 0.44s both; }
.hero-photos  { animation: fadeUp 0.7s ease 0.2s both; }

/* =============================================
   RESPONZIVITA
   ============================================= */
@media (max-width: 960px) {
  :root { --gap: 60px; }

  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); flex-direction: column;
    padding: 20px 28px; gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 16px; }

  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 48px 0 64px; gap: 40px; }
  .hero-photos { height: 320px; order: -1; }
  .hp-main { width: 60%; }
  .hp-side { width: 46%; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { max-width: 440px; }

  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 180px; }
  .gi { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gi:nth-child(1), .gi:nth-child(6) { grid-row: span 2 !important; }

  .videos-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .social-bar-inner { gap: 20px; }
  .social-sep { display: none; }
}

@media (max-width: 540px) {
  .hero-name { font-size: 2.8rem; }
  .hero-photos { height: 260px; }
  .hp-accent { display: none; }
  .priorities { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gi { grid-column: span 1 !important; grid-row: span 1 !important; }
  .contact-form-wrap { padding: 22px 18px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

a.nav-logo { text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 11px; }
a.nav-logo:hover { text-decoration: none; opacity: 0.75; }

.nav-logo { gap: 10px; font-size: 0.95rem; }

.btn-secondary { white-space: nowrap; }

.gi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.gi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

#lightbox {
    display: none !important;
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center; justify-content: center;
    cursor: zoom-out;
}
#lightbox.open {
    display: flex !important;
}

#lightbox img {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 4px;
    cursor: default;
}
#lightbox { cursor: zoom-out; }

.videos-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
.video-wrap {
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    position: relative;
}
.video-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.yt-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width: 960px) {
    .videos-grid { grid-template-columns: 1fr !important; }
}

.gallery-grid {
    grid-template-columns: repeat(12, 1fr) !important;
}
.gi:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.gi:nth-child(2) { grid-column: span 4; }
.gi:nth-child(3) { grid-column: span 3; }
.gi:nth-child(4) { grid-column: span 4; }
.gi:nth-child(5) { grid-column: span 7; }

.gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: 260px !important;
}
.gi:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
