/* ========================================================================== 
   MAMUTI — nový web (čisté HTML/CSS, bez Divi)
   Design: "vrstvy vykopávky" — sekce jako vrstvy archeologického profilu
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ochre: #C17F2E;
  --ochre-light: #D99A44;
  --charcoal: #2B2420;
  --charcoal-soft: #3A322C;
  --parchment: #EFE7D8;
  --parchment-dim: #E3D8C4;
  --rust: #9C3B2B;
  --moss: #59684A;
  --bone: #FAF6EC;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--bone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  line-height: 1.1;
  font-weight: 600;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: linear-gradient(to bottom, rgba(20,16,13,0.55), rgba(20,16,13,0));
  transition: background 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--charcoal);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--bone);
}
.brand-logo {
  width: 36px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav .nav-group > a::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 0.45rem 0.15rem 0;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.main-nav a {
  text-decoration: none;
  color: var(--bone);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.3rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--ochre-light);
  transition: right 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}
.main-nav .subnav {
  position: absolute;
  display: block;
  top: calc(100% + 0.8rem);
  left: -1rem;
  min-width: 12rem;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.main-nav .nav-group::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -1rem;
  width: 14rem;
  height: 0.8rem;
}
.main-nav .subnav li + li { margin-top: 0.35rem; }
.main-nav .subnav a {
  display: block;
  padding: 0.35rem 0;
  white-space: nowrap;
  font-size: 0.88rem;
}
.main-nav .nav-group:hover .subnav,
.main-nav .nav-group:focus-within .subnav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--charcoal);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    padding: var(--gutter);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 1.1rem; font-size: 1.1rem; }
  .main-nav .subnav {
    position: static;
    display: block;
    min-width: 0;
    padding: 0.25rem 0 0 1.2rem;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .main-nav .nav-group::after { display: none; }
  .main-nav .subnav li + li { margin-top: 0; }
  .main-nav .subnav a { font-size: 0.95rem; }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--bone);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 65%, rgba(193,127,46,0.55), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(156,59,43,0.35), transparent 60%),
    linear-gradient(to bottom, #14100d 0%, #241d17 45%, #3a2d20 100%);
  background-image: url('../assets/general/tabor2014_1000.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(20,16,13,0.75) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter);
  animation: hero-rise 0.9s ease both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-mark {
  width: clamp(96px, 14vw, 170px);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.28));
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--parchment-dim);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid {
  background: var(--ochre);
  color: var(--bone);
}
.btn-solid:hover { background: var(--ochre-light); }

.btn-ghost {
  border-color: rgba(250,246,236,0.5);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--bone); background: rgba(250,246,236,0.08); }

.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--parchment-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
}
.hero-scroll span {
  width: 1px; height: 26px;
  background: linear-gradient(to bottom, var(--ochre-light), transparent);
}

.band {
  background: var(--charcoal);
  color: var(--bone);
  padding: 2.6rem 0;
}
.band .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gutter);
  align-items: center;
}
.band-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ochre-light);
}
.band-text { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.band-text p { margin: 0; color: var(--parchment-dim); }

@media (max-width: 700px) {
  .band .container { grid-template-columns: 1fr; text-align: left; }
}

.strata { position: relative; }

.layer {
  position: relative;
  padding: 5.5rem 0;
}
.layer--surface { background: var(--parchment); }
.layer--deep {
  background: var(--charcoal-soft);
  color: var(--parchment);
}
.layer--deep .layer-eyebrow { color: var(--ochre-light); }
.layer.layer--deep p {
  color: var(--bone);
  text-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

.layer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.layer--reverse .layer-grid { direction: rtl; }
.layer--reverse .layer-grid > * { direction: ltr; }

.layer-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.layer-eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
}

.layer h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.layer p {
  max-width: 46ch;
  color: rgba(43, 36, 32, 0.86);
  line-height: 1.8;
  font-size: 1.04rem;
}
.layer .btn { margin-top: 1.5rem; }

.layer-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}
.layer-visual svg { width: 42%; height: 42%; opacity: 0.9; }
.section-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.12));
  border-radius: var(--radius);
}
.section-logo--small {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual--ochre,
.visual--moss {
  background: transparent;
  color: var(--bone);
}

@media (max-width: 780px) {
  .layer-grid, .layer--reverse .layer-grid { grid-template-columns: 1fr; direction: ltr; }
  .layer { padding: 3.5rem 0; }
}

.strata-seam {
  position: relative;
  height: 46px;
  background: var(--parchment);
}
.strata-seam.to-deep { background: var(--parchment); }
.strata-seam svg { width: 100%; height: 100%; display: block; }
.seam-depth {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--rust);
  background: var(--parchment);
  padding: 0 0.5rem;
}

.site-footer {
  background: var(--charcoal);
  color: var(--parchment-dim);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(250,246,236,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--bone); }
.footer-logo { width: 26px; height: auto; display: block; }
.footer-brand span { font-family: var(--font-display); font-size: 1.1rem; }
.footer-contact { font-size: 0.9rem; line-height: 1.8; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--ochre-light); }
.footer-note {
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: rgba(250,246,236,0.4);
  text-align: center;
}
