/* ==========================================
   Flow website – Custom style overrides
   ========================================== */

/* ── Readex Pro font fallback (matches Webflow live) ── */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@160..700&display=swap');

body, .heading, .paragraph, .nav-link, .button, input, select, textarea {
  font-family: "Readexpro Variable", "Readex Pro", sans-serif !important;
}

/* ── Sticky pillar nav numbers (1–4) ── */
.sticky-about-links {
  position: sticky;
  top: 8vh;
  z-index: 30;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75em;
  padding: 0.6em 1em;
  pointer-events: none;
}
.sticky-about-link {
  pointer-events: auto;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  font-weight: 700;
  color: var(--color-3, #004aad);
  background: rgba(255,255,255,0.80);
  border: 2px solid rgba(0,74,173,0.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.sticky-about-link:hover {
  background: rgba(255,255,255,0.95);
  border-color: var(--color-3, #004aad);
  transform: scale(1.12);
}
.sticky-about-link.w--current {
  background: var(--color-3, #004aad);
  color: #fff;
  border-color: var(--color-3, #004aad);
  box-shadow: 0 4px 14px rgba(0,74,173,0.35);
}

/* Nav dropdown indicator dot → clean circle instead of diamond */
.nav-dropdown-dot {
  background-color: var(--yellow-4);
  border-radius: 50%;
  flex: none;
  width: 0.45em;
  height: 0.45em;
  transform: none;
  opacity: 0.85;
  margin-left: 0.2em;
}

/* Language switcher spacing */
.nav-link.is-lang {
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.9;
  padding: 0.25em 0.55em;
  border-radius: 4px;
}
.nav-link.is-lang.w--current {
  opacity: 1;
  background-color: rgba(0, 74, 173, 0.08);
}

/* Smooth nav dropdown transition */
.dropdown-block {
  overflow: hidden;
}

/* Nav uses position:relative (Webflow default) - flows above content naturally */
.nav.w-nav {
  position: relative;
}

/* Testimonial text truncation (4 lines, then "více" button)
   Mirrors the live Webflow rule exactly */
.carousel-testimonial-truncate {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FAQ accordion icon — orange plus rotates to × on open, no swap to close icon */
.accordion-icon-block img {
  transition: transform 0.25s ease;
}

/* Gallery photo shadows: remove all coloured backgrounds */
.gallery-lightbox-shadow,
.gallery-lightbox-shadow.is-2nd,
.gallery-lightbox-shadow.is-3rd,
.gallery-lightbox-shadow.is-4th {
  display: none;
}

/* Hide red multiply-blend overlay that Webflow's hover interaction would reveal.
   Without Webflow.js the scroll-animation observer incorrectly sets opacity:1. */
.gallery-background {
  display: none !important;
}

/* Password page (pro-rodice): fix nav so it overlays the full-screen form instead of sitting in flex flow */
.utility-page-wrapper .nav.w-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

/* Give the form breathing room below the fixed nav */
.utility-page-wrapper {
  padding-top: 0;
}

/* nase-skola: "16 žáků ve třídě" block has dark blue background — use white text so number is readable */
.achievement-block.is-2nd .achievement-number,
.achievement-block.is-2nd .achievement-paragraph {
  color: var(--white);
}

/* navstivte-skolu-flow: fix 2-column grid span
   webflow.css has a later grid-column:span 1/span 1 that overrides the intended span 2 */
#w-node-_5a093673-6365-947c-98ff-99d2566d01c8-d8adba50,
#w-node-_0dd2f064-44da-bc38-1615-ed4c66692331-d8adba50 {
  grid-column: span 2 / span 2;
}

/* Social icons: use default webflow.css styling (transparent pink bg, yellow border) */

/* info-badge-2 ("16 žáků ve třídě"): dark blue bg needs white text */
.info-badge-2 .info-badge-number,
.info-badge-2 .info-badge-text {
  color: var(--white);
}

/* Dropdown block: transparent padding area must not block mouse events on adjacent nav items */
.dropdown-block {
  pointer-events: none;
}
.dropdown-layout {
  pointer-events: auto;
}

/* Footer section labels (Menu / Kontakt / Dejte nám vědět / Ke stažení):
   inherit dark colour on blue bg → replace with soft white */
.footer .heading.is-small-title {
  color: rgba(255, 255, 255, 0.6);
}

/* Custom checkbox: replace CDN checkmark image with CSS-only version
   Works for all forms: newsletter, contact, GDPR consent */
.w-checkbox-input--inputType-custom {
  cursor: pointer;
  flex-shrink: 0;
}
.w-checkbox-input--inputType-custom.w--redirected-checked {
  background-image: none;
  background-color: var(--color-3);
  border-color: var(--color-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.w-checkbox-input--inputType-custom.w--redirected-checked::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

/* ============================================
   FLOW BOOKING WIDGET
   ============================================ */
.flow-booking { font-family: inherit; }

.fbw-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  background: #fff;
  border-radius: 1.5em;
  padding: 2em;
  box-shadow: 0 4px 40px rgba(0,74,173,0.10);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .fbw-wrap { grid-template-columns: 1fr; }
}

.fbw-label { font-weight: 700; font-size: 0.85em; text-transform: uppercase; letter-spacing: .05em; color: #666; display: block; margin-bottom: .5em; }

/* Visit type selector */
.fbw-type-btns { display: flex; flex-direction: column; gap: .5em; margin-bottom: 1.5em; }
.fbw-type-btn {
  background: #f4f6fa; border: 2px solid transparent; border-radius: .75em;
  padding: .65em 1em; text-align: left; cursor: pointer; font-size: .9em;
  color: #333; transition: all .15s; font-family: inherit;
}
.fbw-type-btn:hover { border-color: var(--color-3, #004aad); background: #e8eef8; }
.fbw-type-btn.active { background: var(--color-3, #004aad); color: #fff; border-color: var(--color-3, #004aad); font-weight: 600; }

/* Calendar */
.fbw-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75em;
}
.fbw-month-title { font-weight: 700; font-size: 1em; color: var(--color-3, #004aad); }
.fbw-nav {
  background: none; border: none; cursor: pointer;
  font-size: 1.4em; color: var(--color-3,#004aad); padding: 0 .3em;
  border-radius: .4em; transition: background .15s;
}
.fbw-nav:hover { background: #e8eef8; }

.fbw-cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr); gap: .2em;
  text-align: center;
}
.fbw-day-name { font-size: .72em; font-weight: 700; color: #999; padding: .3em 0; }
.fbw-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: .5em; font-size: .85em; cursor: default;
}
.fbw-empty { background: none; }
.fbw-past { color: #ccc; }
.fbw-unavailable { color: #bbb; }
.fbw-available {
  background: #e8f0fb; color: var(--color-3, #004aad);
  font-weight: 700; cursor: pointer; transition: all .15s;
}
.fbw-available:hover { background: var(--color-3, #004aad); color: #fff; transform: scale(1.1); }
.fbw-selected { background: var(--yellow-4, #f5c748) !important; color: #1a1a1a !important; font-weight: 700; }
.fbw-today { box-shadow: inset 0 0 0 2px var(--color-3,#004aad); }

/* Time hint */
.fbw-time-hint {
  display: flex; align-items: center; gap: .5em;
  margin-top: .75em; padding: .6em .9em;
  background: #f0f5ff; border-radius: .6em;
  font-size: .85em; color: var(--color-3,#004aad); font-weight: 600;
}

/* Right panel */
.fbw-form-wrap { height: 100%; }
.fbw-no-date {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; min-height: 280px;
  color: #aaa; text-align: center; padding: 2em;
}
.fbw-no-date-icon { font-size: 3em; margin-bottom: .5em; opacity: .5; }

/* Form */
.fbw-form-title { font-size: 1.15em; font-weight: 700; color: var(--color-3,#004aad); margin: 0 0 .75em; }
.fbw-selected-badge {
  background: #e8f0fb; border-left: 4px solid var(--yellow-4,#f5c748);
  border-radius: .5em; padding: .75em 1em; margin-bottom: 1em;
  font-size: .9em; line-height: 1.5;
}
.fbw-field { margin-bottom: .9em; }
.fbw-field label { display: block; font-size: .82em; font-weight: 600; color: #555; margin-bottom: .3em; }
.fbw-field input, .fbw-field textarea, .fbw-field select {
  width: 100%; padding: .6em .9em; border: 1.5px solid #dde;
  border-radius: .6em; font-size: .9em; font-family: inherit;
  transition: border-color .15s; box-sizing: border-box;
}
.fbw-field input:focus, .fbw-field textarea:focus {
  border-color: var(--color-3,#004aad); outline: none;
}
.fbw-field textarea { resize: vertical; min-height: 70px; }
.fbw-submit {
  width: 100%; padding: .85em; background: var(--color-3,#004aad);
  color: #fff; border: none; border-radius: .75em; font-size: 1em;
  font-weight: 700; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: .5em; font-family: inherit; transition: background .15s;
}
.fbw-submit:hover { background: #003080; }
.fbw-submit:disabled { opacity: .6; cursor: not-allowed; }
.fbw-note { font-size: .78em; color: #999; margin-top: .6em; text-align: center; }

/* Success */
.fbw-success {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 280px; text-align: center; padding: 2em;
}
.fbw-success-icon {
  width: 64px; height: 64px; background: #e8f8ed;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2em; margin-bottom: 1em; color: #2e7d32;
}
.fbw-success h3 { color: var(--color-3,#004aad); margin: 0 0 .5em; }
.fbw-success-sub { font-size: .85em; color: #888; margin-top: .5em; }
.fbw-success-sub a { color: var(--color-3,#004aad); }

/* ============================================
   BUTTON OVERRIDES
   Match original Webflow look — pill shape, pipe divider, clean colours.
   Shadow/line animation elements hidden (they freeze badly without Webflow JS).
   ============================================ */

/* ── Replicate Webflow IX2 button shadow/line hover animation ──
   Default: spread-out visible — hover: come-together + back ── */
@keyframes shadowComeTogther {
  0%   { transform: rotate(-6deg) scale(1); }
  45%  { transform: rotate(-6deg) scale(0); }
  100% { transform: rotate(-6deg) scale(1); }
}
@keyframes lineComeTogther {
  0%   { transform: rotate(4deg) scale(1); }
  45%  { transform: rotate(4deg) scale(0); }
  100% { transform: rotate(4deg) scale(1); }
}
.button .main-button-shadow,
.button .main-button-shadow.is-2nd {
  display: block !important;
  transform: rotate(-6deg) scale(1) !important;
  transform-origin: center center !important;
  opacity: 0.6 !important;
}
.button .main-button-line,
.button .main-button-line.is-2nd {
  display: block !important;
  transform: rotate(4deg) scale(1) !important;
  transform-origin: center center !important;
  opacity: 0.5 !important;
}
.button:hover .main-button-shadow,
.button:hover .main-button-shadow.is-2nd {
  animation: shadowComeTogther 0.45s cubic-bezier(0.075, 0.82, 0.165, 1) forwards !important;
  transform: none !important;
}
.button:hover .main-button-line,
.button:hover .main-button-line.is-2nd {
  animation: lineComeTogther 0.45s cubic-bezier(0.075, 0.82, 0.165, 1) forwards !important;
  transform: none !important;
}

/* ── Shared size + transition (matches original Webflow) ── */
.button.w-inline-block,
.button.is-yellow.w-inline-block {
  font-size: 1.35em !important;
  padding: 0.95em 1.8em !important;
  min-height: 0 !important;
  gap: 1.25em;
  overflow: visible !important;
  transition: transform 0.4s cubic-bezier(0.075, 0.82, 0.165, 1), box-shadow 0.4s, background-color 0.2s !important;
}

/* ── Default blue button ── */
.button.w-inline-block {
  background-color: #004aad !important;
  color: #fff !important;
  box-shadow: rgba(30, 2, 63, 0.20) 0px 11px 20px -7px !important;
}
.button.w-inline-block:hover {
  background-color: #0057cc !important;
  transform: translateY(-3px) !important;
  box-shadow: rgba(30, 2, 63, 0.28) 0px 14px 26px -7px !important;
  color: #fff !important;
}

/* ── Yellow button ── */
.button.is-yellow.w-inline-block {
  background-color: #f5c748 !important;
  color: #2b0804 !important;
  border: 1px solid rgb(247, 198, 62) !important;
  box-shadow: rgba(30, 2, 63, 0.20) 0px 11px 20px -7px !important;
}
.button.is-yellow.w-inline-block:hover {
  background-color: #f7ce55 !important;
  transform: translateY(-3px) !important;
  box-shadow: rgba(30, 2, 63, 0.28) 0px 14px 26px -7px !important;
  color: #2b0804 !important;
}

/* ── Icon area — pipe divider, no bubble ── */
.button .main-button-icon {
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.4em 0.8em !important;
  border-left: 1px solid rgba(255, 255, 255, 0.40) !important;
}
.button.is-yellow .main-button-icon {
  border-left-color: rgba(61, 20, 109, 0.30) !important;
}

/* ── Button text ── */
.button .main-button-name {
  font-weight: 600;
  color: inherit;
  text-shadow: none;
}
.button.is-yellow .main-button-name {
  text-shadow: none;
}

/* Booking widget – Calendly redirect hint */
.fbw-calendly-hint {
  text-align: center; padding: 2em 1em;
  background: #f0f5ff; border-radius: 1em;
  margin-top: .5em;
}
.fbw-calendly-hint p { color: #333; margin: .25em 0; font-size: .95em; }
.fbw-calendly-hint p:first-child { color: var(--color-3,#004aad); font-size: 1.05em; }
.fbw-calendly-btn {
  display: inline-block; margin-top: 1em;
  background: var(--color-3,#004aad); color: #fff !important;
  padding: .75em 1.5em; border-radius: .75em;
  font-weight: 700; text-decoration: none; font-size: .95em;
  transition: background .15s;
}
.fbw-calendly-btn:hover { background: #003080; }

/* span-yellow-waves-purple-font – use local SVG underline instead of CDN */
.span-yellow-waves-purple-font {
  color: rgb(187, 34, 17);
  -webkit-text-stroke-color: rgb(223, 40, 21);
  background-image: url("../images/67b351f4c755934221b665ae_yellow-underline-element-4.svg");
  background-position: 50% 100%;
  background-repeat: repeat-x;
  background-size: auto 0.4em;
  padding-bottom: 0.3em;
  display: inline;
}


/* Dropdown item hover/current animations */
.link-text-with-dot .link-text-yellow-dot {
  transition: transform 0.3s ease;
  background-color: var(--yellow-4, #f5c748) !important;
}
.link-text-with-dot .link-text {
  transition: transform 0.3s ease;
}

/* Force-hide dots and reset text on non-hovered, non-current items
   (prevents dots "sticking" when dropdown closes mid-transition) */
.link-text-with-dot:not(:hover):not(.w--current) .link-text-yellow-dot {
  transform: translate3d(0px, 0px, 0px) scale3d(0, 0, 1) rotateX(0deg) rotateY(0deg) rotateZ(45deg) skew(0deg, 0deg) !important;
}
.link-text-with-dot:not(:hover):not(.w--current) .link-text {
  transform: translate3d(-1em, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
}

/* Show dot and align text on hover or current page */
.link-text-with-dot:hover .link-text-yellow-dot,
.link-text-with-dot.w--current .link-text-yellow-dot {
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(45deg) skew(0deg, 0deg) !important;
}
.link-text-with-dot:hover .link-text,
.link-text-with-dot.w--current .link-text {
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
}

/* Larger text in about-grid content blocks */
.about-grid-content ul,
.about-grid-content ol {
  font-size: 1.125rem;
  line-height: 1.7;
}
.about-grid-content li {
  margin-bottom: 0.5em;
}
