/* ============================================================
   Softana.cz — design system (směr „C · Flow")
   Flat · funkční · přístupný
   ============================================================ */

/* --- Design tokeny ----------------------------------------- */
:root {
  --bg:          #F7F7FB;
  --surface:     #FFFFFF;
  --surface-alt: #F1F0FA;
  --text:        #151622;
  --text-muted:  #54556A;
  --primary:     #4F2BD9;
  --primary-700: #3E1FB0;
  --primary-050: #ECE9FB;
  --cta:         #EA580C;
  --cta-700:     #C2410C;
  --border:      #E7E7EF;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --container: 1120px;
  --gap:       24px;

  --shadow-sm: 0 1px 2px rgba(21, 22, 34, .04), 0 2px 8px rgba(21, 22, 34, .04);
  --shadow-md: 0 8px 24px rgba(79, 43, 217, .08);

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

  --step-fast: 150ms;
  --ease: cubic-bezier(.2, .6, .3, 1);
}

/* --- Reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }

/* --- Layout ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--alt { background: var(--surface-alt); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-050);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { margin-top: 14px; color: var(--text-muted); font-size: 1.075rem; }

/* --- Skip link ---------------------------------------------- */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--text); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 200; transition: top var(--step-fast) var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: .975rem; white-space: nowrap;
  transition: background var(--step-fast) var(--ease),
              color var(--step-fast) var(--ease),
              border-color var(--step-fast) var(--ease),
              transform var(--step-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-700); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: #d7d7e3; }

/* --- Focus visible ------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Header ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 247, 251, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px;
}
.brand { display: inline-block; font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; color: var(--text); }
.brand .dot { color: var(--cta); }
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.nav-link {
  color: var(--text-muted); font-weight: 600; font-size: .95rem;
  padding: 10px 14px; border-radius: var(--radius-sm);
  transition: color var(--step-fast) var(--ease), background var(--step-fast) var(--ease);
}
.nav a.nav-link:hover { color: var(--text); background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; font-size: .85rem; color: var(--text);
  background: var(--surface);
}
.lang-switch:hover { color: var(--text); border-color: #d7d7e3; }

.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

/* --- Hero --------------------------------------------------- */
.hero { padding-block: clamp(48px, 9vw, 96px); overflow: hidden; }
.hero .grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
.hero h1 .accent { color: var(--primary); }
.hero .lead { margin-top: 20px; font-size: 1.2rem; color: var(--text-muted); max-width: 34ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero vizuál — bento (fotky + značkové dlaždice) */
.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 14px; aspect-ratio: 1 / 1;
}
.hero-visual .hv {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.hero-visual .hv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .hv-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; color: #fff; font-weight: 700; font-size: 1.05rem;
}
.hero-visual .hv-violet { background: var(--primary); }
.hero-visual .hv-orange { background: var(--cta); }
.hero-visual .hv-ico { display: inline-flex; }
.hero-visual .hv-ico svg { width: 28px; height: 28px; }

/* --- Cards grid (služby) ------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: #d9d5f3; }
.card .icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--primary-050); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; }
.card p { margin-top: 10px; color: var(--text-muted); }

/* --- Why (hodnoty) ------------------------------------------ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.value .value-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.value .value-icon svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.1rem; }
.value p { margin-top: 8px; color: var(--text-muted); font-size: .975rem; }

/* --- Process ------------------------------------------------ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 20px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-weight: 800; font-size: .95rem; color: var(--primary);
  background: var(--primary-050); border-radius: 100px; padding: 4px 12px;
}
.step h3 { font-size: 1.2rem; margin-top: 16px; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: .975rem; }
.step::after {
  content: ""; position: absolute; top: 32px; left: calc(100% - 8px); width: calc(var(--gap) + 16px);
  height: 2px; background: var(--border);
}
.process-grid .step:last-child::after { display: none; }

/* --- Contact ------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-aside p { color: var(--text-muted); margin-top: 16px; }
.contact-email { margin-top: 24px; font-weight: 700; }
.contact-email a { font-size: 1.15rem; }

.form { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  min-height: 48px; transition: border-color var(--step-fast) var(--ease), box-shadow var(--step-fast) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-050);
}
.field.invalid input, .field.invalid textarea { border-color: var(--cta); }
.field .err { display: none; color: var(--cta-700); font-size: .875rem; margin-top: 6px; }
.field.invalid .err { display: block; }

.field-consent { display: flex; gap: 10px; align-items: flex-start; }
.field-consent input { width: 20px; height: 20px; min-height: 20px; margin-top: 3px; flex: none; }
.field-consent label { font-weight: 500; color: var(--text-muted); font-size: .925rem; }

.cf-turnstile { margin-bottom: 18px; }

/* Honeypot — skryté před uživateli, dostupné botům */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 600; }
.alert-success { background: #E9F9F0; color: #0B7A43; border: 1px solid #BCEBD1; }
.alert-error { background: #FDECE6; color: var(--cta-700); border: 1px solid #F7C9B8; }

/* --- Footer ------------------------------------------------- */
.site-footer { background: var(--text); color: #C7C8D6; padding-block: 56px 32px; }
.site-footer a { color: #C7C8D6; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.6fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.footer-tagline { margin-top: 14px; max-width: 30ch; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; }
.footer-legal { font-size: .9rem; line-height: 1.7; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .why-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid .step::after { display: none; }
  .hero .grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-top: 8px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-actions .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; }
  /* Skryté desktop nav jinak nechá jazyky + burger u loga — posunout doprava. */
  .header-actions { margin-left: auto; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px; margin: 0;
  }
  .nav.open a.nav-link { padding: 12px 8px; }
  .site-header .inner { position: relative; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .why-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* --- Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
