/* =========================================================
   Nedokončený miliardář — Petr Krauz
   Onepage · čistý bílý web, zelený (=peníze) akcent
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg:          #ffffff;
  --bg-soft:     #F4F7F4;
  --ink:         #16211C;
  --ink-soft:    #55635C;
  --green:       #178A5E;
  --green-dk:    #0F6E49;
  --green-tint:  #E6F2EB;
  --line:        #E4E9E5;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.65; font-size: clamp(1rem, 0.97rem + 0.15vw, 1.07rem);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--green); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* anchor offset kvůli sticky hlavičce */
section[id] { scroll-margin-top: calc(var(--head-h) + 10px); }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-tint); padding: 0.4rem 0.85rem; border-radius: 999px;
}
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -12px var(--green); }
.btn--primary:hover { background: var(--green-dk); transform: translateY(-2px); color:#fff; }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* =========================================================
   Header
   ========================================================= */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line);
}
.site-head__inner { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .mark { width: 12px; height: 12px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.brand small { display:block; font-weight: 600; font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.25s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:18px; height:2px; background: currentColor; border-radius:2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span::before { position:absolute; transform: translateY(-6px); }
.nav-toggle span::after { position:absolute; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* =========================================================
   Hero (brand)
   ========================================================= */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.7rem, 8vw, 5.5rem); margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--green); }
.hero__lead { max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* signature: postup k miliardě */
.progress { margin-top: 2.5rem; max-width: 420px; }
.progress__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.progress__label { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.progress__pct { font-weight: 800; color: var(--green); font-size: 0.9rem; }
.progress__track { height: 10px; background: var(--green-tint); border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--green-dk)); border-radius: 999px; transition: width 1.4s var(--ease) 0.3s; }
.progress__note { margin-top: 0.5rem; font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }

/* =========================================================
   Placeholder media
   ========================================================= */
.ph {
  background: linear-gradient(135deg, var(--green-tint), #dfeee6);
  display: grid; place-items: center; color: var(--green);
  border: 1px dashed color-mix(in srgb, var(--green) 35%, var(--line));
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.ph::after { content: attr(data-label); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; padding: 0.5rem; text-align:center; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0.9rem 0 0.75rem; }

/* about */
.about { max-width: 60ch; }
.about p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.1rem; }
.about strong { color: var(--ink); }

/* =========================================================
   Projekt blok (text + galerie/logo) — modulární
   ========================================================= */
.project { padding-block: clamp(2rem, 5vw, 3rem); border-top: 1px solid var(--line); }
.project:first-of-type { border-top: none; }
.project__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 820px) { .project__grid { grid-template-columns: 1fr; } }
.project--rev .project__text { order: 2; }
@media (max-width: 820px) { .project--rev .project__text { order: 0; } }
.project__tag { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.project__text h3 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0.5rem 0 1rem; }
.project__text p { color: var(--ink-soft); margin-bottom: 1rem; }
.project__meta { display:flex; flex-wrap:wrap; gap:0.5rem; margin: 1rem 0 1.25rem; }
.project__meta span { background: var(--bg-soft); border:1px solid var(--line); border-radius:999px; padding:0.4rem 0.85rem; font-size:0.82rem; font-weight:600; color:var(--ink-soft); }
.project__media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow:hidden; }

/* featured (nejsilnější — Krauzovi na cestách) */
.project--featured { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--line); margin-bottom: 1rem; }
.project--featured .project__tag { color: var(--green-dk); }
.project--featured h3 { font-size: clamp(1.9rem, 5vw, 3rem); }

/* mini galerie uvnitř projektu */
.mini-gallery { display: grid; gap: 0.6rem; grid-template-columns: repeat(3, 1fr); }
.mini-gallery .ph { aspect-ratio: 1/1; }
.mini-gallery .ph.tall { grid-row: span 2; aspect-ratio: auto; }

/* logo (Indeehouse apod.) */
.logo-slot { display: grid; place-items: center; aspect-ratio: 16/9; background: var(--bg); border:1px solid var(--line); border-radius: var(--radius-lg); }
.logo-slot .ph { width: 60%; aspect-ratio: 16/6; }

/* =========================================================
   Reference — kde jsem dělal (logo grid)
   ========================================================= */
