/* Podlahy Majster — hlavny stylopis */

:root {
  --color-dark: #1f1a16;
  --color-wood: #8a5a35;
  --color-wood-dark: #6b4426;
  --color-wood-light: #c99a66;
  --color-cream: #f7f1e8;
  --color-text: #2b2420;
  --color-muted: #6b6258;
  --color-border: #e4d9c8;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31, 26, 22, 0.12);
  --max-width: 1180px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: underline;
}

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

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--color-dark);
  margin: 0 0 16px;
  line-height: 1.25;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; }

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

.section {
  padding: 72px 0;
}

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

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-wood);
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--color-wood);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--color-wood-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

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

.btn--dark:hover {
  background: #000;
}

.btn--block {
  width: 100%;
  text-align: center;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-wood-light), var(--color-wood-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 500;
}

.main-nav a.is-active {
  color: var(--color-wood-dark);
  font-weight: 700;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-weight: 700;
  color: var(--color-dark);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-dark);
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.72), rgba(20, 15, 10, 0.55)), url("../img/hero.jpg") center/cover no-repeat;
  padding: 120px 0 100px;
}

.hero-inner {
  max-width: 640px;
}

.hero .tag {
  color: var(--color-wood-light);
}

.hero h1 {
  color: #fff;
}

.hero p {
  font-size: 1.15rem;
  color: #f0e9de;
}

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

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

.hero-stats div strong {
  display: block;
  font-size: 1.8rem;
  font-family: Georgia, serif;
}

.hero-stats div span {
  font-size: 0.85rem;
  color: #d8cdbd;
}

/* Breadcrumb / page header */
.page-header {
  background: var(--color-dark);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 8px;
}

.page-header p {
  color: #cdbfa9;
  margin: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #b7a890;
}

.breadcrumb a {
  color: #e7dcc7;
}

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

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

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

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

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

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

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  color: var(--color-muted);
  flex: 1;
}

.card-link {
  font-weight: 600;
}

.icon-card {
  text-align: center;
  padding: 30px 20px;
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-wood-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

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

.step {
  position: relative;
  padding: 28px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-wood);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-wood);
  font-weight: 800;
}

/* Testimonials */
.testimonial {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.testimonial .stars {
  color: #d9a441;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testimonial footer {
  margin-top: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.testimonial footer span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-muted);
}

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

.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 30px;
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

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

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

.price-table th {
  background: var(--color-dark);
  color: #fff;
  font-family: Georgia, serif;
}

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

.price-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--color-wood-dark), var(--color-wood));
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #f3e8d8;
}

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

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

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

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

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-wood-light);
  border-color: var(--color-wood);
}

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

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

.form-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 10px;
}

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

.alert--success {
  background: #e4f3e3;
  color: #2b6b2b;
  border: 1px solid #bfe3bd;
}

.alert--error {
  background: #fbe6e4;
  color: #a33327;
  border: 1px solid #f3c0b9;
}

.contact-info {
  display: grid;
  gap: 20px;
}

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

.contact-info .icon-circle {
  margin: 0;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
}

.map-embed {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #cdbfa9;
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: #cdbfa9;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: #cdbfa9;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-dark);
  color: #e7dcc7;
  padding: 18px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 300;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  flex-wrap: wrap;
}

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

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 700px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn--small {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* Legal content */
.legal-content h2 {
  margin-top: 36px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.legal-content th, .legal-content td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}

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

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta .header-phone { display: none; }

  .site-header.is-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
  }

  .hero { padding: 80px 0 64px; }
  h1 { font-size: 2rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
