/* ═══════════════════════════════════════════════════════════
   Zen Zahrada — Public web styles
   Staví na /assets/css/tokens.css.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--gold-400); text-decoration: none; transition: color var(--t-f); }
a:hover { color: var(--gold-200); }

img, svg { display: block; max-width: 100%; }

/* ── Layout ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

section { padding: 80px 0; position: relative; }
@media (min-width: 900px) { section { padding: 110px 0; } }

/* ── Ambient atmosphere ── */
.amb {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 48% at 5% 92%, rgba(201,145,58,.14), transparent 68%),
    radial-gradient(ellipse 40% 30% at 96% 8%, rgba(155,94,42,.10), transparent 62%);
  animation: breath 10s ease-in-out infinite;
}
@keyframes breath {
  0%, 100% { opacity: .28; }
  50%      { opacity: .5; }
}

/* ── Typography ── */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 16px;
}
.eyebrow::before { content: '— '; opacity: .5; }

h1.display, h2.display, h3.display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 22px;
}
h1.display em, h2.display em { font-style: italic; color: var(--gold-400); font-weight: 500; }

h1.display { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05; }
h2.display { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 18ch; }
h3.display { font-size: 1.4rem; color: var(--gold-400); }

.sub {
  color: var(--text2);
  font-size: 1.02rem;
  max-width: 58ch;
  margin: 0 0 48px;
}

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: background 260ms, backdrop-filter 260ms, border-color 260ms;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(18,14,7,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-s);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
@media (min-width: 640px) { .nav-inner { padding: 0 32px; } }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand svg { width: 30px; height: 30px; opacity: .9; }
.brand .n { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; }
.brand .s {
  font-size: .58rem;
  color: var(--muted);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
@media (max-width: 820px) { .nav-links .lnk { display: none; } }

.lnk { color: var(--text2); font-size: .9rem; position: relative; }
.lnk:hover { color: var(--gold-400); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--rs);
  font-size: .9rem; font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-m), box-shadow var(--t-m), background var(--t-m),
              border-color var(--t-m), color var(--t-m);
  letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-500), var(--gold-700));
  color: var(--on-gold);
  box-shadow: 0 2px 12px rgba(200,150,50,.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(200,150,50,.32);
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text2);
  border-color: var(--border-s);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--gold-400);
  border-color: rgba(200,150,50,.35);
  background: rgba(200,150,50,.05);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface-base), 0 0 0 4px rgba(200,150,50,.5);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 60px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px;
  align-items: center; position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 20px; }
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 400; line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 28px; color: var(--text);
}
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero-lead { font-size: 1.12rem; color: var(--text2); max-width: 44ch; margin: 0 0 40px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta {
  display: flex; gap: 26px;
  font-size: .82rem; color: var(--muted);
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }

.orb {
  position: relative; width: 100%; aspect-ratio: 1;
  max-width: 460px; margin: 0 auto;
}
.orb-core {
  position: absolute; inset: 16%; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #e8b84b 0%, #c9913a 38%, #7d5418 72%, #221409 100%);
  box-shadow: 0 0 80px rgba(201,145,58,.32), inset 0 0 80px rgba(0,0,0,.55);
}

/* ── Cards (služby, feature grid) ── */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-s);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--t-m), box-shadow var(--t-m), transform var(--t-m);
}
.card:hover {
  border-color: var(--border-d);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ── Forms ── */
form { display: flex; flex-direction: column; gap: 16px; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--text2); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="datetime-local"], select, textarea {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-s);
  border-radius: var(--rs);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--t-f), background var(--t-f);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(200,150,50,.35);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 2px var(--surface-base), 0 0 0 4px rgba(200,150,50,.25);
}
input:required:invalid:not(:placeholder-shown) { border-color: rgba(192,120,88,.5); }

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--rs);
  border: 1px solid var(--border-d);
  background: rgba(192,120,88,.08);
  color: var(--err);
  font-size: .92rem;
}
.alert-success {
  background: rgba(77,148,112,.08);
  border-color: rgba(77,148,112,.3);
  color: var(--jade);
}

/* ── Footer ── */
footer.site-footer {
  border-top: 1px solid var(--border-s);
  padding: 60px 0 40px;
  margin-top: 60px;
  background: var(--surface-side);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (min-width: 640px) { .footer-inner { padding: 0 32px; } }

footer h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold-500);
  font-weight: 600;
  margin: 0 0 14px;
}
footer p, footer a { font-size: .88rem; color: var(--text2); }
footer a:hover { color: var(--gold-400); }

.copyright {
  border-top: 1px solid var(--border-s);
  margin-top: 40px;
  padding-top: 20px;
  font-size: .76rem;
  color: var(--muted);
  text-align: center;
}

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.gold { color: var(--gold-400); }
.muted { color: var(--muted); }
