/* ===========================================================
   CAJZL — pitch web
   Paleta a písmo dle Brand Manuálu (Black Pearl / Eigengrau / Regent Gray, Satoshi)
   =========================================================== */

:root{
  --navy: #071630;        /* Black Pearl */
  --ink: #16161d;         /* Eigengrau */
  --mist: #86919a;        /* Regent Gray */
  --paper: #faf8f4;       /* teplá bílá, ne čistě bílá — méně klinické */
  --paper-2: #f1ede5;
  --line: rgba(7,22,48,0.14);
  --line-light: rgba(250,248,244,0.28);

  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 96px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ margin:0; font-weight:900; letter-spacing:-0.01em; }
p{ margin:0; }

/* ---------- demo banner ---------- */
.demo-banner{
  background: var(--ink);
  color: var(--paper-2);
  text-align:center;
  font-size: 12px;
  letter-spacing:.04em;
  padding: 8px 16px;
}

/* ---------- header ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(250,248,244,0.72);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--navy);
}
.logo-word{
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .12em;
}
.logo-mark{ width:14px; height:32px; color: var(--navy); flex-shrink:0; }
.logo-sub{
  font-size: 9px;
  font-weight:700;
  letter-spacing: .14em;
  line-height:1.3;
  color: var(--mist);
}
.site-nav{
  display:flex;
  gap: 32px;
  font-size: 14px;
  font-weight:500;
}
.site-nav a{ opacity:.8; transition: opacity .2s var(--ease); }
.site-nav a:hover{ opacity:1; }

.call-pill{
  display:flex;
  align-items:center;
  gap:8px;
  background: var(--navy);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  white-space:nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.call-pill:hover{ background: var(--ink); transform: translateY(-1px); }
.call-pill strong{ font-weight:700; }
.call-pill__dot{
  width:7px; height:7px; border-radius:50%;
  background:#8fd6a8;
  box-shadow: 0 0 0 0 rgba(143,214,168,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(143,214,168,.55); }
  70%{ box-shadow: 0 0 0 7px rgba(143,214,168,0); }
  100%{ box-shadow: 0 0 0 0 rgba(143,214,168,0); }
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height: 100svh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background: var(--navy);
}
.hero__media{ position:absolute; inset:0; }
.hero__img{
  width:100%; height:100%; object-fit:cover;
  object-position: 50% 30%;
  transform: scale(1.08);
  will-change: transform;
}
.hero__scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(7,16,30,.55) 0%, rgba(7,16,30,.35) 30%, rgba(7,16,48,.55) 68%, rgba(7,16,48,.96) 100%);
}
.hero__grain{
  position:absolute; inset:0;
  opacity:.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero__content{
  position:relative;
  z-index:2;
  color: var(--paper);
  padding: 160px var(--gutter) 200px;
  max-width: 720px;
}
.eyebrow{
  font-size: 12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 18px;
}
.eyebrow--light{ color: rgba(250,248,244,.72); }

.hero__title{
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  margin-bottom: 22px;
}
.hero__perex{
  font-size: clamp(17px, 2vw, 21px);
  font-weight:700;
  line-height:1.4;
  margin-bottom: 16px;
  color: var(--paper);
}
.hero__body{
  font-size: 16px;
  font-weight: 400;
  line-height:1.65;
  color: rgba(250,248,244,.86);
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero__cta{ display:flex; flex-wrap:wrap; gap:16px; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing:.02em;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn--primary{ background: var(--paper); color: var(--navy); }
.btn--primary:hover{ transform: translateY(-2px); background:#fff; }
.btn--ghost{ border:1px solid var(--line-light); color: var(--paper); }
.btn--ghost:hover{ border-color: var(--paper); transform: translateY(-2px); }
.btn--light{ background: var(--paper); color: var(--navy); margin-top: 28px; }
.btn--light:hover{ transform: translateY(-2px); }

.hero__arch{
  position:absolute; left:0; right:0; bottom:-1px; z-index:3; line-height:0;
}
.hero__arch svg{ width:100%; height:70px; display:block; }

/* ---------- sections (generic) ---------- */
.section{ position:relative; padding: 120px 0; overflow:hidden; }
.section--light{ background: var(--paper); }
.section--paper{ background: var(--paper-2); }
.section--dark{ background: var(--navy); color: var(--paper); }

.section__inner{
  position:relative; z-index:2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section__inner--narrow{ max-width: 760px; }
.section__inner--split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items:center;
}

.section h2{
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 28px;
}
.section__title--light{ color: var(--paper); font-size: clamp(30px, 3.6vw, 44px); font-weight:900; margin-bottom:28px; }

.prose p{
  font-size: 17px;
  line-height: 1.75;
  color: rgba(7,22,48,.82);
  margin-bottom: 20px;
  max-width: 68ch;
}
.prose p:last-child{ margin-bottom:0; }
.prose--light p{ color: rgba(250,248,244,.84); }

/* arch line motifs */
.arch-motif{ position:absolute; top:-40px; bottom:-40px; width: 420px; opacity:.5; pointer-events:none; }
.arch-motif--left{ left: -160px; }
.arch-motif--right{ right: -160px; }
.arch-motif svg{ width:100%; height:100%; }
.arch-motif--light{ opacity:.22; }

