/* Shared header + footer styles for all pages */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
nav.on-dark {
  background: rgba(26, 26, 26, 0.34);
  border-bottom-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
}
.nav-logo { justify-self: start; }
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  filter: none;
  transition: filter 0.4s ease;
}
nav.on-dark .nav-logo img { filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  justify-self: center;
}
.nav-links a {
  font-family: var(--sans, "DM Sans", system-ui, sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent, var(--wine));
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
nav.on-dark .nav-links a { color: rgba(255, 255, 255, 0.88); }
nav.on-dark .nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
}
.nav-cta {
  font-family: var(--sans, "DM Sans", system-ui, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border: 1px solid rgba(26, 26, 26, 0.18);
  padding: 9px 22px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.nav-cta:hover {
  background: rgba(26, 26, 26, 0.04);
  border-color: rgba(26, 26, 26, 0.3);
}
nav.on-dark .nav-cta {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
}
nav.on-dark .nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
}
.mobile-menu {
  position: fixed;
  top: 72px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  padding-top: 0;
  background: rgba(26, 26, 26, 0.45);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  display: block;
  padding: 18px clamp(20px, 5vw, 60px);
  font-family: var(--sans, "DM Sans", system-ui, sans-serif);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius);
  margin-left: 12px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
  border-radius: var(--radius);
}
nav.on-dark .hamburger span { background: rgba(255, 255, 255, 0.85); }

footer {
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 0 20px;
}
.global-cta {
  padding: 88px 0;
  background: #580218;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.global-cta::before {
  content: "Spolupráce";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(80px, 18vw, 200px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.global-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.global-cta-label {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin: 0;
}
.global-cta h2 {
  margin-top: 12px;
  margin-bottom: 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.1;
  font-weight: 400;
}
.global-cta p {
  max-width: 460px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.86);
}
.global-cta-email {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 34px;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
}
.global-cta-email:hover {
  border-bottom-color: #fff;
}
.global-cta-contact {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.global-cta-contact-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.global-cta-contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.global-cta-contact-value {
  color: #fff;
  font-size: 1.05rem;
}
.global-cta .availability-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(150px, 1fr) minmax(220px, 1fr);
  gap: clamp(28px, 4vw, 84px);
  align-items: start;
  width: 100%;
}
.footer-col h4 {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 14px;
}
.footer-logo img {
  height: 42px;
  width: auto;
  filter: invert(1) brightness(0.9);
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.footer-logo img:hover { opacity: 1; }
.footer-brand-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 12px;
  max-width: 420px;
}
.footer-top .footer-col:nth-child(2) { justify-self: center; }
.footer-top .footer-col:nth-child(3) { justify-self: end; text-align: left; }
.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
}
.footer-links a {
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.66);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.95); }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.footer-social a:hover {
  color: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.45);
}
.footer-social svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.footer-email {
  margin-top: 12px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-email:hover { color: #fff; }
.cta-contact-value.availability-status {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95);
  -webkit-animation: availabilityPulse 1.15s ease-in-out infinite;
  animation: availabilityPulse 1.15s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity, box-shadow;
  flex: 0 0 auto;
}
@-webkit-keyframes availabilityPulse {
  0%, 100% {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95);
  }
  50% {
    opacity: 0.15;
    -webkit-transform: scale(0.48);
    transform: scale(0.48);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
}
@keyframes availabilityPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95);
  }
  50% {
    opacity: 0.15;
    transform: scale(0.48);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 12px;
}
.footer-copy {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.03em;
  font-weight: 300;
  margin: 0;
}
.footer-credit {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin: 0;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 0 14px;
  }
  .nav-logo img {
    height: 24px;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }
  .hamburger {
    margin-left: 4px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .footer-top .footer-col { justify-self: center; text-align: center; }
  .footer-top .footer-col:nth-child(2),
  .footer-top .footer-col:nth-child(3) { justify-self: center; }
  .footer-top .footer-col:nth-child(2),
  .footer-top .footer-col:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-links { justify-items: center; }
  .footer-social { justify-content: center; }
  .footer-email { text-align: center; }
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-credit { text-align: center; }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}
