/* --- Barvy a promenne --- */
:root {
  --brand: #9d3e12; /* rezava z loga */
  --brand-light: #d2672f; /* rezava pro tmave pozadi */
  --brand-soft: #fbefe8;
  --navy: #1d5a93; /* modra z loga */
  --navy-deep: #133e68;
  --navy-light: #8ab8e3;
  --ink: #0f172a;
  --text: #334155;
  --border: #e2e8f0;
  --surface-alt: #f4f7fb;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --radius: 1.25rem;
  --header-h: 4.5rem;
  --overlap: clamp(3rem, 7vw, 5rem); /* o kolik karta "O nas" zasahuje do hero banneru */
  --shadow-card: 0 1px 2px rgb(15 23 42 / 0.04), 0 16px 40px -20px rgb(15 23 42 / 0.2);
}

/* --- Reset a zakladni nastaveni --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: rgb(157 62 18 / 0.16);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.tall {
  font-size: 1.2em;
}

/* --- Header a Navigace --- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgb(255 255 255 / 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgb(15 23 42 / 0.06);
  transition: box-shadow 0.3s ease;
}

.main-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgb(15 23 42 / 0.25);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
}

.logo-link {
  text-decoration: none;
  border-radius: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--brand);
}

.logo-image {
  width: 40px;
  height: 40px;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.375rem;
  height: 1.375rem;
}

.nav-toggle .icon-close,
.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

/* Na mobilu se navigace rozbaluje pod headerem */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem clamp(1rem, 4vw, 1.5rem) 1.25rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 24px -16px rgb(15 23 42 / 0.2);
}

.nav-open .main-nav {
  display: flex;
}

.main-nav a {
  padding: 0.625rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover {
  color: var(--navy);
  background-color: #eef4fa;
}

.main-nav a.is-active {
  color: var(--navy);
  background-color: #e6eff8;
}

/* Kontakt jako tlacitko */
.main-nav a.nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--navy);
}

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.is-active {
  color: #ffffff;
  background-color: var(--navy-deep);
}

/* --- Hero Banner --- */
.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(22rem, 58vh, 34rem);
  padding-block: 4rem calc(4rem + var(--overlap));
  text-align: center;
  color: #ffffff;
}

/* Fotka je lehce rozmazana (AI fotka s nepresnymi detaily), okraje presahuji, aby rozmazani nebylo videt */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  z-index: -2;
  background: url("background.jpg") center 60% / cover no-repeat;
  filter: blur(4px);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(9 26 46 / 0.55) 0%, rgb(9 26 46 / 0.35) 50%, rgb(9 26 46 / 0.7) 100%);
}

.hero-banner h1 {
  font-size: clamp(3.25rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}

/* Dvoubarevny pruh podle loga (rezava + modra) */
.accent-bar {
  display: block;
  width: 4rem;
  height: 4px;
  margin: 1.75rem auto 1.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-light) 0 65%, var(--navy-light) 65% 100%);
}

.hero-tagline {
  font-size: clamp(0.8125rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.92);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.5);
}

/* --- Hlavni obsah a sekce --- */
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  scroll-margin-top: var(--header-h);
}

.section--overlap {
  padding-top: 0;
  scroll-margin-top: calc(var(--header-h) + var(--overlap) + 1.5rem);
}

.section--overlap .container {
  position: relative;
  margin-top: calc(-1 * var(--overlap));
}

.bg-alt {
  background-color: var(--surface-alt);
}

.content-box {
  padding: clamp(1.75rem, 4.5vw, 3rem);
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.section-title::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0 65%, var(--navy) 65% 100%);
}

.content-box p + p {
  margin-top: 1rem;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
}

.text-link {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgb(29 90 147 / 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.icon-external {
  display: inline-block;
  width: 0.875em;
  height: 0.875em;
  margin-left: 0.2em;
  vertical-align: -0.05em;
}

.strong-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgb(29 90 147 / 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.strong-link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* --- Kramerius: text + panel s nabidkou --- */
.kramerius-grid {
  display: grid;
  gap: 1.75rem;
}

.offer-panel {
  padding: 1.375rem 1.5rem 0.875rem;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.offer-title {
  margin-bottom: 0.375rem;
}

.features-list {
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 0.625rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}

.features-list li + li {
  border-top: 1px solid var(--border);
}

.features-list svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  padding: 0.25rem;
  border-radius: 999px;
  stroke-width: 3;
  color: #ffffff;
  background-color: var(--brand);
}

.content-box .note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* --- Cenik: kompaktni karta s teplym nadechem --- */
.pricing-box {
  background: linear-gradient(115deg, #ffffff 45%, var(--brand-soft) 100%);
}

/* --- Kontakt --- */
.contact-box {
  padding: clamp(1.25rem, 5vw, 3.5rem);
  color: #ffffff;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(255 255 255 / 0.12) 0%, transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 0 24px 48px -24px rgb(19 62 104 / 0.6);
}

.contact-box .section-title {
  color: #ffffff;
  text-align: center;
  margin-bottom: 0;
}

.contact-box .section-title::before {
  margin-inline: auto;
  background: linear-gradient(90deg, var(--brand-light) 0 65%, var(--navy-light) 65% 100%);
}

.contact-details {
  margin-top: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background-color: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 1rem;
}

.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.contact-column + .contact-column {
  padding-top: 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item--top {
  align-items: flex-start;
}

.contact-item + .contact-item {
  margin-top: 1rem;
}

.contact-item p + p {
  margin-top: 0.25rem;
}

.contact-item strong {
  color: #ffffff;
}

.icon-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background-color: rgb(255 255 255 / 0.12);
}

.icon-badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-item a {
  white-space: nowrap;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.contact-item a:hover {
  text-decoration-color: currentColor;
}

/* --- Paticka --- */
.main-footer {
  padding-block: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: #94a3b8;
  background-color: var(--ink);
}

/* --- Animace pri scrollovani (trida .js se nastavuje v <head>) --- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Responzivita --- */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .main-nav a.nav-cta {
    margin: 0 0 0 0.5rem;
    padding-inline: 1.125rem;
  }

  .pricing-box {
    display: flex;
    align-items: baseline;
    gap: 3rem;
  }

  .pricing-box p {
    font-size: 1.125rem;
  }

  .pricing-box .section-title {
    flex: none;
    margin-bottom: 0;
    padding-right: 3rem;
    border-right: 1px solid var(--border);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .contact-column + .contact-column {
    padding-top: 0;
    padding-left: 3rem;
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.14);
  }
}

@media (min-width: 960px) {
  .kramerius-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 3rem;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
