/* =====================================================================
   Variables
   ===================================================================== */
:root {
  /* Colors */
  --color-bg: #f9fafb; /* overall page background */
  --color-bg-elevated: #ffffff;
  --color-bg-muted: #f3f4f6; /* light gray sections */
  --color-bg-contrast: #e5e7eb; /* concrete-like blocks */

  --color-text: #111827; /* near black */
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --color-primary: #111827; /* subtle black accent */
  --color-primary-soft: #4b5563;
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px) */
  --space-0: 0;
  --space-4: 0.25rem;  /* 4px */
  --space-8: 0.5rem;   /* 8px */
  --space-12: 0.75rem; /* 12px */
  --space-16: 1rem;    /* 16px */
  --space-20: 1.25rem; /* 20px */
  --space-24: 1.5rem;  /* 24px */
  --space-32: 2rem;    /* 32px */
  --space-40: 2.5rem;  /* 40px */
  --space-48: 3rem;    /* 48px */
  --space-56: 3.5rem;  /* 56px */
  --space-64: 4rem;    /* 64px */
  --space-80: 5rem;    /* 80px */
  --space-96: 6rem;    /* 96px */

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Shadows - loft, soft architectural feel */
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 220ms ease-out;
  --transition-slow: 300ms ease-out;
}

/* =====================================================================
   Reset / Normalize
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video,
canvas,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border-radius: 0;
}

button {
  border: none;
  padding: 0;
  cursor: pointer;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

/* =====================================================================
   Base
   ===================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-24);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-20);
}

h3 {
  font-size: 1.5rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-16);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-12);
}

p {
  margin-bottom: var(--space-16);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

a:hover {
  color: var(--color-primary-soft);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-32) 0;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

/* =====================================================================
   Accessibility & Motion
   ===================================================================== */
:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =====================================================================
   Layout Utilities
   ===================================================================== */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
  max-width: 1120px; /* loft, not too wide */
}

.section {
  padding-top: var(--space-48);
  padding-bottom: var(--space-48);
}

.section--spacious {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

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

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

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.gap-24 {
  gap: var(--space-24);
}

.gap-32 {
  gap: var(--space-32);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24);
}

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

/* Alignment & spacing utilities (limited set) */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-24 {
  margin-top: var(--space-24);
}

.mt-32 {
  margin-top: var(--space-32);
}

.mb-24 {
  margin-bottom: var(--space-24);
}

.mb-32 {
  margin-bottom: var(--space-32);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Screen-reader only */
.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;
}

/* =====================================================================
   Components
   ===================================================================== */
/* Buttons - geometric, minimalist */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-900);
  background-color: var(--gray-900);
  color: #ffffff;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn:hover {
  background-color: #020617;
  border-color: #020617;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--ghost {
  background-color: transparent;
  color: #9ca3af;
  border-color: var(--gray-300);
}

.btn--ghost:hover {
  background-color: var(--gray-900);
  color: #ffffff;
}

.btn--light {
  background-color: #ffffff;
  color: var(--gray-900);
  border-color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn--light:hover {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
}

/* Sticky CTA (e.g. Nezávazná poptávka) */
.cta-sticky {
  position: fixed;
  right: var(--space-16);
  bottom: var(--space-16);
  z-index: 40;
}

@media (min-width: 768px) {
  .cta-sticky {
    right: var(--space-32);
    bottom: var(--space-32);
  }
}

/* Form controls */
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px #0ea5e9;
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  background-color: var(--gray-100);
  cursor: not-allowed;
  opacity: 0.7;
}

label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.form-row {
  display: grid;
  gap: var(--space-16);
}

@media (min-width: 768px) {
  .form-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Cards - light, loft, with subtle concrete option */
.card {
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: var(--shadow-soft);
  padding: var(--space-24);
}

.card--muted {
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
  box-shadow: none;
  border-radius: var(--radius-lg);
}

.card__header {
  margin-bottom: var(--space-16);
}

.card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-8);
}

.card__meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

/* Hero - fullscreen slider base styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background-color: #000;
  color: #ffffff;
}

.hero__slide {
  position: relative;
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-32) var(--space-16);
}

.hero__media {
  position: absolute;
  width: 100%;
  overflow: hidden;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.85));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin-bottom: var(--space-12);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-16);
  color: #fff;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: #e5e7eb;
  margin-bottom: var(--space-24);
}

/* Loft timeline / statistics helpers */
.timeline {
  position: relative;
  padding-left: var(--space-24);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(148, 163, 184, 0.4), rgba(148, 163, 184, 0.1));
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-24);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.7);
  background-color: #ffffff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
}

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

.stat {
  padding: var(--space-16) 0;
}

.stat__value {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.stat__label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

/* Masonry gallery scaffold */
.gallery-masonry {
  column-count: 1;
  column-gap: var(--space-16);
}

.gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: var(--space-16);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-masonry__item img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

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

@media (min-width: 640px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry {
    column-count: 3;
  }
}

/* Testimonials carousel scaffold */
.testimonials {
  position: relative;
}

.testimonials__track {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.testimonial {
  min-width: 100%;
  padding: var(--space-24);
}

/* Header & Footer basics */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background-color: rgba(249, 250, 251, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.nav__link {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background-color: var(--gray-900);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav__link:hover {
  color: var(--gray-900);
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

.site-footer {
  background-color: #f9fafb;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-32);
  padding-bottom: var(--space-24);
  color: var(--color-text-muted);
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
}

@media (min-width: 768px) {
  .site-footer__columns {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.site-footer__title {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.site-footer__link {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.site-footer__disclaimer {
  margin-top: var(--space-24);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-relaxed);
  color: var(--gray-500);
}