/* Reset for WordPress-friendly import */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  scroll-behavior: smooth;
}

/* Full-viewport background with image + blue tint */
body {
  position: relative;
  background-color: #0a4d6d; /* fallback if image fails */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Image can be set in HTML for document-relative path; fallback here */
  background-image: url("../images/backgroundpicture.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  pointer-events: none;
}

/* Slight blue tint overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(62, 161, 207, 0.5); /* slight blue tint - increase to taste */
  z-index: -1;
  pointer-events: none;
}

.page-wrapper {
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 0;
}

/* ========== Hero (centered logo + tagline) ========== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  text-align: center;
}

.hero-logo {
  width: min(75vw, 720px);
  min-width: 280px;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-tagline {
  margin: clamp(1rem, 3vw, 2rem) 0 0;
  padding: 0 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1.25rem, 3.5vw + 0.5rem, 2.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  max-width: 32em;
}

/* ========== Content sections below hero ========== */
.info-section {
  padding: 4rem 1.5rem 5rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(153, 213, 237, 0.98));
}

#kto-sme {
  scroll-margin-top: 6rem;
}

.info-card {
  width: 100%;
  max-width: 1600px;
  padding: 2.5rem 2rem 3rem;
  margin: 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #005b7f;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.info-card-icon {
  height: clamp(6rem, 12vw, 8rem);
  width: auto;
  display: block;
}

.info-card-title {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(3.2rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}

#kto-sme .info-card-title {
  color: #166273;
}

.info-card-text {
  margin: 0 0 1.5rem;
  max-width: 72ch;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.info-card-text:last-of-type {
  margin-bottom: 0;
}

/* ========== Carousel section (white with sliding cards) ========== */
.carousel-section {
  padding: 6rem 2rem 7rem;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.carousel-heading {
  max-width: 1600px;
  margin: 0 auto 2.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #005b7f;
  text-align: center;
}

#riesenia {
  scroll-margin-top: 6rem;
}

.carousel {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem 1fr 3.25rem;
  gap: 0.5rem;
  align-items: center;
}

.carousel-window {
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
  position: relative;
  z-index: 0;
  grid-column: 2;
  scrollbar-color: rgba(0, 91, 127, 0.15) #fff;
  scrollbar-width: thin;
}

.carousel-window::-webkit-scrollbar {
  height: 6px;
}

.carousel-window::-webkit-scrollbar-track {
  background: #fff;
}

.carousel-window::-webkit-scrollbar-thumb {
  background: rgba(0, 91, 127, 0.15);
  border-radius: 3px;
}

.carousel-window::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 91, 127, 0.25);
}

.carousel-track {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  padding: 1rem 0;
}

.carousel-card {
  flex: 0 0 min(80vw, 400px);
  background: linear-gradient(135deg, #26a0d4, #06608f);
  border-radius: 2rem;
  padding: 1.75rem 1.75rem 1.75rem;
  color: #ffffff;
  text-decoration: none;
  box-shadow: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 380px;
}

.carousel-card-title {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  height: 5.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-card-image-wrap {
  flex-shrink: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1.25rem;
  position: relative;
}

.carousel-card-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.25rem;
}

.carousel-card-text {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
}

.carousel-arrow {
  border: 1px solid rgba(0, 91, 127, 0.18);
  width: 3.25rem;
  height: 3.25rem;
  min-width: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: #fff;
  color: #005b7f;
  border-radius: 50%;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  grid-row: 1;
}

.carousel-arrow--prev {
  grid-column: 1;
  justify-self: end;
}

.carousel-arrow--next {
  grid-column: 3;
  justify-self: start;
}

.carousel-arrow:hover:not([disabled]) {
  border-color: rgba(0, 91, 127, 0.35);
  background: #fff;
}

.carousel-arrow:focus-visible {
  outline: 2px solid #005b7f;
  outline-offset: 2px;
}

.carousel-arrow-symbol {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-arrow-symbol::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translate(-50%, -50%);
}

.carousel-arrow--next .carousel-arrow-symbol::before {
  border-width: 0.45em 0 0.45em 0.6em;
  border-color: transparent transparent transparent currentColor;
}

.carousel-arrow--prev .carousel-arrow-symbol::before {
  border-width: 0.45em 0.6em 0.45em 0;
  border-color: transparent currentColor transparent transparent;
}

.carousel-arrow[disabled],
.carousel-arrow.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #fff;
  color: #0078c8;
  border-color: rgba(0, 91, 127, 0.12);
}

.carousel-arrow[disabled]:hover,
.carousel-arrow.is-disabled:hover {
  border-color: rgba(0, 91, 127, 0.12);
  background: #fff;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 91, 127, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.carousel-dot:hover {
  background: rgba(0, 91, 127, 0.6);
  transform: scale(1.15);
}

