/*
Theme Name: ATRIVO Product
Theme URI: https://atrivo.cz
Author: Lena
Description: Product presentation theme for ATRIVO workforce management.
Version: 1.0.0
Text Domain: atrivo-product
*/

:root {
  --ink: #071018;
  --ink-soft: #10202d;
  --paper: #f5f7f8;
  --white: #ffffff;
  --muted: #5e6a73;
  --line: #dfe5e8;
  --orange: #f05a00;
  --orange-dark: #c94500;
  --blue: #1677c8;
  --green: #138a43;
  --shadow: 0 20px 60px rgba(7, 16, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  overflow: hidden;
  background: var(--paper);
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 154px;
  height: auto;
}

.brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
}

.mobile-actions {
  display: none;
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-bars {
  width: 18px;
  display: grid;
  gap: 4px;
}

.menu-bars span {
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 214px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.mobile-menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 800;
}

.mobile-menu-panel a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(240, 90, 0, 0.25);
}

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

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: stretch;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 16, 24, 0.98) 0%, rgba(7, 16, 24, 0.88) 38%, rgba(7, 16, 24, 0.42) 68%, rgba(7, 16, 24, 0.16) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(7, 16, 24, 0), var(--ink));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 160px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 610px) minmax(280px, 1fr);
  gap: 48px;
  align-items: end;
}

.hero-content > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: #f9a35d;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 4rem;
  line-height: 1.02;
  font-weight: 900;
  overflow-wrap: break-word;
}

.accent {
  color: var(--orange);
}

.mobile-title {
  display: none;
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22rem;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-proof {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.proof-item {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.64);
}

.proof-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.1rem;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  overflow-wrap: break-word;
}

.quick-strip {
  position: relative;
  z-index: 3;
  margin-top: -1px;
  color: var(--white);
  background: var(--orange);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-item {
  min-height: 120px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.quick-item:first-child {
  border-left: 0;
}

.quick-icon,
.feature-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.quick-icon {
  border: 2px solid rgba(255, 255, 255, 0.86);
}

.quick-icon svg,
.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.quick-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.quick-item span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.section {
  padding: 92px 0;
}

.section.dark {
  color: var(--white);
  background: var(--ink);
}

.section-title {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-title h2 {
  margin-bottom: 14px;
  font-size: 2.65rem;
  line-height: 1.1;
}

.section-title p {
  color: var(--muted);
  font-size: 1.08rem;
}

.dark .section-title p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-icon {
  margin-bottom: 18px;
  color: var(--orange);
  background: #fff0e8;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.feature-card ul,
.split-copy ul,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card li,
.split-copy li,
.check-list li {
  position: relative;
  margin: 9px 0;
  padding-left: 24px;
  color: #33414a;
}

.feature-card li::before,
.split-copy li::before,
.check-list li::before,
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.problem-section {
  background: var(--white);
}

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 38px;
  align-items: center;
}

.problem-layout .section-title {
  margin-bottom: 0;
}

.problem-panel {
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.problem-panel strong {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 1.35rem;
  line-height: 1.18;
}

.problem-panel span {
  color: rgba(255, 255, 255, 0.78);
}

.scenario-section {
  padding-top: 0;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.scenario-card {
  min-height: 220px;
  padding: 22px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 16, 24, 0.08);
}

.scenario-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 900;
}

.scenario-card h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.scenario-card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
}

.media-frame {
  overflow: hidden;
  border-radius: 8px;
  background: #d6dde2;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 18px;
  background: transparent;
  box-shadow: none;
}

.product-frame img {
  width: min(100%, 620px);
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(7, 16, 24, 0.24));
}

.split-copy h2 {
  margin-bottom: 16px;
  font-size: 2.45rem;
  line-height: 1.12;
}

.split-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.split-copy li {
  color: var(--ink-soft);
}

.terminal-specs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spec {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.spec strong {
  display: block;
  margin-bottom: 4px;
}

.spec span {
  color: var(--muted);
  font-size: 0.92rem;
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.workflow div {
  position: relative;
  min-height: 116px;
  padding: 18px;
  border-radius: 8px;
  background: #f3f6f7;
}

.workflow div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--orange);
  border-right: 3px solid var(--orange);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}

.workflow strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.workflow span {
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  min-height: 288px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.plan-card h3 {
  margin-bottom: 10px;
  font-size: 1.38rem;
}

.plan-card p {
  color: var(--muted);
}

.plan-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  margin: 9px 0;
  padding-left: 24px;
  color: var(--ink-soft);
}

.faq-section {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.dark-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefit {
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.benefit strong {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 1.08rem;
}

.benefit p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.industry {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: center;
  font-weight: 800;
}

.cta {
  padding: 74px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.84)),
    var(--workplace-image);
  background-size: cover;
  background-position: center;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: center;
}

.cta h2 {
  margin-bottom: 10px;
  font-size: 2.35rem;
}

.cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.contact-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 1.28rem;
}

.contact-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.contact-card .btn {
  min-width: 220px;
}

.operator-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #050b10;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-logo {
  width: 132px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-note {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.86rem;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 128px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-proof,
  .quick-grid,
  .feature-grid,
  .scenario-grid,
  .dark-grid,
  .industry-grid,
  .problem-layout,
  .workflow-layout,
  .workflow,
  .plan-grid,
  .split,
  .split.reverse,
  .cta-inner {
    grid-template-columns: 1fr 1fr;
  }

  .split-copy {
    order: -1;
  }
}

@media (max-width: 680px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .section-inner,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 64px;
    gap: 10px;
  }

  .brand img {
    width: 112px;
  }

  .brand span {
    display: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .mobile-header-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(7, 16, 24, 0.9) 0%, rgba(7, 16, 24, 0.84) 46%, rgba(7, 16, 24, 0.96) 100%),
      var(--hero-image);
    background-position: 62% center;
  }

  .hero-content {
    padding: 112px 0 56px;
    max-width: calc(100vw - 28px);
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: inline;
  }

  h1 {
    font-size: 1.98rem;
    line-height: 1.12;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero .eyebrow {
    max-width: 300px;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .site-header > .section-inner > .btn {
    display: none;
  }

  .site-header .mobile-header-cta {
    display: inline-flex;
  }

  .hero-content,
  .section-inner {
    max-width: calc(100vw - 28px);
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2rem;
  }

  .hero-lead,
  .proof-item {
    max-width: calc(100vw - 28px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .contact-card .btn {
    width: 100%;
  }

  .hero-proof,
  .quick-grid,
  .feature-grid,
  .scenario-grid,
  .dark-grid,
  .industry-grid,
  .problem-layout,
  .workflow-layout,
  .workflow,
  .plan-grid,
  .split,
  .split.reverse,
  .cta-inner,
  .terminal-specs {
    grid-template-columns: 1fr;
  }

  .quick-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .quick-item:first-child {
    border-top: 0;
  }

  .workflow div:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 24px;
    bottom: -12px;
    transform: rotate(135deg);
  }

  .section {
    padding: 62px 0;
  }

  .section-title h2,
  .split-copy h2,
  .cta h2 {
    font-size: 2rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
