/* ==========================================================
   RIADITEĽSTVO 1063 — Shared stylesheet
   Used by: index.html, spolupraca.html, klienti.html
   ========================================================== */

/* ==========  TOKENS  ========== */
:root {
  --bg: #0b0e14;
  --bg-elevated: #121722;
  --bg-card: #161c2a;
  --border: #1e2433;
  --border-hover: #2d3548;
  --text: #e7e9ee;
  --text-bright: #ffffff;
  --muted: #9aa3b2;
  --muted-2: #6c7589;
  --gold: #e6b648;
  --gold-bright: #f3c863;
  --gold-dim: #b8902f;
  --gold-soft: rgba(230, 182, 72, 0.12);

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --section-pad: 120px;
}

/* ==========  RESET  ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }
button { font-family: inherit; cursor: pointer; }

/* ==========  LAYOUT  ========== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
section { padding: var(--section-pad) 0; }

/* ==========  TYPOGRAPHY  ========== */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-bright);
  line-height: 1.15;
  margin: 0;
}
h1 { font-size: clamp(48px, 7vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 12px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-3px);
}

.gold { color: var(--gold); }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

/* ==========  BUTTONS  ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #0b0e14;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #0b0e14;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-bright);
  border-color: rgba(230, 182, 72, 0.35);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ==========  NAVIGATION  ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-bright);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
/* Fallback when image is missing */
.logo-mark {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.nav-links a:hover { color: var(--text-bright); }
.nav-links a.active {
  color: var(--text-bright);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.nav-cta { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); padding: 8px; font-size: 22px; }

/* ==========  HERO (shared base)  ========== */
.hero {
  padding: 140px 0 160px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(230, 182, 72, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 920px; }
.hero h1 { margin-bottom: 32px; }
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.hero-sub {
  font-size: 22px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-meta strong {
  color: var(--text-bright);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
  display: block;
  margin-top: 4px;
}

/* ==========  AUDIENCE BANNER (visually distinct sub-area)  ========== */
.audience-banner {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
.audience-banner.spolupraca {
  background: linear-gradient(90deg, transparent, rgba(230, 182, 72, 0.08), transparent);
  color: var(--gold);
}
.audience-banner.klienti {
  background: linear-gradient(90deg, transparent, rgba(230, 182, 72, 0.05), transparent);
  color: var(--text-bright);
}

/* ==========  TEAM PHOTO BLOCK  ========== */
.team-photo-section {
  padding: 80px 0 100px;
  position: relative;
}
.team-photo-frame {
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 12px;
}
.team-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.team-photo-caption {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ==========  PROBLEM SECTION  ========== */
.problem {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.problem-text p {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.problem-text p strong { color: var(--text-bright); font-weight: 500; }
.problem-quote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  color: var(--text-bright);
  font-style: italic;
  font-weight: 400;
  padding-left: 32px;
  border-left: 2px solid var(--gold);
}
.problem-quote .cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-top: 24px;
  font-weight: 500;
}

/* ==========  PILLARS / FEATURE GRID  ========== */
.section-header { max-width: 720px; margin-bottom: 80px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pillar-card:hover::before { opacity: 1; }

.pillar-num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-dim);
  margin-bottom: 24px;
  color: var(--gold);
}
.pillar-card h3 { font-size: 22px; margin-bottom: 12px; }
.pillar-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* ==========  STATS  ========== */
.stats {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ==========  PEOPLE  ========== */
.people-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 32px;
}
.people-header .text { max-width: 600px; }
.people-header h2 { margin-bottom: 16px; }
.people-header p { color: var(--muted); font-size: 17px; margin: 0; }

.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}
.person-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.person-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1320 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 13px;
  font-style: italic;
  border-bottom: 1px solid var(--border);
}
.person-info { padding: 24px 28px 28px; }
.person-info h3 { font-size: 22px; margin-bottom: 6px; }
.person-role {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.person-bio { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ==========  RECRUITMENT / CTA BLOCK  ========== */
.recruit { position: relative; overflow: hidden; }
.recruit-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.recruit-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 182, 72, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.recruit-content { position: relative; max-width: 640px; }
.recruit-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid var(--gold-dim);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.recruit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.recruit h2 { margin-bottom: 24px; }
.recruit p { font-size: 18px; color: var(--muted); margin-bottom: 36px; line-height: 1.65; }

/* ==========  TWO-COLUMN AUDIENCE SPLIT  ========== */
.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 56px 48px;
  transition: all 0.3s ease;
  position: relative;
}
.audience-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.audience-card .eyebrow { margin-bottom: 16px; }
.audience-card h3 {
  font-size: 32px;
  margin-bottom: 20px;
}
.audience-card p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.65;
}

/* ==========  SERVICES GRID  ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-item {
  background: var(--bg);
  padding: 48px 40px;
}
.service-item .num {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.service-item h3 { font-size: 26px; margin-bottom: 12px; }
.service-item p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.65; }

/* ==========  PROCESS STEPS  ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.process-step { position: relative; }
.process-num {
  font-family: var(--font-serif);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 500;
}
.process-step h3 { font-size: 20px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* ==========  FOOTER  ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
  margin-top: 16px;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-2);
  font-size: 13px;
}

/* ==========  RESPONSIVE  ========== */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .container { padding: 0 20px; }

  .hero { padding: 80px 0 100px; }
  .hero-meta { gap: 24px; flex-direction: column; }

  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar-card { padding: 32px 24px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }

  .people-grid { grid-template-columns: 1fr; gap: 20px; }

  .recruit-inner { padding: 48px 28px; }

  .audience-split { grid-template-columns: 1fr; gap: 16px; }
  .audience-card { padding: 40px 28px; }
  .audience-card h3 { font-size: 26px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-item { padding: 36px 28px; }

  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 500px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}
