/* Baner informacyjny – strona w przebudowie */
.banner-rebuild {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1a3a52 0%, #2c5f8d 100%);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.banner-rebuild.banner-rebuild-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.banner-rebuild-icon {
  font-size: 1.1rem;
  opacity: 0.9;
}

.banner-rebuild-text {
  max-width: 52rem;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .banner-rebuild {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}

/* Gdy jest baner – header i sub-menu niżej */
body.has-banner .site-header {
  top: 2.25rem;
}
body.has-banner .przedszkole-sub-menu,
body.has-banner .szkola-sub-menu {
  top: 7.75rem;
}
body.has-banner {
  padding-top: 7.75rem;
}
body.has-banner.has-sub-menu {
  padding-top: 10.75rem;
}
body.has-banner.has-landing {
  padding-top: 0;
}
body.has-banner .index-content-overlay {
  padding-top: 7.75rem;
}

/* Light blue background for entire page */
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #e2e6e6;
  color: #1a1a1a;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 5.5rem; /* space under fixed header (przedszkole, szkoła) */
}
body.has-landing {
  padding-top: 0; /* index: full-viewport landing, overlay has its own padding */
}

/* Linki bez odnośnika lub tylko # – kursor „zakaz” (nadpisuje domyślny pointer) */
a[href=""],
a:not([href]),
a[href="#"],
a.link-disabled,
a[aria-current="page"] {
  cursor: not-allowed !important;
}

/* Header always at top of viewport (fixed); opacity 0→1 on index when scrolling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 102;
  background-color: #2c5f8d;
  color: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.25s ease-out;
}

/* Horizontal cylinder (pill) with logo left, "Sokrates" text right; does not stretch */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 64px;
  padding: 0 1rem 0 0.25rem;
  min-width: 200px;
  width: fit-content;
  justify-self: start;
  border-radius: 32px;
  overflow: hidden;
  background-color: #ffffff;
  flex-shrink: 0;
  text-decoration: none;
  color: #1a3a52;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-img {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.2) translateX(-2px);
  transform-origin: left center;
  flex-shrink: 0;
}

.header-logo-text {
  white-space: nowrap;
  margin-left: 0.35rem;
}

