/* ============================================================
   CozyPaws — hero koncept
   Ukázkový koncept · Cina Digital
   ============================================================ */

:root {
  --bg: #EFFDF0;
  --green: #1a3d1a;
  --green-hover: #2a5a2a;
  --orange: #E86A10;
  --orange-hover: #d45e0d;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
a { color: inherit; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-serif-display { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }

/* ---------- Kostra stránky: výška viewportu, bez scrollu ---------- */
.page {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============================================================
   HLAVIČKA
   ============================================================ */
.site-header {
  flex-shrink: 0;
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}
@media (min-width: 1024px) {
  .site-header { padding: 16px 48px; }
}

.logo { display: inline-flex; align-items: center; }
.logo img { width: 130px; height: 33px; object-fit: contain; object-position: left center; }
@media (min-width: 1024px) {
  .logo img { width: 205px; height: 52px; }
}

.main-nav { display: none; }
@media (min-width: 768px) {
  .main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
  }
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color .2s ease;
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--gray-900); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.icon-btn svg { width: 19px; height: 19px; }

.icon-btn--ghost {
  border: 1px solid rgba(26, 61, 26, .18);
  color: var(--green);
  background: transparent;
}
.icon-btn--ghost:hover { background: rgba(26, 61, 26, .06); border-color: rgba(26, 61, 26, .35); }

.icon-btn--orange {
  background: var(--orange);
  color: #fff;
}
.icon-btn--orange:hover { background: var(--orange-hover); }

.search-btn { display: none; }
@media (min-width: 640px) { .search-btn { display: inline-flex; } }

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--orange);
  border: 2px solid var(--bg);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow .2s ease;
}
.avatar-btn:hover { box-shadow: 0 0 0 3px rgba(232, 106, 16, .35); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   HERO — společné
   ============================================================ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ============================================================
   HERO — desktop / tablet (md a výš)
   ============================================================ */
.hero-desktop { display: none; }
@media (min-width: 768px) {
  .hero-desktop { display: block; position: relative; flex: 1; }
  .hero-mobile { display: none !important; }
}

.hero-text {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 4rem 24px 0;
}
@media (min-width: 1024px) {
  .hero-text { padding: 5.4rem 48px 0; }
}

.hero-heading {
  color: var(--green);
  line-height: .95;
  letter-spacing: -0.025em;
  font-size: 72px; /* tablet: text-7xl */
}
@media (min-width: 1024px) {
  .hero-heading { font-size: clamp(60px, 7.5vw, 110px); }
}
.hero-line { display: block; }
.word { display: inline-block; }

/* ---------- Levá produktová karta ---------- */
.product-card {
  position: absolute;
  z-index: 20;
  top: 80px;
  left: 16px;
  width: 160px;
}
@media (min-width: 1024px) {
  .product-card {
    top: 50px;
    left: 48px;
    width: clamp(160px, 14vw, 260px);
  }
}

.product-card__media {
  position: relative;
  aspect-ratio: 260 / 257;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }

.arrow-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: clamp(32px, 3vw, 44px);
  height: clamp(32px, 3vw, 44px);
  border-radius: 9999px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.arrow-btn:hover { background: var(--green-hover); transform: scale(1.06); }
.arrow-btn svg { width: 45%; height: 45%; }

.product-card__name {
  margin-top: 10px;
  color: var(--gray-700);
  font-size: clamp(12px, .95vw, 15px);
  font-weight: 500;
  line-height: 1.35;
}
.product-card__price {
  margin-top: 2px;
  color: var(--green);
  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 18px);
}

/* ---------- Pravá video karta ---------- */
.video-card {
  position: absolute;
  z-index: 20;
  top: 80px;
  right: 16px;
  width: 120px;
}
@media (min-width: 1024px) {
  .video-card {
    top: 50px;
    right: 48px;
    width: clamp(120px, 10vw, 177px);
  }
}

.video-card__media {
  position: relative;
  aspect-ratio: 177 / 287;
  border-radius: 16px;
  overflow: hidden;
}
.video-card__media img { width: 100%; height: 100%; object-fit: cover; }
.video-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 8, .62), rgba(8, 20, 8, 0) 55%);
  pointer-events: none;
}

.video-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  text-align: center;
}
.video-card__overlay p {
  color: #fff;
  font-size: clamp(10px, .8vw, 12px);
  font-weight: 500;
  line-height: 1.35;
}

.play-btn {
  width: clamp(36px, 3.4vw, 48px);
  height: clamp(36px, 3.4vw, 48px);
  border-radius: 9999px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.play-btn:hover { background: var(--green-hover); transform: scale(1.08); }
.play-btn svg { width: 40%; height: 40%; transform: translateX(1px); }

/* ---------- Spodní trojice fotografií ---------- */
.hero-photos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
}

.photo { position: relative; min-width: 0; }
.photo--left  { flex: 1; }
.photo--center { flex: 1.265; }
.photo--right { flex: 1; }

.photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center bottom;
}

/* tablet (md–lg) */
.photo--left img,
.photo--right img { max-height: 60vh; }
.photo--center img { max-height: 75vh; }

/* desktop (lg+) */
@media (min-width: 1024px) {
  .photo--left img,
  .photo--right img { max-height: min(70vh, 55vw); }
  .photo--center img { max-height: min(85vh, 70vw); }
}

/* ---------- Overlaye na fotografiích ---------- */
.photo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 4vh, 50px);
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.overlay-inner { pointer-events: auto; }

