/* ============================================
   PROJECT UP — Main Stylesheet
   Color Palette (3 lighter tones from logo manual):
   - Medium Brown:   #964621  (primary)
   - Copper:         #CB7040  (accent)
   - Warm Tan:       #BE9577  (light accent)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #964621;
  --color-primary-light: #A85228;
  --color-copper: #CB7040;
  --color-brown: #964621;
  --color-tan: #BE9577;
  --color-beige: #D4B8A0;
  --color-gray: #C9C5C2;
  --color-light: #FBF8F5;
  --color-white: #FFFFFF;
  --color-dark: #3B2418;
  --color-text: #4A3328;
  --color-text-light: #8A7568;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1200px;
  --container-wide: 1400px;
  --section-padding: 100px;
  --header-height: 80px;

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

.text-accent {
  color: var(--color-primary);
}

.text-sage {
  color: var(--color-copper);
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--section-padding) 0;
}

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

.section--green {
  background-color: var(--color-tan);
  color: var(--color-white);
}

/* --- Vrstevnice (topographic pattern) decoration --- */
.vrstevnice {
  position: relative;
  overflow: hidden;
}

.vrstevnice::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: 500px;
  height: 700px;
  background: url('../images/vrstevnice.png') no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

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

/* Left-aligned variant */
.vrstevnice--left::before {
  right: auto;
  left: -8%;
}

/* For colored sections — white lines */
.section--green.vrstevnice::before {
  filter: invert(1);
  opacity: 0.06;
}

/* Bottom-right decorative version */
.vrstevnice--bottom::before {
  top: auto;
  bottom: -15%;
  right: -5%;
  transform: rotate(-20deg);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section--green .section-header p {
  color: rgba(255,255,255,0.8);
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: 12px;
}

.section--green .label {
  color: var(--color-tan);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--arrow::after {
  content: '\2192';
  transition: transform var(--transition-base);
}

.btn--arrow:hover::after {
  transform: translateX(4px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
}

.header--transparent {
  background: transparent;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}


.header--scrolled .nav-link {
  color: var(--color-dark);
}

.header--scrolled .nav-link:hover,
.header--scrolled .nav-link--active {
  color: var(--color-primary);
}

.header--scrolled .hamburger span {
  background-color: var(--color-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav-logo-img {
  height: 72px;
  width: auto;
  transition: opacity var(--transition-base);
}

.nav-logo-color {
  display: none;
}

.header--scrolled .nav-logo-white {
  display: none;
}

.header--scrolled .nav-logo-color {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-copper);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all var(--transition-base);
}

.hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger--active span:nth-child(2) {
  opacity: 0;
}

.hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-primary);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.mobile-nav--open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  color: var(--color-white);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-logo {
  margin-bottom: 4px;
}

.hero-logo-img {
  height: 400px;
  width: auto;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--color-tan);
  border-radius: 4px;
  z-index: -1;
}

.about-image--small {
  max-width: 40%;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.about-name {
  font-weight: 600;
  color: var(--color-dark);
  margin-top: 24px;
  margin-bottom: 4px;
  font-size: 1.0625rem;
}

.about-role {
  font-size: 0.875rem;
  color: var(--color-copper);
  font-weight: 500;
}

/* --- Values/Services Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-primary);
  border-radius: 4px;
  border: 1px solid var(--color-primary);
  transition: all var(--transition-base);
}

.value-card:hover {
  background: var(--color-primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-tan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  background: var(--color-white);
  border-radius: 4px;
  border: 1px solid var(--color-gray);
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-copper);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(150, 70, 33, 0.85) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 600;
}

.gallery-cta {
  text-align: center;
  margin-top: 48px;
}

/* --- Partners Section --- */
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.partner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: all var(--transition-base);
}

.partner-link:hover {
  transform: scale(1.05);
}

.partner-link img {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
  /* Make logos dark and bold on light background */
  filter: brightness(0) saturate(100%);
}

.partner-link:hover img {
  filter: brightness(0) saturate(100%) invert(15%) sepia(60%) saturate(1200%) hue-rotate(350deg) brightness(80%) contrast(95%);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-detail-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail a {
  color: var(--color-primary);
  font-weight: 500;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-dark);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-dark);
  transition: border-color var(--transition-base);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(203, 112, 64, 0.15);
}

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

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

.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(150, 70, 33, 0.08);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
  font-weight: 500;
  text-align: center;
}

.form-success--visible {
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-copper);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

/* --- Projects Page --- */
.page-hero {
  padding: 160px 0 80px;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

/* Project Filters */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
  border: 1px solid var(--color-gray);
  border-radius: 4px;
  transition: all var(--transition-base);
}

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

