/* ==================================================================
   Variables
   ================================================================== */
:root {
  /* Color Palette - Elegant Light, Cream, Gold, Neutral Grays */
  --color-bg: #faf7f2; /* hlavní krémové pozadí */
  --color-bg-soft: #f3ece2; /* jemné béžové bloky */
  --color-bg-elevated: #ffffff; /* karty, panely */

  --color-text: #2b2722; /* primární text, teplá tmavá */
  --color-text-soft: #6f665b; /* sekundární text */
  --color-text-muted: #9b9186; /* placeholdery, drobný text */

  --color-primary: #c69d57; /* zlatý akcent */
  --color-primary-soft: rgba(198, 157, 87, 0.12);
  --color-primary-strong: #b48633;

  --color-success: #3b7c4b;
  --color-warning: #b98a2e;
  --color-danger: #b34a3a;

  --color-border-subtle: #e4ddd3;
  --color-border-soft: #d8cec0;
  --color-border-strong: #b9a991;

  --color-gray-50: #fbf8f4;
  --color-gray-100: #f3ece2;
  --color-gray-200: #e4ddd3;
  --color-gray-300: #d3c8ba;
  --color-gray-400: #b9a991;
  --color-gray-500: #9b9186;
  --color-gray-600: #7c7369;
  --color-gray-700: #5a5249;
  --color-gray-800: #3c352e;
  --color-gray-900: #241f1a;

  /* Typography */
  --font-family-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --font-family-serif: "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
  --font-family-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-md: 1.0625rem;/* 17px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem;  /* 20px */
  --font-size-2xl: 1.5rem;  /* 24px */
  --font-size-3xl: 2rem;    /* 32px */
  --font-size-4xl: 2.5rem;  /* 40px */
  --font-size-5xl: 3rem;    /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing Scale (0–96px in 4px steps) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Shadows – jemné, luxusní */
  --shadow-soft: 0 8px 24px rgba(26, 20, 12, 0.06);
  --shadow-medium: 0 18px 45px rgba(26, 20, 12, 0.09);
  --shadow-strong: 0 28px 80px rgba(26, 20, 12, 0.14);

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

  /* Layout */
  --container-max-width: 1120px;
  --container-padding-x: 1.25rem;
}

@media (min-width: 768px) {
  :root {
    --font-size-3xl: 2.25rem; /* 36px */
    --font-size-4xl: 2.75rem; /* 44px */
    --font-size-5xl: 3.25rem; /* 52px */
    --container-padding-x: 1.75rem;
  }
}

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

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

body {
  margin: 0;
}

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

ul[role='list'],
ol[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ==================================================================
   Base Styles
   ================================================================== */
body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg);
  color: var(--color-text);
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

h6 {
  font-size: var(--font-size-base);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-soft);
}

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

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--font-size-xs);
}

a {
  position: relative;
  transition: color var(--transition-base);
}

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

a[href] {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* subtle underline on hover */
a[href]:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

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

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

::selection {
  background: rgba(198, 157, 87, 0.18);
  color: var(--color-text);
}

/* ==================================================================
   Accessibility & Motion
   ================================================================== */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

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

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

/* ==================================================================
   Layout Utilities
   ================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.section {
  padding-block: var(--space-12);
}

.section--tighter {
  padding-block: var(--space-8);
}

.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

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

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

.section__heading {
  margin-bottom: var(--space-6);
}

.section__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* Flex utilities */
.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-column {
  display: flex;
  flex-direction: column;
}

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

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-2 {
  display: grid;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  gap: var(--space-6);
}

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

/* Alignment & spacing helpers */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.mx-auto { margin-inline: auto; }

/* Width helpers */
.w-full { width: 100%; }

/* ==================================================================
   Components – Buttons, Inputs, Cards
   ================================================================== */
/* Button base */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-strong);
  --btn-color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1.5rem;
  padding-block: 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-color: var(--btn-bg);
  color: var(--btn-color);
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
  box-shadow: 0 10px 30px rgba(198, 157, 87, 0.2);
}

.btn:hover {
  background-color: var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(198, 157, 87, 0.26);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(198, 157, 87, 0.2);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-strong);
  outline-offset: 3px;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(198, 157, 87, 0.06);
  --btn-color: var(--color-text);

  border-color: var(--color-border-soft);
  box-shadow: none;
}

.btn--ghost:hover {
  box-shadow: var(--shadow-soft);
}

.btn--secondary {
  --btn-bg: #ffffff;
  --btn-bg-hover: #f7f3eb;
  --btn-color: var(--color-text);

  border-color: var(--color-border-soft);
  box-shadow: var(--shadow-soft);
}

.btn--sm {
  padding-inline: 1.1rem;
  padding-block: 0.55rem;
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding-inline: 2rem;
  padding-block: 0.9rem;
  font-size: var(--font-size-sm);
}

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

/* Sticky CTA (e.g., Nezávazná Poptávka) */
.sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
}

@media (min-width: 768px) {
  .sticky-cta {
    right: 2rem;
    bottom: 2rem;
  }
}

/* Form Elements */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field__label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.field__hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='search'],
input[type='url'],
input[type='number'],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-soft);
  background-color: #ffffff;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

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

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(198, 157, 87, 0.6);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

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

.field--error input,
.field--error textarea,
.field--error select {
  border-color: var(--color-danger);
}

.field--error .field__hint {
  color: var(--color-danger);
}

/* Card Component */
.card {
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(222, 206, 184, 0.7);
  padding: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.card--soft {
  background: linear-gradient(145deg, #ffffff, #f8f1e8);
}

.card--muted {
  background-color: #f7f2ea;
  border-style: dashed;
  border-color: rgba(185, 169, 145, 0.6);
}

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

.card__title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

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

.card__body {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

/* Statistic / Highlight Badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(198, 157, 87, 0.35);
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--color-text-soft);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Hero image wrapper for large photography */
.hero-media {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background-color: #000;
}

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

/* Timeline list base */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--color-border-subtle);
}

.timeline__item {
  position: relative;
  padding-left: var(--space-6);
  padding-bottom: var(--space-4);
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -0.38rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--color-primary));
  box-shadow: 0 0 0 3px rgba(198, 157, 87, 0.18);
}

/* Masonry-like gallery helper (for JS/plugin integration) */
.gallery-masonry {
  column-count: 1;
  column-gap: var(--space-4);
}

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

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

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

/* Carousel base hook (for testimonials) */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: var(--space-4);
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.carousel__slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .carousel__slide {
    flex-basis: 50%;
  }
}

/* FAQ base */
.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
  padding-block: var(--space-4);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  font-size: var(--font-size-md);
}

.faq-item__answer {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

/* Statistic cards */
.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

.stat__label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Footer base */
.site-footer {
  background-color: #161310;
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--space-10);
  font-size: var(--font-size-sm);
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: #f7e4bf;
}

.site-footer__disclaimer {
  margin-top: var(--space-6);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--line-height-relaxed);
}