.main-nav {
  justify-self: center;
  grid-column: 2;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Sub-menus (Przedszkole / Szkoła) – fixed under header, same style as header, lighter background */
.przedszkole-sub-menu,
.szkola-sub-menu {
  position: fixed;
  top: 5.5rem;
  left: 0;
  right: 0;
  z-index: 101;
  background-color: #4a85b8;
  color: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.has-sub-menu {
  padding-top: 8.5rem; /* header 5.5rem + sub-menu ~3rem */
}

.przedszkole-sub-menu-list,
.szkola-sub-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  align-items: center;
}

.przedszkole-sub-menu-list > li,
.szkola-sub-menu-list > li {
  display: flex;
  align-items: center;
}

.przedszkole-sub-menu-link,
.szkola-sub-menu-link {
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

.przedszkole-sub-menu-link:hover,
.szkola-sub-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* O przedszkolu – rozwijane podlinki w bok */
.przedszkole-sub-menu-item-has-dropdown {
  position: relative;
}

.przedszkole-sub-menu-trigger {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

.przedszkole-sub-menu-dropdown {
  position: absolute;
  left: 100%;
  margin-left: 0.25rem;
  top: 0;
  margin-top: 0;
  padding: 0.5rem 0;
  min-width: 14rem;
  list-style: none;
  background-color: #5a95c8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 200;
}

.przedszkole-sub-menu-item-has-dropdown:hover .przedszkole-sub-menu-dropdown,
.przedszkole-sub-menu-item-has-dropdown.is-expanded .przedszkole-sub-menu-dropdown {
  opacity: 1;
  visibility: visible;
}

.przedszkole-sub-menu-dropdown li {
  margin: 0;
}

.przedszkole-sub-menu-dropdown-link {
  display: block;
  padding: 0.4rem 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.przedszkole-sub-menu-dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Szkoła sub-menu – rozwijane „O szkole”, „Dlaczego my”, „Organizer” */
.szkola-sub-menu-item-has-dropdown {
  position: relative;
}

.szkola-sub-menu-trigger {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.2s;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

.szkola-sub-menu-dropdown {
  position: absolute;
  left: 100%;
  margin-left: 0.25rem;
  top: 0;
  margin-top: 0;
  padding: 0.5rem 0;
  min-width: 14rem;
  max-height: 80vh;
  overflow-y: auto;
  list-style: none;
  background-color: #5a95c8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 200;
}

.szkola-sub-menu-item-has-dropdown:hover .szkola-sub-menu-dropdown,
.szkola-sub-menu-item-has-dropdown.is-expanded .szkola-sub-menu-dropdown {
  opacity: 1;
  visibility: visible;
}

.szkola-sub-menu-dropdown li {
  margin: 0;
}

.szkola-sub-menu-dropdown-link {
  display: block;
  padding: 0.4rem 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.szkola-sub-menu-dropdown-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main content on light white background */
.content {
  flex: 1;
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 1.5rem 1rem;
  width: 100%;
  box-sizing: border-box;
  background-color: #f5f8fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.content-section {
  margin: 0;
}

.content-quote-section {
  text-align: center;
  padding: 2rem 1rem;
}

.content-quote-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  color: #1a3a52;
}

.content-quote {
  margin: 0 0 1rem 0;
  font-size: 1.35rem;
  line-height: 1.5;
  color: #333;
  font-style: italic;
}

.content-quote-cta {
  margin: 0 0 1.5rem 0;
}

.content-quote-author {
  margin: 0;
  font-size: 1.1rem;
  color: #1a3a52;
  font-weight: 600;
}

/* Przedszkole: dwie kolumny „Dlaczego my?” / „Co proponujemy?” */
.content-two-cols-przedszkole {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.content-two-cols-przedszkole-col {
  margin: 0;
}

.content-two-cols-przedszkole-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.35rem;
  color: #1a3a52;
  font-weight: 700;
}

.content-two-cols-przedszkole-text {
  margin: 0 0 1rem 0;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

.content-two-cols-przedszkole-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #2c5f8d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.content-two-cols-przedszkole-btn:hover {
  background-color: #1a3a52;
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .content-two-cols-przedszkole {
    grid-template-columns: 1fr;
  }
}

.content-section h1,
.content-section h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #1a3a52;
}

.content-section h2 {
  margin-top: 1.5rem;
}

.content-section h1 + h2 {
  margin-top: 1rem;
}

.content-list-steps {
  margin: 0.5rem 0 1rem 0;
  padding-left: 1.5rem;
  line-height: 1.6;
  color: #333;
}

.content-hours-note {
  margin: 0.5rem 0 1.5rem 0;
  color: #333;
  font-size: 0.95rem;
}

.content-download {
  margin: 1.5rem 0 0 0;
  padding: 1rem;
  background-color: #e8eef3;
  border-radius: 6px;
  color: #333;
}

.content-download-link {
  color: #2c5f8d;
  font-weight: 600;
  text-decoration: none;
}

.content-download-link:hover {
  text-decoration: underline;
}

.content-intro {
  margin-top: 1.5rem;
}

.content-intro-title {
  font-size: 1.5rem;
  color: #1a3a52;
  margin: 0 0 0.75rem 0;
}

.content-intro-text {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* Three columns block */
.content-three-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.content-col {
  padding: 0;
}

.content-col-title {
  font-size: 1.2rem;
  color: #1a3a52;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.content-col-text {
  margin: 0;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .content-three-cols {
    grid-template-columns: 1fr;
  }
}

/* Two columns with Przedszkole / Szkoła buttons */
.content-two-cols-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.content-btn-col {
  display: flex;
  justify-content: center;
}

.content-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem 2rem;
  box-sizing: border-box;
  background-color: #2c5f8d;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.15s;
}

.content-btn:hover {
  background-color: #1a3a52;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .content-two-cols-buttons {
    grid-template-columns: 1fr;
  }
}

/* Footer */
/* Google Map section above footer */
.map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 0;
  background-color: #e8ecf0;
}

.map-section-col {
  min-width: 0;
}

.map-section-map {
  order: 1;
}

.map-iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map-section-contact {
  order: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-contact-title {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #1a3a52;
  font-weight: 700;
}

.map-contact-list {
  margin: 0;
  display: grid;
  gap: 0.5rem 1.5rem;
  grid-template-columns: auto 1fr;
  align-items: baseline;
}

.map-contact-list dt {
  font-weight: 600;
  color: #333;
  margin: 0;
}

.map-contact-list dd {
  margin: 0;
  color: #333;
}

.map-contact-list a {
  color: #2c5f8d;
  text-decoration: none;
}

.map-contact-list a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .map-section {
    grid-template-columns: 1fr;
  }

  .map-section-contact {
    order: 1;
    padding: 1rem;
  }

  .map-section-map {
    order: 2;
  }
}

/* Footer */
.site-footer {
  background-color: #2c5f8d;
  color: #fff;
  padding: 1rem 1rem 1.25rem;
  text-align: center;
}

.footer-address {
  font-style: normal;
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.95;
}

.site-footer a {
  color: #b8d4e8;
}

/* Fixed circular contact buttons on the right; expand left on hover */
.contact-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0;
  pointer-events: none;
}

.contact-float-link {
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  height: 48px;
  width: 48px;
  min-width: 48px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #2c5f8d;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: width 0.3s ease, min-width 0.3s ease, border-radius 0.3s ease;
}

.contact-float-link:hover {
  width: 280px;
  min-width: 280px;
  border-radius: 24px;
  color: #fff;
}

.contact-float-text {
  padding: 0 14px 0 18px;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-float-link:hover .contact-float-text {
  opacity: 1;
}

.contact-float-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Landing page (first screen on index.html only); fixed overlay, hides after scroll */
.landing-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  min-height: 100vh;
  background-color: #b8d4e8;
  transition: opacity 0.4s ease-out;
}

.landing-spacer {
  height: 100vh;
  flex-shrink: 0;
}

/* Main content overlays landing from below when scrolling (higher z-index) */
.index-content-overlay {
  position: relative;
  z-index: 101;
  padding-top: 5.5rem; /* space under fixed header so content doesn’t hide */
}

.landing-pattern-icons {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: #2c5f8d;
  opacity: 0.4;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.2s ease-out;
}

.landing-pattern-icons i {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes icon-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.landing-page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.landing-cylinder {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  height: 256px;
  padding: 0 4rem 0 1rem;
  min-width: 800px;
  width: fit-content;
  border-radius: 128px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease-out, opacity 0.2s ease-out;
}

.landing-cylinder img {
  width: auto;
  height: 208px;
  object-fit: contain;
  object-position: left center;
  transform: scale(1.2) translateX(-8px);
  transform-origin: left center;
}

.landing-center-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-left: 1.25rem;
}

.landing-title {
  font-size: 5rem;
  font-weight: 700;
  color: #1a3a52;
  margin: 0;
  white-space: nowrap;
}

.landing-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: #1a3a52;
  margin: 0;
}

.landing-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1a3a52;
  opacity: 0.85;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.landing-scroll-hint i {
  font-size: 2rem;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}
