/* ============================================
   j-mont - Natural palette (zelená, dřevo, krém)
   Fonts: Space Grotesk (headings), Montserrat (body)
   ============================================ */

:root {
  /* Natural palette – zelená, dřevo, krém */
  --color-bg: #faf6f0;
  --color-bg-alt: #f0ebe3;
  --color-bg-dark: #2d4a3e;
  --color-text: #3d3d3d;
  --color-text-muted: #5c5c5c;
  --color-accent: #5a9a5a;
  --color-accent-hover: #4a854a;
  --color-border: #c4b5a0;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

/* Načítací efekt při scrollu */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(8) { transition-delay: 0.56s; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Subtle grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.028;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h2, h3, h4 {
  text-wrap: balance;
}

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 24px rgba(45, 74, 62, 0.1);
  border-bottom-color: transparent;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
}

.logo-accent {
  color: var(--color-accent);
}

.logo:hover {
  color: var(--color-text);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-menu a {
  position: relative;
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

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

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

.nav-menu a.active {
  color: var(--color-text);
}

.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -4px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.nav-toggle:hover {
  background: rgba(90, 154, 90, 0.07);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Burger → X animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 20, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: white;
}

@keyframes arrow-slide-in {
  0%   { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.22s ease, margin-left 0.22s ease;
  margin-left: 0;
}

.btn-primary:hover .btn-arrow {
  max-width: 24px;
  margin-left: 7px;
  overflow: visible;
  animation: arrow-slide-in 0.25s ease forwards;
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Button press feedback */
.btn:active {
  transform: scale(0.97) translateY(1px);
  transition-duration: 0.06s;
}

/* Accessible focus ring */
.btn:focus-visible,
.nav-menu a:focus-visible,
.gallery-item:focus-visible,
.service-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section */
.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 28, 20, 0.88) 0%, rgba(15, 28, 20, 0.45) 55%, rgba(15, 28, 20, 0.08) 100%),
    linear-gradient(to right, rgba(15, 28, 20, 0.55) 0%, transparent 65%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  left: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 35%;
  background: var(--color-accent);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-2xl) var(--space-xl);
  padding-left: calc(var(--space-xl) + 16px);
  max-width: 680px;
  margin-left: var(--space-xl);
  margin-bottom: var(--space-2xl);
}


.hero-title {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: white;
  margin-bottom: var(--space-md);
}

.line-wrapper {
  display: block;
  overflow: hidden;
}

.line-wrapper .line {
  display: block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.hero .btn-secondary:hover {
  background: white;
  border-color: white;
  color: var(--color-text);
}

@keyframes house-bounce-in {
  0%   { opacity: 0; transform: translateY(6px) scale(0.4); }
  55%  { opacity: 1; transform: translateY(-3px) scale(1.2); }
  80%  { transform: translateY(1px) scale(0.93); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.btn-house {
  display: inline-flex;
  align-items: center;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.22s ease, margin-left 0.22s ease;
  margin-left: 0;
}

.hero .btn-secondary:hover .btn-house {
  max-width: 24px;
  margin-left: 7px;
  overflow: visible;
  animation: house-bounce-in 0.4s ease forwards;
}

/* Hero map */
.hero-map {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(340px, 44%, 620px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-map-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1000 / 570;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: url(img/cz.svg);
  -webkit-mask-image: url(img/cz.svg);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.hero-map img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  filter: drop-shadow(0 4px 28px rgba(0,0,0,0.4));
}

.hero-map-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-map-label::before,
.hero-map-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero-map {
    display: none;
  }
}

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

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.gallery-item-large {
  grid-row: span 2;
  grid-column: span 2;
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(45, 74, 62, 0.9));
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

.gallery-all-link {
  margin-top: var(--space-lg);
  text-align: center;
}

.gallery-all-link a {
  font-weight: 600;
  color: var(--color-accent);
}

.gallery-all-link a:hover {
  text-decoration: underline;
}

/* Stats panel */
.stats-panel {
  padding: var(--space-xl) 0;
  background: var(--color-bg-dark);
  color: white;
}

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

.stat-item {
  text-align: left;
  padding: var(--space-lg) var(--space-xl);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:first-child {
  border-left: none;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Services - Co stavíme */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.service-card {
  display: block;
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  text-decoration: none;
  color: inherit;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(45, 74, 62, 0.13);
  background: white;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}

.service-card:hover .service-card-link {
  text-decoration: none;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-icon {
  color: var(--color-accent);
  transform: scale(1.1);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Proč j-mont */
.proc-j-mont {
  background: var(--color-bg-dark);
  color: var(--color-bg);
}

.proc-j-mont .section-title {
  color: white;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.reason-item {
  position: relative;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-accent);
}

.reason-number {
  position: absolute;
  left: calc(-1 * var(--space-lg) - 12px);
  top: -4px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.reason-item h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
  color: white;
}

.reason-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* Ceník */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.pricing-card {
  padding: var(--space-lg);
  border: 2px solid var(--color-border);
  background: white;
  transition: border-color var(--transition), transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45, 74, 62, 0.1);
}

/* Highlighted "Na klíč" tier */
.pricing-card--highlight {
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: white;
}

.pricing-card--highlight h3 {
  color: white;
}

.pricing-card--highlight .price-range {
  color: #8fd48f;
}

.pricing-card--highlight:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(45, 74, 62, 0.25);
}

.pricing-card--highlight .pricing-link {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-card--highlight .pricing-link:hover {
  color: white;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.price-range {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.pricing-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: var(--space-sm);
  transition: color var(--transition);
}

.pricing-link:hover {
  color: var(--color-accent-hover);
}

.price-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pricing-disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Tabular figures for numbers */
.price-range,
.calc-result-value,
.stat-number {
  font-variant-numeric: tabular-nums;
}


.calculator {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
}

.calculator-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.calculator-desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.calculator-controls {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.calc-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-field input,
.calc-field select {
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--color-border);
  background: white;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  appearance: none;
  transition: border-color var(--transition);
  min-width: 0;
  width: 100%;
}

/* Custom chevron for select */
.calc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5c5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 16px 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.calc-field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a9a5a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'/%3E%3C/svg%3E");
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.calculator-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border-left: 4px solid var(--color-accent);
  animation: fadeInUp 0.25s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.calc-result-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  width: 100%;
}

.calc-result-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.calc-result-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex: 1;
  min-width: 0;
}

.calc-cta {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .calculator {
    padding: var(--space-md);
  }

  .calculator-controls {
    grid-template-columns: 1fr;
  }

  .calculator-result {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .calc-result-value {
    font-size: 1.6rem;
  }

  .calc-result-note {
    flex: none;
    width: 100%;
  }

  .calc-cta {
    width: 100%;
    text-align: center;
  }
}

/* Proces */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-md);
}

.process-step {
  flex: 1;
  min-width: 180px;
  padding: var(--space-md) var(--space-sm);
  background: transparent;
  border: none;
  border-top: 2px solid var(--color-border);
  transition: border-top-color 0.25s ease;
}

.process-step:hover {
  border-top-color: var(--color-accent);
}

.step-icon {
  display: flex;
  align-items: center;
  width: 44px;
  height: 44px;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-sm);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.process-arrow {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  align-self: center;
}

@media (max-width: 768px) {
  .process-arrow {
    display: none;
  }
}

/* Reference */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial {
  padding: var(--space-lg);
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
}

.testimonial p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Kontakt */
.kontakt {
  padding-bottom: 0;
  background: var(--color-bg-alt);
}

.kontakt .section-intro {
  margin-bottom: var(--space-xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-card {
  padding: var(--space-lg);
  background: transparent;
  border: none;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.contact-name {
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.contact-details a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.contact-ic {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.contact-ic a {
  color: var(--color-text-muted);
}

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

.contact-map {
  margin-top: var(--space-xl);
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 300px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.contact-form-wrapper {
  background: white;
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(45, 74, 62, 0.06);
}

.form-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Podstránka - Technický standard */
.subpage-content {
  padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.back-link:hover {
  color: var(--color-accent);
}

.subpage-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.subpage-intro {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 700px;
}

.standard-section {
  margin-bottom: var(--space-xl);
}

.standard-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-border);
}

.standard-list {
  list-style: none;
  counter-reset: item;
}

.standard-list-continue {
  counter-reset: item 4;
}

.standard-list li {
  counter-increment: item;
  margin-bottom: var(--space-lg);
  padding-left: 3rem;
  position: relative;
}

.standard-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
}

.standard-list h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.standard-list p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.standard-list a {
  color: var(--color-accent);
  text-decoration: underline;
}

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

.gdpr-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.gdpr-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  line-height: 1.7;
}

.gdpr-list li:last-child {
  border-bottom: none;
}

.gdpr-date {
  margin-top: var(--space-lg);
  font-style: italic;
  color: var(--color-text-muted);
}

.standard-section-highlight {
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
}

.standard-section-highlight p {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.standard-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
}

/* Služby - detail podstránky */
.service-detail-section {
  margin-bottom: var(--space-xl);
}

.service-detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-border);
}

.service-detail-item {
  margin-bottom: var(--space-lg);
}

.service-detail-item h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.service-detail-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-benefits {
  list-style: none;
}

.service-benefits li {
  padding: var(--space-sm) 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.service-detail-section p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-detail-section a {
  color: var(--color-accent);
}

.service-detail-section a:hover {
  text-decoration: underline;
}

/* Realizace - stránka s projekty */
.realizace-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.realizace-card {
  padding: var(--space-lg);
  background: white;
  border: 2px solid var(--color-border);
  scroll-margin-top: 100px;
}

.realizace-card-content {
  margin-bottom: var(--space-lg);
}

.realizace-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.realizace-card h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.realizace-card p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Galerie obrázků v projektu */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.project-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--color-border);
  transition: border-color var(--transition), transform var(--transition);
}

.project-gallery img:hover {
  border-color: var(--color-accent);
  transform: scale(1.02);
}

.lightbox-ai-note {
  display: none;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-style: italic;
  margin: 0.5rem 0 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: white;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.lightbox-close:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 2.5rem;
  line-height: 1;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.lightbox-prev {
  left: var(--space-md);
}

.lightbox-next {
  right: var(--space-md);
}

.lightbox.single-image .lightbox-prev,
.lightbox.single-image .lightbox-next,
.lightbox.single-image .lightbox-counter {
  display: none;
}

.lightbox-counter {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

@media (max-width: 500px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-gallery img {
    height: 140px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
  }
}

.standard-cta {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-bg-dark);
  color: white;
  text-align: center;
}

.standard-cta h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: white;
}

.standard-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.standard-cta .btn-secondary {
  border-color: white;
  color: white;
}

.standard-cta .btn-secondary:hover {
  background: white;
  color: var(--color-bg-dark);
}

/* V kostce */
.v-kostce {
  padding: var(--space-xl) 0;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
}

.v-kostce-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-lg);
}

.v-kostce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
  margin: 0;
}

.vk-item dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.vk-item dd {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

.vk-item dd a {
  color: rgba(255, 255, 255, 0.85);
}

.vk-item dd a:hover {
  color: var(--color-accent);
}

/* ============================================
   Footer — Industrial
   ============================================ */

.footer {
  background: #111210;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid texture */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Green accent line + ruler ticks at top */
.footer-ruler {
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #3d7a4a 100%);
  position: relative;
  flex-shrink: 0;
}

.footer-ruler::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0px,
    var(--color-accent) 1px,
    transparent 1px,
    transparent 48px
  );
  opacity: 0.25;
}

/* Main footer body */
.footer-inner {
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

/* Large watermark text */
.footer-inner::before {
  content: 'J—MONT';
  position: absolute;
  bottom: var(--space-lg);
  right: -0.02em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 13rem);
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Brand column */
.footer-logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  display: block;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  font-size: 0.85rem;
}

/* Column headings */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(90, 154, 90, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* Nav / service links */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}

/* Contact list */
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Bottom bar */
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: var(--space-md) 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}


/* Mobile */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: calc(80px + var(--space-lg)) var(--space-lg) var(--space-lg);
    border-left: 2px solid var(--color-border);
    transition: right 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-overlay {
    display: block;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-menu a {
    padding: 0.9rem 0.75rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu li:last-child a {
    border-bottom: none;
  }

  .nav-menu a::after {
    display: none;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .gallery-item-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-left: 0;
    margin-bottom: var(--space-xl);
    padding-left: calc(var(--space-md) + 16px);
    padding-right: var(--space-md);
  }

  .hero::before {
    left: var(--space-md);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

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

  .stat-item {
    padding: var(--space-md) var(--space-lg);
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .stat-item {
    padding: var(--space-md) var(--space-md);
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
  }

  .gallery-item-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-inner::before {
    font-size: 4rem;
    bottom: var(--space-sm);
  }
}

/* ============================================
   Cookie consent banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + var(--space-md)));
  z-index: 9999;
  width: calc(100% - 2 * var(--space-md));
  max-width: 780px;
  background: var(--color-bg-dark);
  color: white;
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.cookie-visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cookie-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.cookie-text a {
  color: #a8d4a8;
  text-decoration: underline;
}

.cookie-text a:hover {
  color: white;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.cookie-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.6rem 0.5rem;
  transition: color var(--transition);
  white-space: nowrap;
}

.cookie-dismiss:hover {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: translateY(calc(100% + 2px));
    padding: var(--space-md);
  }

  .cookie-banner.cookie-visible {
    transform: translateX(0) translateY(0);
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ============================================
   GDPR checkbox in contact form
   ============================================ */

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: var(--space-xs);
}

.form-group-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-group-checkbox label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.5;
  margin: 0;
}

.form-group-checkbox label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-group-checkbox label a:hover {
  color: var(--color-accent-hover);
}