.carousel-dot.is-active {
  background: #005b7f;
  transform: scale(1.2);
}

.carousel-dot:focus-visible {
  outline: 2px solid #005b7f;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .carousel-section {
    padding: 8rem 1.5rem 10rem;
  }

  .carousel {
    grid-template-columns: 3rem 1fr 3rem;
  }

  .carousel-arrow {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
  }

  .carousel-arrow--next .carousel-arrow-symbol::before {
    border-width: 0.4em 0 0.4em 0.5em;
  }
  .carousel-arrow--prev .carousel-arrow-symbol::before {
    border-width: 0.4em 0.5em 0.4em 0;
  }
}

/* ========== Footer (Kontakt) ========== */
.site-footer {
  background: linear-gradient(180deg, #0066a8 0%, #004d7a 100%);
  color: rgba(255, 255, 255, 0.95);
  padding: 3.5rem 1rem 2.5rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

#kontakt {
  scroll-margin-top: 6rem;
}

.footer-inner {
  max-width: min(calc(100vw - 2rem), 1600px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 3rem;
}

.footer-heading {
  margin: 0 0 1.25rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer-contact .footer-address {
  margin: 0 0 1.5rem;
  font-style: normal;
}

.footer-company {
  margin: 0 0 0.75rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.footer-line {
  margin: 0 0 0.65rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.footer-address-line {
  line-height: 1.6;
}

.footer-details .footer-line {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-map-col {
  display: flex;
  align-items: flex-start;
}

.footer-map-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.footer-map-link:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.footer-map-wrap {
  position: relative;
  display: block;
  width: 100%;
  min-width: 180px;
  max-width: 280px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
}

.footer-map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.footer-map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.6rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.footer-map-link:hover .footer-map-overlay {
  background: linear-gradient(transparent, rgba(0, 68, 120, 0.9));
}

.footer-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-link:hover {
  border-bottom-color: #fff;
  color: #fff;
}

.footer-register-text {
  margin: 0 0 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-top: 2rem;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo-img {
  height: clamp(2.75rem, 6vw, 4rem);
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.95;
}

.footer-copyright {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map-col {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .site-footer {
    padding: 4rem 1rem 3rem;
  }

  .footer-main {
    grid-template-columns: 1.2fr 1fr auto;
    gap: 3rem 4rem;
  }

  .footer-map-col {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
  }

  .footer-logo {
    order: -1;
  }

  .footer-logo-img {
    height: 3.5rem;
  }

  .footer-copyright {
    font-size: 0.9rem;
  }
}

/* ========== Navbar (floating, pinned to top) ========== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 0;
  pointer-events: none;
}

.navbar-wrapper > * {
  pointer-events: auto;
}

.navbar-inner {
  width: 100%;
  max-width: min(calc(100vw - 2rem), 1600px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 4.5rem;
  padding: 0 1.5rem 0 1rem;
  background: #0078c8;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.navbar-logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 14vw, 9rem);
  flex: 1;
}

.navbar-link {
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
  white-space: nowrap;
}

.navbar-link:hover {
  text-decoration: underline;
}

/* Language switcher button */
.navbar-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2rem;
  padding: 0 0.6rem;
  margin-left: 0.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar-lang-switch:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  text-decoration: none;
}

.navbar-mobile-lang {
  min-width: auto;
  height: auto;
  padding: 1rem 0;
  margin-left: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0;
}

.navbar-mobile-lang:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Hamburger button */
.navbar-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.navbar-trigger-inner {
  position: relative;
  width: 1.25rem;
  height: 1rem;
}

.navbar-trigger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.navbar-trigger-line:nth-child(1) { top: 0; }
.navbar-trigger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.navbar-trigger-line:nth-child(3) { top: 100%; transform: translateY(-100%); }

.navbar-trigger[aria-expanded="true"] .navbar-trigger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.navbar-trigger[aria-expanded="true"] .navbar-trigger-line:nth-child(2) {
  opacity: 0;
}
.navbar-trigger[aria-expanded="true"] .navbar-trigger-line:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Dropdown (width = content, right edge aligned with navbar) */
.navbar-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.75rem;
  width: max-content;
  min-width: 14rem;
  border-radius: 1.5rem 0 2rem 2rem;
  background: #0078c8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.navbar-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-dropdown[hidden] {
  display: block !important;
}

.navbar-dropdown[hidden]:not(.is-open) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.navbar-dropdown-content {
  padding: 1.75rem 2rem 4rem;
  position: relative;
  min-height: 10rem;
}

.navbar-dropdown-link {
  display: block;
  padding: 0.85rem 0;
  color: #fff;
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  text-align: left;
}

.navbar-dropdown-link::before {
  content: none;
}

.navbar-dropdown-link:hover {
  opacity: 0.9;
}

.navbar-dropdown-logo {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
}

.navbar-dropdown-logo img {
  height: 2.25rem;
  width: auto;
  display: block;
  opacity: 0.5;
  filter: brightness(0.85);
}

/* Hide mobile-only menu block and close button on desktop */
.navbar-mobile-main {
  display: none;
}

.navbar-close {
  display: none;
}

/* ========== Mobile view (navbar + full-screen menu) ========== */
@media (max-width: 768px) {
  .navbar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
  }

  .navbar-close:hover,
  .navbar-close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
  }

  .navbar-mobile-main {
    display: block;
    margin-bottom: 0.5rem;
  }

  .navbar-mobile-link {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    min-height: 2.75rem;
    color: #fff;
    text-decoration: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-mobile-link:hover,
  .navbar-mobile-link:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar-mobile-link:last-of-type {
    border-bottom: none;
  }

  /* Hide desktop nav links on mobile */
  .navbar-links {
    display: none;
  }

  /* Larger touch target for hamburger (min 44px) */
  .navbar-trigger {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    margin: -0.25rem -0.25rem -0.25rem 0;
  }

  /* Navbar bar: full width, safe area */
  .navbar-wrapper {
    padding: 0.75rem 1rem 0;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  .navbar-inner {
    max-width: none;
  }

  .navbar {
    border-radius: 1rem;
    padding: 0 0.75rem 0 1rem;
    height: 3.5rem;
  }

  .navbar-logo-img {
    height: 2.25rem;
  }

  /* Full-screen overlay menu on mobile */
  .navbar-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    align-self: stretch;
    border-radius: 0;
    background: #0078c8;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    padding-top: max(4.5rem, calc(env(safe-area-inset-top) + 3.5rem));
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .navbar-dropdown.is-open {
    transform: none;
  }

  .navbar-dropdown-content {
    padding: 0 0 3rem;
    min-height: 0;
  }

  .navbar-dropdown-link {
    padding: 1rem 0;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-dropdown-link::before {
    content: none;
  }

  .navbar-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar-dropdown-logo {
    position: static;
    margin-top: 2rem;
  }

  .navbar-dropdown-logo img {
    height: 2rem;
    opacity: 0.6;
  }

  /* Subsite layout on mobile: match navbar padding and width */
  body.subsite-page .page-wrapper.subsite-wrapper {
    padding: 0.75rem 1rem 0;
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }

  body.subsite-page .subsite-inner {
    max-width: none;
  }

  .subsite-content {
    padding: 0 0.75rem 0 0;
  }

  /* Safe area for notched devices: footer and main content */
  .page-wrapper {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .site-footer {
    padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
  }
}

/* ========== Subsite pages (river background, fade to white, text on left) ========== */
html.subsite-html,
html.subsite-html body {
  overflow: hidden;
  height: 100%;
}

body.subsite-page {
  background-color: #2a6b7a;
  min-height: 100vh;
}

body.subsite-page::before {
  background-image: url("../images/river.jpg");
}

body.subsite-page.subsite-flood::before {
  background-image: url("../images/flood.jpg");
}

body.subsite-page.subsite-rain::before {
  background-image: url("../images/rain.jpg");
}

body.subsite-page.subsite-deal::before {
  background-image: url("../images/deal.jpg");
}

body.subsite-page.subsite-canal::before {
  background-image: url("../images/canal.jpg");
}

body.subsite-page.subsite-ruka::before {
  background-image: url("../images/ruka.jpg");
}

body.subsite-page.subsite-breeam::before {
  background-image: url("../images/breeam.webp");
}

body.subsite-page::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(153, 213, 237, 0.95) 55%,
    rgba(153, 213, 237, 0.65) 72%,
    rgba(153, 213, 237, 0.2) 85%,
    transparent 100%

  );
}

/* Subsite layout: same structure and width as navbar for perfect alignment */
body.subsite-page .page-wrapper.subsite-wrapper {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 0;
  box-sizing: border-box;
}

body.subsite-page .subsite-inner {
  width: 100%;
  max-width: min(calc(100vw - 2rem), 1600px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.subsite-content {
  padding: 0 1.5rem 0 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  overflow: hidden;
}

.subsite-content.info-section {
  background: transparent;
}

.subsite-content .info-card {
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 900px;
}

.subsite-content .info-card-title {
  margin-bottom: 2rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.subsite-content .info-card-text {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.7;
}

.subsite-znak {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  width: clamp(6rem, 15vw, 10rem);
  height: auto;
  pointer-events: none;
}

.subsite-znak img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.9;
}
