/* =========================================================
   DOMCO – Kariéra / Nábor – Aplikátor PUR penových izolácií
   Brand: Domco Green #009665, Domco Orange #FF8400,
          Domco Black #262626, Domco White #FFFFFF
          Font: Kanit (náhrada za firemný font Factor)
   ========================================================= */

/* ---------- Fonty ---------- */
@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Kanit";
  src: url("../fonts/Kanit-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Premenné ---------- */
:root {
  --green: #009665;
  --green-dark: #00754f;
  --orange: #ff8400;
  --black: #262626;
  --white: #ffffff;
  --gray-50: #f7f8f7;
  --gray-100: #f0f1ef;
  --gray-200: #e3e5e2;
  --gray-400: #9a9d99;
  --gray-600: #5c5f5a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 38, 38, 0.08);
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: "Kanit", "Arial", sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Kanit", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  line-height: 1.15;
}

p { margin: 0 0 16px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--muted { background: var(--gray-50); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.eyebrow__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
}

/* ---------- Prístupnosť ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: "Kanit", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: #e77800; box-shadow: 0 10px 24px rgba(255,132,0,.35); }
.btn--outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--green); }
.btn--dark-outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn--dark-outline:hover { background: var(--black); color: var(--white); }
.btn--full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}
.site-header__logo { flex: none; min-width: 0; }
.site-header__logo img {
  height: clamp(22px, 6vw, 34px);
  width: auto;
  max-width: 100%;
}
.site-header__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.site-header__contact a { color: var(--black); }
.site-header__contact a:hover { color: var(--green); }
.site-header .btn {
  padding: 12px 22px;
  font-size: 14px;
  white-space: nowrap;
  flex: none;
}
.btn-label-short { display: none; }

@media (max-width: 720px) {
  .site-header__contact-text { display: none; }
}
@media (max-width: 480px) {
  .site-header__inner { padding: 12px 16px; gap: 10px; }
  .site-header .btn { padding: 10px 16px; font-size: 12.5px; }
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: #04302a;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(120deg, rgba(3, 42, 30, .94) 0%, rgba(0, 96, 65, .84) 40%, rgba(0, 60, 41, .58) 66%, rgba(2, 26, 19, .82) 100%),
    url("../img/hero-bg.jpg");
  background-size: cover;
  /* Fotka je vopred orezaná tak, aby človek s pištoľou bol presne v strede
     obrázku – "center" ho preto drží v strede pri akejkoľvek šírke okna. */
  background-position: center center;
}
@media (max-width: 720px) {
  /* Na úzkych/vysokých mobilných výškach hero sekcie by "cover" ukázal len
     úzky pás medzi pištoľou a hlavou (obe by boli mimo záberu). Preto tu
     používame samostatne orezanú fotku, priblíženú na postavu s maskou,
     aby bola vždy viditeľná a v strede. */
  .hero__bg {
    background-image:
      linear-gradient(120deg, rgba(3, 42, 30, .94) 0%, rgba(0, 96, 65, .84) 40%, rgba(0, 60, 41, .58) 66%, rgba(2, 26, 19, .82) 100%),
      url("../img/hero-bg-mobile.jpg");
  }
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -25%;
  width: 42%;
  height: 160%;
  background: var(--orange);
  opacity: .15;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 132px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  color: var(--white);
}
.hero h1 em {
  font-style: italic;
  color: var(--orange);
}
.hero__lead {
  font-size: 18px;
  max-width: 46ch;
  color: rgba(255,255,255,.92);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 34px;
}
.hero__fact {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 17px;
  font-weight: 600;
}
.hero__fact::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.hero__fact strong { color: var(--orange); font-weight: 800; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__card {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  color: var(--black);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 20, 14, .35);
  border: 1px solid rgba(255, 255, 255, .5);
}
.hero__card h3 {
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--green);
  margin-bottom: 18px;
}
.hero__card ul { margin: 0; padding: 0; list-style: none; }
.hero__card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
}
.hero__card li:last-child { border-bottom: none; }
.hero__card .ico {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 56px; }
}

/* ---------- O nás ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
}
.stat strong {
  display: block;
  font-family: "Kanit", sans-serif;
  font-weight: 900;
  font-size: 26px;
  white-space: nowrap;
  color: var(--green);
}
.stat span { font-size: 13px; color: var(--gray-600); }

@media (max-width: 600px) {
  .about__stats { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Ponúkame / Požiadavky (karty) ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: 0 20px 40px rgba(38, 38, 38, .1);
  transform: translateY(-4px);
  border-color: rgba(0, 150, 101, .3);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 8px 16px rgba(0, 150, 101, .25);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--gray-600); margin: 0; }

@media (max-width: 880px) {
  .grid-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-cards { grid-template-columns: 1fr; }
}

/* ---------- Sekcia nadpis ---------- */
.section-head {
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head p { color: var(--gray-600); font-size: 16px; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Formulár ---------- */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
@media (max-width: 600px) {
  .form-wrap { padding: 24px; }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--gray-600);
  margin-top: 6px;
}
.field .req { color: var(--orange); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  font-family: "Kanit", sans-serif;
  font-size: 15px;
  padding: 13px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--gray-50);
  color: var(--black);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  background: var(--white);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }

