/* style.css */

:root {
  --primary: #0d5c8b;
  --primary-600: #0b4c74;
  --accent: #10b3a3;
  --bg: #f4fbff;
  --bg-soft: #ffffff;
  --text: #22303a;
  --muted: #5e6b75;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 16px;
}

/* Základní nastavení */
* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(16,179,163,0.22), transparent 60%),
              radial-gradient(1000px 600px at -10% 0%, rgba(13,92,139,0.18), transparent 60%),
              var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { color: var(--primary-600); margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.1rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { color: var(--primary-600); font-weight: 700; font-size: 1.1rem; }
.logo { height: 44px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 16px; }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:not(.btn) { color: var(--primary-600); }
.nav a:hover:not(.btn) { color: var(--primary); }
/* Active state for nav links */
.nav a.active:not(.btn) { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .08s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }
.btn-ghost { background: #fff; color: var(--primary-600); border: 1px solid rgba(0,0,0,0.08); }
.btn-small { padding: 8px 14px; font-size: .95rem; }

/* Ghost button variant in header nav */
.nav .btn-ghost { background: transparent; color: var(--primary-600); border: 1.5px solid rgba(13,92,139,0.30); box-shadow: none; }
.nav .btn-ghost:hover { background: rgba(13,92,139,0.08); color: var(--primary-600); }
/* Active ghost button in nav */
.nav .btn-ghost.active { background: var(--primary-600); color: #fff; border-color: transparent; }

/* Mobile-friendly nav tweaks */
.nav { flex-wrap: wrap; }
.header-content { padding: 0 20px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 64px;
}

.bullets { list-style: none; padding: 0; margin: 16px 0 0; }
.bullets li { margin: 8px 0; padding-left: 18px; position: relative; color: var(--muted); }
.bullets li::before { content: "•"; color: var(--accent); position: absolute; left: 0; }
.bullets.small li { margin: 6px 0; }

.cta-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.hero-image { position: relative; }
.hero-image { display: flex; align-items: center; justify-content: center; }
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.hero-image img.hero-logo {
  object-fit: contain;
  background: transparent;
  padding: 28px;
  border-radius: 0;
  box-shadow: none;
}

.btn.whatsapp{background:#25D366;color:#fff}
.btn.whatsapp:hover{filter:brightness(.95)}

/* removed hero-image glow */

/* Sections */
.section { padding: 56px 0; scroll-margin-top: 84px; }
.section-alt { background: linear-gradient(180deg, #fff, #f8fbfd); }
.section-cta { background: linear-gradient(180deg, #eef8fb, #f6fbff); text-align: center; }
/* Slightly tighter top spacing for References on desktop */
#references { padding-top: 36px; }

/* Highlight #contact when navigated via anchor */
#contact:target .container { animation: anchorFlash 1.1s ease-out; border-radius: 12px; }
/* Allow JS to retrigger highlight on repeated clicks (applied directly on container) */
#contact .container.contact-flash {
  animation: anchorFlash 1.1s ease-out, jiggle 0.5s ease-out, glowPulse 0.9s ease-out;
  border-radius: 12px;
  will-change: background, transform, box-shadow;
}
@keyframes anchorFlash {
  0% { background: rgba(16,179,163,0.20); }
  100% { background: transparent; }
}
@keyframes jiggle {
  0% { transform: translateY(0); }
  30% { transform: translateY(-2px); }
  60% { transform: translateY(1px); }
  100% { transform: translateY(0); }
}
@keyframes glowPulse {
  0% { box-shadow: 0 0 0 0 rgba(16,179,163,0.28), 0 8px 24px rgba(0,0,0,0.06); }
  60% { box-shadow: 0 0 0 8px rgba(16,179,163,0.12), 0 8px 24px rgba(0,0,0,0.06); }
  100% { box-shadow: 0 0 0 0 rgba(16,179,163,0), 0 8px 24px rgba(0,0,0,0.04); }
}

/* Cards */
.cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-emoji { font-size: 28px; }
.card-emoji .icon { width: 28px; height: 28px; color: var(--primary-600); display: block; }
/* Colorful service icons */
.card-emoji.color-purple { color: #8b5cf6; }
.card-emoji.color-orange { color: #f59e0b; }
.card-emoji.color-rose { color: #f43f5e; }
.card-emoji.color-teal { color: #14b8a6; }
.card-emoji.color-green { color: #22c55e; }
.card-emoji.color-blue { color: #3b82f6; }
.card h3 { margin: 8px 0 6px; }
.card p { margin: 0; color: var(--muted); }

/* Trainer */
.trainer {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.trainer-photo {
  display: flex;
  justify-content: center;
}
.trainer-photo img {
  width: 80%;
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}
.trainer-text p { color: var(--muted); }

/* Quotes */
.quotes {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
blockquote {
  margin: 0;
  padding: 18px 20px;
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
cite { display: block; margin-top: 6px; color: var(--muted); font-style: normal; }

/* Contact */
.contact p { color: var(--muted); }
.contact-actions { margin-top: 14px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* WhatsApp button appearance */
.btn.whatsapp { background: #25d366; background: linear-gradient(180deg, #25d366, #1ebc59); color: #fff; box-shadow: var(--shadow); }
.btn.whatsapp .icon { width: 18px; height: 18px; }
.btn.whatsapp span { line-height: 1; }
.btn.btn-facebook { background: #1877f2; background: linear-gradient(180deg, #1877f2, #0f5bd6); color: #fff; box-shadow: var(--shadow); }
.btn.btn-facebook .icon { width: 18px; height: 18px; }
.btn.btn-facebook span { line-height: 1; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 24px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.06); }
.table thead th { background: #f1f7fb; color: var(--primary-600); font-weight: 700; }
.table tbody tr { background: #fff; }
.table tbody tr:nth-child(even) { background: #fafcfe; }
.table tbody tr:last-child td { border-bottom: 0; }

/* Groups note spacing */
.groups-note { margin-top: 12px; color: var(--muted); }

.pricing-highlight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,179,163,0.18), rgba(13,92,139,0.22));
  color: var(--primary-600);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.pricing-icon {
  font-size: 24px;
}
.pricing-highlight strong {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.pricing-note {
  font-weight: 500;
  color: var(--primary-600);
}

/* Gallery */
.simple-gallery {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.simple-gallery-viewport {
  flex: 1;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.simple-gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.simple-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.simple-gallery-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(13,92,139,0.12);
  color: var(--primary-600);
  font-size: 26px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, background 0.2s ease;
}
.simple-gallery-arrow:hover,
.simple-gallery-arrow:focus-visible {
  background: rgba(16,179,163,0.22);
  transform: translateY(-2px);
}
.gallery-error {
  margin-top: 18px;
  color: var(--muted);
}

/* Footer */
.footer { background: #fff; border-top: 1px solid rgba(0,0,0,0.05); padding: 20px 0; color: #66737e; font-size: 14px; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .simple-gallery-viewport { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 48px; }
  .trainer { grid-template-columns: 1fr; }
  .trainer-photo img { width: 100%; }
  .nav { gap: 10px; row-gap: 6px; }
  .hero-image img.hero-logo { padding: 16px; width: min(420px, 90%); }
  .simple-gallery { gap: 12px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .nav { font-size: 0.95rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav .btn-small { padding: 6px 10px; font-size: 0.9rem; }
  .hero { padding: 24px 0 36px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 auto; min-width: 44%; }
  .simple-gallery { flex-direction: column; align-items: stretch; }
  .simple-gallery-viewport { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simple-gallery-arrow { align-self: center; }
  /* Use solid background on small screens to avoid gradient showing through transparent logo */
  body { background: var(--bg); }
  /* Extra comfortable side gutters on small screens */
  .container { padding: 0 22px; }
  .header-content { padding: 0 18px; }
  .hero-image img.hero-logo { padding: 8px; width: min(360px, 85%); }
  /* Ensure visible gap above References on mobile */
  #references { padding-top: 64px; }
}
