/*
Theme Name: ZETTA.cz DevOps
Theme URI: https://zetta.cz/
Author: ZETTA.cz
Description: Dark multilingual WordPress theme for IT DevOps, hardware and software services.
Version: 0.3.3
Text Domain: zetta-cz
*/

:root {
  --bg: #020609;
  --panel: rgba(3, 13, 19, 0.78);
  --panel-strong: rgba(2, 10, 15, 0.92);
  --text: #f6fbff;
  --muted: #c0ccd2;
  --dim: #7f98a3;
  --cyan: #16c7ff;
  --cyan-2: #48e7ff;
  --green: #49e45f;
  --warn: #f1c24a;
  --line: rgba(38, 199, 255, 0.25);
  --line-strong: rgba(38, 199, 255, 0.48);
  --max: 1540px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #020609;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  display: grid;
  grid-template-columns: 280px 1fr 210px;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(28px, 3.7vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(1, 5, 8, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand-logo {
  width: clamp(188px, 16vw, 240px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.14));
}

.brand-logo .logo-main {
  fill: #fff;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: 47px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo .logo-e rect {
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(22, 199, 255, 0.55));
}

.brand-logo .logo-cz {
  fill: var(--cyan);
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  gap: clamp(20px, 2.8vw, 42px);
  color: #e7eef2;
  font-size: 15px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 78px;
  color: #e7eef2;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--cyan);
}

.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: -16px;
  right: -16px;
  bottom: 4px;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(22, 199, 255, 0.8);
}

.language-switcher {
  justify-self: end;
  display: inline-flex;
  gap: 14px;
}

.language-switcher button {
  width: 52px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  cursor: pointer;
  font: 800 15px/1 inherit;
}

.language-switcher button.is-active {
  color: var(--cyan-2);
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(22, 199, 255, 0.25), 0 0 14px rgba(22, 199, 255, 0.2);
}

main { overflow: hidden; }