.logos { display: grid; gap: 1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.logos .ph { aspect-ratio: 3/2; border-radius: 0; border: none; background: var(--bg); color: var(--ink-soft); }
.logos .ph::after { opacity: 0.5; }

/* =========================================================
   Contact
   ========================================================= */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.big-mail { font-size: clamp(1.5rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.big-mail:hover { color: var(--green); }
.detail { list-style:none; padding:0; margin-top: 1.5rem; }
.detail li { display:flex; justify-content:space-between; gap:1rem; padding:0.9rem 0; border-top:1px solid var(--line); }
.detail li:last-child { border-bottom:1px solid var(--line); }
.detail .k { color: var(--ink-soft); font-weight:600; }
.detail a:hover { color: var(--green); }
.socials { display:flex; flex-wrap:wrap; gap:0.6rem; margin-top:1.5rem; }
.socials a { border:1px solid var(--line); border-radius:999px; padding:0.55rem 1rem; font-weight:600; font-size:0.88rem; color:var(--ink-soft); transition: border-color .25s, color .25s; }
.socials a:hover { border-color: var(--green); color: var(--green); }

/* =========================================================
   Footer
   ========================================================= */
.site-foot { background: var(--ink); color: #cdd6d1; padding-block: clamp(2.5rem, 5vw, 3.5rem); margin-top: clamp(3rem, 7vw, 5rem); }
.site-foot__inner { display:flex; flex-wrap:wrap; gap:1.25rem 2.5rem; align-items:center; justify-content:space-between; }
.site-foot .brand { color:#fff; }
.site-foot .brand small { color:#8ea69a; }
.foot-nav { display:flex; flex-wrap:wrap; gap:1.5rem; }
.foot-nav a { color:#cdd6d1; font-weight:600; font-size:0.92rem; }
.foot-nav a:hover { color:#fff; }
.foot-note { width:100%; color:#8ea69a; font-size:0.85rem; margin-top:0.5rem; }

/* =========================================================
   Reveal + a11y
   ========================================================= */
[data-reveal] { opacity:0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity:1; transform:none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *{animation:none!important;transition:none!important;scroll-behavior:auto!important} [data-reveal]{opacity:1;transform:none} .progress__bar{transition:none!important} }

/* =========================================================
   Mobile nav
   ========================================================= */
@media (max-width: 820px) {
  .nav-toggle { display:inline-flex; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom:1px solid var(--line); padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-130%); transition: transform .4s var(--ease); box-shadow: 0 20px 40px -30px rgba(0,0,0,.35); }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 1rem 0; border-top: 1px solid var(--line); }
  .nav a:first-child { border-top: none; }
  .nav .btn { margin-top: 0.75rem; justify-content: center; }
  .mini-gallery { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   ITERACE 2 — nové bloky
   ========================================================= */

/* "Kde jsem dělal" uvnitř O mně */
.worked { margin-top: 2rem; }
.worked__label { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); }

/* 4 fotky ve čtverci 2×2 (Ideehouse) */
.g4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.g4 .ph { aspect-ratio: 4/3; }

/* Řádek log u Webů (uvnitř projektu) */
.logo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.logo-row .ph { aspect-ratio: 3/2; border: none; border-radius: 0; background: var(--bg); color: var(--ink-soft); }
.logo-row .ph::after { opacity: 0.55; }
.logo-cell { background: var(--bg); aspect-ratio: 3/2; display: grid; place-items: center; padding: 1.1rem 1.4rem; }
.logo-cell img { max-width: 100%; max-height: 46px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: 0.72; transition: filter 0.3s var(--ease), opacity 0.3s var(--ease); }
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 480px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Menší sekce — kompaktní karty
   ========================================================= */
.minis { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.mini { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.mini:hover { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); transform: translateY(-3px); }
.mini__media { aspect-ratio: 16/10; width: 100%; }
.mini__media.ph { border: none; border-radius: 0; }
.mini__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini__body { padding: clamp(1.3rem, 3vw, 1.7rem); display: flex; flex-direction: column; gap: 0.6rem; }
.mini__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mini__head h3 { font-size: 1.35rem; }
.mini__head a { color: var(--green); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.mini__body p { color: var(--ink-soft); font-size: 0.96rem; }
