/* --- Tokens: Webflow (#171d12 nav, Manrope), sharp corners --- */
:root {
  --bg: #f5f4f0;
  --bg-muted: #ebe8e0;
  --surface: #ffffff;
  --text: #1a1a18;
  --text-muted: #5a5854;
  --brand: #0e734f;
  --brand-hover: #0b5c3f;
  --brand-dark: #0a1f18;
  --nav-bg: #171d12;
  --border: rgba(10, 31, 24, 0.12);
  --radius: 0;
  --radius-sm: 0;
  --shadow: 0 16px 36px rgba(10, 31, 24, 0.07);
  --font: "Manrope", system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* --- Header (#171d12 jako na Webflow) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
  flex-wrap: wrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.logo__img {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
  border: none;
  outline: none;
  box-shadow: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo:focus {
  outline: none;
}

.logo:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
}

.site-header .logo {
  color: inherit;
}

.nav {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-header .nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-header .nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-hover);
}

.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn--outline:hover {
  background: rgba(14, 115, 79, 0.1);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

/* --- Hero: celá plocha fotkou, text vlevo / vpravo jako Webflow --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 0;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--nav-bg);
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(23, 29, 18, 0.82) 0%,
    rgba(23, 29, 18, 0.35) 45%,
    rgba(23, 29, 18, 0.55) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* Dva sloupce jako Webflow: vlevo nadpis, vpravo text + tlačítka; spodek tlačítek = spodek nadpisu */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.hero-col {
  color: #fff;
}

.hero-col--left {
  align-self: stretch;
}

.hero-col--right {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
}

.hero-col--right .hero-actions {
  margin-top: auto;
}

.hero-h1 {
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-col--right .hero-actions {
    margin-top: 0;
  }

  .hero-lead {
    margin-bottom: 1rem;
  }
}

/* --- Team (poměr 1200×1600 = 3:4, text šířka = fotka) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  text-align: left;
  height: 100%;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-muted);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.team-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding-top: 1rem;
}

.team-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.team-card__role {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

.team-card__bio {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.75rem;
  flex-shrink: 0;
  color: var(--brand);
  text-decoration: none;
}

.team-linkedin:hover {
  color: var(--brand-hover);
  text-decoration: none;
}

.team-linkedin__icon {
  display: block;
}

/* --- Sections --- */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* --- Horizontal services strip --- */
.services-scroll-wrap {
  width: 100%;
  max-width: 100vw;
  padding-bottom: 0.5rem;
}

.services-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100vw - min(1120px, 100% - 2.5rem)) / 2));
  padding-inline: max(1.25rem, calc((100vw - min(1120px, 100% - 2.5rem)) / 2));
  padding-block: 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--brand) var(--bg-muted);
}

.services-scroll::-webkit-scrollbar {
  height: 8px;
}

.services-scroll::-webkit-scrollbar-track {
  background: var(--bg-muted);
  border-radius: 0;
}

.services-scroll::-webkit-scrollbar-thumb {
  background: rgba(14, 115, 79, 0.4);
  border-radius: 0;
}

.services-scroll:focus-within {
  outline: none;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-right {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    flex: 1;
    justify-content: flex-end;
  }
}

/* --- Service cards + interaction --- */
.content-block {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(360px, calc(100vw - 3rem));
  max-width: 380px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: stretch;
}

.card-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 440px;
}

@media (min-width: 901px) {
  .card-stage {
    min-height: 500px;
  }
}

.card-summary {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.card-summary.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.98);
}

.card-image {
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-muted);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.5rem;
  min-height: 0;
  justify-content: flex-start;
}

.card-title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  flex-shrink: 0;
}

.card-subtitle {
  margin: 0 0 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.card-lead {
  margin: 0;
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1 1 auto;
  min-height: 0;
}

.card-body .btn {
  margin-top: auto;
  flex-shrink: 0;
}

.card-detail {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: var(--surface);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.card-detail.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.card-detail-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  flex: 1;
}

.card-detail-inner .detail-list {
  flex: 1 1 auto;
}

.card-detail-inner .js-close-detail {
  margin-top: auto;
  align-self: flex-start;
}

.card-detail-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.detail-list {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-list li {
  margin-bottom: 0.5rem;
}

.detail-list strong {
  color: var(--text);
}

/* --- FAQ (rozklik — jako Webflow) --- */
.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid rgba(10, 31, 24, 0.12);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.25rem 1.1rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  line-height: 1.4;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-60%) rotate(45deg);
  transition: transform var(--transition);
}

.faq-item[open] .faq-q::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-a {
  padding: 0 0 1.15rem;
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.faq-footnote {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* --- Contact --- */
.kontakt-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kontakt-card__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  align-items: stretch;
  min-height: 100%;
}

.kontakt-card__info {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: linear-gradient(165deg, rgba(14, 115, 79, 0.09) 0%, var(--surface) 55%);
  border-right: 1px solid var(--border);
}

.kontakt-card__heading {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.kontakt-card__company {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--brand);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-list a {
  color: var(--brand);
  font-weight: 500;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--bg);
}

.contact-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form__check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.4;
  cursor: pointer;
}

.contact-form__check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.contact-form__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 768px) {
  .kontakt-card__grid {
    grid-template-columns: 1fr;
  }

  .kontakt-card__info {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* --- Bottom CTA --- */
.cta-bottom {
  background: linear-gradient(135deg, rgba(14, 115, 79, 0.12) 0%, var(--bg-muted) 50%);
  border-top: 1px solid var(--border);
}

.cta-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-bottom__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-bottom__text {
  margin: 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* --- Footer (stejná barva jako hlavička #171d12) --- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--nav-bg);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  max-width: 360px;
}

.footer-logo {
  opacity: 0.98;
  max-height: 56px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
