/*
Theme Name: IONIT
Theme URI: https://ionit.sk/
Author: OpenAI
Description: Jednoducha profesionalna WordPress tema pre IONIT.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.2
Text Domain: ionit
*/

:root {
  --bg: #f3f6fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(13, 36, 64, 0.12);
  --text: #0d0d0d;
  --muted: #0d0d0d;
  --accent: #0c6aa6;
  --accent-deep: #0d355d;
  --shadow: 0 30px 80px rgba(11, 27, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(12, 106, 166, 0.14), transparent 30%),
    radial-gradient(circle at right 20% top 10%, rgba(13, 53, 93, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  min-height: 100vh;
}

body.admin-bar .topbar-frame {
  top: 50px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 80%);
  pointer-events: none;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar-frame {
  height: calc(clamp(96px, 7vw, 118px) + 24px);
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  min-height: 94px;
  padding: 12px 26px;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(16, 35, 60, 0.08);
  pointer-events: auto;
  transition: width 220ms ease, min-height 220ms ease, padding 220ms ease, border-radius 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  max-width: 260px;
  overflow: hidden;
  transition: max-width 220ms ease, opacity 180ms ease, transform 220ms ease;
}

.brand-logo {
  width: auto;
  height: clamp(96px, 7vw, 118px);
  display: block;
  transition: height 220ms ease;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

@media (min-width: 921px) {
  .topbar.is-compact {
    width: fit-content;
    min-height: 54px;
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(16, 35, 60, 0.1);
  }

  .topbar.is-compact .brand {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
  }

  .topbar.is-compact .brand-logo {
    height: 42px;
  }

  .topbar.is-compact .nav {
    gap: 14px;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  padding: 72px 0 48px;
}

.hero-copy,
.hero-card,
.card,
.contact-panel,
.section.split {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  animation: rise 0.75s ease both;
}

.hero-card {
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: center;
  animation: rise 0.9s ease both;
}

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.hero-text,
.section-heading p,
.about-copy p,
.card p,
.contact-panel p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: progress;
  opacity: 0.64;
  transform: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}

.button.secondary {
  color: var(--text);
  background: rgba(12, 106, 166, 0.08);
}

.hero-stat {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section {
  padding: 42px 0;
}

.page-content {
  padding: 72px 0 48px;
}

.page-frame {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 42px;
}

.page-frame h1 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  max-width: none;
  margin-bottom: 18px;
}

.page-frame h2,
.page-frame h3,
.page-frame h4 {
  margin: 28px 0 12px;
}

.page-frame p,
.page-frame li {
  line-height: 1.8;
}

.page-frame a {
  color: var(--text);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(12, 106, 166, 0.25);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  padding: 34px;
}

.about-copy {
  align-self: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 0 0 5px rgba(12, 106, 166, 0.12);
}

.contact-panel {
  padding: 38px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
}

.contact-copy {
  flex: 0 1 400px;
}

.contact-form {
  flex: 1 1 520px;
  display: grid;
  gap: 18px;
}

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

.form-field {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(13, 13, 13, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 152px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(13, 13, 13, 0.4);
  box-shadow: 0 0 0 4px rgba(13, 13, 13, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-note a {
  color: var(--text);
  font-weight: 700;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.form-status[data-state="success"] {
  color: #126b3a;
}

.form-status[data-state="error"] {
  color: #a61f1f;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero,
  .split,
  .service-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-frame {
    position: static;
    height: auto;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .topbar {
    min-height: 92px;
    padding: 12px 18px;
  }

  .topbar,
  .hero-copy,
  .hero-card,
  .card,
  .split,
  .contact-panel {
    border-radius: 24px;
  }

  .hero-copy,
  .hero-card,
  .contact-panel,
  .split {
    padding: 24px;
  }

  .nav {
    gap: 12px;
  }

  .brand-logo {
    width: auto;
    height: 82px;
  }

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

  .form-field-full {
    grid-column: auto;
  }

}