/* Project Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  transition: all var(--transition-base);
  cursor: pointer;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
}

.project-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-image-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.project-card-body {
  padding: 20px 24px;
}

.project-card-body h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  transition: color var(--transition-base);
}

.project-card:hover .project-card-body h3 {
  color: var(--color-primary);
}

.project-card-body p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.project-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-light);
  color: var(--color-copper);
  border-radius: 3px;
  margin-bottom: 10px;
}

/* Project Detail Expanded */
.project-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  overflow-y: auto;
}

.project-detail--open {
  display: block;
}

.project-detail-header {
  position: sticky;
  top: 0;
  z-index: 2001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
}

.project-detail-title {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 600;
}

.project-detail-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: background var(--transition-base);
}

.project-detail-close:hover {
  background: rgba(255,255,255,0.15);
}

.project-detail-gallery {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  gap: 16px;
}

.project-detail-gallery img {
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox--open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: opacity var(--transition-base);
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all var(--transition-base);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about-grid {
    gap: 48px;
  }

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

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

  .contact-grid {
    gap: 48px;
  }

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

  .partners-row {
    gap: 48px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --header-height: 64px;
  }

  .vrstevnice::before {
    width: 300px;
    height: 420px;
    opacity: 0.03;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .hero-logo-img {
    height: 275px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .about-image--small {
    max-width: 160px;
  }

  .about-image::after {
    top: 12px;
    left: 12px;
    right: -12px;
    bottom: -12px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-card {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
  }

  .value-icon {
    margin: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .partners-row {
    gap: 32px;
  }

  .partner-link img {
    max-height: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .project-detail-header {
    padding: 16px 20px;
  }

  .project-detail-gallery {
    padding: 20px 16px 60px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

  .project-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }
}

/* ─── Footer Legal / Cookie ─────────────────────────────────────────────── */
.footer-bottom {
  flex-wrap: wrap;
  gap: 8px 16px;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: .8rem;
}
.footer-legal a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.footer-legal a:hover { color: #CAAC85; }
.footer-legal span[aria-hidden] { color: rgba(255,255,255,.3); }
.footer-cookie-btn {
  background:  transparent;
  border:      none;
  padding:     0;
  cursor:      pointer;
  color:       rgba(255,255,255,.55);
  font-size:   .8rem;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition:  color .2s;
}
.footer-cookie-btn:hover { color: #CAAC85; }

/* ─── Privacy Policy Page ───────────────────────────────────────────────── */
.privacy-policy { background: #faf8f6; }
.privacy-content h2 {
  font-size:     1.15rem;
  color:         #3B5438;
  margin:        2rem 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e4dfd9;
}
.privacy-content h3 {
  font-size:  1rem;
  color:      #3B5438;
  margin:     1.4rem 0 .4rem;
  font-weight: 600;
}
.privacy-content p,
.privacy-content li { font-size: .9rem; line-height: 1.7; color: #3a3530; }
.privacy-content ul  { padding-left: 1.4rem; margin: .5rem 0 1rem; }
.privacy-content li  { margin-bottom: .35rem; }
.privacy-content code {
  font-size:   .8em;
  background:  #edeae6;
  padding:     1px 5px;
  border-radius: 3px;
  color:       #3B5438;
  font-family: 'Courier New', monospace;
}
.privacy-content a { color: #3B5438; text-decoration: underline; text-underline-offset: 2px; }
.privacy-content a:hover { color: #CAAC85; }

.privacy-table-wrap { overflow-x: auto; margin: .75rem 0 1rem; }
.privacy-table {
  width:           100%;
  border-collapse: collapse;
  font-size:       .82rem;
  background:      #fff;
  border-radius:   6px;
  overflow:        hidden;
  box-shadow:      0 1px 4px rgba(0,0,0,.07);
}
.privacy-table th {
  background:  #3B5438;
  color:       #F5F0E8;
  padding:     9px 12px;
  text-align:  left;
  font-weight: 600;
  font-size:   .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.privacy-table td {
  padding:       8px 12px;
  border-bottom: 1px solid #ede9e4;
  color:         #3a3530;
  vertical-align: top;
}
.privacy-table tr:last-child td { border-bottom: none; }
.privacy-table tr:nth-child(even) td { background: #faf7f4; }

.privacy-divider {
  border:     none;
  border-top: 1px solid #e4dfd9;
  margin:     2.5rem 0 1.5rem;
}
.cookie-settings-inline-btn {
  background:  transparent;
  border:      1px solid #CAAC85;
  color:       #87968D;
  padding:     5px 14px;
  border-radius: 4px;
  cursor:      pointer;
  font-size:   .82rem;
  font-family: inherit;
  transition:  background .2s, color .2s;
}
.cookie-settings-inline-btn:hover {
  background: #3B5438;
  color:      #F5F0E8;
  border-color: #3B5438;
}
