/* ============================================================
   EdgeTech s.r.o – analytical studio website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #2bb5a0;
  --teal-dark: #1e8a79;
  --black:     #0a0a0a;
  --gray-900:  #111;
  --gray-600:  #555;
  --gray-300:  #d4d4d4;
  --gray-100:  #f5f5f5;
  --white:     #ffffff;
  --orange:    #f5a623;
  --font:      'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max:       1200px;
  --col-gap:   40px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

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

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--col-gap);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}

.nav-logo img { height: 36px; width: 36px; object-fit: contain; }
.nav-logo svg { height: 36px; width: 36px; flex-shrink: 0; }

/* Placeholder highlight for editable legal fields */
.placeholder-field {
  background: rgba(43,181,160,0.12);
  border: 1px dashed #2bb5a0;
  padding: 2px 8px;
  border-radius: 3px;
  font-style: italic;
  color: #1e8a79;
  cursor: text;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-links li a {
  display: block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.15s;
}

.nav-links li a:hover,
.nav-links li.current a {
  color: var(--black);
}

/* Search */
.nav-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  overflow: hidden;
  height: 34px;
}

.nav-search input {
  border: none;
  outline: none;
  padding: 0 12px;
  font-family: var(--font);
  font-size: 13px;
  width: 160px;
  background: transparent;
}

.nav-search button {
  background: none;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  color: var(--gray-600);
  font-size: 14px;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--col-gap) 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

/* Vertical grid lines (decorative) */
#hero::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--gray-300);
  pointer-events: none;
}

.hero-text {}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 24px;
}

.hero-text h1 span { color: var(--teal); }

.hero-text p {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

/* CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white) !important;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border: 2px solid var(--black);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--white);
  color: var(--black) !important;
}

.btn-primary .arrow { font-size: 18px; transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--black) !important;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border: 2px solid var(--black);
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white) !important;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.1);
}

/* ============================================================
   VIZ MOSAIC  (grid collage with data visualization panels)
   ============================================================ */
.viz-mosaic {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: var(--gray-300);
  min-height: 0;
}

.viz-mosaic > div {
  overflow: hidden;
  position: relative;
}

.viz-mosaic > div > svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Solid colour cells */
.vm-teal    { background: var(--teal); }
.vm-gradient { background: linear-gradient(135deg, #1de9b6 0%, #2bb5a0 60%, #0d7377 100%); }
.vm-dark    { background: #0d1117; }
.vm-light   { background: #f5f5f5; }
.vm-empty   { background: var(--white); }

/* Gradient accent bar */
.viz-bar {
  height: 6px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #e85d20 0%, #f5a623 45%, #f0c030 100%);
}

/* ============================================================
   SVG DATA VIZ PANELS  (inside .col-img)
   ============================================================ */
.col-img svg,
.col-img .viz-panel {
  width: 100%;
  height: 100%;
  display: block;
}

/* Geometric overlay */
.hero-geo {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 220px;
  opacity: 0.85;
}

/* ============================================================
   DIVIDER LINE
   ============================================================ */
.divider {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--col-gap);
}

.divider hr {
  border: none;
  border-top: 1px solid var(--gray-300);
}

/* ============================================================
   STATS BAR
   ============================================================ */
#stats {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}

.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--col-gap);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 36px 0;
  border-right: 1px solid var(--gray-300);
  padding-left: 32px;
}

.stat:first-child { padding-left: 0; }
.stat:last-child  { border-right: none; }

.stat-num {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num span { color: var(--teal); }

.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   SECTION – obecné
   ============================================================ */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--col-gap);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--black);
}

.section p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 560px;
}

/* ============================================================
   TWO-COLUMN SECTION
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.col-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
}

.col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.15);
  transition: filter 0.3s;
}

.col-img img:hover { filter: saturate(1) contrast(1.05); }

/* SVG fills full col-img area */
.col-img > svg { width: 100%; height: 100%; display: block; }

.col-text { padding: 20px 0; }

.col-text h2 { margin-bottom: 16px; }

.col-text p { margin-bottom: 20px; }

.col-text ul {
  list-style: none;
  margin: 0 0 28px 0;
}

.col-text ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: 15px;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.col-text ul li::before {
  content: '—';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   FULL-WIDTH DARK BAND
   ============================================================ */
.dark-band {
  background: var(--black);
  color: var(--white);
  padding: 72px 0;
}

.dark-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--col-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.dark-band h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.dark-band p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}

.dark-band .btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  margin-top: 28px;
}

.dark-band .btn-primary:hover {
  background: transparent;
  color: var(--teal) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
}

.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--col-gap) 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .nav-logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--col-gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* Gradient bar */
.footer-bar {
  height: 4px;
  background: linear-gradient(90deg, #2bb5a0 0%, #f5a623 50%, #8b1a1a 100%);
}

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--col-gap) 48px;
  border-bottom: 1px solid var(--gray-300);
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}

.legal-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--col-gap);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table tr { border-bottom: 1px solid var(--gray-300); }

.legal-table tr:first-child { border-top: 1px solid var(--gray-300); }

.legal-table td {
  padding: 16px 0;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.6;
}

.legal-table td:first-child {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 35%;
  padding-right: 40px;
  padding-top: 20px;
}

/* ============================================================
   EMPTY PAGE
   ============================================================ */
.coming-soon {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--col-gap);
  text-align: center;
}

.coming-soon h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.coming-soon p {
  font-size: 17px;
  color: var(--gray-600);
  margin: 0 auto;
  max-width: 400px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  #hero, .two-col, .dark-band-inner, .footer-top {
    grid-template-columns: 1fr;
  }
  .two-col.reverse { direction: ltr; }
  .hero-visual { height: 280px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--gray-300); padding-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  #hero::before { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}
