/*
 * Súbor: css/pages/havarie/hero.css
 * Obsah: Hero havárií s dominantným telefonátom, bodovým výpočtom služieb, fotografickým pozadím a kontaktným formulárom so stavom odosielania.
 * Použitie: sluzba-havarie.html.
 * Zapojenie: Posledný stylesheet v hlavičke; poradie podľa css/README.md.
 * Závislosti: general/base.css, pages/havarie/intro.css, pages/havarie/palette.css a general/layout.css; .hero--emergency.
 */
html .hero-intro .hero.hero--emergency {
  min-height: 0;
  padding: 96px 0 56px;
  background: var(--palette-dark) url('../../../VSETKY_IMG/SLUZBA_HAVARIE/hero/havarie-hero.png') center 60% / cover no-repeat;
}

html .hero-intro .hero.hero--emergency::before {
  inset: 0;
  height: auto;
  background: linear-gradient(90deg, rgb(15 25 35 / 95%), rgb(15 25 35 / 83%) 52%, rgb(15 25 35 / 40%));
}

html .hero-intro .hero--emergency .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 0;
  text-align: left;
}

.hero--emergency .hero-copy {
  width: 100%;
  max-width: 720px;
  padding: 0;
  background: none;
}

.hero--emergency .hero-copy::before { display: none; }

.hero--emergency .hero-copy .eyebrow {
  margin: 0 0 18px;
  color: var(--palette-yellow);
}

.hero--emergency .hero-copy h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 1.06;
  text-wrap: balance;
}

.hero--emergency .hero-call {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 18px 24px;
  border: 2px solid var(--palette-yellow);
  border-radius: 12px;
  background: var(--palette-yellow);
  color: #172333;
  text-decoration: none;
}

.hero-call__prompt {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.hero-call__number {
  font-size: clamp(27px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
  white-space: nowrap;
}

.hero-call__action {
  font-size: 13px;
  font-weight: 600;
}

.hero--emergency .hero-call:hover { background: #ffda3b; }

.hero--emergency .hero-copy .hero-lead {
  margin: 24px 0 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
}

.hero-emergency-form {
  min-width: 0;
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 16px;
  background: var(--palette-light);
  color: var(--palette-dark);
  box-shadow: 0 18px 48px rgb(0 0 0 / 20%);
}

.hero-emergency-form__eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero--emergency .hero-emergency-form h2 {
  margin-bottom: 20px;
  color: var(--palette-dark);
  font-size: 26px;
}

.hero-emergency-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hero-emergency-form input,
.hero-emergency-form textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #9a9389;
  border-radius: 6px;
  background: #fff;
  color: #243142;
  font: inherit;
  font-size: 16px;
}

.hero-emergency-form textarea {
  min-height: 86px;
  resize: vertical;
}

.hero--emergency .hero-emergency-form .btn {
  width: 100%;
  margin-top: 4px;
  white-space: normal;
  text-align: center;
}

.hero-emergency-form__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.hero-emergency-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hero-emergency-form__status {
  margin: 16px 0 0;
  padding: 12px;
  border: 1px solid #8c8375;
  border-radius: 6px;
  background: #fff;
  color: #243142;
  font-size: 14px;
  line-height: 1.5;
}

.hero-emergency-form__status[data-state="success"] { border-color: #28613b; color: #20542f; }
.hero-emergency-form__status[data-state="error"] { border-color: #a52b21; color: #8c2119; }
.hero-emergency-form button:disabled { opacity: .65; cursor: wait; }

.hero-emergency-form__photos {
  display: inline-block;
  margin-top: 12px;
  padding-block: 8px;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero--emergency :is(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--palette-yellow);
  outline-offset: 4px;
}

.hero--emergency .hero-call:focus-visible {
  outline-color: #fff;
}

@media (max-width: 900px) {
  html .hero-intro .hero--emergency .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hero-emergency-form { max-width: 620px; }
}

@media (max-width: 767px) {
  html .hero-intro .hero.hero--emergency { padding: 84px 0 32px; }

  html .hero-intro .hero--emergency .hero-grid {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .hero--emergency .hero-copy h1 { font-size: clamp(32px, 8vw, 44px); }
  .hero--emergency .hero-call { width: 100%; padding: 16px 18px; }
  .hero--emergency .hero-copy .hero-lead { font-size: 16px; }
}