/* ---------- services ---------- */
.grid-services{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.service-card{
  background: var(--paper-2);
  padding: 40px 32px;
  position:relative;
}
.service-card__num{
  display:block;
  font-size: 13px;
  font-weight:700;
  color: var(--mist);
  letter-spacing:.08em;
  margin-bottom: 22px;
}
.service-card h3{
  font-size: 19px;
  font-weight:700;
  margin-bottom: 12px;
}
.service-card p{
  font-size: 15px;
  line-height:1.6;
  color: rgba(7,22,48,.72);
}

/* ---------- catalog preview ---------- */
.catalog-preview{ position:relative; height: 320px; }
.catalog-card{
  position:absolute;
  width: 230px;
  padding: 26px 22px;
  background: rgba(250,248,244,.06);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  display:flex;
  flex-direction:column;
  gap: 10px;
  top: 10px; left: 30px;
}
.catalog-card--offset{ top: 70px; left: 90px; background: rgba(250,248,244,.1); }
.catalog-card__cross{ font-size: 18px; color: rgba(250,248,244,.55); }
.catalog-card__name{ font-weight:700; font-size:16px; }
.catalog-card__date{ font-size:13px; color: rgba(250,248,244,.6); }
.catalog-preview__note{
  position:absolute; bottom:0; left:30px;
  font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color: rgba(250,248,244,.4);
}

/* ---------- locations / contact ---------- */
.grid-locations{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border:1px solid var(--line);
  margin-top: 48px;
}
.location-card{ background: var(--paper); padding: 36px 32px; }
.location-card h3{ font-size:20px; margin-bottom:14px; }
.location-card p{ font-size:15px; line-height:1.6; color: rgba(7,22,48,.78); margin-bottom: 10px; }
.location-card__hours{ color: var(--mist) !important; }
.location-card__phone{ display:inline-block; margin-top:6px; font-weight:700; font-size:17px; border-bottom:1px solid var(--navy); }

.contact-note{
  margin-top: 28px;
  font-size: 14px;
  color: rgba(7,22,48,.65);
}
.contact-note a{ text-decoration: underline; }

.cta-banner{
  margin-top: 72px;
  padding: 40px var(--gutter);
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
  background: var(--navy);
  color: var(--paper);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 16px;
  border-radius: 6px;
}
.cta-banner p{ font-size:14px; letter-spacing:.06em; text-transform:uppercase; color: rgba(250,248,244,.7); }
.cta-banner a{ font-size: 30px; font-weight:900; }

/* ---------- footer ---------- */
.site-footer{ background: var(--ink); color: rgba(250,248,244,.6); padding: 40px var(--gutter); }
.site-footer__inner{ max-width: var(--container); margin:0 auto; display:flex; flex-direction:column; gap:6px; }
.site-footer p{ font-size:13px; }
.site-footer__meta{ font-size:11px; color: rgba(250,248,244,.35); }

/* ---------- motion switch (demo-only control) ---------- */
.motion-switch{
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 50;
  display:flex;
  align-items:center;
  gap:6px;
  background: rgba(22,22,29,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(250,248,244,.14);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.motion-switch__label{
  font-size: 10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: rgba(250,248,244,.45);
  padding: 0 10px 0 12px;
}
.motion-switch button{
  font-family: var(--font);
  font-size: 12px;
  font-weight:700;
  border:none;
  background: transparent;
  color: rgba(250,248,244,.6);
  padding: 8px 14px;
  border-radius: 999px;
  cursor:pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.motion-switch button[aria-checked="true"]{
  background: var(--paper);
  color: var(--navy);
}

/* ===========================================================
   REVEAL / MOTION LEVELS
   controlled via html[data-motion="static|subtle|bold"]
   =========================================================== */

/* default (no JS, or JS not yet initialised): everything visible, no motion.
   Animation only switches on once html.js is present AND a mode is chosen —
   this guarantees content is never stuck invisible. */
.reveal{ opacity:1; transform:none; }

html.js[data-motion="subtle"] .reveal{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js[data-motion="subtle"] .reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

html.js[data-motion="bold"] .reveal{
  opacity:0;
  transform: translateY(56px) scale(.97);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
html.js[data-motion="bold"] .reveal.is-visible{
  opacity:1;
  transform: translateY(0) scale(1);
}
/* staggered children within a revealing group */
html.js[data-motion="bold"] .grid-services .reveal:nth-child(2){ transition-delay: .06s; }
html.js[data-motion="bold"] .grid-services .reveal:nth-child(3){ transition-delay: .12s; }

html[data-motion="static"] .hero__img{ transform: none; }
html[data-motion="static"] .arch-motif{ display:none; }

/* hero parallax only for subtle/bold, applied via JS transform on #heroImg */
html[data-motion="subtle"] .hero__img,
html[data-motion="bold"] .hero__img{ will-change: transform; }

html[data-motion="bold"] .call-pill__dot{ animation-duration: 1.5s; }

@media (prefers-reduced-motion: reduce){
  html[data-motion] .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px){
  .site-nav{ display:none; }
  .section__inner--split{ grid-template-columns: 1fr; }
  .grid-services{ grid-template-columns: 1fr; }
  .grid-locations{ grid-template-columns: 1fr; }
  .catalog-preview{ height: 260px; margin-top: 40px; }
  .arch-motif{ display:none; }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 560px){
  .site-header{ padding: 12px 14px; gap: 10px; }
  .logo-sub{ display:none; }
  .logo-word{ font-size: 18px; }
  .call-pill{
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 7px 12px;
    font-size: 10px;
    white-space: normal;
  }
  .call-pill__dot{ display:none; }
  .call-pill strong{ font-size: 14px; }
  .hero__content{ padding: 120px 20px 150px; }
  .motion-switch{ left:10px; right:10px; justify-content:center; }
}
