/* ========================================
   Dvířka pro kočku — Vanilla CSS
   ======================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}
/* ---- Design Tokens ---- */
:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #2c5282;
  --color-primary-dark: #0f1f35;
  --color-accent: #e8963a;
  --color-accent-light: #f0b068;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-text-muted: #a0aec0;
  --color-bg: #ffffff;
  --color-bg-alt: #f7fafc;
  --color-bg-dark: #1e3a5f;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --color-success: #48bb78;
  --color-shadow: rgba(30, 58, 95, 0.08);
  --color-shadow-lg: rgba(30, 58, 95, 0.15);
  --color-radius: 0.75rem;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 72px;
  --container-max: 1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--color-primary); }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---- Section spacing ---- */
.section { padding: 4rem 0; }
@media (min-width: 640px) { .section { padding: 6rem 0; } }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 4px rgba(232, 150, 58, 0.3);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 150, 58, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* ---- Cards ---- */
.card {
  background: white;
  background: #f7fafc;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px var(--color-shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--color-shadow-lg);
}
.card-img {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  background: linear-gradient(135deg, #f7fafc, #e6eef7);
  margin-bottom: 1rem;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--color-accent);
  color: white;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.card-list {
  list-style: none;
}
.card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}
.card-list li::before {
  content: "✓";
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: white;
  transition: box-shadow 0.3s, background 0.3s;
  border-bottom: 1px solid var(--color-border);
}
.header.scrolled {
  box-shadow: 0 4px 12px var(--color-shadow);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
}
.logo-icon {
  width: 32px; height: 32px;
  color: var(--color-accent);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-size: 1.125rem; line-height: 1.1; }
.logo-text span { font-size: 0.75rem; color: var(--color-text-light); line-height: 1.1; }

/* Nav */
.nav-desktop { display: none; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
}
.nav-desktop a {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.3s;
}
.nav-desktop a:hover { color: var(--color-primary); background: var(--color-bg-alt); }
.nav-desktop a.active { color: var(--color-primary); background: var(--color-bg-alt); font-weight: 600; }

/* Mobile menu toggle */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-primary);
}
.menu-toggle svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-primary-dark);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  transition: color 0.3s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--color-accent-light); }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.mobile-menu-close svg { width: 32px; height: 32px; }

/* ---- Footer ---- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 2rem;
}
@media (min-width: 1024px) { .footer { padding: 4rem 0 2rem; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}
.footer p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.75rem; }
.footer a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer a:hover { color: var(--color-accent-light); }
.footer-icon { width: 16px; height: 16px; color: var(--color-accent); flex-shrink: 0; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,95,0.4) 0%, rgba(30,58,95,0.6) 100%);
}
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(30,58,95,0.2) 0%,
    rgba(30,58,95,0.7) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1rem 4rem;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.hero-title span { color: var(--color-accent-light); }
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .hero-title { font-size: 2.5rem; }
  .hero-content { padding-top: 8rem; padding-bottom: 5rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .hero-content { padding-top: 10rem; padding-bottom: 6rem; }
}

/* ---- Why Glass ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.why-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .why-title { font-size: 2.25rem; } }
.why-text { color: var(--color-text-light); line-height: 1.7; margin-bottom: 1rem; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
.benefit-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s;
}
.benefit-card:hover { border-color: rgba(232,150,58,0.3); }
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: 0.5rem;
  background: rgba(232,150,58,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--color-accent);
  transition: background 0.3s;
}
.benefit-card:hover .benefit-icon { background: rgba(232,150,58,0.2); }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-title { font-size: 1rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.5rem; }
.benefit-desc { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; }

/* ---- Process ---- */
.process-header { text-align: center; margin-bottom: 3rem; }
.process-header h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
@media (min-width: 1024px) { .process-header h2 { font-size: 2.25rem; } }
.process-header p { color: var(--color-text-light); max-width: 600px; margin: 0 auto; }

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-line {
    position: absolute;
    top: 24px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--color-border);
  }
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.process-title { font-size: 1.125rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.5rem; }
.process-desc { font-size: 0.875rem; color: var(--color-text-light); line-height: 1.6; max-width: 260px; }

/* ---- Products ---- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,58,95,0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-overlay { background: rgba(30,58,95,0.4); }
.gallery-overlay svg {
  width: 32px; height: 32px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay svg { opacity: 1; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: lightboxFadeIn 0.3s ease;
}
.lightbox.active { display: flex; }
@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
  animation: lightboxScaleIn 0.3s ease;
}
@keyframes lightboxScaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}
.lightbox-close:hover { color: white; }
.lightbox-close svg { width: 32px; height: 32px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}
.lightbox-nav:hover { color: white; }
.lightbox-nav svg { width: 40px; height: 40px; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}
#lightbox-caption {
  color: #e5e7eb;
  margin-top: 16px;
  text-align: center;
  font-size: 15px;
  max-width: 80%;
}
.lightbox-caption {
  position: absolute;
  bottom: 3.5rem; /* Umístí text těsně nad počítadlo fotek */
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  text-align: center;
  max-width: 80%;
  background: rgba(0, 0, 0, 0.6); /* Poloprůhledné černé pozadí */
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: none; /* Skryto v základu, JS to zapne */
}

/* ---- CTA ---- */
.cta {
  background: var(--color-bg-dark);
  padding: 4rem 0;
  text-align: center;
}
@media (min-width: 1024px) { .cta { padding: 5rem 0; } }
.cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) { .cta h2 { font-size: 2.25rem; } }
.cta p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; justify-content: center; } }

/* ---- Contact page ---- */
.contact-hero { background: var(--color-bg-alt); padding: 2rem 0; margin-top: var(--header-height); }
.contact-hero h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-hero p { color: var(--color-text-light); }
@media (min-width: 1024px) { .contact-hero h1 { font-size: 2.25rem; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}
@media (min-width: 1024px) { .contact-card { padding: 2rem; } }
.contact-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 0.75rem;
  background: rgba(232,150,58,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 0.125rem; }
.contact-value {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.3s;
}
.contact-value:hover { color: var(--color-accent); }

.contact-cta {
  background: var(--color-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  color: white;
}
@media (min-width: 1024px) { .contact-cta { padding: 2rem; } }
.contact-cta h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-cta p { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 1rem; }

.contact-photo {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--color-shadow);
  border: 1px solid var(--color-border);
}
.contact-photo img { width: 100%; height: auto; }
.contact-photo-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* ---- Produkt ---- */

#product-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lb-content {
  position: relative;
}

.lb-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
}

.lb-content button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.prev { left: -40px; top: 50%; }
.next { right: -40px; top: 50%; }
.close { top: -40px; right: 0; }

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s 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; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.max-w-2xl { max-width: 640px; }
.max-w-xl { max-width: 576px; }
.bg-alt { background: var(--color-bg-alt); }
.bg-white { background: white; }
.text-light { color: var(--color-text-light); }
.text-muted { color: var(--color-text-muted); }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-12 { padding-bottom: 3rem; }
