/* ============================================
   Cukrárna Just Cake Karlovy Vary – custom styles
   Moderní, rychlý, čitelný design
   ============================================ */

:root {
  /* Světle růžová podle propagačních materiálů Just Cake (poukázy) */
  --color-accent: #e8b4b8;
  --color-accent-hover: #d49a9e;
  --color-bg-warm: #fdf8f6;
  --color-text: #2d2d2d;
  --color-muted: #5c5c5c;
  /* Zdobná písma – kudrlinkový styl jako v logu cukrárny */
  --font-script: "Great Vibes", cursive;
  --font-heading: "Dancing Script", cursive;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 0.75rem;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
}

/* Zdobná písma – logo a zvýrazněné názvy */
.font-script {
  font-family: var(--font-script);
  font-weight: 400;
}

.font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Skip link – přístupnost */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-text);
}

.navbar-brand .font-script {
  font-family: var(--font-script);
  font-size: 1.75rem;
}

.navbar-brand:hover {
  color: var(--color-accent);
}

.brand-sub {
  font-weight: 500;
  color: var(--color-muted);
  font-size: 1rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent);
}

/* Accent – pro Bootstrap přepsání */
.text-accent {
  color: var(--color-accent) !important;
}

.btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text);
}

.btn-outline-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Hero – pozadí z fotky kavárny + text čitelný */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(253, 248, 246, 0.92) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(253, 248, 246, 0.75) 100%);
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .container {
  z-index: 2;
}

.min-vh-75 {
  min-height: 70vh;
}

.hero h1 {
  letter-spacing: 0.02em;
}

.hero h1 .font-script {
  font-size: 1.1em;
  display: inline-block;
}

.hero-figure {
  animation: float 4s ease-in-out infinite;
}

.hero-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-width: 100%;
  height: auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Galerie 3 fotek v sekci O nás */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  box-shadow: var(--shadow-soft);
}

.gallery-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }

  .gallery-row img {
    height: 200px;
  }
}

/* Karty s obrázky */
.card-img-wrap {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-img-wrap .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-wrap .card-img-top {
  transform: scale(1.05);
}

/* Cards & offer */
.offer-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card {
  border-radius: var(--radius);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

/* Footer – světlý text na tmavém pozadí */
.site-footer {
  background: var(--color-text);
  color: #e2e6ea;
}

.site-footer p,
.site-footer .text-muted {
  color: #e2e6ea !important;
}

.site-footer a {
  color: #f1f3f5;
}

.site-footer a:hover {
  color: #fff !important;
}

/* Sekce recenzí a sociálních sítí – kontejnery pro embed widgety */
.reviews-widget {
  min-height: 120px;
}

.reviews-widget iframe,
.reviews-widget [data-embed] {
  max-width: 100%;
}

.instagram-widget {
  min-height: 200px;
}

.instagram-widget iframe {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

/* Fallback tlačítka zmizí, jakmile do .instagram-feed-widget vložíte widget (můžete pak smazat třídu .instagram-fallback z HTML) */
.instagram-fallback {
  padding: 0.5rem 0;
}

/* Sledujte nás – tlačítka s inline SVG ikonami (nezávislé na fontu) */
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  color: var(--color-accent);
  background: transparent;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-social svg {
  flex-shrink: 0;
}

.btn-social:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Utility */
.max-w-60 {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Rychlost: preferovaná velikost písma */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-figure {
    animation: none;
  }

  .offer-card:hover,
  .card:hover {
    transform: none;
  }
}

/* Tisk */
@media print {
  .site-header {
    position: static;
    box-shadow: none;
  }

  .navbar-toggler,
  .btn,
  .skip-link {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 1rem 0;
  }

  a[href^="tel:"],
  a[href^="mailto:"] {
    text-decoration: none;
    color: inherit;
  }
}
