/* ==========================================================================
   EVPA TECH s.r.o. - Clean, Modern & Elegant Stylesheet (Light Premium)
   ========================================================================== */

:root {
  --primary: #0f172a;       /* Slate 900 */
  --primary-light: #f8fafc; /* Slate 50 */
  --accent: #c8102e;        /* EVPA red */
  --accent-hover: #9f1239;  /* Deep red */
  --text-dark: #0f172a;     /* Main text */
  --text-muted: #64748b;    /* Secondary text */
  --border-light: #e2e8f0;  /* Subtle border */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

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

section[id] {
  scroll-margin-top: 6rem;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Premium site header shared by every page. */
body > aside[aria-label="Kontaktná lišta"] {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #cbd5e1 !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

body > aside[aria-label="Kontaktná lišta"] span,
body > aside[aria-label="Kontaktná lišta"] a {
  color: #cbd5e1 !important;
}

body > aside[aria-label="Kontaktná lišta"] a[href^="tel:"] {
  color: #ffffff !important;
}

body > aside[aria-label="Kontaktná lišta"] a:hover {
  color: #ffffff !important;
}

body > aside[aria-label="Kontaktná lišta"] .lucide {
  color: #f87171 !important;
}

body > header {
  border-color: rgba(203, 213, 225, 0.8) !important;
  box-shadow: 0 8px 24px -24px rgba(15, 23, 42, 0.75);
}

body > header nav[aria-label="Hlavná navigácia"] a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 5rem;
  color: #475569;
  transition: color 0.2s ease;
}

body > header nav[aria-label="Hlavná navigácia"] a:hover,
body > header nav[aria-label="Hlavná navigácia"] a.nav-active {
  color: #b91c1c;
}

body > header nav[aria-label="Hlavná navigácia"] a.nav-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 9999px 9999px 0 0;
  background: #dc2626;
}

.header-actions {
  display: none !important;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.72);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem) scale(0.94);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.back-to-top:hover {
  background: #b91c1c;
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.3);
  outline-offset: 3px;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* TSU documents: show the complete certificate and make enlargement obvious. */
.certificate-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  box-shadow: 0 12px 28px -28px rgba(15, 23, 42, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.certificate-grid {
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .certificate-grid {
    gap: 2rem;
  }
}

.certificate-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.8);
  transform: translateY(-2px);
}

.certificate-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.certificate-document {
  position: relative;
  display: block;
  margin: 0.65rem 0.65rem 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
}

.certificate-preview {
  display: block;
  width: 100%;
  aspect-ratio: 707 / 1000;
  object-fit: contain;
  background: #ffffff;
}

.certificate-zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.8);
}

.certificate-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem 1.1rem;
  text-align: left;
}

.certificate-copy strong {
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.35;
}

.certificate-copy > span {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.certificate-copy-compact {
  padding: 0.85rem 0.9rem 1rem;
}

.certificate-copy-compact strong {
  font-size: 0.82rem;
}

.certificate-copy-compact > span {
  font-size: 0.72rem;
}

/* On the home page certificates support credibility without dominating the
   service journey. The dedicated service page keeps the larger previews. */
.certificate-card-home .certificate-link {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  align-items: center;
  min-height: 14rem;
}

.certificate-card-home .certificate-document {
  margin: 0.65rem 0 0.65rem 0.65rem;
}

.certificate-card-home .certificate-copy {
  padding: 0.9rem 1rem;
}

.certificate-card-home .certificate-zoom {
  width: 2rem;
  height: 2rem;
  justify-content: center;
  padding: 0;
  font-size: 0;
}

.coverage-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 50%, rgba(220, 38, 38, 0.1), transparent 25rem),
    #0f172a;
}

.coverage-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin-right: auto;
  margin-left: auto;
  gap: 2.5rem;
}

.coverage-copy {
  max-width: 33rem;
}

.coverage-map-shell {
  padding: 0.75rem 0.9rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.coverage-map-shell-wide {
  width: 100%;
  max-width: 34rem;
  justify-self: end;
}

@media (min-width: 1024px) {
  .coverage-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 4.5rem;
  }
}

.coverage-map-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 10.5rem;
  object-fit: contain;
}

.coverage-map-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.7rem;
  line-height: 1.3;
}

.coverage-map-meta strong {
  color: #f8fafc;
}

.coverage-map-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 0.45rem;
  border-radius: 9999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

@media (max-width: 639px) {
  .coverage-map-shell-wide {
    justify-self: stretch;
  }

  .coverage-map-image {
    max-height: 8.75rem;
  }

  .coverage-map-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 479px) {
  .certificate-card-home .certificate-link {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    min-height: 11.5rem;
  }

  .certificate-card-home .certificate-copy {
    padding: 0.75rem 0.8rem;
  }

  .certificate-card-home .certificate-copy strong {
    font-size: 0.86rem;
  }

  .certificate-card-home .certificate-copy > span {
    font-size: 0.73rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex !important;
  }
}

@media (max-width: 639px) {
  body > aside[aria-label="Kontaktná lišta"] > div > div:last-child {
    display: none !important;
  }

  body > aside[aria-label="Kontaktná lišta"] > div {
    justify-content: center;
  }
}

/* Home hero: restrained depth, strong hierarchy and scannable proof points. */
.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(220, 38, 38, 0.075), transparent 22rem),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -10rem;
  right: -7rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(220, 38, 38, 0.08);
  border-radius: 9999px;
}

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