.field input[type="file"] {
  width: 100%;
  font-family: "Kanit", sans-serif;
  font-size: 14px;
  padding: 12px;
  border: 1.5px dashed var(--gray-400);
  border-radius: 10px;
  background: var(--gray-50);
}

/* Radio – prax v odbore */
.radio-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.radio-option {
  flex: 1;
  min-width: 160px;
  position: relative;
}
.radio-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.radio-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-weight: 700;
  background: var(--gray-50);
  text-align: center;
}
.radio-option input:checked + span {
  border-color: var(--green);
  background: rgba(0,150,101,.08);
  color: var(--green-dark);
}
.radio-option input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.experience-block {
  margin-top: 8px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(0,150,101,.06);
  border: 1px solid rgba(0,150,101,.25);
  border-radius: 12px;
}
.experience-block .form-row { margin-bottom: 0; }
.experience-block .field { margin-bottom: 0; }

.no-match-note {
  display: none;
  margin-top: 10px;
  padding: 16px 18px;
  background: #fdeceb;
  border: 1px solid #f4b7b0;
  color: #9c2b1f;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* Checkbox GDPR */
.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--gray-600);
}
.checkbox-field input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--green); }

/* Honeypot – skryté pole proti spamu */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 0; width: 0;
  overflow: hidden;
}

.form-msg {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
}
.form-msg--error { background: #fdeceb; color: #9c2b1f; border: 1px solid #f4b7b0; }
.form-msg--info { background: #eaf6f1; color: var(--green-dark); border: 1px solid #bfe6d7; }

/* ---------- Pätička ---------- */
.site-footer {
  position: relative;
  background: var(--black);
  color: rgba(255,255,255,.82);
  padding: 56px 0 24px;
  font-size: 14px;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green) 55%, var(--orange) 55%, var(--orange) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-grid p, .footer-grid li { color: rgba(255,255,255,.72); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: rgba(255,255,255,.82); }
.footer-grid a:hover { color: var(--orange); }
.footer-logo img { height: 30px; margin-bottom: 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: underline; }
.footer-bottom button.link-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  font-family: inherit; font-size: inherit;
  cursor: pointer;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie lišta ---------- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  padding: 24px;
  z-index: 100;
  display: none;
}
.cookie-bar.is-visible { display: block; }
.cookie-bar h3 { font-size: 16px; margin-bottom: 8px; }
.cookie-bar p { font-size: 13.5px; color: var(--gray-600); margin-bottom: 16px; }
.cookie-bar__prefs {
  display: none;
  margin-bottom: 16px;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
}
.cookie-bar__prefs.is-open { display: block; }
.cookie-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cookie-pref-row:last-child { border-bottom: none; }
.cookie-pref-row div strong { display: block; font-size: 13.5px; }
.cookie-pref-row div span { font-size: 12px; color: var(--gray-600); }
.cookie-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-bar__actions .btn { padding: 12px 20px; font-size: 13px; }
.cookie-bar__actions .btn--text {
  background: none; border: none; color: var(--gray-600);
  text-decoration: underline; font-weight: 600; cursor: pointer;
  text-transform: none; letter-spacing: 0; padding: 12px 8px;
}

/* Prepínač (toggle) */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--gray-200); border-radius: 999px; transition: .15s;
}
.switch .slider::before {
  content: ""; position: absolute; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background: var(--white); border-radius: 50%; transition: .15s;
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: .6; cursor: not-allowed; }

/* ---------- Scroll-reveal animácie ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.grid-cards.reveal-group .card,
.about__stats.reveal-group .stat {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.grid-cards.reveal-group.is-visible .card,
.about__stats.reveal-group.is-visible .stat {
  opacity: 1;
  transform: translateY(0);
}
.grid-cards.reveal-group .card:nth-child(1) { transition-delay: .03s; }
.grid-cards.reveal-group .card:nth-child(2) { transition-delay: .09s; }
.grid-cards.reveal-group .card:nth-child(3) { transition-delay: .15s; }
.grid-cards.reveal-group .card:nth-child(4) { transition-delay: .21s; }
.grid-cards.reveal-group .card:nth-child(5) { transition-delay: .27s; }
.grid-cards.reveal-group .card:nth-child(6) { transition-delay: .33s; }
.about__stats.reveal-group .stat:nth-child(1) { transition-delay: .03s; }
.about__stats.reveal-group .stat:nth-child(2) { transition-delay: .1s; }
.about__stats.reveal-group .stat:nth-child(3) { transition-delay: .17s; }
.about__stats.reveal-group .stat:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .grid-cards.reveal-group .card,
  .about__stats.reveal-group .stat {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Jednoduché statické stránky (zásady, ďakujeme) ---------- */
.simple-page {
  padding: 64px 0 96px;
}
.simple-page .container { max-width: 860px; }
.simple-page h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.simple-page .updated { color: var(--gray-600); font-size: 13.5px; margin-bottom: 40px; }
.simple-page h2 {
  font-size: 19px;
  margin-top: 40px;
  color: var(--green-dark);
}
.simple-page ul { padding-left: 20px; }
.simple-page li { margin-bottom: 8px; }
.simple-page table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.simple-page td, .simple-page th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-weight: 700; }

.success-box {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px 40px;
}
.success-box .ico-big {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 30px; font-weight: 900;
}
