/* ==========================================================================
   malovani-havirov.cz — EXPRESNÍ MALOVÁNÍ HAVÍŘOV 24H
   Unikátní architektura: Formulář přímo v Hero sekci nahoře + Hodinová osa dne
   ========================================================================== */

:root {
  --mh-bg: #f8fafc;
  --mh-surface: #ffffff;
  --mh-dark: #0f172a;
  --mh-dark-2: #1e293b;
  --mh-text: #0f172a;
  --mh-muted: #475569;
  --mh-red: #dc2626;
  --mh-red-dark: #b91c1c;
  --mh-red-soft: #fef2f2;
  --mh-green: #16a34a;
  --mh-border: #e2e8f0;
  --mh-font-head: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --mh-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.mh-body {
  background: var(--mh-bg);
  color: var(--mh-text);
  font-family: var(--mh-font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.mh-container {
  width: min(1260px, 92vw);
  margin-inline: auto;
}

/* --- TOP EXPRESS DISPATCH RIBBON --- */
.mh-dispatch-bar {
  background: var(--mh-dark);
  color: #f8fafc;
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 2px solid var(--mh-red);
}

.mh-dispatch-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.mh-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  margin-right: 0.45rem;
}

/* --- STICKY NAV --- */
.mh-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mh-border);
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0.85rem 0;
}

.mh-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
  flex-wrap: nowrap;
}

.mh-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mh-font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.mh-brand-badge {
  background: var(--mh-red);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.mh-nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mh-muted);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.mh-nav-links a {
  white-space: nowrap;
  flex-shrink: 0;
}

.mh-nav-links a:hover {
  color: var(--mh-red);
}

.mh-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mh-red);
  color: #fff;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-family: var(--mh-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.mh-call-btn:hover {
  background: var(--mh-red-dark);
}

/* --- SPLIT-SCREEN HERO WITH ABOVE-THE-FOLD FORM --- */
.mh-hero-split {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-bottom: 4px solid var(--mh-red);
}

.mh-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.75rem;
  align-items: start;
}

.mh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
}

.mh-hero-split h1 {
  font-family: var(--mh-font-head);
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.1rem;
}

.mh-hero-split h1 span {
  color: #f87171;
}

.mh-hero-lead {
  font-size: 1.06rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  max-width: 58ch;
}

.mh-districts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.mh-district-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
}

.mh-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.mh-metric strong {
  display: block;
  font-family: var(--mh-font-head);
  font-size: 1.5rem;
  color: #fff;
}

.mh-metric span {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* HERO EMBEDDED FORM CARD */
.mh-hero-form-card {
  background: #ffffff;
  color: var(--mh-text);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border-top: 6px solid var(--mh-red);
}

.mh-form-head {
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--mh-border);
}

.mh-form-head h2 {
  font-family: var(--mh-font-head);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.mh-form-head p {
  font-size: 0.84rem;
  color: var(--mh-muted);
}

.mh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mh-field {
  margin-bottom: 0.75rem;
}

.mh-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--mh-dark-2);
}

.mh-field input,
.mh-field select,
.mh-field textarea {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  background: #f8fafc;
  color: var(--mh-text);
}

.mh-field input:focus,
.mh-field select:focus,
.mh-field textarea:focus {
  outline: none;
  border-color: var(--mh-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.mh-field input:user-invalid,
.mh-field input.is-invalid {
  border-color: var(--mh-red);
  background: #fef2f2;
}

.field-error {
  display: none;
  font-size: 0.74rem;
  color: var(--mh-red);
  margin-top: 0.2rem;
}

input:user-invalid ~ .field-error,
input.is-invalid ~ .field-error {
  display: block;
}

.mh-submit-btn {
  width: 100%;
  background: var(--mh-red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  font-family: var(--mh-font-head);
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: background 0.18s ease;
}

.mh-submit-btn:hover {
  background: var(--mh-red-dark);
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.86rem;
}

.form-status.is-success {
  background: #f0fdf4;
  border: 1px solid #16a34a;
  color: #15803d;
}

.form-status.is-error {
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #b91c1c;
}

/* --- HOURLY TIMELINE SECTION --- */
.mh-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--mh-border);
}

.mh-section-title {
  margin-bottom: 2.25rem;
}

.mh-section-title span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mh-red);
  margin-bottom: 0.35rem;
}

.mh-section-title h2 {
  font-family: var(--mh-font-head);
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  letter-spacing: -0.02em;
}

.mh-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.mh-time-step {
  background: var(--mh-surface);
  border: 1px solid var(--mh-border);
  border-top: 4px solid var(--mh-dark);
  border-radius: 10px;
  padding: 1.35rem;
  position: relative;
}

.mh-time-step:hover {
  border-top-color: var(--mh-red);
}

