/* ============================================================
   SOTRAB – firemná jednostránková stránka
   ============================================================ */

:root {
  --navy: #0d2840;
  --navy-2: #14405f;
  --navy-deep: #081d2f;
  --accent: #f5a623;
  --accent-dark: #d98b06;
  --ink: #1e293b;
  --muted: #5b6b7c;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(13, 40, 64, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(13, 40, 64, 0.5);
  --maxw: 1160px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text { font-family: "Poppins", "Inter", sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 .5rem; color: var(--navy); }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; color: var(--navy); }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.about, .section.contact { background: var(--bg-soft); }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--navy-deep); box-shadow: 0 10px 24px -12px rgba(245, 166, 35, .9); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgba(13,40,64,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--navy); }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--navy); color: var(--accent);
}
.logo-text { font-weight: 800; font-size: 1.32rem; letter-spacing: .06em; color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 14px; border-radius: 999px; font-weight: 500; color: var(--ink);
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.main-nav .nav-cta { background: var(--navy); color: #fff; margin-left: 6px; }
.main-nav .nav-cta:hover { background: var(--navy-2); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,29,47,.92) 0%, rgba(13,40,64,.82) 45%, rgba(13,40,64,.5) 100%);
}
.hero-content { position: relative; z-index: 1; padding: clamp(80px, 13vw, 150px) 0 clamp(70px, 10vw, 120px); max-width: 760px; }
.hero-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  font-weight: 600; color: var(--accent); margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; margin: 0 0 1.1rem; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: rgba(255,255,255,.9); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.8rem 0 0; }

.hero-badges {
  list-style: none; margin: 3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px);
}
.hero-badges li { display: flex; flex-direction: column; }
.hero-badges strong { font-family: "Poppins", sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; }
.hero-badges span { font-size: .9rem; color: rgba(255,255,255,.78); }

/* ---------- Hlavička sekcie ---------- */
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 700; color: var(--accent-dark); margin-bottom: .7rem;
}

/* ---------- Služby ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: var(--accent); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- O nás ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge {
  position: absolute; left: 22px; bottom: -26px; background: var(--navy); color: #fff;
  padding: 16px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); max-width: 75%;
}
.about-badge strong { display: block; color: var(--accent); font-family: "Poppins", sans-serif; letter-spacing: .06em; }
.about-badge span { font-size: .88rem; color: rgba(255,255,255,.85); }
.about-text p { color: var(--muted); }
.about-text .btn { margin-top: .6rem; }

.checklist { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  background-color: var(--navy);
}

/* ---------- Postup ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; overflow: hidden;
}
.step-num {
  font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2.4rem;
  color: transparent; -webkit-text-stroke: 1.6px var(--accent); display: block; margin-bottom: 10px;
}
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-info p { color: var(--muted); }
.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: var(--accent);
}
.ci-icon svg { width: 22px; height: 22px; }
.ci-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--navy); font-weight: 600; }
.contact-list a:hover { color: var(--accent-dark); }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--bg-soft); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.field textarea { resize: vertical; }
.form-note { margin: 12px 0 0; font-size: .9rem; min-height: 1.2em; text-align: center; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #b91c1c; }

/* ---------- Päta ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 32px; align-items: start;
  padding: clamp(46px, 6vw, 72px) 22px clamp(34px, 4vw, 48px);
}
.footer-brand .logo-text { color: #fff; font-size: 1.4rem; }
.footer-brand p { margin: .6rem 0 0; font-size: .92rem; color: rgba(255,255,255,.66); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: rgba(255,255,255,.7); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom .container { padding-top: 18px; padding-bottom: 18px; }
.footer-bottom span { font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Animácie pri scrolle ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responzivita ---------- */
@media (max-width: 940px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 14px 18px 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s ease; box-shadow: var(--shadow-sm);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 14px; border-radius: var(--radius-sm); }
  .main-nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-badges { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
