/* Topo-Instal Ostrava — statický web, čisté CSS bez frameworku */

:root {
  --radius: 0.625rem;
  --background: oklch(0.99 0.005 240);
  --foreground: oklch(0.18 0.03 250);
  --card: oklch(1 0 0);
  --primary: oklch(0.45 0.17 255);
  --primary-foreground: oklch(0.99 0.005 240);
  --secondary: oklch(0.95 0.02 250);
  --secondary-foreground: oklch(0.25 0.05 255);
  --muted-foreground: oklch(0.5 0.02 255);
  --accent: oklch(0.72 0.18 55);
  --accent-foreground: oklch(0.15 0.02 250);
  --border: oklch(0.929 0.013 255.508);
  --input: oklch(0.929 0.013 255.508);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background-color: rgba(252, 253, 255, 0.85);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  order: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.375rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.site-nav a {
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--muted-foreground);
  transition: background-color 0.15s, color 0.15s;
}

.site-nav a:hover {
  background-color: var(--secondary);
  color: var(--foreground);
}

.site-nav a[aria-current="page"] {
  background-color: var(--secondary);
  color: var(--foreground);
  font-weight: 500;
}

.cta-header {
  display: none;
  order: 2;
  border-radius: 0.375rem;
  background-color: var(--accent);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-foreground);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s;
  white-space: nowrap;
}

.cta-header:hover {
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .site-header .wrap {
    flex-wrap: nowrap;
  }
  .site-nav {
    order: 2;
    flex-basis: auto;
    flex: 1;
    overflow: visible;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    margin-left: 1rem;
  }
  .site-nav a {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (min-width: 640px) {
  .cta-header {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    color-mix(in oklch, var(--primary) 85%, transparent),
    color-mix(in oklch, var(--primary) 70%, transparent) 55%,
    color-mix(in oklch, var(--primary) 30%, transparent)
  );
}

.hero-content {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 5rem 1.25rem;
  color: var(--primary-foreground);
}

.hero-badge {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.hero-content p {
  max-width: 42rem;
  font-size: 1.125rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.btn {
  display: inline-block;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--primary-foreground);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .hero-content {
    padding: 7rem 1.25rem;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
}

/* Sections & typography */
section {
  padding: 4rem 0;
}

.section-tight {
  padding-bottom: 4rem;
  padding-top: 0;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose img {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin: 1.5rem 0;
}

.two-col {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 2fr 1fr;
  }
}

.card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sidebar h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.sidebar ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.sidebar li {
  border-radius: 0.5rem;
  background-color: var(--secondary);
  padding: 0.75rem;
}

.sidebar li p:first-child {
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.sidebar li p {
  margin: 0;
  color: var(--muted-foreground);
}

.sidebar .btn-primary {
  display: block;
  text-align: center;
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

.tinted {
  background-color: color-mix(in oklch, var(--secondary) 40%, transparent);
}

.step-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-grid .card p:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.step-grid .card p.step-title {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.step-grid .card p.step-desc {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* FAQ */
.faq {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  overflow: hidden;
}

.faq details {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.faq details:first-child {
  border-top: none;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted-foreground);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Article pages */
.article {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumbs a {
  text-decoration: none;
  text-underline-offset: 4px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  font-weight: 500;
  color: var(--foreground);
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.article h1 {
  margin: 0.5rem 0 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .article h1 {
    font-size: 2.25rem;
  }
}

.article .prose {
  margin-top: 2rem;
  font-size: 1rem;
}

/* Contact page */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-grid h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-grid .phone-link {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.contact-grid .email-link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  margin-top: 2rem;
}

.contact-form .row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .contact-form .row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-top: 0.25rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
}

.contact-form button {
  border: none;
  border-radius: 0.375rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.92;
}

.form-success {
  border-radius: 0.375rem;
  background-color: var(--secondary);
  padding: 1rem;
  font-size: 0.875rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: color-mix(in oklch, var(--secondary) 50%, transparent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid p {
  margin: 0;
}

.footer-grid .footer-title {
  font-weight: 600;
}

.footer-grid .footer-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0.5rem;
}

.share-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.share-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-right: 0.25rem;
}

.share-widget a {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--foreground);
  transition: background-color 0.15s;
}

.share-widget a:hover {
  background-color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
