/*
Theme Name: Josa Professional
Theme URI: https://josa.sk/
Author: Josa
Description: One-page professional WordPress theme for Josa, a founder-led industrial electronics and microelectronics development company.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: josa-professional
*/

:root {
  --ink: #17212b;
  --muted: #5c6975;
  --paper: #f7f8f6;
  --panel: #ffffff;
  --line: #dbe0df;
  --accent: #007c89;
  --accent-dark: #075b65;
  --signal: #b74f22;
  --steel: #2f3f4a;
  --soft: #e8f1ef;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.language-switch button {
  min-width: 44px;
  height: 34px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 760;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--accent-dark);
}

.nav-links a {
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 6px;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--soft);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(247, 248, 246, 0.92), rgba(247, 248, 246, 0.74) 54%, rgba(232, 241, 239, 0.56)),
    url("assets/circuit-pattern.svg") center right / min(860px, 80vw) no-repeat;
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  font-weight: 820;
}

.hero-copy {
  max-width: 710px;
  margin: 26px 0 0;
  color: var(--steel);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent-dark);
  font-weight: 720;
  text-decoration: none;
}

.button.secondary {
  color: var(--accent-dark);
  background: transparent;
}

.facts {
  width: min(100% - 32px, var(--max));
  margin: -34px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.facts-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact {
  min-height: 132px;
  padding: 24px;
  background: var(--panel);
}

.fact strong {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-dark);
  font-size: 1.02rem;
}

.fact span {
  color: var(--muted);
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: #ffffff;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

h2 {
  max-width: 900px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: 1.24rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.lead {
  color: var(--steel);
  font-size: 1.12rem;
}

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

.check-list li {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

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

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

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

.card .tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 5px 9px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--signal);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-personal {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 48px;
  align-items: center;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  width: 240px;
  height: 240px;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.14);
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-sub {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.profile-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-visual img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.step {
  min-height: 210px;
  padding: 24px;
  background: var(--panel);
}

.step-num {
  display: block;
  margin-bottom: 36px;
  color: var(--accent-dark);
  font-weight: 800;
}

.contact-band {
  padding: 48px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
}

.contact-band h2 {
  color: #ffffff;
}

.contact-band p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-meta a,
.contact-meta span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  text-decoration: none;
}

.site-footer {
  padding: 30px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.lang-sk {
  display: none;
}

body.site-lang-sk .lang-en {
  display: none;
}

body.site-lang-sk .lang-sk {
  display: revert;
}

body.site-lang-sk li.lang-sk {
  display: list-item;
}

@media (max-width: 880px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .language-switch {
    align-self: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .facts,
  .cards,
  .steps,
  .two-col,
  .hero-personal {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo-frame {
    width: 160px;
    height: 160px;
  }

  .section {
    padding: 64px 0;
  }

  .contact-band {
    padding: 30px;
  }
}
