/* ===== Premenné / Paleta ===== */
/* Značkové farby prevzaté z ladislavlorinc.sk: modrá #1E3A81 + oranžová #FF5500 */
:root {
  --navy: #1E3A81;
  --navy-dark: #16306b;
  --blue: #3D82C5;
  --blue-soft: #e3eef8;
  --orange: #FF5500;
  --orange-dark: #e04a00;
  --orange-soft: #ffe7d9;
  --gray-light: #F3F5F7;
  --text: #3A3A3A;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(22, 58, 99, 0.10);
  --shadow-sm: 0 4px 14px rgba(22, 58, 99, 0.08);
  --maxw: 1140px;
}

/* ===== Základ ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .nav-cta, .btn {
  font-family: 'Montserrat', system-ui, sans-serif;
}

h1, h2, h3 { color: var(--navy); line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* ===== Tlačidlá ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; margin-top: .5rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6eaee;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.brand-sub { font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--orange); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--orange); }
.nav .nav-cta {
  background: var(--orange); color: var(--white);
  padding: 9px 22px; border-radius: 2px;
}
.nav .nav-cta:hover { background: var(--orange-dark); color: var(--white); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ===== Hero =====
   Pozadie sa nastavuje podľa šírky:
   - ≥ 861px: banner main-cover.jpg (nižšie v @media min-width)
   - ≤ 860px: modré pozadie + banner pod textom (@media max-width)
   Tu je len bezpečný modrý fallback. */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 90px;
}
.hero-text h1, .hero-text .lead, .hero-text .eyebrow {
  text-shadow: 0 1px 12px rgba(8, 20, 48, 0.45);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 700; color: var(--orange); margin-bottom: 1rem;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1.3rem; }
.hero .lead { font-size: 1.08rem; color: #dce6f1; max-width: 600px; }
.hero .lead strong { color: var(--white); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.6); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.hero-photo { display: flex; justify-content: center; }
.photo-frame {
  width: 320px; height: 380px; border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.12);
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

/* ===== Hero na šírke ≥ 861px: kombinovaný banner main-cover (mesto + kandidát) ===== */
/* Kandidát je už súčasťou obrázka, preto sa samostatný portrét skryje a text ide vľavo. */
@media (min-width: 861px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 560px;
    background:
      linear-gradient(90deg,
        rgba(22, 48, 107, 0.88) 0%,
        rgba(22, 48, 107, 0.58) 26%,
        rgba(22, 48, 107, 0.18) 46%,
        rgba(22, 48, 107, 0.00) 64%),
      url('main-cover.jpg') right center / cover no-repeat;
  }
  .hero > .container { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { max-width: 620px; }
  .hero-photo { display: none; }
}

/* ===== Sekcie ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-light); }
.section-dark { background: var(--navy); color: #dce6f1; }
.section-dark h2 { color: var(--white); }

.section-tag {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 700; color: var(--orange); margin-bottom: .6rem;
}
.section-tag.light { color: #ff8a4d; }
.section-head { margin-bottom: 3rem; }

.highlight {
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
  margin-top: 1.2rem;
}

/* ===== Priority – karty ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid #e6eaee;
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--orange-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1rem;
}
.card h3 { margin-bottom: .7rem; }
.card ul { list-style: none; margin-top: .6rem; }
.card ul li { position: relative; padding-left: 22px; margin-bottom: .4rem; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}

/* ===== Piliere (Čo ma formovalo) ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.pillar-img {
  width: 70px; height: 70px; margin: 0 auto 1rem;
  border-radius: 50%; background: rgba(255, 85, 0, 0.22);
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
}
.pillar h3 { color: var(--white); margin-bottom: .5rem; }
.pillar p { color: #c4d4e6; margin-bottom: 0; }

/* ===== Ako pracujem + Hodnoty ===== */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.values {
  background: var(--white); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm); border: 1px solid #e6eaee;
}
.values h3 { margin-bottom: 1rem; }
.values-list { list-style: none; }
.values-list li {
  padding: 12px 0 12px 0; border-bottom: 1px solid #eef1f4;
}
.values-list li:last-child { border-bottom: none; }
.values-list strong { color: var(--navy); }

/* ===== Mapa ===== */
.contact-map {
  margin-top: 2rem;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e6eaee;
  background: var(--gray-light);
}