.hero-title-services,
.hero-title-promise {
  display: block;
}

.hero-title-promise {
  margin-top: 0.08em;
  color: #b91c1c;
  font-size: 0.84em;
  line-height: 1.08;
}

@media (min-width: 1280px) {
  .hero-title-promise {
    white-space: nowrap;
  }
}

.hero-media-shell {
  box-shadow: 0 24px 55px -30px rgba(15, 23, 42, 0.48);
}

.hero-media-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  z-index: 3;
  width: 4.5rem;
  height: 3px;
  border-radius: 0 0 9999px 9999px;
  background: #dc2626;
}

.hero-proof-grid {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px -28px rgba(15, 23, 42, 0.65);
}

.hero-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.9rem 0.75rem;
}

.hero-proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 0.65rem;
  background: #fef2f2;
  color: #b91c1c;
}

@media (min-width: 640px) {
  .hero-proof-item + .hero-proof-item {
    border-left: 1px solid #e2e8f0;
  }
}

@media (max-width: 639px) {
  .hero-proof-item:nth-child(even) {
    border-left: 1px solid #e2e8f0;
  }

  .hero-proof-item:nth-child(n + 3) {
    border-top: 1px solid #e2e8f0;
  }
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Clean Cards */
.clean-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.25s ease;
}
.clean-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.18);
}

/* Five service cards stay balanced without adding a redundant sixth item. */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.services-grid .service-card {
  flex: 0 1 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .services-grid .service-card {
    flex-basis: calc((100% - 2rem) / 2);
  }
}

@media (min-width: 1024px) {
  .services-grid .service-card {
    flex-basis: calc((100% - 4rem) / 3);
  }
}

@media (max-width: 639px) {
  .services-grid {
    gap: 1rem;
  }

  .services-grid .service-card {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    min-height: 10.5rem;
  }

  .services-grid .service-card > div:first-child {
    height: 100%;
    min-height: 10.5rem;
  }

  .services-grid .service-card > div:last-child {
    padding: 1rem;
  }

  .services-grid .service-card h3 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .services-grid .service-card p {
    display: none;
  }

  .services-grid .service-card-link {
    min-height: 2.75rem;
    padding-top: 0.65rem;
    padding-bottom: 0.35rem;
    line-height: 1.25;
  }

  .services-grid .illustration-label {
    left: 0.35rem;
    bottom: 0.35rem;
    padding: 0.22rem 0.32rem;
    font-size: 0.52rem;
    white-space: nowrap;
  }

  .certificate-card > div {
    line-height: 1.25;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(200, 16, 46, 0.25);
  outline-offset: 3px;
}

.lucide {
  display: inline-block;
  flex: 0 0 auto;
  stroke-width: 2.35;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 5px 12px -7px rgba(185, 28, 28, 0.8);
}

.trust-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: #16a34a;
}

.illustration-frame {
  position: relative;
}

.illustration-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

/* Keep the compact headers usable on narrow screens. */
@media (max-width: 639px) {
  header > div {
    min-height: 4.25rem;
  }

  header img {
    max-width: 12rem;
  }
}

/* Soft Shadows */
.soft-shadow {
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.lightbox-modal.active {
  display: flex;
}

/* Sticky Mobile Bottom Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none !important;
  }
}

/* Privacy notice: informational only while the site uses no optional cookies. */
.privacy-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 10000;
  display: none;
  max-width: 64rem;
  margin-inline: auto;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid #334155;
  border-top: 3px solid #dc2626;
  border-radius: 1rem;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.28);
}

.privacy-notice.is-visible {
  display: block;
}

.privacy-notice__content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.125rem;
}

.privacy-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.18);
  border-radius: 0.75rem;
}

.privacy-notice__text strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}

.privacy-notice__text p {
  margin-top: 0.2rem;
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.5;
}

.privacy-notice__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.privacy-notice__actions a {
  color: #f1f5f9;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.privacy-notice__actions button {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: #dc2626;
  border-radius: 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.privacy-notice__actions button:hover {
  background: #b91c1c;
}

@media (max-width: 767px) {
  .privacy-notice {
    left: 0.65rem;
    right: 0.65rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
  }

  .privacy-notice__content {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .privacy-notice__icon {
    align-self: start;
  }

  .privacy-notice__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

.privacy-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.privacy-table-scroll table {
  min-width: 38rem;
}

@media (max-width: 639px) {
  .privacy-table-scroll {
    overflow: visible;
    border: 0;
  }

  .privacy-table-scroll table,
  .privacy-table-scroll tbody,
  .privacy-table-scroll tr,
  .privacy-table-scroll td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .privacy-table-scroll thead {
    display: none;
  }

  .privacy-table-scroll tr {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
  }

  .privacy-table-scroll td {
    padding: 0.75rem 1rem;
    overflow-wrap: anywhere;
    border-top: 1px solid #e2e8f0;
  }

  .privacy-table-scroll td:first-child {
    border-top: 0;
  }

  .privacy-table-scroll td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

/* Keep legal links visually distinct from company identifiers in the footer. */
.footer-legal-meta {
  display: flex;
  align-items: center;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.footer-company-ids {
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid #334155;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .footer-legal-meta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    padding-top: 0.375rem;
  }

  .footer-company-ids {
    width: 100%;
    margin-left: 0;
    padding-top: 0.875rem;
    padding-left: 0;
    border-top: 1px solid #1e293b;
    border-left: 0;
    white-space: normal;
  }
}