.mh-time-badge {
  display: inline-block;
  background: var(--mh-red-soft);
  color: var(--mh-red);
  font-family: var(--mh-font-head);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.mh-time-step h3 {
  font-family: var(--mh-font-head);
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.mh-time-step p {
  font-size: 0.86rem;
  color: var(--mh-muted);
}

/* --- PRICING MATRIX + CALCULATOR --- */
.mh-price-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.mh-matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mh-surface);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--mh-border);
}

.mh-matrix-table th,
.mh-matrix-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--mh-border);
  font-size: 0.9rem;
}

.mh-matrix-table th {
  background: var(--mh-dark);
  color: #fff;
  font-family: var(--mh-font-head);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mh-matrix-table tr:last-child td {
  border-bottom: none;
}

.mh-price-tag {
  font-family: var(--mh-font-head);
  font-weight: 800;
  color: var(--mh-red);
}

.mh-calc-box {
  background: var(--mh-dark);
  color: #fff;
  border-radius: 12px;
  padding: 1.75rem;
}

.mh-calc-box h3 {
  font-family: var(--mh-font-head);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.mh-calc-box input[type="range"] {
  width: 100%;
  accent-color: var(--mh-red);
  margin: 0.65rem 0 1.1rem;
}

.mh-calc-box select {
  width: 100%;
  padding: 0.65rem;
  border-radius: 8px;
  border: none;
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
}

.mh-calc-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}

.mh-calc-stat strong {
  font-family: var(--mh-font-head);
  color: #fca5a5;
}

/* --- DIY VS PRO COMPARISON --- */
.mh-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mh-compare-card {
  background: var(--mh-surface);
  border: 1px solid var(--mh-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.mh-compare-card.is-pro {
  border: 2px solid var(--mh-red);
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.08);
}

.mh-compare-card h3 {
  font-family: var(--mh-font-head);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.mh-compare-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  font-size: 0.92rem;
}

/* --- GALLERY --- */
.mh-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mh-photo-item {
  background: var(--mh-surface);
  border: 1px solid var(--mh-border);
  border-radius: 10px;
  overflow: hidden;
}

.mh-photo-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.mh-photo-item p {
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--mh-muted);
}

/* --- FOOTER --- */
.mh-footer {
  background: var(--mh-dark);
  color: #94a3b8;
  padding: 2.5rem 0;
  font-size: 0.85rem;
}

.mh-footer a {
  color: #e2e8f0;
  text-decoration: underline;
}

/* --- TOAST & COOKIE BANNER --- */
.mail-toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  left: auto;
  bottom: auto;
  margin: 0;
  width: min(440px, calc(100vw - 2rem));
  background: #0f172a;
  color: #fff;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  z-index: 9999;
}

.mail-toast:not(:popover-open):not(.is-visible) {
  display: none;
}

.mail-toast.is-visible {
  display: block;
}

.mail-toast__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
}

.mail-toast__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.mail-toast__body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.mail-toast__body p {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.mail-toast__close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.35rem;
  cursor: pointer;
  margin-left: auto;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 1.5rem));
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 1rem 1.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 9500;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  flex: 1 1 420px;
}

.cookie-banner__text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.cookie-banner__text p {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.48rem 0.9rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
}

.cookie-btn--accept {
  background: var(--mh-red);
  border-color: var(--mh-red);
}

.cookie-prefs {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

@media (max-width: 1024px) {
  .mh-hero-grid,
  .mh-price-layout,
  .mh-compare-grid {
    grid-template-columns: 1fr;
  }
  .mh-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mh-nav-links {
    display: none;
  }
  .mh-timeline,
  .mh-photos,
  .mh-form-row,
  .mh-hero-metrics {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Smart Shield v2 Anti-Spam Widget & Canonical Visually-Hidden Utility
   ========================================================================== */
.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.spam-shield {
  margin: 0.85rem 0 1rem;
}

.spam-shield__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.spam-shield__toggle:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.spam-shield__toggle:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.spam-shield__box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid #64748b;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.spam-shield__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.spam-shield__text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.spam-shield__text small {
  font-size: 0.74rem;
  color: #475569;
  line-height: 1.3;
}

.spam-shield__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  flex-shrink: 0;
}

.spam-shield.is-verifying .spam-shield__box {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.spam-shield.is-verified .spam-shield__toggle {
  background: #f0fdf4;
  border-color: #22c55e;
}

.spam-shield.is-verified .spam-shield__box {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.spam-shield.is-verified .spam-shield__text strong {
  color: #14532d;
}

.spam-shield.is-verified .spam-shield__text small {
  color: #166534;
}

.spam-shield.is-verified .spam-shield__badge {
  background: #dcfce7;
  color: #15803d;
}

.spam-shield.is-error .spam-shield__toggle {
  background: #fef2f2;
  border-color: #ef4444;
}

.spam-shield.is-error .spam-shield__box {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.spam-shield__noscript {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #78350f;
}