.hero-dashboard {
  position: relative;
  min-height: clamp(560px, calc(100vh - 160px), 680px);
  background: #020609;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0 0 180px;
  background:
    linear-gradient(90deg, rgba(1, 5, 8, 0.96) 0%, rgba(1, 5, 8, 0.72) 34%, rgba(1, 5, 8, 0.2) 58%, rgba(1, 5, 8, 0.82) 100%),
    linear-gradient(180deg, rgba(2, 6, 9, 0.12) 0%, rgba(2, 6, 9, 0.48) 68%, #020609 100%),
    url("zetta-server-room.png") center / cover no-repeat;
}

.hero-shell {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 0;
  padding: 28px clamp(28px, 3.4vw, 52px) 52px;
  display: grid;
  grid-template-columns: minmax(470px, 0.86fr) minmax(590px, 1.14fr);
  gap: 42px;
}

.hero-copy {
  padding-top: 10px;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(34px, 2.75vw, 48px);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
  text-shadow: 0 7px 26px rgba(0, 0, 0, 0.56);
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: #dce6eb;
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 5px;
  border: 1px solid var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.button.primary {
  color: #fff;
  background: linear-gradient(180deg, #20c8ff, #0ca9ed);
  border-color: #5be7ff;
  box-shadow: 0 0 0 1px rgba(91, 231, 255, 0.32), 0 0 26px rgba(22, 199, 255, 0.42), inset 0 1px 0 rgba(255,255,255,0.25);
}

.button.primary::before {
  content: ">_";
  margin-right: 17px;
  color: #05374a;
  font-weight: 900;
}

.button.secondary {
  color: var(--cyan-2);
  background: rgba(0, 20, 31, 0.72);
  border-color: rgba(72, 231, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(22, 199, 255, 0.18), 0 0 18px rgba(22, 199, 255, 0.22);
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow: 0 0 0 1px rgba(91, 231, 255, 0.42), 0 0 32px rgba(22, 199, 255, 0.48);
}

.button.secondary::before {
  content: "➤";
  margin-right: 16px;
  color: var(--cyan);
}

.tech-logos {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  align-items: center;
  gap: 0;
  margin-top: 38px;
  color: #c6ced2;
  opacity: 0.95;
}

.tech-logos span {
  min-width: 90px;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 19px;
  font-weight: 700;
}

.tech-logos span:first-child { padding-left: 0; }
.tech-logos span:last-child { border-right: 0; }
.tech-logos .apache { color: #d8d8d8; font-family: Georgia, serif; }
.tech-logos .nginx { color: #3fc13c; }
.tech-logos .mysql { color: #1aa9e8; }
.tech-logos .postgres { color: #cfd5dc; font-weight: 500; }
.tech-logos .zabbix { color: #e1261c; font-weight: 850; }

.ops-panel {
  align-self: start;
  display: grid;
  gap: 14px;
  padding-top: 10px;
}

.pipeline-card,
.schema-card,
.status-card,
.terminal-wide {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(8, 32, 44, 0.7), 0 18px 56px rgba(0, 0, 0, 0.34);
}

.pipeline-card {
  min-height: 118px;
  padding: 14px 24px 12px;
  overflow: hidden;
}
.pipeline-card h2 {
  margin: 0 0 8px;
  color: var(--cyan-2);
  font-size: 17px;
  font-weight: 800;
}

.pipeline-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.pipeline-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.pipeline-steps .pipe-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--cyan-2);
}

.pipeline-steps .pipe-step::before {
  content: "";
  position: absolute;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(22, 199, 255, 0.8);
}

.pipeline-steps small {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--cyan-2);
  font: 700 10px/1.1 Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  padding-top: 0;
}

.pipe-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(3, 20, 30, 0.48);
  color: var(--cyan-2);
}

.pipe-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.schema-card {
  min-height: 205px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
}

.table-box {
  min-height: 82px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 8px 11px;
  border: 1px solid rgba(38, 199, 255, 0.42);
  border-radius: 4px;
  color: #aeefff;
  font: 11px/1.2 Consolas, "Liberation Mono", monospace;
  background: rgba(0, 17, 26, 0.48);
}

.table-box strong {
  color: #d5fbff;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(38, 199, 255, 0.35);
  font-weight: 700;
}

.status-card {
  padding: 14px 18px;
  color: #d8f9dd;
  font: 12px/1.35 Consolas, "Liberation Mono", monospace;
}

.status-card h3 {
  margin: 0 0 12px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.status-card p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 0;
}

.status-card p span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(73, 228, 95, 0.75);
}

.status-card hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 16px 0 10px;
}

.sparkline {
  height: 48px;
  margin: 6px 0 10px;
  background:
    linear-gradient(135deg, transparent 12%, rgba(38,199,255,.2) 12% 14%, transparent 14% 24%, rgba(73,228,95,.32) 24% 26%, transparent 26% 42%, rgba(38,199,255,.7) 42% 44%, transparent 44% 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 19px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 30px);
}

.network-row {
  color: #77f1ff;
  font-size: 12px;
}

.terminal-wide {
  display: grid;
  gap: 5px;
  max-height: 118px;
  padding: 12px 20px 10px;
  margin-bottom: 10px;
  overflow: hidden;
  color: #d9e8eb;
  font: 13px/1.32 Consolas, "Liberation Mono", monospace;
}

.terminal-wide span:nth-child(1),
.terminal-wide span:nth-child(2),
.terminal-wide span:nth-child(4) { color: #d9e8eb; }
.terminal-wide span:nth-child(3) { color: var(--warn); }
.terminal-wide strong { color: var(--cyan); font-weight: 700; margin-top: 2px; }

.service-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - clamp(48px, 8vw, 180px)), var(--max));
  margin: 0 auto 28px;
  min-height: 230px;
  padding: 30px clamp(24px, 2.8vw, 44px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 2% 45%, rgba(22, 199, 255, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(3, 11, 15, 0.94), #020609);
}

.service-band article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon text"
    "icon link";
  align-content: start;
  column-gap: 16px;
  min-width: 0;
  padding: 14px clamp(14px, 1.2vw, 22px) 10px clamp(14px, 1.2vw, 22px);
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.service-band article:last-child {
  border-right: 0;
  padding-right: 0;
}

.service-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font: 800 19px/1 Consolas, "Liberation Mono", monospace;
  box-shadow: 0 0 18px rgba(22, 199, 255, 0.15);
}


.service-band h2 {
  grid-area: title;
  min-width: 0;
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.service-band p {
  grid-area: text;
  min-width: 0;
  margin: 0;
  max-width: 205px;
  color: #cbd8dd;
  font-size: 13px;
  line-height: 1.5;
}

.service-band a {
  grid-area: link;
  min-width: 0;
  margin-top: 16px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-band a::after {
  content: "  ->";
}

.tech-section,
.contact-strip {
  display: none;
}

.subpage {
  max-width: 1180px;
  min-height: 68vh;
  margin: 0 auto;
  padding: 96px 24px;
}

.subpage h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
}

.subpage > p {
  max-width: 740px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.contact-direct {
  display: inline-grid;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(3, 13, 19, 0.78);
}

.contact-direct span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-direct a {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 850;
}

.content-columns {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.content-columns article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: var(--panel);
}

.content-columns h2 {
  margin: 0 0 12px;
  color: var(--cyan);
}

.content-columns p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.contact-form {
  margin-top: 36px;
  max-width: 680px;
  display: grid;
  gap: 16px;
}

.contact-notice {
  max-width: 680px;
  margin: 28px 0 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(3, 13, 19, 0.84);
  color: var(--text);
  font-weight: 750;
}

.contact-notice.is-success {
  border-color: rgba(73, 228, 95, 0.58);
  color: #c9ffd0;
}

.contact-notice.is-error {
  border-color: rgba(241, 194, 74, 0.66);
  color: #ffe8a8;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-form .contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 15px;
  font: 16px/1.4 inherit;
}

.contact-plugin-check {
  max-width: 420px;
  padding: 16px;
  border: 1px solid rgba(22, 199, 255, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(22, 199, 255, 0.1), transparent 58%),
    rgba(3, 13, 19, 0.68);
}

.contact-plugin-title {
  display: block;
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-plugin-check small {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

.contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  filter: grayscale(0.25);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(28px, 4vw, 76px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--dim);
  background: #020609;
}

.site-footer strong {
  color: var(--text);
  margin-right: 10px;
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: 260px 1fr 190px;
  }

  .main-nav {
    gap: 28px;
    font-size: 15px;
  }

  .hero-shell {
    grid-template-columns: minmax(420px, 0.86fr) minmax(500px, 1.14fr);
    gap: 32px;
  }

  .service-band {
    width: min(calc(100% - 48px), var(--max));
    padding-inline: 24px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .status-card {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 18px 20px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    height: auto;
    gap: 24px;
  }

  .main-nav a {
    min-height: 38px;
    white-space: nowrap;
  }

  .main-nav a.is-active::after {
    bottom: 0;
  }

  .hero-backdrop {
    inset: 0;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding: 54px 20px 44px;
  }

  .ops-panel {
    padding-top: 0;
  }

  .tech-logos {
    grid-template-columns: repeat(2, max-content);
    row-gap: 18px;
    margin-top: 44px;
  }

  .service-band {
    grid-template-columns: 1fr 1fr;
    width: calc(100% - 40px);
    margin-bottom: 24px;
  }

  .service-band article {
    border-bottom: 1px solid rgba(255,255,255,0.16);
    padding: 20px 18px 24px;
  }

  .service-band article:nth-child(even) {
    border-right: 0;
  }

  .service-band article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero-dashboard {
    min-height: auto;
  }

  .brand-logo {
    width: 150px;
  }

  .language-switcher {
    gap: 6px;
  }

  .language-switcher button {
    width: 42px;
    height: 34px;
  }

  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    font-size: 13px;
  }

  .tech-logos {
    grid-template-columns: 1fr 1fr;
  }

  .tech-logos span {
    min-width: 0;
    font-size: 19px;
    padding: 0 14px;
  }

  .pipeline-card,
  .schema-card,
  .terminal-wide {
    display: none;
  }

  .service-band {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    padding: 24px 18px;
  }

  .service-band article,
  .service-band article:nth-child(even) {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.16);
    padding: 18px 4px 24px;
  }

  .service-band article:last-child {
    border-bottom: 0;
  }

  .content-columns {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    padding: 28px 20px;
  }
}