/* ===== Kontaktný formulár ===== */
.contact-form {
  margin-top: 2rem; text-align: left;
  background: var(--white); border: 1px solid #e6eaee;
  border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 15px; font-size: 1rem;
  font-family: inherit; color: var(--text);
  border: 1.5px solid #d7dde3; border-radius: 10px; background: #fbfcfd;
  transition: border .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.18);
}
.form-row textarea { resize: vertical; }
.form-note { margin-top: 1rem; font-weight: 600; text-align: center; }
.form-note.ok { color: #1e7d4f; }
.form-note.err { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #c4d4e6; padding: 50px 0 24px; }
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 24px; align-items: center; padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-name { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--white); margin-bottom: .2rem; }
.footer-role { margin-bottom: 0; font-size: .95rem; }
.footer-social { display: flex; gap: 22px; }
.footer-social a { color: var(--white); font-weight: 600; }
.footer-social a:hover { color: var(--orange); }
.footer-bottom { padding-top: 20px; }
.footer-bottom p { margin-bottom: 0; font-size: .85rem; color: #8fa6bf; }

/* ===== Responzívne ===== */
@media (max-width: 860px) {
  .nav {
    position: fixed; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 10px 24px 20px;
    border-bottom: 1px solid #e6eaee;
    box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .28s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid #eef1f4; }
  .nav .nav-cta { text-align: center; margin-top: 10px; border-bottom: none; }
  .nav-toggle { display: flex; }

  /* Na mobile rovnaký banner (main-cover) ako na desktope, ale poskladaný:
     text hore na modrom pozadí, celá fotka pod ním (neorezaná). */
  .hero {
    background: var(--navy);
    padding: 54px 0 0;
  }
  .work-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-text { order: 1; }
  .hero-photo { order: 2; margin: 0 -24px; }   /* celoplošná šírka */
  .photo-frame {
    width: 100%; height: 380px;
    border-radius: 0; border: none; box-shadow: none;
  }
  /* Orežeme banner na pravú časť, kde je kandidát (nie celý široký záber) */
  .photo-frame img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: right center;
  }
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ===== Mapa – hint + kurzor ===== */
.map-hint {
  margin-bottom: .8rem; text-align: center;
  font-weight: 600; color: var(--navy);
}
.contact-map { cursor: crosshair; height: 460px; }

/* ===== Modál: nahlásenie problému ===== */
.report-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.report-modal[hidden] { display: none; }
.report-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(16, 33, 74, 0.55);
  backdrop-filter: blur(2px);
}
.report-modal__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: var(--white); border-radius: var(--radius);
  padding: 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  text-align: left; max-height: 90vh; overflow-y: auto;
}
.report-modal__card h3 { margin-bottom: .3rem; }
.report-modal__loc { font-size: .85rem; color: var(--blue); margin-bottom: 1.2rem; }
.report-modal__x {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.8rem; line-height: 1;
  color: #99a3b1; cursor: pointer;
}
.report-modal__x:hover { color: var(--navy); }
.report-modal select {
  width: 100%; padding: 13px 15px; font-size: 1rem; font-family: inherit;
  color: var(--text); border: 1.5px solid #d7dde3; border-radius: 10px; background: #fbfcfd;
}

/* ===== Admin stránka ===== */
.admin-body { background: var(--gray-light); }
.admin-header { background: var(--navy); color: var(--white); padding: 18px 0; }
.admin-header__inner { display: flex; align-items: center; justify-content: space-between; }
.admin-title { display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; }
.admin-sub { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #8fbbe6; }
.admin-header .btn-outline { color: var(--white); border-color: rgba(255,255,255,.6); padding: 9px 18px; }
.admin-header .btn-outline:hover { background: var(--white); color: var(--navy); }
.admin-main { padding: 40px 24px 80px; }
.admin-login { max-width: 400px; margin: 30px auto; }
.admin-login__card { text-align: center; }
.admin-login__card p { color: #5a6573; margin-bottom: 1.4rem; }

.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.admin-filters button {
  background: var(--white); border: 1px solid #d7dde3; color: var(--navy);
  padding: 9px 16px; border-radius: 2px; font-weight: 600; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size: .9rem;
}
.admin-filters button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.admin-filters .count {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  background: var(--orange); color: #fff; border-radius: 10px; font-size: .75rem;
}
.admin-filters button.active .count { background: rgba(255,255,255,.25); }

.admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.admin-card {
  background: var(--white); border: 1px solid #e6eaee; border-left: 4px solid #c9d2dd;
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.admin-card.status-pending { border-left-color: var(--orange); }
.admin-card.status-approved { border-left-color: #1e7d4f; }
.admin-card.status-ignored { border-left-color: #9aa3af; opacity: .8; }
.admin-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; gap: 10px; }
.admin-badge { background: var(--blue-soft); color: var(--navy); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 20px; }
.admin-status { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #7a8595; }
.admin-card__desc { color: var(--text); margin-bottom: .8rem; white-space: pre-wrap; }
.admin-card__meta { font-size: .82rem; color: #7a8595; margin-bottom: 1rem; }
.admin-card__meta a { color: var(--blue); }
.admin-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-act { border: none; border-radius: 2px; padding: 8px 14px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: 'Montserrat', sans-serif; }
.admin-act--ok { background: #1e7d4f; color: #fff; }
.admin-act--muted { background: #eef1f4; color: var(--navy); }
.admin-act--danger { background: #fbe9e7; color: #c0392b; }
.admin-act:hover { filter: brightness(0.95); }
.admin-empty { text-align: center; color: #7a8595; padding: 40px 0; }
