/* Base setup */
:root {
  --bg: #f4f6f8;
  --bg-alt: #ffffff;
  --ink: #111418;
  --muted: #5a6670;
  --accent: #0f3d52;
  --accent-2: #b88a4c;
  --accent-soft: #e3edf2;
  --line: #d6dfe6;
  --radius: 20px;
  --shadow: 0 28px 60px rgba(10, 25, 35, 0.12);
  --shadow-soft: 0 18px 40px rgba(10, 25, 35, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Space Grotesk", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(15, 61, 82, 0.08), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(184, 138, 76, 0.08), transparent 36%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f4 60%, #f7f9fb 100%);
  background-size: auto, auto, auto;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(15, 61, 82, 0.3);
  outline-offset: 2px;
}

section {
  scroll-margin-top: 110px;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section {
  padding: clamp(88px, 9vw, 128px) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 245, 247, 0.92) 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
  text-wrap: balance;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  text-wrap: balance;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
}

.lead {
  font-size: 1.18rem;
  max-width: 580px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #0f3d52 0%, #0b2f40 100%);
  color: #fff;
  box-shadow: 0 18px 32px rgba(15, 61, 82, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(15, 61, 82, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 14px 26px rgba(15, 61, 82, 0.28);
}

.btn-ghost {
  border-color: rgba(15, 61, 82, 0.18);
  background: rgba(15, 61, 82, 0.06);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: rgba(15, 61, 82, 0.3);
}

.link {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

.link:hover {
  color: #0b2f40;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 61, 82, 0.1);
  box-shadow: 0 10px 30px rgba(17, 20, 24, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.logo small {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  width: 100%;
  order: 3;
  justify-content: flex-start;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav a:hover {
  color: var(--ink);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #f7f9fb;
  background-color: #0c1b24;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(10, 15, 20, 0.7) 0%, rgba(10, 15, 20, 0.45) 55%, rgba(10, 15, 20, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(140px, 18vw, 200px) 0 clamp(110px, 12vw, 150px);
  min-height: 100svh;
  display: grid;
  align-content: center;
}

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

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  color: #fff;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 32px;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.65);
}

.hero-points {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px;
  border-radius: 16px;
  background: rgba(15, 20, 24, 0.45);
  box-shadow: 0 18px 36px rgba(10, 15, 20, 0.35);
  backdrop-filter: blur(12px);
}

.hero-points span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.hero-points strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero-dot {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.hero-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
}

.hero-dot.is-active {
  width: 64px;
  background: #fff;
}

/* O nas */
.split {
  display: grid;
  gap: 32px;
}

.stats {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 61, 82, 0.12);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.stats div {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 61, 82, 0.08);
}

.stats div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stats strong {
  display: block;
  margin-bottom: 6px;
}

/* Sluzby */
.section-head {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-head p {
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 61, 82, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(15, 61, 82, 0.35);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card .link {
  margin-top: auto;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(15, 61, 82, 0.08);
  border: 1px solid rgba(15, 61, 82, 0.2);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.card:hover .card-icon {
  transform: translateY(-2px);
  background: var(--accent-soft);
}

/* Pergoly */
.pergola-focus {
  background: linear-gradient(135deg, #ffffff 0%, #eef4f7 45%, #f9fbfc 100%);
  border-top: 1px solid rgba(15, 61, 82, 0.08);
}

.focus-head {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

.focus-intro {
  max-width: 640px;
}

.focus-grid {
  display: grid;
  gap: 18px;
  margin: 12px 0 40px;
}

.focus-item {
  background: #fff;
  border: 1px solid rgba(15, 61, 82, 0.12);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: start;
  min-height: 150px;
}

.focus-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.focus-card {
  background: linear-gradient(160deg, #0f3d52 0%, #0b2b39 100%);
  color: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.focus-card p {
  color: rgba(255, 255, 255, 0.75);
  margin: 12px 0 20px;
}

.slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.slider-btn {
  border: 1px solid rgba(15, 61, 82, 0.15);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(10, 25, 35, 0.1);
}

.slider-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.slider-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(10, 25, 35, 0.12);
}

.slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 61, 82, 0.35) transparent;
}

.slides::-webkit-scrollbar {
  height: 6px;
}

.slides::-webkit-scrollbar-thumb {
  background: rgba(15, 61, 82, 0.35);
  border-radius: 999px;
}

.slide {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(15, 61, 82, 0.12);
  scroll-snap-align: start;
  box-shadow: var(--shadow-soft);
}

.slide img {
  height: clamp(260px, 32vw, 360px);
  object-fit: cover;
}

.slide figcaption {
  padding: 14px 18px 20px;
  color: var(--muted);
}

/* Realizace */
.gallery {
  display: grid;
  gap: 22px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 61, 82, 0.12);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(1.05);
}

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(12, 27, 36, 0.95) 0%, rgba(12, 27, 36, 0.7) 70%, transparent 100%);
  color: #fff;
  padding: 40px 18px 18px;
  font-size: 0.95rem;
  transform: translateY(calc(100% - 68px));
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-item:hover figcaption {
  transform: translateY(0);
}

.gallery-item figcaption strong {
  display: block;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-item figcaption p {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}

/* Proc my */
.benefits {
  display: grid;
  gap: 22px;
}

.benefits div {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 61, 82, 0.12);
  box-shadow: var(--shadow-soft);
  min-height: 180px;
}

/* Kontakt */
.contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  gap: 36px;
}

.contact-info p {
  margin-bottom: 6px;
}

.form {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 61, 82, 0.12);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 61, 82, 0.16);
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(15, 61, 82, 0.25);
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 61, 82, 0.08);
}

.error {
  color: #b3261e;
  min-height: 18px;
  font-size: 0.85rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  color: #1d7a46;
  min-height: 22px;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #0c1114;
  color: #d5d9de;
  padding: 80px 0 0;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-brand strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  max-width: 320px;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-contact h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

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

.footer-form-wrap h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.footer-form-wrap > p {
  margin-bottom: 24px;
  opacity: 0.7;
  font-size: 0.95rem;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-form input,
.footer-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.footer-form input:focus,
.footer-form textarea:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 64px;
  opacity: 0.5;
}

/* Scroll reveal */
.js [data-animate] {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.js [data-animate].in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-animate] {
    transition: none;
  }

  .hero-slide {
    transition: none;
  }
}

/* Responsive */
@media (min-width: 768px) {
  .nav {
    width: auto;
    order: 0;
    gap: 18px;
    justify-content: center;
  }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

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

  .focus-head {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

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

  .slides {
    grid-auto-columns: 48%;
  }

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

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

  .contact-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .footer-main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
  }

  .footer-form-wrap {
    margin-top: 0;
    padding-left: 48px;
    border-left: 1px solid rgba(255,255,255,0.1);
  }

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

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 20px;
  }

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