/* =========================================================================
   stufi.cz — failover / maintenance page
   Design tokeny prevzate z produkcniho webu stufi.cz
   ========================================================================= */

/* ---------- Fonty (self-hosted, bez externich CDN kvuli GDPR) ---------- */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/SpaceGrotesk-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-600.woff2') format('woff2');
}

/* ---------- Tokeny ---------- */

:root {
  --background: #f9f9f9;
  --foreground: #1a1c1c;
  --surface: #f9f9f9;
  --surface-low: #f3f3f3;
  --surface-card: #fff;
  --surface-strong: #eee;
  --outline-soft: #74787826;
  --outline-grid: #1a1c1c0d;
  --muted: #5f5e5e;
  --muted-strong: #444748;
  --accent: #f38118;
  --accent-soft: #ffdcc6;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --shell: 80rem;
}

/* ---------- Reset ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
p  { margin: 0; }

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 40rem) { .page-shell { padding-inline: 2rem; } }
@media (min-width: 64rem) { .page-shell { padding-inline: 2.5rem; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--foreground);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Hlavicka ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo img {
  height: 2.5rem;
  width: auto;
  transition: opacity 0.2s ease;
}
.logo:hover img { opacity: 0.85; }

@media (min-width: 48rem) {
  .header-inner { padding-block: 1.25rem; }
  .logo img { height: 2.75rem; }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem;
  background: var(--surface-low);
  border-radius: 0.375rem;
}

.lang-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover { color: var(--foreground); }
.lang-btn.is-active {
  background: #fff;
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  padding-block: 4.5rem;
}

@media (min-width: 64rem) { .hero { padding-block: 6.5rem 5.5rem; } }

.grid-blueprint {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--outline-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--outline-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 20% 0%, #000 40%, transparent 100%);
}

.hero-inner { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--surface-strong);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 40rem) { .badge { font-size: 0.82rem; } }

.badge-dot {
  width: 0.625rem;
  height: 0.625rem;
  flex: none;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hero-title {
  margin: 2rem 0 0;
  max-width: 56rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4.7rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #0a0a0a;
}

@media (min-width: 80rem) { .hero-title { line-height: 0.94; } }

.hero-title .accent { color: var(--accent); }
.hero-title span { display: block; }

.hero-lead {
  margin-top: 2rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot { animation: none; }
}

/* ---------- Tlacitka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, filter 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { filter: brightness(0.95); }

/* ---------- Sekce kontaktu ---------- */

.section { padding-block: 4rem; }

@media (min-width: 64rem) { .section { padding-block: 5rem; } }

.contacts {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-lead {
  margin-top: 0.875rem;
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #0a0a0a;
}

.card-grid {
  display: grid;
  gap: 1px;
  margin-top: 2.5rem;
  background: rgba(0, 0, 0, 0.08);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface-card);
  transition: background 0.2s ease;
}
.card:hover { background: var(--surface-low); }

.card-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-value {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.card-value:hover { color: var(--accent); }

.card-value .ext {
  display: inline-block;
  margin-left: 0.35em;
  font-size: 0.8em;
  color: var(--accent);
}

.card-note {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Callout Solutia ---------- */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--surface-low);
  border-left: 3px solid var(--accent);
}

.callout-body { max-width: 44rem; }

.callout-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.callout-text {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Paticka ---------- */

.site-footer {
  background: #fff;
  padding-block: 3.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .footer-inner {
    grid-template-columns: 1.4fr 0.6fr;
    align-items: start;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin-top: 1rem;
  max-width: 30rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
}

.socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 2rem;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  color: #0a0a0a;
  transition: transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.social:hover {
  transform: translateY(-2px);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.08);
}
.social svg { width: 1rem; height: 1rem; }

.solutia-mark {
  margin-left: 0.75rem;
  transition: opacity 0.2s ease;
}
.solutia-mark:hover { opacity: 0.7; }
.solutia-mark img { height: 2rem; width: auto; }

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 64rem) {
  .footer-meta { align-items: flex-end; text-align: right; }
}

.footer-note {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
