/* ==========================================================================
   Podlahy Ostrava — hlavní stylopis
   ========================================================================== */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ebe1;
  --color-surface: #ffffff;
  --color-text: #2b2420;
  --color-text-muted: #6b6058;
  --color-primary: #6b4a2f;
  --color-primary-dark: #4a3220;
  --color-accent: #c0792f;
  --color-accent-light: #e3a85f;
  --color-border: #e4dbcc;
  --color-success: #2e7d4f;
  --color-error: #b3382c;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(43, 36, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 36, 32, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-base);
  line-height: 1.25;
  margin: 0 0 .5em;
  color: var(--color-primary-dark);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; }

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

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 680px;
  margin: 0 0 40px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: .6em;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-primary-dark);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.topbar {
  background: var(--color-primary-dark);
  color: #f1ebe1;
  font-size: .85rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar a {
  color: #f1ebe1;
}

.topbar a:hover {
  color: var(--color-accent-light);
}

.topbar-links {
  display: flex;
  gap: 20px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  color: var(--color-text);
  font-weight: 600;
  font-size: .96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(42, 30, 20, .88) 0%, rgba(42, 30, 20, .62) 55%, rgba(42, 30, 20, .35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 0 96px;
  max-width: 640px;
}

.hero .eyebrow { color: var(--color-accent-light); }
.hero h1 { color: #fff; }
.hero .lead { color: #efe7db; }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  color: #fff;
}

.hero-stat span {
  color: #d9cdbc;
  font-size: .88rem;
}

/* Page header (interior pages) */
.page-header {
  position: relative;
  color: #fff;
  padding: 64px 0;
  overflow: hidden;
}

.page-header-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.page-header-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(37, 26, 18, .78);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  font-size: .85rem;
  color: #e3d8c8;
  margin-bottom: 10px;
}

.breadcrumbs a { color: #e3d8c8; }
.breadcrumbs a:hover { color: #fff; }

.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: #e9dfd0; max-width: 640px; }

/* Cards / grids */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--color-text-muted); flex: 1; }

.card-link {
  font-weight: 700;
  font-size: .92rem;
  margin-top: 12px;
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.icon-box svg { width: 26px; height: 26px; }

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}

.feature-card p { color: var(--color-text-muted); margin-bottom: 0; }

/* Two column layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
}

.checklist {
  list-style: none;
  margin: 20px 0;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--color-text);
}

.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-number {
  counter-increment: step;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-number::before {
  content: counter(step);
}

/* Testimonials */
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
}

.testimonial-stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-author strong { display: block; font-size: .92rem; }
.testimonial-author span { font-size: .82rem; color: var(--color-text-muted); }

/* CTA band */
.cta-band {
  position: relative;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 56px;
  text-align: center;
}

.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.cta-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 22, 15, .82);
}

.cta-band-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #ead9c4; }
.cta-band .btn-primary { margin-top: 8px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  cursor: zoom-in;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(20, 14, 10, .82), transparent);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,.24); }

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-table th,
.price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table th {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--color-primary-dark); white-space: nowrap; }

.price-note {
  margin-top: 16px;
  font-size: .88rem;
  color: var(--color-text-muted);
}

/* Forms */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.field .hint {
  font-weight: 400;
  color: var(--color-text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .96rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}

.field textarea { resize: vertical; min-height: 120px; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: var(--color-text-muted);
}

.checkbox-field input { width: auto; margin-top: 3px; }

.form-note {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}

.form-success,
.form-error {
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: .94rem;
}

.form-success {
  background: #e6f3ea;
  color: var(--color-success);
  border: 1px solid #b9ddc5;
}

.form-error {
  background: #fbeae7;
  color: var(--color-error);
  border: 1px solid #f1c6bd;
}

/* Contact info */
.contact-info-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-list .icon-box {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
}

.contact-info-list strong { display: block; }
.contact-info-list span, .contact-info-list a { color: var(--color-text-muted); }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-left: 16px;
  flex-shrink: 0;
}

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

.faq-item p {
  margin-top: 12px;
  color: var(--color-text-muted);
}

/* Logos / trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .03em;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #e3d8c8;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .brand { color: #fff; }
.footer-brand p { color: #c9bba5; margin-top: 14px; }

.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #d9cdbc; font-size: .92rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: #b7a890;
}

.footer-bottom a { color: #b7a890; }
.footer-bottom a:hover { color: #fff; }

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-row a:hover { background: var(--color-accent); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-primary-dark);
  color: #f1ebe1;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 999;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-banner.is-visible { display: flex; }

.cookie-banner p { margin: 0; font-size: .86rem; flex: 1; min-width: 220px; color: #e3d8c8; }
.cookie-banner .btn { padding: 10px 20px; font-size: .86rem; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; width: 100%; }
  .nav-cta .btn span { display: none; }
  .topbar-links { gap: 14px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 72px 0 56px; }
  .section { padding: 52px 0; }
  .cta-band { padding: 36px 22px; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
