/* =============================
   GLOBAL
============================= */
:root {
  --nav-h: 72px;
  --hero-offset: clamp(18px, 3vh, 42px);
  --ease-out: cubic-bezier(.22,.61,.36,1);

  --hero-pad: clamp(16px, 2.2vw, 36px);
  --hero-gap: clamp(18px, 3vw, 44px);
  --copy-top: clamp(10px, 2.2vh, 26px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Vend Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  overflow-x: hidden;
}

/* =============================
   HERO
============================= */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding-top: calc(var(--nav-h) + var(--hero-offset));
  display: flex;
  justify-content: center;
  overflow: hidden;
  color: #000;
}

/* =============================
   BACKGROUND
============================= */
.hero__bg-box {
  position: absolute;
  top: var(--hero-pad);
  bottom: var(--hero-pad);
  left: 50%;
  width: 96%;
  max-width: 1700px;
  background: #fff;
  border-radius: 40px;
  z-index: 1;

  opacity: 0;
  transform: translateX(-50%) scale(0.95);
  animation: bgIn 0.9s var(--ease-out) forwards;
}

@keyframes bgIn {
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* =============================
   INNER
============================= */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1500px;

  padding: var(--hero-pad) clamp(18px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap);

  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  justify-content: center;
  align-items: center;
}

/* =============================
   COPY
============================= */
.hero__copy {
  width: 100%;
  max-width: 720px;
  flex: 0 1 720px;

  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);

  opacity: 0;
  transform: translateX(-60px);
  animation: copyIn 1s var(--ease-out) forwards;
  animation-delay: 0.3s;

  z-index: 5;
  margin-top: var(--copy-top);
}

@keyframes copyIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =============================
   IMAGE
============================= */
.hero__image-wrap {
  position: relative;
  flex: 0 1 820px;
  min-width: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  max-height: calc(100vh - var(--nav-h) - (var(--hero-pad) * 2));
  max-height: calc(100svh - var(--nav-h) - (var(--hero-pad) * 2));

  border-radius: 48px;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;

  max-height: calc(100vh - var(--nav-h) - (var(--hero-pad) * 2));
  max-height: calc(100svh - var(--nav-h) - (var(--hero-pad) * 2));

  border-radius: inherit;
  object-fit: cover;
  display: block;

  opacity: 0;
  transform: translateX(60px) scale(0.97);
  animation: imageIn 1s var(--ease-out) forwards;
  animation-delay: 0.45s;

  mask-image: none;
}

@keyframes imageIn {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* =============================
   IMAGE LOGO
============================= */
.hero__image-logo {
  position: absolute;
  right: clamp(10px, 1.2vw, 18px);
  bottom: clamp(10px, 1.2vw, 18px);
  width: clamp(56px, 16%, 130px);
  padding: clamp(6px, 1.2vw, 10px);
}

/* =============================
   TEXT
============================= */
.hero__title {
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  font-weight: 700;
  line-height: 1.05;

  padding-top: clamp(12px, 1.4vw, 20px);
  padding-bottom: clamp(12px, 1.4vw, 20px);
  padding-right: clamp(18px, 2.2vw, 38px);
  padding-left: 0;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 26px;
}

.hero__desc {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  opacity: 0.95;
  max-width: 620px;
}

/* =============================
   CTAS
============================= */
.hero__ctas {
  display: flex;
  gap: 1.6rem;

  opacity: 0;
  transform: translateY(30px);
  animation: ctaIn 0.8s var(--ease-out) forwards;
  animation-delay: 0.85s;
}

@keyframes ctaIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   BUTTONS
============================= */
.btn {
  padding: 1.45rem 3rem;
  border-radius: 22px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: .25s ease;
  transition-property: background, transform, box-shadow;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--primary {
  background: #000;
  color: #fff;
}

.btn--primary:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.2);
}

.btn--call {
  background: #e6e6e6;
  color: #000;
}

/* =============================
   TABLET + MOBILE
============================= */
@media (max-width: 1399px) {
  .hero {
    padding-top: calc(var(--nav-h) + var(--hero-offset));
  }

  .hero__inner {
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .hero__copy {
    align-items: center;
    margin-top: var(--copy-top);
  }

  .hero__title {
    font-size: clamp(4rem, 10vw, 6rem);
    margin: 0;
  }

  .hero__desc {
    text-align: center;
    margin: 0 auto;
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}

/* =============================
   MOBILE FIX (gap / mezera mezi copy a obrazkem)
============================= */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--nav-h) + 48px);
  }

  .hero__inner {
    gap: 18px;
  }

  .hero__copy,
  .hero__image-wrap {
    flex: 0 0 auto;
  }

  .hero__copy {
    margin-top: 0;
    gap: 14px;
  }
}

/* =============================
   DESKTOP
============================= */
@media (min-width: 1400px) {
  .hero__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(18px, 2.6vw, 40px);
  }

  .hero__title {
    max-width: 620px;
  }

  .hero__desc {
    font-size: 1.8rem;
  }
}

/* =============================
   REDUCED MOTION
============================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