/* 98K+ statistika (vlevo) */
.stat-overlay {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

.avatar-stack { display: flex; align-items: center; }
.avatar-stack img,
.avatar-stack .stack-plus {
  width: clamp(32px, 3vw, 44px);
  height: clamp(32px, 3vw, 44px);
  border-radius: 9999px;
  border: 2px solid #fff;
}
.avatar-stack img { object-fit: cover; }
.stack-plus {
  margin-left: -12px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-plus svg { width: 45%; height: 45%; }

.stat-text strong {
  display: block;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.05;
}
.stat-text span { font-size: clamp(10px, .9vw, 13px); opacity: .88; }

/* nadpis + CTA (uprostřed) */
.center-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vh, 18px);
  padding: 0 16px;
  text-align: center;
}
.center-overlay h2 {
  color: #fff;
  font-size: clamp(20px, 2.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
  max-width: 14ch;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border-radius: 9999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}
.pill-btn:hover { background: var(--orange-hover); transform: translateY(-2px); }
.pill-btn svg { width: 16px; height: 16px; }

/* hodnocení 4.6 (vpravo) */
.rating-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.rating-row { display: inline-flex; align-items: center; gap: 8px; }
.rating-row strong {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1;
}
.star-filled { color: var(--orange); width: clamp(18px, 2vw, 26px); height: clamp(18px, 2vw, 26px); }
.rating-overlay > span { font-size: clamp(10px, .9vw, 13px); opacity: .88; }

/* ============================================================
   HERO — mobil (pod md)
   ============================================================ */
.hero-mobile {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.m-top { text-align: center; padding: 12px 20px 0; }

.m-heading {
  font-size: 36px;
  color: var(--green);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 auto;
}

.m-sub {
  margin: 10px auto 0;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
  max-width: 32ch;
}

.m-cta { margin-top: 14px; }

.m-cards {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 0;
}
.m-card { flex: 1; min-width: 0; }

.m-card__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.m-card__media img { width: 100%; height: 100%; object-fit: cover; }
.m-card__media--square { aspect-ratio: 1 / 1; }
.m-card__media--tall { aspect-ratio: 3 / 4; }

.m-card .arrow-btn { width: 36px; height: 36px; }
.m-card .play-btn { width: 40px; height: 40px; }
.m-card .product-card__name { font-size: 12px; }
.m-card .product-card__price { font-size: 14px; }
.m-card .video-card__overlay p { font-size: 10px; }

.m-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px 20px;
}
.m-stat { display: flex; align-items: center; gap: 10px; }

.avatar-stack--small img,
.avatar-stack--small .stack-plus { width: 30px; height: 30px; border-color: var(--bg); }

.m-stat__text strong {
  display: block;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}
.m-stat__text > span:last-child,
.m-stat__text span:not(.rating-row) { font-size: 11px; color: var(--gray-600); }
.m-stat__text .rating-row strong { display: inline; font-size: 16px; }
.m-stat__text .rating-row { gap: 5px; }
.m-stat__text .star-filled { width: 15px; height: 15px; }
.m-stat__text--rating { display: flex; flex-direction: column; }

.m-divider { width: 1px; height: 34px; background: rgba(26, 61, 26, .15); }

.m-photos {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  padding-top: 10px;
}
.m-photos .photo img { max-height: none; }

/* ============================================================
   ANIMACE (dle specifikace)
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up .8s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-in { animation: fade-in .6s ease-out both; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slide-up .9s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate-slide-in-left { animation: slide-in-left .8s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate-slide-in-right { animation: slide-in-right .8s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes text-reveal {
  from { opacity: 0; transform: translateY(40px) skewY(3deg); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) skewY(0); filter: blur(0); }
}
.animate-text-reveal { animation: text-reveal 1s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes word-pop {
  0%   { opacity: 0; transform: translateY(60px) scale(.7) rotate(-4deg); filter: blur(8px); }
  55%  { opacity: 1; transform: translateY(-10px) scale(1.06) rotate(1.5deg); filter: blur(0); }
  75%  { transform: translateY(4px) scale(.985) rotate(-.5deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0); }
}
.animate-word-pop {
  opacity: 0;
  animation: word-pop .9s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}
.animate-scale-in { animation: scale-in .7s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes photo-reveal {
  from { opacity: 0; transform: translateY(80px) scale(1.02); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-photo-reveal { animation: photo-reveal 1.1s cubic-bezier(.16, 1, .3, 1) both; }

/* Zpoždění po 100 ms */
.delay-100  { animation-delay: 100ms; }
.delay-200  { animation-delay: 200ms; }
.delay-300  { animation-delay: 300ms; }
.delay-400  { animation-delay: 400ms; }
.delay-500  { animation-delay: 500ms; }
.delay-600  { animation-delay: 600ms; }
.delay-700  { animation-delay: 700ms; }
.delay-800  { animation-delay: 800ms; }
.delay-900  { animation-delay: 900ms; }
.delay-1000 { animation-delay: 1000ms; }
.delay-1100 { animation-delay: 1100ms; }
.delay-1200 { animation-delay: 1200ms; }

@media (prefers-reduced-motion: reduce) {
  [class*="animate-"] { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ============================================================
   PODPIS DEMA + TOAST
   ============================================================ */
.demo-credit {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  font-size: 11px;
  line-height: 1;
  color: var(--green);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 61, 26, .12);
  border-radius: 9999px;
  padding: 7px 13px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(26, 61, 26, .1);
  transition: background-color .2s ease;
}
.demo-credit:hover { background: #fff; }
.demo-credit strong { font-weight: 600; }

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  z-index: 50;
  transform: translateX(-50%) translateY(12px);
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(26, 61, 26, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.demo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
